diff --git a/docs/pokerth.proto b/docs/pokerth.proto index 5c7f36bd..57440c69 100644 --- a/docs/pokerth.proto +++ b/docs/pokerth.proto @@ -16,6 +16,9 @@ * along with this program. If not, see . * *****************************************************************************/ +option java_package = "de.pokerth.protocol"; +option java_outer_classname = "ProtoBuf"; + // Enumerations used by several messages. enum NetGameMode { diff --git a/tests/src/de/pokerth/protocol/ProtoBuf.java b/tests/src/de/pokerth/protocol/ProtoBuf.java new file mode 100644 index 00000000..5129d0c0 --- /dev/null +++ b/tests/src/de/pokerth/protocol/ProtoBuf.java @@ -0,0 +1,56235 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: pokerth.proto + +package de.pokerth.protocol; + +public final class ProtoBuf { + private ProtoBuf() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + } + public enum NetGameMode + implements com.google.protobuf.ProtocolMessageEnum { + gameCreated(0, 1), + gameStarted(1, 2), + gameClosed(2, 3), + ; + + public static final int gameCreated_VALUE = 1; + public static final int gameStarted_VALUE = 2; + public static final int gameClosed_VALUE = 3; + + + public final int getNumber() { return value; } + + public static NetGameMode valueOf(int value) { + switch (value) { + case 1: return gameCreated; + case 2: return gameStarted; + case 3: return gameClosed; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NetGameMode findValueByNumber(int number) { + return NetGameMode.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 de.pokerth.protocol.ProtoBuf.getDescriptor().getEnumTypes().get(0); + } + + private static final NetGameMode[] VALUES = { + gameCreated, gameStarted, gameClosed, + }; + + public static NetGameMode 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 NetGameMode(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:NetGameMode) + } + + public enum NetGameState + implements com.google.protobuf.ProtocolMessageEnum { + statePreflop(0, 0), + stateFlop(1, 1), + stateTurn(2, 2), + stateRiver(3, 3), + statePreflopSmallBlind(4, 4), + statePreflopBigBlind(5, 5), + ; + + public static final int statePreflop_VALUE = 0; + public static final int stateFlop_VALUE = 1; + public static final int stateTurn_VALUE = 2; + public static final int stateRiver_VALUE = 3; + public static final int statePreflopSmallBlind_VALUE = 4; + public static final int statePreflopBigBlind_VALUE = 5; + + + public final int getNumber() { return value; } + + public static NetGameState valueOf(int value) { + switch (value) { + case 0: return statePreflop; + case 1: return stateFlop; + case 2: return stateTurn; + case 3: return stateRiver; + case 4: return statePreflopSmallBlind; + case 5: return statePreflopBigBlind; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NetGameState findValueByNumber(int number) { + return NetGameState.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 de.pokerth.protocol.ProtoBuf.getDescriptor().getEnumTypes().get(1); + } + + private static final NetGameState[] VALUES = { + statePreflop, stateFlop, stateTurn, stateRiver, statePreflopSmallBlind, statePreflopBigBlind, + }; + + public static NetGameState 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 NetGameState(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:NetGameState) + } + + public enum NetPlayerAction + implements com.google.protobuf.ProtocolMessageEnum { + actionNone(0, 0), + actionFold(1, 1), + actionCheck(2, 2), + actionCall(3, 3), + actionBet(4, 4), + actionRaise(5, 5), + actionAllIn(6, 6), + ; + + public static final int actionNone_VALUE = 0; + public static final int actionFold_VALUE = 1; + public static final int actionCheck_VALUE = 2; + public static final int actionCall_VALUE = 3; + public static final int actionBet_VALUE = 4; + public static final int actionRaise_VALUE = 5; + public static final int actionAllIn_VALUE = 6; + + + public final int getNumber() { return value; } + + public static NetPlayerAction valueOf(int value) { + switch (value) { + case 0: return actionNone; + case 1: return actionFold; + case 2: return actionCheck; + case 3: return actionCall; + case 4: return actionBet; + case 5: return actionRaise; + case 6: return actionAllIn; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NetPlayerAction findValueByNumber(int number) { + return NetPlayerAction.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 de.pokerth.protocol.ProtoBuf.getDescriptor().getEnumTypes().get(2); + } + + private static final NetPlayerAction[] VALUES = { + actionNone, actionFold, actionCheck, actionCall, actionBet, actionRaise, actionAllIn, + }; + + public static NetPlayerAction 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 NetPlayerAction(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:NetPlayerAction) + } + + public enum NetPlayerState + implements com.google.protobuf.ProtocolMessageEnum { + playerStateNormal(0, 0), + playerStateSessionInactive(1, 1), + playerStateNoMoney(2, 2), + ; + + public static final int playerStateNormal_VALUE = 0; + public static final int playerStateSessionInactive_VALUE = 1; + public static final int playerStateNoMoney_VALUE = 2; + + + public final int getNumber() { return value; } + + public static NetPlayerState valueOf(int value) { + switch (value) { + case 0: return playerStateNormal; + case 1: return playerStateSessionInactive; + case 2: return playerStateNoMoney; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NetPlayerState findValueByNumber(int number) { + return NetPlayerState.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 de.pokerth.protocol.ProtoBuf.getDescriptor().getEnumTypes().get(3); + } + + private static final NetPlayerState[] VALUES = { + playerStateNormal, playerStateSessionInactive, playerStateNoMoney, + }; + + public static NetPlayerState 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 NetPlayerState(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:NetPlayerState) + } + + public enum PlayerInfoRights + implements com.google.protobuf.ProtocolMessageEnum { + playerRightsGuest(0, 1), + playerRightsNormal(1, 2), + playerRightsAdmin(2, 3), + ; + + public static final int playerRightsGuest_VALUE = 1; + public static final int playerRightsNormal_VALUE = 2; + public static final int playerRightsAdmin_VALUE = 3; + + + public final int getNumber() { return value; } + + public static PlayerInfoRights valueOf(int value) { + switch (value) { + case 1: return playerRightsGuest; + case 2: return playerRightsNormal; + case 3: return playerRightsAdmin; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PlayerInfoRights findValueByNumber(int number) { + return PlayerInfoRights.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 de.pokerth.protocol.ProtoBuf.getDescriptor().getEnumTypes().get(4); + } + + private static final PlayerInfoRights[] VALUES = { + playerRightsGuest, playerRightsNormal, playerRightsAdmin, + }; + + public static PlayerInfoRights 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 PlayerInfoRights(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:PlayerInfoRights) + } + + public enum NetAvatarType + implements com.google.protobuf.ProtocolMessageEnum { + avatarImagePng(0, 0), + avatarImageJpg(1, 1), + avatarImageGif(2, 2), + ; + + public static final int avatarImagePng_VALUE = 0; + public static final int avatarImageJpg_VALUE = 1; + public static final int avatarImageGif_VALUE = 2; + + + public final int getNumber() { return value; } + + public static NetAvatarType valueOf(int value) { + switch (value) { + case 0: return avatarImagePng; + case 1: return avatarImageJpg; + case 2: return avatarImageGif; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NetAvatarType findValueByNumber(int number) { + return NetAvatarType.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 de.pokerth.protocol.ProtoBuf.getDescriptor().getEnumTypes().get(5); + } + + private static final NetAvatarType[] VALUES = { + avatarImagePng, avatarImageJpg, avatarImageGif, + }; + + public static NetAvatarType 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 NetAvatarType(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:NetAvatarType) + } + + public interface NetGameInfoOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string gameName = 1; + boolean hasGameName(); + String getGameName(); + + // required .NetGameInfo.NetGameType netGameType = 2; + boolean hasNetGameType(); + de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType getNetGameType(); + + // required uint32 maxNumPlayers = 3; + boolean hasMaxNumPlayers(); + int getMaxNumPlayers(); + + // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; + boolean hasRaiseIntervalMode(); + de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode getRaiseIntervalMode(); + + // optional uint32 raiseEveryHands = 5; + boolean hasRaiseEveryHands(); + int getRaiseEveryHands(); + + // optional uint32 raiseEveryMinutes = 6; + boolean hasRaiseEveryMinutes(); + int getRaiseEveryMinutes(); + + // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; + boolean hasEndRaiseMode(); + de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode getEndRaiseMode(); + + // optional uint32 endRaiseSmallBlindValue = 8; + boolean hasEndRaiseSmallBlindValue(); + int getEndRaiseSmallBlindValue(); + + // required uint32 proposedGuiSpeed = 9; + boolean hasProposedGuiSpeed(); + int getProposedGuiSpeed(); + + // required uint32 delayBetweenHands = 10; + boolean hasDelayBetweenHands(); + int getDelayBetweenHands(); + + // required uint32 playerActionTimeout = 11; + boolean hasPlayerActionTimeout(); + int getPlayerActionTimeout(); + + // required uint32 firstSmallBlind = 12; + boolean hasFirstSmallBlind(); + int getFirstSmallBlind(); + + // required uint32 startMoney = 13; + boolean hasStartMoney(); + int getStartMoney(); + + // repeated uint32 manualBlinds = 14 [packed = true]; + java.util.List getManualBlindsList(); + int getManualBlindsCount(); + int getManualBlinds(int index); + } + public static final class NetGameInfo extends + com.google.protobuf.GeneratedMessage + implements NetGameInfoOrBuilder { + // Use NetGameInfo.newBuilder() to construct. + private NetGameInfo(Builder builder) { + super(builder); + } + private NetGameInfo(boolean noInit) {} + + private static final NetGameInfo defaultInstance; + public static NetGameInfo getDefaultInstance() { + return defaultInstance; + } + + public NetGameInfo getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_NetGameInfo_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_NetGameInfo_fieldAccessorTable; + } + + public enum NetGameType + implements com.google.protobuf.ProtocolMessageEnum { + normalGame(0, 1), + registeredOnlyGame(1, 2), + inviteOnlyGame(2, 3), + rankingGame(3, 4), + ; + + public static final int normalGame_VALUE = 1; + public static final int registeredOnlyGame_VALUE = 2; + public static final int inviteOnlyGame_VALUE = 3; + public static final int rankingGame_VALUE = 4; + + + public final int getNumber() { return value; } + + public static NetGameType valueOf(int value) { + switch (value) { + case 1: return normalGame; + case 2: return registeredOnlyGame; + case 3: return inviteOnlyGame; + case 4: return rankingGame; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NetGameType findValueByNumber(int number) { + return NetGameType.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 de.pokerth.protocol.ProtoBuf.NetGameInfo.getDescriptor().getEnumTypes().get(0); + } + + private static final NetGameType[] VALUES = { + normalGame, registeredOnlyGame, inviteOnlyGame, rankingGame, + }; + + public static NetGameType 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 NetGameType(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:NetGameInfo.NetGameType) + } + + public enum RaiseIntervalMode + implements com.google.protobuf.ProtocolMessageEnum { + raiseOnHandNum(0, 1), + raiseOnMinutes(1, 2), + ; + + public static final int raiseOnHandNum_VALUE = 1; + public static final int raiseOnMinutes_VALUE = 2; + + + public final int getNumber() { return value; } + + public static RaiseIntervalMode valueOf(int value) { + switch (value) { + case 1: return raiseOnHandNum; + case 2: return raiseOnMinutes; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RaiseIntervalMode findValueByNumber(int number) { + return RaiseIntervalMode.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 de.pokerth.protocol.ProtoBuf.NetGameInfo.getDescriptor().getEnumTypes().get(1); + } + + private static final RaiseIntervalMode[] VALUES = { + raiseOnHandNum, raiseOnMinutes, + }; + + public static RaiseIntervalMode 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 RaiseIntervalMode(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:NetGameInfo.RaiseIntervalMode) + } + + public enum EndRaiseMode + implements com.google.protobuf.ProtocolMessageEnum { + doubleBlinds(0, 1), + raiseByEndValue(1, 2), + keepLastBlind(2, 3), + ; + + public static final int doubleBlinds_VALUE = 1; + public static final int raiseByEndValue_VALUE = 2; + public static final int keepLastBlind_VALUE = 3; + + + public final int getNumber() { return value; } + + public static EndRaiseMode valueOf(int value) { + switch (value) { + case 1: return doubleBlinds; + case 2: return raiseByEndValue; + case 3: return keepLastBlind; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EndRaiseMode findValueByNumber(int number) { + return EndRaiseMode.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 de.pokerth.protocol.ProtoBuf.NetGameInfo.getDescriptor().getEnumTypes().get(2); + } + + private static final EndRaiseMode[] VALUES = { + doubleBlinds, raiseByEndValue, keepLastBlind, + }; + + public static EndRaiseMode 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 EndRaiseMode(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:NetGameInfo.EndRaiseMode) + } + + private int bitField0_; + // required string gameName = 1; + public static final int GAMENAME_FIELD_NUMBER = 1; + private java.lang.Object gameName_; + public boolean hasGameName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getGameName() { + java.lang.Object ref = gameName_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + gameName_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getGameNameBytes() { + java.lang.Object ref = gameName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + gameName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // required .NetGameInfo.NetGameType netGameType = 2; + public static final int NETGAMETYPE_FIELD_NUMBER = 2; + private de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType netGameType_; + public boolean hasNetGameType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType getNetGameType() { + return netGameType_; + } + + // required uint32 maxNumPlayers = 3; + public static final int MAXNUMPLAYERS_FIELD_NUMBER = 3; + private int maxNumPlayers_; + public boolean hasMaxNumPlayers() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getMaxNumPlayers() { + return maxNumPlayers_; + } + + // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; + public static final int RAISEINTERVALMODE_FIELD_NUMBER = 4; + private de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode raiseIntervalMode_; + public boolean hasRaiseIntervalMode() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode getRaiseIntervalMode() { + return raiseIntervalMode_; + } + + // optional uint32 raiseEveryHands = 5; + public static final int RAISEEVERYHANDS_FIELD_NUMBER = 5; + private int raiseEveryHands_; + public boolean hasRaiseEveryHands() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getRaiseEveryHands() { + return raiseEveryHands_; + } + + // optional uint32 raiseEveryMinutes = 6; + public static final int RAISEEVERYMINUTES_FIELD_NUMBER = 6; + private int raiseEveryMinutes_; + public boolean hasRaiseEveryMinutes() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public int getRaiseEveryMinutes() { + return raiseEveryMinutes_; + } + + // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; + public static final int ENDRAISEMODE_FIELD_NUMBER = 7; + private de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode endRaiseMode_; + public boolean hasEndRaiseMode() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode getEndRaiseMode() { + return endRaiseMode_; + } + + // optional uint32 endRaiseSmallBlindValue = 8; + public static final int ENDRAISESMALLBLINDVALUE_FIELD_NUMBER = 8; + private int endRaiseSmallBlindValue_; + public boolean hasEndRaiseSmallBlindValue() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + public int getEndRaiseSmallBlindValue() { + return endRaiseSmallBlindValue_; + } + + // required uint32 proposedGuiSpeed = 9; + public static final int PROPOSEDGUISPEED_FIELD_NUMBER = 9; + private int proposedGuiSpeed_; + public boolean hasProposedGuiSpeed() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + public int getProposedGuiSpeed() { + return proposedGuiSpeed_; + } + + // required uint32 delayBetweenHands = 10; + public static final int DELAYBETWEENHANDS_FIELD_NUMBER = 10; + private int delayBetweenHands_; + public boolean hasDelayBetweenHands() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + public int getDelayBetweenHands() { + return delayBetweenHands_; + } + + // required uint32 playerActionTimeout = 11; + public static final int PLAYERACTIONTIMEOUT_FIELD_NUMBER = 11; + private int playerActionTimeout_; + public boolean hasPlayerActionTimeout() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + public int getPlayerActionTimeout() { + return playerActionTimeout_; + } + + // required uint32 firstSmallBlind = 12; + public static final int FIRSTSMALLBLIND_FIELD_NUMBER = 12; + private int firstSmallBlind_; + public boolean hasFirstSmallBlind() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + public int getFirstSmallBlind() { + return firstSmallBlind_; + } + + // required uint32 startMoney = 13; + public static final int STARTMONEY_FIELD_NUMBER = 13; + private int startMoney_; + public boolean hasStartMoney() { + return ((bitField0_ & 0x00001000) == 0x00001000); + } + public int getStartMoney() { + return startMoney_; + } + + // repeated uint32 manualBlinds = 14 [packed = true]; + public static final int MANUALBLINDS_FIELD_NUMBER = 14; + private java.util.List manualBlinds_; + public java.util.List + getManualBlindsList() { + return manualBlinds_; + } + public int getManualBlindsCount() { + return manualBlinds_.size(); + } + public int getManualBlinds(int index) { + return manualBlinds_.get(index); + } + private int manualBlindsMemoizedSerializedSize = -1; + + private void initFields() { + gameName_ = ""; + netGameType_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType.normalGame; + maxNumPlayers_ = 0; + raiseIntervalMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode.raiseOnHandNum; + raiseEveryHands_ = 0; + raiseEveryMinutes_ = 0; + endRaiseMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode.doubleBlinds; + endRaiseSmallBlindValue_ = 0; + proposedGuiSpeed_ = 0; + delayBetweenHands_ = 0; + playerActionTimeout_ = 0; + firstSmallBlind_ = 0; + startMoney_ = 0; + manualBlinds_ = java.util.Collections.emptyList();; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameName()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNetGameType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMaxNumPlayers()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRaiseIntervalMode()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasEndRaiseMode()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasProposedGuiSpeed()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasDelayBetweenHands()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerActionTimeout()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasFirstSmallBlind()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStartMoney()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getGameNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, netGameType_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, maxNumPlayers_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeEnum(4, raiseIntervalMode_.getNumber()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt32(5, raiseEveryHands_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeUInt32(6, raiseEveryMinutes_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeEnum(7, endRaiseMode_.getNumber()); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeUInt32(8, endRaiseSmallBlindValue_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeUInt32(9, proposedGuiSpeed_); + } + if (((bitField0_ & 0x00000200) == 0x00000200)) { + output.writeUInt32(10, delayBetweenHands_); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + output.writeUInt32(11, playerActionTimeout_); + } + if (((bitField0_ & 0x00000800) == 0x00000800)) { + output.writeUInt32(12, firstSmallBlind_); + } + if (((bitField0_ & 0x00001000) == 0x00001000)) { + output.writeUInt32(13, startMoney_); + } + if (getManualBlindsList().size() > 0) { + output.writeRawVarint32(114); + output.writeRawVarint32(manualBlindsMemoizedSerializedSize); + } + for (int i = 0; i < manualBlinds_.size(); i++) { + output.writeUInt32NoTag(manualBlinds_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getGameNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, netGameType_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, maxNumPlayers_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, raiseIntervalMode_.getNumber()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, raiseEveryHands_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, raiseEveryMinutes_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, endRaiseMode_.getNumber()); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, endRaiseSmallBlindValue_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(9, proposedGuiSpeed_); + } + if (((bitField0_ & 0x00000200) == 0x00000200)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(10, delayBetweenHands_); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(11, playerActionTimeout_); + } + if (((bitField0_ & 0x00000800) == 0x00000800)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(12, firstSmallBlind_); + } + if (((bitField0_ & 0x00001000) == 0x00001000)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(13, startMoney_); + } + { + int dataSize = 0; + for (int i = 0; i < manualBlinds_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(manualBlinds_.get(i)); + } + size += dataSize; + if (!getManualBlindsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + manualBlindsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.NetGameInfo prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_NetGameInfo_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_NetGameInfo_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameName_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + netGameType_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType.normalGame; + bitField0_ = (bitField0_ & ~0x00000002); + maxNumPlayers_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + raiseIntervalMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode.raiseOnHandNum; + bitField0_ = (bitField0_ & ~0x00000008); + raiseEveryHands_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + raiseEveryMinutes_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + endRaiseMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode.doubleBlinds; + bitField0_ = (bitField0_ & ~0x00000040); + endRaiseSmallBlindValue_ = 0; + bitField0_ = (bitField0_ & ~0x00000080); + proposedGuiSpeed_ = 0; + bitField0_ = (bitField0_ & ~0x00000100); + delayBetweenHands_ = 0; + bitField0_ = (bitField0_ & ~0x00000200); + playerActionTimeout_ = 0; + bitField0_ = (bitField0_ & ~0x00000400); + firstSmallBlind_ = 0; + bitField0_ = (bitField0_ & ~0x00000800); + startMoney_ = 0; + bitField0_ = (bitField0_ & ~0x00001000); + manualBlinds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00002000); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.NetGameInfo.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.NetGameInfo getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.NetGameInfo build() { + de.pokerth.protocol.ProtoBuf.NetGameInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.NetGameInfo buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.NetGameInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.NetGameInfo buildPartial() { + de.pokerth.protocol.ProtoBuf.NetGameInfo result = new de.pokerth.protocol.ProtoBuf.NetGameInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameName_ = gameName_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.netGameType_ = netGameType_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.maxNumPlayers_ = maxNumPlayers_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.raiseIntervalMode_ = raiseIntervalMode_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.raiseEveryHands_ = raiseEveryHands_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.raiseEveryMinutes_ = raiseEveryMinutes_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.endRaiseMode_ = endRaiseMode_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; + } + result.endRaiseSmallBlindValue_ = endRaiseSmallBlindValue_; + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000100; + } + result.proposedGuiSpeed_ = proposedGuiSpeed_; + if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + to_bitField0_ |= 0x00000200; + } + result.delayBetweenHands_ = delayBetweenHands_; + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000400; + } + result.playerActionTimeout_ = playerActionTimeout_; + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + to_bitField0_ |= 0x00000800; + } + result.firstSmallBlind_ = firstSmallBlind_; + if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + to_bitField0_ |= 0x00001000; + } + result.startMoney_ = startMoney_; + if (((bitField0_ & 0x00002000) == 0x00002000)) { + manualBlinds_ = java.util.Collections.unmodifiableList(manualBlinds_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.manualBlinds_ = manualBlinds_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.NetGameInfo) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.NetGameInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.NetGameInfo other) { + if (other == de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance()) return this; + if (other.hasGameName()) { + setGameName(other.getGameName()); + } + if (other.hasNetGameType()) { + setNetGameType(other.getNetGameType()); + } + if (other.hasMaxNumPlayers()) { + setMaxNumPlayers(other.getMaxNumPlayers()); + } + if (other.hasRaiseIntervalMode()) { + setRaiseIntervalMode(other.getRaiseIntervalMode()); + } + if (other.hasRaiseEveryHands()) { + setRaiseEveryHands(other.getRaiseEveryHands()); + } + if (other.hasRaiseEveryMinutes()) { + setRaiseEveryMinutes(other.getRaiseEveryMinutes()); + } + if (other.hasEndRaiseMode()) { + setEndRaiseMode(other.getEndRaiseMode()); + } + if (other.hasEndRaiseSmallBlindValue()) { + setEndRaiseSmallBlindValue(other.getEndRaiseSmallBlindValue()); + } + if (other.hasProposedGuiSpeed()) { + setProposedGuiSpeed(other.getProposedGuiSpeed()); + } + if (other.hasDelayBetweenHands()) { + setDelayBetweenHands(other.getDelayBetweenHands()); + } + if (other.hasPlayerActionTimeout()) { + setPlayerActionTimeout(other.getPlayerActionTimeout()); + } + if (other.hasFirstSmallBlind()) { + setFirstSmallBlind(other.getFirstSmallBlind()); + } + if (other.hasStartMoney()) { + setStartMoney(other.getStartMoney()); + } + if (!other.manualBlinds_.isEmpty()) { + if (manualBlinds_.isEmpty()) { + manualBlinds_ = other.manualBlinds_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureManualBlindsIsMutable(); + manualBlinds_.addAll(other.manualBlinds_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameName()) { + + return false; + } + if (!hasNetGameType()) { + + return false; + } + if (!hasMaxNumPlayers()) { + + return false; + } + if (!hasRaiseIntervalMode()) { + + return false; + } + if (!hasEndRaiseMode()) { + + return false; + } + if (!hasProposedGuiSpeed()) { + + return false; + } + if (!hasDelayBetweenHands()) { + + return false; + } + if (!hasPlayerActionTimeout()) { + + return false; + } + if (!hasFirstSmallBlind()) { + + return false; + } + if (!hasStartMoney()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + gameName_ = input.readBytes(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType value = de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + netGameType_ = value; + } + break; + } + case 24: { + bitField0_ |= 0x00000004; + maxNumPlayers_ = input.readUInt32(); + break; + } + case 32: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode value = de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(4, rawValue); + } else { + bitField0_ |= 0x00000008; + raiseIntervalMode_ = value; + } + break; + } + case 40: { + bitField0_ |= 0x00000010; + raiseEveryHands_ = input.readUInt32(); + break; + } + case 48: { + bitField0_ |= 0x00000020; + raiseEveryMinutes_ = input.readUInt32(); + break; + } + case 56: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode value = de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(7, rawValue); + } else { + bitField0_ |= 0x00000040; + endRaiseMode_ = value; + } + break; + } + case 64: { + bitField0_ |= 0x00000080; + endRaiseSmallBlindValue_ = input.readUInt32(); + break; + } + case 72: { + bitField0_ |= 0x00000100; + proposedGuiSpeed_ = input.readUInt32(); + break; + } + case 80: { + bitField0_ |= 0x00000200; + delayBetweenHands_ = input.readUInt32(); + break; + } + case 88: { + bitField0_ |= 0x00000400; + playerActionTimeout_ = input.readUInt32(); + break; + } + case 96: { + bitField0_ |= 0x00000800; + firstSmallBlind_ = input.readUInt32(); + break; + } + case 104: { + bitField0_ |= 0x00001000; + startMoney_ = input.readUInt32(); + break; + } + case 112: { + ensureManualBlindsIsMutable(); + manualBlinds_.add(input.readUInt32()); + break; + } + case 114: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + addManualBlinds(input.readUInt32()); + } + input.popLimit(limit); + break; + } + } + } + } + + private int bitField0_; + + // required string gameName = 1; + private java.lang.Object gameName_ = ""; + public boolean hasGameName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getGameName() { + java.lang.Object ref = gameName_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + gameName_ = s; + return s; + } else { + return (String) ref; + } + } + public Builder setGameName(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + gameName_ = value; + onChanged(); + return this; + } + public Builder clearGameName() { + bitField0_ = (bitField0_ & ~0x00000001); + gameName_ = getDefaultInstance().getGameName(); + onChanged(); + return this; + } + void setGameName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + gameName_ = value; + onChanged(); + } + + // required .NetGameInfo.NetGameType netGameType = 2; + private de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType netGameType_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType.normalGame; + public boolean hasNetGameType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType getNetGameType() { + return netGameType_; + } + public Builder setNetGameType(de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + netGameType_ = value; + onChanged(); + return this; + } + public Builder clearNetGameType() { + bitField0_ = (bitField0_ & ~0x00000002); + netGameType_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType.normalGame; + onChanged(); + return this; + } + + // required uint32 maxNumPlayers = 3; + private int maxNumPlayers_ ; + public boolean hasMaxNumPlayers() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getMaxNumPlayers() { + return maxNumPlayers_; + } + public Builder setMaxNumPlayers(int value) { + bitField0_ |= 0x00000004; + maxNumPlayers_ = value; + onChanged(); + return this; + } + public Builder clearMaxNumPlayers() { + bitField0_ = (bitField0_ & ~0x00000004); + maxNumPlayers_ = 0; + onChanged(); + return this; + } + + // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; + private de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode raiseIntervalMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode.raiseOnHandNum; + public boolean hasRaiseIntervalMode() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode getRaiseIntervalMode() { + return raiseIntervalMode_; + } + public Builder setRaiseIntervalMode(de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + raiseIntervalMode_ = value; + onChanged(); + return this; + } + public Builder clearRaiseIntervalMode() { + bitField0_ = (bitField0_ & ~0x00000008); + raiseIntervalMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode.raiseOnHandNum; + onChanged(); + return this; + } + + // optional uint32 raiseEveryHands = 5; + private int raiseEveryHands_ ; + public boolean hasRaiseEveryHands() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getRaiseEveryHands() { + return raiseEveryHands_; + } + public Builder setRaiseEveryHands(int value) { + bitField0_ |= 0x00000010; + raiseEveryHands_ = value; + onChanged(); + return this; + } + public Builder clearRaiseEveryHands() { + bitField0_ = (bitField0_ & ~0x00000010); + raiseEveryHands_ = 0; + onChanged(); + return this; + } + + // optional uint32 raiseEveryMinutes = 6; + private int raiseEveryMinutes_ ; + public boolean hasRaiseEveryMinutes() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public int getRaiseEveryMinutes() { + return raiseEveryMinutes_; + } + public Builder setRaiseEveryMinutes(int value) { + bitField0_ |= 0x00000020; + raiseEveryMinutes_ = value; + onChanged(); + return this; + } + public Builder clearRaiseEveryMinutes() { + bitField0_ = (bitField0_ & ~0x00000020); + raiseEveryMinutes_ = 0; + onChanged(); + return this; + } + + // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; + private de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode endRaiseMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode.doubleBlinds; + public boolean hasEndRaiseMode() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode getEndRaiseMode() { + return endRaiseMode_; + } + public Builder setEndRaiseMode(de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + endRaiseMode_ = value; + onChanged(); + return this; + } + public Builder clearEndRaiseMode() { + bitField0_ = (bitField0_ & ~0x00000040); + endRaiseMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode.doubleBlinds; + onChanged(); + return this; + } + + // optional uint32 endRaiseSmallBlindValue = 8; + private int endRaiseSmallBlindValue_ ; + public boolean hasEndRaiseSmallBlindValue() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + public int getEndRaiseSmallBlindValue() { + return endRaiseSmallBlindValue_; + } + public Builder setEndRaiseSmallBlindValue(int value) { + bitField0_ |= 0x00000080; + endRaiseSmallBlindValue_ = value; + onChanged(); + return this; + } + public Builder clearEndRaiseSmallBlindValue() { + bitField0_ = (bitField0_ & ~0x00000080); + endRaiseSmallBlindValue_ = 0; + onChanged(); + return this; + } + + // required uint32 proposedGuiSpeed = 9; + private int proposedGuiSpeed_ ; + public boolean hasProposedGuiSpeed() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + public int getProposedGuiSpeed() { + return proposedGuiSpeed_; + } + public Builder setProposedGuiSpeed(int value) { + bitField0_ |= 0x00000100; + proposedGuiSpeed_ = value; + onChanged(); + return this; + } + public Builder clearProposedGuiSpeed() { + bitField0_ = (bitField0_ & ~0x00000100); + proposedGuiSpeed_ = 0; + onChanged(); + return this; + } + + // required uint32 delayBetweenHands = 10; + private int delayBetweenHands_ ; + public boolean hasDelayBetweenHands() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + public int getDelayBetweenHands() { + return delayBetweenHands_; + } + public Builder setDelayBetweenHands(int value) { + bitField0_ |= 0x00000200; + delayBetweenHands_ = value; + onChanged(); + return this; + } + public Builder clearDelayBetweenHands() { + bitField0_ = (bitField0_ & ~0x00000200); + delayBetweenHands_ = 0; + onChanged(); + return this; + } + + // required uint32 playerActionTimeout = 11; + private int playerActionTimeout_ ; + public boolean hasPlayerActionTimeout() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + public int getPlayerActionTimeout() { + return playerActionTimeout_; + } + public Builder setPlayerActionTimeout(int value) { + bitField0_ |= 0x00000400; + playerActionTimeout_ = value; + onChanged(); + return this; + } + public Builder clearPlayerActionTimeout() { + bitField0_ = (bitField0_ & ~0x00000400); + playerActionTimeout_ = 0; + onChanged(); + return this; + } + + // required uint32 firstSmallBlind = 12; + private int firstSmallBlind_ ; + public boolean hasFirstSmallBlind() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + public int getFirstSmallBlind() { + return firstSmallBlind_; + } + public Builder setFirstSmallBlind(int value) { + bitField0_ |= 0x00000800; + firstSmallBlind_ = value; + onChanged(); + return this; + } + public Builder clearFirstSmallBlind() { + bitField0_ = (bitField0_ & ~0x00000800); + firstSmallBlind_ = 0; + onChanged(); + return this; + } + + // required uint32 startMoney = 13; + private int startMoney_ ; + public boolean hasStartMoney() { + return ((bitField0_ & 0x00001000) == 0x00001000); + } + public int getStartMoney() { + return startMoney_; + } + public Builder setStartMoney(int value) { + bitField0_ |= 0x00001000; + startMoney_ = value; + onChanged(); + return this; + } + public Builder clearStartMoney() { + bitField0_ = (bitField0_ & ~0x00001000); + startMoney_ = 0; + onChanged(); + return this; + } + + // repeated uint32 manualBlinds = 14 [packed = true]; + private java.util.List manualBlinds_ = java.util.Collections.emptyList();; + private void ensureManualBlindsIsMutable() { + if (!((bitField0_ & 0x00002000) == 0x00002000)) { + manualBlinds_ = new java.util.ArrayList(manualBlinds_); + bitField0_ |= 0x00002000; + } + } + public java.util.List + getManualBlindsList() { + return java.util.Collections.unmodifiableList(manualBlinds_); + } + public int getManualBlindsCount() { + return manualBlinds_.size(); + } + public int getManualBlinds(int index) { + return manualBlinds_.get(index); + } + public Builder setManualBlinds( + int index, int value) { + ensureManualBlindsIsMutable(); + manualBlinds_.set(index, value); + onChanged(); + return this; + } + public Builder addManualBlinds(int value) { + ensureManualBlindsIsMutable(); + manualBlinds_.add(value); + onChanged(); + return this; + } + public Builder addAllManualBlinds( + java.lang.Iterable values) { + ensureManualBlindsIsMutable(); + super.addAll(values, manualBlinds_); + onChanged(); + return this; + } + public Builder clearManualBlinds() { + manualBlinds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:NetGameInfo) + } + + static { + defaultInstance = new NetGameInfo(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:NetGameInfo) + } + + public interface PlayerResultOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 playerId = 1; + boolean hasPlayerId(); + int getPlayerId(); + + // required uint32 resultCard1 = 2; + boolean hasResultCard1(); + int getResultCard1(); + + // required uint32 resultCard2 = 3; + boolean hasResultCard2(); + int getResultCard2(); + + // repeated uint32 bestHandPosition = 4 [packed = true]; + java.util.List getBestHandPositionList(); + int getBestHandPositionCount(); + int getBestHandPosition(int index); + + // required uint32 moneyWon = 5; + boolean hasMoneyWon(); + int getMoneyWon(); + + // required uint32 playerMoney = 6; + boolean hasPlayerMoney(); + int getPlayerMoney(); + + // optional uint32 cardsValue = 7; + boolean hasCardsValue(); + int getCardsValue(); + } + public static final class PlayerResult extends + com.google.protobuf.GeneratedMessage + implements PlayerResultOrBuilder { + // Use PlayerResult.newBuilder() to construct. + private PlayerResult(Builder builder) { + super(builder); + } + private PlayerResult(boolean noInit) {} + + private static final PlayerResult defaultInstance; + public static PlayerResult getDefaultInstance() { + return defaultInstance; + } + + public PlayerResult getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerResult_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerResult_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 playerId = 1; + public static final int PLAYERID_FIELD_NUMBER = 1; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getPlayerId() { + return playerId_; + } + + // required uint32 resultCard1 = 2; + public static final int RESULTCARD1_FIELD_NUMBER = 2; + private int resultCard1_; + public boolean hasResultCard1() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getResultCard1() { + return resultCard1_; + } + + // required uint32 resultCard2 = 3; + public static final int RESULTCARD2_FIELD_NUMBER = 3; + private int resultCard2_; + public boolean hasResultCard2() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getResultCard2() { + return resultCard2_; + } + + // repeated uint32 bestHandPosition = 4 [packed = true]; + public static final int BESTHANDPOSITION_FIELD_NUMBER = 4; + private java.util.List bestHandPosition_; + public java.util.List + getBestHandPositionList() { + return bestHandPosition_; + } + public int getBestHandPositionCount() { + return bestHandPosition_.size(); + } + public int getBestHandPosition(int index) { + return bestHandPosition_.get(index); + } + private int bestHandPositionMemoizedSerializedSize = -1; + + // required uint32 moneyWon = 5; + public static final int MONEYWON_FIELD_NUMBER = 5; + private int moneyWon_; + public boolean hasMoneyWon() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getMoneyWon() { + return moneyWon_; + } + + // required uint32 playerMoney = 6; + public static final int PLAYERMONEY_FIELD_NUMBER = 6; + private int playerMoney_; + public boolean hasPlayerMoney() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getPlayerMoney() { + return playerMoney_; + } + + // optional uint32 cardsValue = 7; + public static final int CARDSVALUE_FIELD_NUMBER = 7; + private int cardsValue_; + public boolean hasCardsValue() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public int getCardsValue() { + return cardsValue_; + } + + private void initFields() { + playerId_ = 0; + resultCard1_ = 0; + resultCard2_ = 0; + bestHandPosition_ = java.util.Collections.emptyList();; + moneyWon_ = 0; + playerMoney_ = 0; + cardsValue_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasResultCard1()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasResultCard2()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMoneyWon()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerMoney()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, playerId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, resultCard1_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, resultCard2_); + } + if (getBestHandPositionList().size() > 0) { + output.writeRawVarint32(34); + output.writeRawVarint32(bestHandPositionMemoizedSerializedSize); + } + for (int i = 0; i < bestHandPosition_.size(); i++) { + output.writeUInt32NoTag(bestHandPosition_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(5, moneyWon_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt32(6, playerMoney_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeUInt32(7, cardsValue_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, playerId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, resultCard1_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, resultCard2_); + } + { + int dataSize = 0; + for (int i = 0; i < bestHandPosition_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(bestHandPosition_.get(i)); + } + size += dataSize; + if (!getBestHandPositionList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + bestHandPositionMemoizedSerializedSize = dataSize; + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, moneyWon_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, playerMoney_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(7, cardsValue_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayerResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerResult prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.PlayerResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerResult_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerResult_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.PlayerResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + resultCard1_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + resultCard2_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + bestHandPosition_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000008); + moneyWon_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + playerMoney_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + cardsValue_ = 0; + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.PlayerResult.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerResult getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerResult build() { + de.pokerth.protocol.ProtoBuf.PlayerResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayerResult buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayerResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayerResult buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayerResult result = new de.pokerth.protocol.ProtoBuf.PlayerResult(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.resultCard1_ = resultCard1_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.resultCard2_ = resultCard2_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + bestHandPosition_ = java.util.Collections.unmodifiableList(bestHandPosition_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.bestHandPosition_ = bestHandPosition_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.moneyWon_ = moneyWon_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + result.playerMoney_ = playerMoney_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000020; + } + result.cardsValue_ = cardsValue_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.PlayerResult) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.PlayerResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayerResult other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance()) return this; + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasResultCard1()) { + setResultCard1(other.getResultCard1()); + } + if (other.hasResultCard2()) { + setResultCard2(other.getResultCard2()); + } + if (!other.bestHandPosition_.isEmpty()) { + if (bestHandPosition_.isEmpty()) { + bestHandPosition_ = other.bestHandPosition_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureBestHandPositionIsMutable(); + bestHandPosition_.addAll(other.bestHandPosition_); + } + onChanged(); + } + if (other.hasMoneyWon()) { + setMoneyWon(other.getMoneyWon()); + } + if (other.hasPlayerMoney()) { + setPlayerMoney(other.getPlayerMoney()); + } + if (other.hasCardsValue()) { + setCardsValue(other.getCardsValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasPlayerId()) { + + return false; + } + if (!hasResultCard1()) { + + return false; + } + if (!hasResultCard2()) { + + return false; + } + if (!hasMoneyWon()) { + + return false; + } + if (!hasPlayerMoney()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + playerId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + resultCard1_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + resultCard2_ = input.readUInt32(); + break; + } + case 32: { + ensureBestHandPositionIsMutable(); + bestHandPosition_.add(input.readUInt32()); + break; + } + case 34: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + addBestHandPosition(input.readUInt32()); + } + input.popLimit(limit); + break; + } + case 40: { + bitField0_ |= 0x00000010; + moneyWon_ = input.readUInt32(); + break; + } + case 48: { + bitField0_ |= 0x00000020; + playerMoney_ = input.readUInt32(); + break; + } + case 56: { + bitField0_ |= 0x00000040; + cardsValue_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 playerId = 1; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000001; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + onChanged(); + return this; + } + + // required uint32 resultCard1 = 2; + private int resultCard1_ ; + public boolean hasResultCard1() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getResultCard1() { + return resultCard1_; + } + public Builder setResultCard1(int value) { + bitField0_ |= 0x00000002; + resultCard1_ = value; + onChanged(); + return this; + } + public Builder clearResultCard1() { + bitField0_ = (bitField0_ & ~0x00000002); + resultCard1_ = 0; + onChanged(); + return this; + } + + // required uint32 resultCard2 = 3; + private int resultCard2_ ; + public boolean hasResultCard2() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getResultCard2() { + return resultCard2_; + } + public Builder setResultCard2(int value) { + bitField0_ |= 0x00000004; + resultCard2_ = value; + onChanged(); + return this; + } + public Builder clearResultCard2() { + bitField0_ = (bitField0_ & ~0x00000004); + resultCard2_ = 0; + onChanged(); + return this; + } + + // repeated uint32 bestHandPosition = 4 [packed = true]; + private java.util.List bestHandPosition_ = java.util.Collections.emptyList();; + private void ensureBestHandPositionIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + bestHandPosition_ = new java.util.ArrayList(bestHandPosition_); + bitField0_ |= 0x00000008; + } + } + public java.util.List + getBestHandPositionList() { + return java.util.Collections.unmodifiableList(bestHandPosition_); + } + public int getBestHandPositionCount() { + return bestHandPosition_.size(); + } + public int getBestHandPosition(int index) { + return bestHandPosition_.get(index); + } + public Builder setBestHandPosition( + int index, int value) { + ensureBestHandPositionIsMutable(); + bestHandPosition_.set(index, value); + onChanged(); + return this; + } + public Builder addBestHandPosition(int value) { + ensureBestHandPositionIsMutable(); + bestHandPosition_.add(value); + onChanged(); + return this; + } + public Builder addAllBestHandPosition( + java.lang.Iterable values) { + ensureBestHandPositionIsMutable(); + super.addAll(values, bestHandPosition_); + onChanged(); + return this; + } + public Builder clearBestHandPosition() { + bestHandPosition_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + // required uint32 moneyWon = 5; + private int moneyWon_ ; + public boolean hasMoneyWon() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getMoneyWon() { + return moneyWon_; + } + public Builder setMoneyWon(int value) { + bitField0_ |= 0x00000010; + moneyWon_ = value; + onChanged(); + return this; + } + public Builder clearMoneyWon() { + bitField0_ = (bitField0_ & ~0x00000010); + moneyWon_ = 0; + onChanged(); + return this; + } + + // required uint32 playerMoney = 6; + private int playerMoney_ ; + public boolean hasPlayerMoney() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public int getPlayerMoney() { + return playerMoney_; + } + public Builder setPlayerMoney(int value) { + bitField0_ |= 0x00000020; + playerMoney_ = value; + onChanged(); + return this; + } + public Builder clearPlayerMoney() { + bitField0_ = (bitField0_ & ~0x00000020); + playerMoney_ = 0; + onChanged(); + return this; + } + + // optional uint32 cardsValue = 7; + private int cardsValue_ ; + public boolean hasCardsValue() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + public int getCardsValue() { + return cardsValue_; + } + public Builder setCardsValue(int value) { + bitField0_ |= 0x00000040; + cardsValue_ = value; + onChanged(); + return this; + } + public Builder clearCardsValue() { + bitField0_ = (bitField0_ & ~0x00000040); + cardsValue_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PlayerResult) + } + + static { + defaultInstance = new PlayerResult(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:PlayerResult) + } + + public interface AnnounceMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required .AnnounceMessage.Version protocolVersion = 1; + boolean hasProtocolVersion(); + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getProtocolVersion(); + de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder getProtocolVersionOrBuilder(); + + // required .AnnounceMessage.Version latestGameVersion = 2; + boolean hasLatestGameVersion(); + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getLatestGameVersion(); + de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder getLatestGameVersionOrBuilder(); + + // required uint32 latestBetaRevision = 3; + boolean hasLatestBetaRevision(); + int getLatestBetaRevision(); + + // required .AnnounceMessage.ServerType serverType = 4; + boolean hasServerType(); + de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType getServerType(); + + // required uint32 numPlayersOnServer = 5; + boolean hasNumPlayersOnServer(); + int getNumPlayersOnServer(); + } + public static final class AnnounceMessage extends + com.google.protobuf.GeneratedMessage + implements AnnounceMessageOrBuilder { + // Use AnnounceMessage.newBuilder() to construct. + private AnnounceMessage(Builder builder) { + super(builder); + } + private AnnounceMessage(boolean noInit) {} + + private static final AnnounceMessage defaultInstance; + public static AnnounceMessage getDefaultInstance() { + return defaultInstance; + } + + public AnnounceMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AnnounceMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AnnounceMessage_fieldAccessorTable; + } + + public enum ServerType + implements com.google.protobuf.ProtocolMessageEnum { + serverTypeLAN(0, 0), + serverTypeInternetNoAuth(1, 1), + serverTypeInternetAuth(2, 2), + ; + + public static final int serverTypeLAN_VALUE = 0; + public static final int serverTypeInternetNoAuth_VALUE = 1; + public static final int serverTypeInternetAuth_VALUE = 2; + + + public final int getNumber() { return value; } + + public static ServerType valueOf(int value) { + switch (value) { + case 0: return serverTypeLAN; + case 1: return serverTypeInternetNoAuth; + case 2: return serverTypeInternetAuth; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ServerType findValueByNumber(int number) { + return ServerType.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 de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final ServerType[] VALUES = { + serverTypeLAN, serverTypeInternetNoAuth, serverTypeInternetAuth, + }; + + public static ServerType 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 ServerType(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:AnnounceMessage.ServerType) + } + + public interface VersionOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 major = 1; + boolean hasMajor(); + int getMajor(); + + // required uint32 minor = 2; + boolean hasMinor(); + int getMinor(); + } + public static final class Version extends + com.google.protobuf.GeneratedMessage + implements VersionOrBuilder { + // Use Version.newBuilder() to construct. + private Version(Builder builder) { + super(builder); + } + private Version(boolean noInit) {} + + private static final Version defaultInstance; + public static Version getDefaultInstance() { + return defaultInstance; + } + + public Version getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AnnounceMessage_Version_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AnnounceMessage_Version_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 major = 1; + public static final int MAJOR_FIELD_NUMBER = 1; + private int major_; + public boolean hasMajor() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getMajor() { + return major_; + } + + // required uint32 minor = 2; + public static final int MINOR_FIELD_NUMBER = 2; + private int minor_; + public boolean hasMinor() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getMinor() { + return minor_; + } + + private void initFields() { + major_ = 0; + minor_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasMajor()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMinor()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, major_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, minor_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, major_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, minor_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AnnounceMessage_Version_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AnnounceMessage_Version_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + major_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + minor_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version build() { + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version buildPartial() { + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version result = new de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.major_ = major_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.minor_ = minor_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version other) { + if (other == de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance()) return this; + if (other.hasMajor()) { + setMajor(other.getMajor()); + } + if (other.hasMinor()) { + setMinor(other.getMinor()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasMajor()) { + + return false; + } + if (!hasMinor()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + major_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + minor_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 major = 1; + private int major_ ; + public boolean hasMajor() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getMajor() { + return major_; + } + public Builder setMajor(int value) { + bitField0_ |= 0x00000001; + major_ = value; + onChanged(); + return this; + } + public Builder clearMajor() { + bitField0_ = (bitField0_ & ~0x00000001); + major_ = 0; + onChanged(); + return this; + } + + // required uint32 minor = 2; + private int minor_ ; + public boolean hasMinor() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getMinor() { + return minor_; + } + public Builder setMinor(int value) { + bitField0_ |= 0x00000002; + minor_ = value; + onChanged(); + return this; + } + public Builder clearMinor() { + bitField0_ = (bitField0_ & ~0x00000002); + minor_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:AnnounceMessage.Version) + } + + static { + defaultInstance = new Version(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:AnnounceMessage.Version) + } + + private int bitField0_; + // required .AnnounceMessage.Version protocolVersion = 1; + public static final int PROTOCOLVERSION_FIELD_NUMBER = 1; + private de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version protocolVersion_; + public boolean hasProtocolVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getProtocolVersion() { + return protocolVersion_; + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder getProtocolVersionOrBuilder() { + return protocolVersion_; + } + + // required .AnnounceMessage.Version latestGameVersion = 2; + public static final int LATESTGAMEVERSION_FIELD_NUMBER = 2; + private de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version latestGameVersion_; + public boolean hasLatestGameVersion() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getLatestGameVersion() { + return latestGameVersion_; + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder getLatestGameVersionOrBuilder() { + return latestGameVersion_; + } + + // required uint32 latestBetaRevision = 3; + public static final int LATESTBETAREVISION_FIELD_NUMBER = 3; + private int latestBetaRevision_; + public boolean hasLatestBetaRevision() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getLatestBetaRevision() { + return latestBetaRevision_; + } + + // required .AnnounceMessage.ServerType serverType = 4; + public static final int SERVERTYPE_FIELD_NUMBER = 4; + private de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType serverType_; + public boolean hasServerType() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType getServerType() { + return serverType_; + } + + // required uint32 numPlayersOnServer = 5; + public static final int NUMPLAYERSONSERVER_FIELD_NUMBER = 5; + private int numPlayersOnServer_; + public boolean hasNumPlayersOnServer() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getNumPlayersOnServer() { + return numPlayersOnServer_; + } + + private void initFields() { + protocolVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + latestGameVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + latestBetaRevision_ = 0; + serverType_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType.serverTypeLAN; + numPlayersOnServer_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasProtocolVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasLatestGameVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasLatestBetaRevision()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasServerType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNumPlayersOnServer()) { + memoizedIsInitialized = 0; + return false; + } + if (!getProtocolVersion().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + if (!getLatestGameVersion().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, protocolVersion_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, latestGameVersion_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, latestBetaRevision_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeEnum(4, serverType_.getNumber()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt32(5, numPlayersOnServer_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, protocolVersion_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, latestGameVersion_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, latestBetaRevision_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, serverType_.getNumber()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, numPlayersOnServer_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AnnounceMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.AnnounceMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AnnounceMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AnnounceMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.AnnounceMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getProtocolVersionFieldBuilder(); + getLatestGameVersionFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (protocolVersionBuilder_ == null) { + protocolVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + } else { + protocolVersionBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (latestGameVersionBuilder_ == null) { + latestGameVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + } else { + latestGameVersionBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + latestBetaRevision_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + serverType_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType.serverTypeLAN; + bitField0_ = (bitField0_ & ~0x00000008); + numPlayersOnServer_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.AnnounceMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AnnounceMessage build() { + de.pokerth.protocol.ProtoBuf.AnnounceMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AnnounceMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AnnounceMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AnnounceMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AnnounceMessage result = new de.pokerth.protocol.ProtoBuf.AnnounceMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (protocolVersionBuilder_ == null) { + result.protocolVersion_ = protocolVersion_; + } else { + result.protocolVersion_ = protocolVersionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (latestGameVersionBuilder_ == null) { + result.latestGameVersion_ = latestGameVersion_; + } else { + result.latestGameVersion_ = latestGameVersionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.latestBetaRevision_ = latestBetaRevision_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.serverType_ = serverType_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.numPlayersOnServer_ = numPlayersOnServer_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.AnnounceMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.AnnounceMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AnnounceMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance()) return this; + if (other.hasProtocolVersion()) { + mergeProtocolVersion(other.getProtocolVersion()); + } + if (other.hasLatestGameVersion()) { + mergeLatestGameVersion(other.getLatestGameVersion()); + } + if (other.hasLatestBetaRevision()) { + setLatestBetaRevision(other.getLatestBetaRevision()); + } + if (other.hasServerType()) { + setServerType(other.getServerType()); + } + if (other.hasNumPlayersOnServer()) { + setNumPlayersOnServer(other.getNumPlayersOnServer()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasProtocolVersion()) { + + return false; + } + if (!hasLatestGameVersion()) { + + return false; + } + if (!hasLatestBetaRevision()) { + + return false; + } + if (!hasServerType()) { + + return false; + } + if (!hasNumPlayersOnServer()) { + + return false; + } + if (!getProtocolVersion().isInitialized()) { + + return false; + } + if (!getLatestGameVersion().isInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 10: { + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder(); + if (hasProtocolVersion()) { + subBuilder.mergeFrom(getProtocolVersion()); + } + input.readMessage(subBuilder, extensionRegistry); + setProtocolVersion(subBuilder.buildPartial()); + break; + } + case 18: { + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder(); + if (hasLatestGameVersion()) { + subBuilder.mergeFrom(getLatestGameVersion()); + } + input.readMessage(subBuilder, extensionRegistry); + setLatestGameVersion(subBuilder.buildPartial()); + break; + } + case 24: { + bitField0_ |= 0x00000004; + latestBetaRevision_ = input.readUInt32(); + break; + } + case 32: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType value = de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(4, rawValue); + } else { + bitField0_ |= 0x00000008; + serverType_ = value; + } + break; + } + case 40: { + bitField0_ |= 0x00000010; + numPlayersOnServer_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required .AnnounceMessage.Version protocolVersion = 1; + private de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version protocolVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version, de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder, de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder> protocolVersionBuilder_; + public boolean hasProtocolVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getProtocolVersion() { + if (protocolVersionBuilder_ == null) { + return protocolVersion_; + } else { + return protocolVersionBuilder_.getMessage(); + } + } + public Builder setProtocolVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { + if (protocolVersionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + protocolVersion_ = value; + onChanged(); + } else { + protocolVersionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + public Builder setProtocolVersion( + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder builderForValue) { + if (protocolVersionBuilder_ == null) { + protocolVersion_ = builderForValue.build(); + onChanged(); + } else { + protocolVersionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + public Builder mergeProtocolVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { + if (protocolVersionBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + protocolVersion_ != de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance()) { + protocolVersion_ = + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder(protocolVersion_).mergeFrom(value).buildPartial(); + } else { + protocolVersion_ = value; + } + onChanged(); + } else { + protocolVersionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + public Builder clearProtocolVersion() { + if (protocolVersionBuilder_ == null) { + protocolVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + onChanged(); + } else { + protocolVersionBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder getProtocolVersionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getProtocolVersionFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder getProtocolVersionOrBuilder() { + if (protocolVersionBuilder_ != null) { + return protocolVersionBuilder_.getMessageOrBuilder(); + } else { + return protocolVersion_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version, de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder, de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder> + getProtocolVersionFieldBuilder() { + if (protocolVersionBuilder_ == null) { + protocolVersionBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version, de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder, de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder>( + protocolVersion_, + getParentForChildren(), + isClean()); + protocolVersion_ = null; + } + return protocolVersionBuilder_; + } + + // required .AnnounceMessage.Version latestGameVersion = 2; + private de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version latestGameVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version, de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder, de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder> latestGameVersionBuilder_; + public boolean hasLatestGameVersion() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getLatestGameVersion() { + if (latestGameVersionBuilder_ == null) { + return latestGameVersion_; + } else { + return latestGameVersionBuilder_.getMessage(); + } + } + public Builder setLatestGameVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { + if (latestGameVersionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latestGameVersion_ = value; + onChanged(); + } else { + latestGameVersionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + public Builder setLatestGameVersion( + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder builderForValue) { + if (latestGameVersionBuilder_ == null) { + latestGameVersion_ = builderForValue.build(); + onChanged(); + } else { + latestGameVersionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + public Builder mergeLatestGameVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { + if (latestGameVersionBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + latestGameVersion_ != de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance()) { + latestGameVersion_ = + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder(latestGameVersion_).mergeFrom(value).buildPartial(); + } else { + latestGameVersion_ = value; + } + onChanged(); + } else { + latestGameVersionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + public Builder clearLatestGameVersion() { + if (latestGameVersionBuilder_ == null) { + latestGameVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + onChanged(); + } else { + latestGameVersionBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder getLatestGameVersionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLatestGameVersionFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder getLatestGameVersionOrBuilder() { + if (latestGameVersionBuilder_ != null) { + return latestGameVersionBuilder_.getMessageOrBuilder(); + } else { + return latestGameVersion_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version, de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder, de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder> + getLatestGameVersionFieldBuilder() { + if (latestGameVersionBuilder_ == null) { + latestGameVersionBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version, de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder, de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder>( + latestGameVersion_, + getParentForChildren(), + isClean()); + latestGameVersion_ = null; + } + return latestGameVersionBuilder_; + } + + // required uint32 latestBetaRevision = 3; + private int latestBetaRevision_ ; + public boolean hasLatestBetaRevision() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getLatestBetaRevision() { + return latestBetaRevision_; + } + public Builder setLatestBetaRevision(int value) { + bitField0_ |= 0x00000004; + latestBetaRevision_ = value; + onChanged(); + return this; + } + public Builder clearLatestBetaRevision() { + bitField0_ = (bitField0_ & ~0x00000004); + latestBetaRevision_ = 0; + onChanged(); + return this; + } + + // required .AnnounceMessage.ServerType serverType = 4; + private de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType serverType_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType.serverTypeLAN; + public boolean hasServerType() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType getServerType() { + return serverType_; + } + public Builder setServerType(de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + serverType_ = value; + onChanged(); + return this; + } + public Builder clearServerType() { + bitField0_ = (bitField0_ & ~0x00000008); + serverType_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType.serverTypeLAN; + onChanged(); + return this; + } + + // required uint32 numPlayersOnServer = 5; + private int numPlayersOnServer_ ; + public boolean hasNumPlayersOnServer() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getNumPlayersOnServer() { + return numPlayersOnServer_; + } + public Builder setNumPlayersOnServer(int value) { + bitField0_ |= 0x00000010; + numPlayersOnServer_ = value; + onChanged(); + return this; + } + public Builder clearNumPlayersOnServer() { + bitField0_ = (bitField0_ & ~0x00000010); + numPlayersOnServer_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:AnnounceMessage) + } + + static { + defaultInstance = new AnnounceMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:AnnounceMessage) + } + + public interface InitMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required .AnnounceMessage.Version requestedVersion = 1; + boolean hasRequestedVersion(); + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getRequestedVersion(); + de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder getRequestedVersionOrBuilder(); + + // required uint32 buildId = 2; + boolean hasBuildId(); + int getBuildId(); + + // optional bytes myLastSessionId = 3; + boolean hasMyLastSessionId(); + com.google.protobuf.ByteString getMyLastSessionId(); + + // optional string authServerPassword = 4; + boolean hasAuthServerPassword(); + String getAuthServerPassword(); + + // required .InitMessage.LoginType login = 5; + boolean hasLogin(); + de.pokerth.protocol.ProtoBuf.InitMessage.LoginType getLogin(); + + // optional string nickName = 6; + boolean hasNickName(); + String getNickName(); + + // optional bytes clientUserData = 7; + boolean hasClientUserData(); + com.google.protobuf.ByteString getClientUserData(); + + // optional bytes avatarHash = 8; + boolean hasAvatarHash(); + com.google.protobuf.ByteString getAvatarHash(); + } + public static final class InitMessage extends + com.google.protobuf.GeneratedMessage + implements InitMessageOrBuilder { + // Use InitMessage.newBuilder() to construct. + private InitMessage(Builder builder) { + super(builder); + } + private InitMessage(boolean noInit) {} + + private static final InitMessage defaultInstance; + public static InitMessage getDefaultInstance() { + return defaultInstance; + } + + public InitMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_InitMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_InitMessage_fieldAccessorTable; + } + + public enum LoginType + implements com.google.protobuf.ProtocolMessageEnum { + guestLogin(0, 0), + authenticatedLogin(1, 1), + unauthenticatedLogin(2, 2), + ; + + public static final int guestLogin_VALUE = 0; + public static final int authenticatedLogin_VALUE = 1; + public static final int unauthenticatedLogin_VALUE = 2; + + + public final int getNumber() { return value; } + + public static LoginType valueOf(int value) { + switch (value) { + case 0: return guestLogin; + case 1: return authenticatedLogin; + case 2: return unauthenticatedLogin; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LoginType findValueByNumber(int number) { + return LoginType.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 de.pokerth.protocol.ProtoBuf.InitMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final LoginType[] VALUES = { + guestLogin, authenticatedLogin, unauthenticatedLogin, + }; + + public static LoginType 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 LoginType(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:InitMessage.LoginType) + } + + private int bitField0_; + // required .AnnounceMessage.Version requestedVersion = 1; + public static final int REQUESTEDVERSION_FIELD_NUMBER = 1; + private de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version requestedVersion_; + public boolean hasRequestedVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getRequestedVersion() { + return requestedVersion_; + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder getRequestedVersionOrBuilder() { + return requestedVersion_; + } + + // required uint32 buildId = 2; + public static final int BUILDID_FIELD_NUMBER = 2; + private int buildId_; + public boolean hasBuildId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getBuildId() { + return buildId_; + } + + // optional bytes myLastSessionId = 3; + public static final int MYLASTSESSIONID_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString myLastSessionId_; + public boolean hasMyLastSessionId() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public com.google.protobuf.ByteString getMyLastSessionId() { + return myLastSessionId_; + } + + // optional string authServerPassword = 4; + public static final int AUTHSERVERPASSWORD_FIELD_NUMBER = 4; + private java.lang.Object authServerPassword_; + public boolean hasAuthServerPassword() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public String getAuthServerPassword() { + java.lang.Object ref = authServerPassword_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + authServerPassword_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getAuthServerPasswordBytes() { + java.lang.Object ref = authServerPassword_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + authServerPassword_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // required .InitMessage.LoginType login = 5; + public static final int LOGIN_FIELD_NUMBER = 5; + private de.pokerth.protocol.ProtoBuf.InitMessage.LoginType login_; + public boolean hasLogin() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.InitMessage.LoginType getLogin() { + return login_; + } + + // optional string nickName = 6; + public static final int NICKNAME_FIELD_NUMBER = 6; + private java.lang.Object nickName_; + public boolean hasNickName() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public String getNickName() { + java.lang.Object ref = nickName_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + nickName_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNickNameBytes() { + java.lang.Object ref = nickName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + nickName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional bytes clientUserData = 7; + public static final int CLIENTUSERDATA_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString clientUserData_; + public boolean hasClientUserData() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + public com.google.protobuf.ByteString getClientUserData() { + return clientUserData_; + } + + // optional bytes avatarHash = 8; + public static final int AVATARHASH_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString avatarHash_; + public boolean hasAvatarHash() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + public com.google.protobuf.ByteString getAvatarHash() { + return avatarHash_; + } + + private void initFields() { + requestedVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + buildId_ = 0; + myLastSessionId_ = com.google.protobuf.ByteString.EMPTY; + authServerPassword_ = ""; + login_ = de.pokerth.protocol.ProtoBuf.InitMessage.LoginType.guestLogin; + nickName_ = ""; + clientUserData_ = com.google.protobuf.ByteString.EMPTY; + avatarHash_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasRequestedVersion()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasBuildId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasLogin()) { + memoizedIsInitialized = 0; + return false; + } + if (!getRequestedVersion().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, requestedVersion_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, buildId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, myLastSessionId_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(4, getAuthServerPasswordBytes()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeEnum(5, login_.getNumber()); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBytes(6, getNickNameBytes()); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeBytes(7, clientUserData_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeBytes(8, avatarHash_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requestedVersion_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, buildId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, myLastSessionId_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, getAuthServerPasswordBytes()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, login_.getNumber()); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, getNickNameBytes()); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, clientUserData_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(8, avatarHash_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InitMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.InitMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.InitMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.InitMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_InitMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_InitMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.InitMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getRequestedVersionFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (requestedVersionBuilder_ == null) { + requestedVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + } else { + requestedVersionBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + buildId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + myLastSessionId_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + authServerPassword_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + login_ = de.pokerth.protocol.ProtoBuf.InitMessage.LoginType.guestLogin; + bitField0_ = (bitField0_ & ~0x00000010); + nickName_ = ""; + bitField0_ = (bitField0_ & ~0x00000020); + clientUserData_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + avatarHash_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.InitMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.InitMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.InitMessage build() { + de.pokerth.protocol.ProtoBuf.InitMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.InitMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.InitMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.InitMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.InitMessage result = new de.pokerth.protocol.ProtoBuf.InitMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (requestedVersionBuilder_ == null) { + result.requestedVersion_ = requestedVersion_; + } else { + result.requestedVersion_ = requestedVersionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.buildId_ = buildId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.myLastSessionId_ = myLastSessionId_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.authServerPassword_ = authServerPassword_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.login_ = login_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.nickName_ = nickName_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.clientUserData_ = clientUserData_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; + } + result.avatarHash_ = avatarHash_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.InitMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.InitMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.InitMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance()) return this; + if (other.hasRequestedVersion()) { + mergeRequestedVersion(other.getRequestedVersion()); + } + if (other.hasBuildId()) { + setBuildId(other.getBuildId()); + } + if (other.hasMyLastSessionId()) { + setMyLastSessionId(other.getMyLastSessionId()); + } + if (other.hasAuthServerPassword()) { + setAuthServerPassword(other.getAuthServerPassword()); + } + if (other.hasLogin()) { + setLogin(other.getLogin()); + } + if (other.hasNickName()) { + setNickName(other.getNickName()); + } + if (other.hasClientUserData()) { + setClientUserData(other.getClientUserData()); + } + if (other.hasAvatarHash()) { + setAvatarHash(other.getAvatarHash()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasRequestedVersion()) { + + return false; + } + if (!hasBuildId()) { + + return false; + } + if (!hasLogin()) { + + return false; + } + if (!getRequestedVersion().isInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 10: { + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder(); + if (hasRequestedVersion()) { + subBuilder.mergeFrom(getRequestedVersion()); + } + input.readMessage(subBuilder, extensionRegistry); + setRequestedVersion(subBuilder.buildPartial()); + break; + } + case 16: { + bitField0_ |= 0x00000002; + buildId_ = input.readUInt32(); + break; + } + case 26: { + bitField0_ |= 0x00000004; + myLastSessionId_ = input.readBytes(); + break; + } + case 34: { + bitField0_ |= 0x00000008; + authServerPassword_ = input.readBytes(); + break; + } + case 40: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.InitMessage.LoginType value = de.pokerth.protocol.ProtoBuf.InitMessage.LoginType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(5, rawValue); + } else { + bitField0_ |= 0x00000010; + login_ = value; + } + break; + } + case 50: { + bitField0_ |= 0x00000020; + nickName_ = input.readBytes(); + break; + } + case 58: { + bitField0_ |= 0x00000040; + clientUserData_ = input.readBytes(); + break; + } + case 66: { + bitField0_ |= 0x00000080; + avatarHash_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required .AnnounceMessage.Version requestedVersion = 1; + private de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version requestedVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version, de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder, de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder> requestedVersionBuilder_; + public boolean hasRequestedVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getRequestedVersion() { + if (requestedVersionBuilder_ == null) { + return requestedVersion_; + } else { + return requestedVersionBuilder_.getMessage(); + } + } + public Builder setRequestedVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { + if (requestedVersionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestedVersion_ = value; + onChanged(); + } else { + requestedVersionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + public Builder setRequestedVersion( + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder builderForValue) { + if (requestedVersionBuilder_ == null) { + requestedVersion_ = builderForValue.build(); + onChanged(); + } else { + requestedVersionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + public Builder mergeRequestedVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { + if (requestedVersionBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + requestedVersion_ != de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance()) { + requestedVersion_ = + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder(requestedVersion_).mergeFrom(value).buildPartial(); + } else { + requestedVersion_ = value; + } + onChanged(); + } else { + requestedVersionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + public Builder clearRequestedVersion() { + if (requestedVersionBuilder_ == null) { + requestedVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); + onChanged(); + } else { + requestedVersionBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder getRequestedVersionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRequestedVersionFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder getRequestedVersionOrBuilder() { + if (requestedVersionBuilder_ != null) { + return requestedVersionBuilder_.getMessageOrBuilder(); + } else { + return requestedVersion_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version, de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder, de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder> + getRequestedVersionFieldBuilder() { + if (requestedVersionBuilder_ == null) { + requestedVersionBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version, de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder, de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder>( + requestedVersion_, + getParentForChildren(), + isClean()); + requestedVersion_ = null; + } + return requestedVersionBuilder_; + } + + // required uint32 buildId = 2; + private int buildId_ ; + public boolean hasBuildId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getBuildId() { + return buildId_; + } + public Builder setBuildId(int value) { + bitField0_ |= 0x00000002; + buildId_ = value; + onChanged(); + return this; + } + public Builder clearBuildId() { + bitField0_ = (bitField0_ & ~0x00000002); + buildId_ = 0; + onChanged(); + return this; + } + + // optional bytes myLastSessionId = 3; + private com.google.protobuf.ByteString myLastSessionId_ = com.google.protobuf.ByteString.EMPTY; + public boolean hasMyLastSessionId() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public com.google.protobuf.ByteString getMyLastSessionId() { + return myLastSessionId_; + } + public Builder setMyLastSessionId(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + myLastSessionId_ = value; + onChanged(); + return this; + } + public Builder clearMyLastSessionId() { + bitField0_ = (bitField0_ & ~0x00000004); + myLastSessionId_ = getDefaultInstance().getMyLastSessionId(); + onChanged(); + return this; + } + + // optional string authServerPassword = 4; + private java.lang.Object authServerPassword_ = ""; + public boolean hasAuthServerPassword() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public String getAuthServerPassword() { + java.lang.Object ref = authServerPassword_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + authServerPassword_ = s; + return s; + } else { + return (String) ref; + } + } + public Builder setAuthServerPassword(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + authServerPassword_ = value; + onChanged(); + return this; + } + public Builder clearAuthServerPassword() { + bitField0_ = (bitField0_ & ~0x00000008); + authServerPassword_ = getDefaultInstance().getAuthServerPassword(); + onChanged(); + return this; + } + void setAuthServerPassword(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000008; + authServerPassword_ = value; + onChanged(); + } + + // required .InitMessage.LoginType login = 5; + private de.pokerth.protocol.ProtoBuf.InitMessage.LoginType login_ = de.pokerth.protocol.ProtoBuf.InitMessage.LoginType.guestLogin; + public boolean hasLogin() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.InitMessage.LoginType getLogin() { + return login_; + } + public Builder setLogin(de.pokerth.protocol.ProtoBuf.InitMessage.LoginType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + login_ = value; + onChanged(); + return this; + } + public Builder clearLogin() { + bitField0_ = (bitField0_ & ~0x00000010); + login_ = de.pokerth.protocol.ProtoBuf.InitMessage.LoginType.guestLogin; + onChanged(); + return this; + } + + // optional string nickName = 6; + private java.lang.Object nickName_ = ""; + public boolean hasNickName() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public String getNickName() { + java.lang.Object ref = nickName_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + nickName_ = s; + return s; + } else { + return (String) ref; + } + } + public Builder setNickName(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + nickName_ = value; + onChanged(); + return this; + } + public Builder clearNickName() { + bitField0_ = (bitField0_ & ~0x00000020); + nickName_ = getDefaultInstance().getNickName(); + onChanged(); + return this; + } + void setNickName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000020; + nickName_ = value; + onChanged(); + } + + // optional bytes clientUserData = 7; + private com.google.protobuf.ByteString clientUserData_ = com.google.protobuf.ByteString.EMPTY; + public boolean hasClientUserData() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + public com.google.protobuf.ByteString getClientUserData() { + return clientUserData_; + } + public Builder setClientUserData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + clientUserData_ = value; + onChanged(); + return this; + } + public Builder clearClientUserData() { + bitField0_ = (bitField0_ & ~0x00000040); + clientUserData_ = getDefaultInstance().getClientUserData(); + onChanged(); + return this; + } + + // optional bytes avatarHash = 8; + private com.google.protobuf.ByteString avatarHash_ = com.google.protobuf.ByteString.EMPTY; + public boolean hasAvatarHash() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + public com.google.protobuf.ByteString getAvatarHash() { + return avatarHash_; + } + public Builder setAvatarHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + avatarHash_ = value; + onChanged(); + return this; + } + public Builder clearAvatarHash() { + bitField0_ = (bitField0_ & ~0x00000080); + avatarHash_ = getDefaultInstance().getAvatarHash(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:InitMessage) + } + + static { + defaultInstance = new InitMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:InitMessage) + } + + public interface AuthServerChallengeMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required bytes serverChallenge = 1; + boolean hasServerChallenge(); + com.google.protobuf.ByteString getServerChallenge(); + } + public static final class AuthServerChallengeMessage extends + com.google.protobuf.GeneratedMessage + implements AuthServerChallengeMessageOrBuilder { + // Use AuthServerChallengeMessage.newBuilder() to construct. + private AuthServerChallengeMessage(Builder builder) { + super(builder); + } + private AuthServerChallengeMessage(boolean noInit) {} + + private static final AuthServerChallengeMessage defaultInstance; + public static AuthServerChallengeMessage getDefaultInstance() { + return defaultInstance; + } + + public AuthServerChallengeMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AuthServerChallengeMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AuthServerChallengeMessage_fieldAccessorTable; + } + + private int bitField0_; + // required bytes serverChallenge = 1; + public static final int SERVERCHALLENGE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString serverChallenge_; + public boolean hasServerChallenge() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public com.google.protobuf.ByteString getServerChallenge() { + return serverChallenge_; + } + + private void initFields() { + serverChallenge_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasServerChallenge()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, serverChallenge_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, serverChallenge_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AuthServerChallengeMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AuthServerChallengeMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + serverChallenge_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage build() { + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage result = new de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.serverChallenge_ = serverChallenge_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance()) return this; + if (other.hasServerChallenge()) { + setServerChallenge(other.getServerChallenge()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasServerChallenge()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + serverChallenge_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required bytes serverChallenge = 1; + private com.google.protobuf.ByteString serverChallenge_ = com.google.protobuf.ByteString.EMPTY; + public boolean hasServerChallenge() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public com.google.protobuf.ByteString getServerChallenge() { + return serverChallenge_; + } + public Builder setServerChallenge(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + serverChallenge_ = value; + onChanged(); + return this; + } + public Builder clearServerChallenge() { + bitField0_ = (bitField0_ & ~0x00000001); + serverChallenge_ = getDefaultInstance().getServerChallenge(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:AuthServerChallengeMessage) + } + + static { + defaultInstance = new AuthServerChallengeMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:AuthServerChallengeMessage) + } + + public interface AuthClientResponseMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required bytes clientResponse = 1; + boolean hasClientResponse(); + com.google.protobuf.ByteString getClientResponse(); + } + public static final class AuthClientResponseMessage extends + com.google.protobuf.GeneratedMessage + implements AuthClientResponseMessageOrBuilder { + // Use AuthClientResponseMessage.newBuilder() to construct. + private AuthClientResponseMessage(Builder builder) { + super(builder); + } + private AuthClientResponseMessage(boolean noInit) {} + + private static final AuthClientResponseMessage defaultInstance; + public static AuthClientResponseMessage getDefaultInstance() { + return defaultInstance; + } + + public AuthClientResponseMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AuthClientResponseMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AuthClientResponseMessage_fieldAccessorTable; + } + + private int bitField0_; + // required bytes clientResponse = 1; + public static final int CLIENTRESPONSE_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString clientResponse_; + public boolean hasClientResponse() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public com.google.protobuf.ByteString getClientResponse() { + return clientResponse_; + } + + private void initFields() { + clientResponse_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasClientResponse()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, clientResponse_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, clientResponse_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.AuthClientResponseMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AuthClientResponseMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AuthClientResponseMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + clientResponse_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage build() { + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage result = new de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.clientResponse_ = clientResponse_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance()) return this; + if (other.hasClientResponse()) { + setClientResponse(other.getClientResponse()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasClientResponse()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + clientResponse_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required bytes clientResponse = 1; + private com.google.protobuf.ByteString clientResponse_ = com.google.protobuf.ByteString.EMPTY; + public boolean hasClientResponse() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public com.google.protobuf.ByteString getClientResponse() { + return clientResponse_; + } + public Builder setClientResponse(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + clientResponse_ = value; + onChanged(); + return this; + } + public Builder clearClientResponse() { + bitField0_ = (bitField0_ & ~0x00000001); + clientResponse_ = getDefaultInstance().getClientResponse(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:AuthClientResponseMessage) + } + + static { + defaultInstance = new AuthClientResponseMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:AuthClientResponseMessage) + } + + public interface AuthServerVerificationMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required bytes serverVerification = 1; + boolean hasServerVerification(); + com.google.protobuf.ByteString getServerVerification(); + } + public static final class AuthServerVerificationMessage extends + com.google.protobuf.GeneratedMessage + implements AuthServerVerificationMessageOrBuilder { + // Use AuthServerVerificationMessage.newBuilder() to construct. + private AuthServerVerificationMessage(Builder builder) { + super(builder); + } + private AuthServerVerificationMessage(boolean noInit) {} + + private static final AuthServerVerificationMessage defaultInstance; + public static AuthServerVerificationMessage getDefaultInstance() { + return defaultInstance; + } + + public AuthServerVerificationMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AuthServerVerificationMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AuthServerVerificationMessage_fieldAccessorTable; + } + + private int bitField0_; + // required bytes serverVerification = 1; + public static final int SERVERVERIFICATION_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString serverVerification_; + public boolean hasServerVerification() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public com.google.protobuf.ByteString getServerVerification() { + return serverVerification_; + } + + private void initFields() { + serverVerification_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasServerVerification()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, serverVerification_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, serverVerification_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AuthServerVerificationMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AuthServerVerificationMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + serverVerification_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage build() { + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage result = new de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.serverVerification_ = serverVerification_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance()) return this; + if (other.hasServerVerification()) { + setServerVerification(other.getServerVerification()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasServerVerification()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + serverVerification_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required bytes serverVerification = 1; + private com.google.protobuf.ByteString serverVerification_ = com.google.protobuf.ByteString.EMPTY; + public boolean hasServerVerification() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public com.google.protobuf.ByteString getServerVerification() { + return serverVerification_; + } + public Builder setServerVerification(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + serverVerification_ = value; + onChanged(); + return this; + } + public Builder clearServerVerification() { + bitField0_ = (bitField0_ & ~0x00000001); + serverVerification_ = getDefaultInstance().getServerVerification(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:AuthServerVerificationMessage) + } + + static { + defaultInstance = new AuthServerVerificationMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:AuthServerVerificationMessage) + } + + public interface InitAckMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required bytes yourSessionId = 1; + boolean hasYourSessionId(); + com.google.protobuf.ByteString getYourSessionId(); + + // required uint32 yourPlayerId = 2; + boolean hasYourPlayerId(); + int getYourPlayerId(); + + // optional bytes yourAvatarHash = 3; + boolean hasYourAvatarHash(); + com.google.protobuf.ByteString getYourAvatarHash(); + + // optional uint32 rejoinGameId = 4; + boolean hasRejoinGameId(); + int getRejoinGameId(); + } + public static final class InitAckMessage extends + com.google.protobuf.GeneratedMessage + implements InitAckMessageOrBuilder { + // Use InitAckMessage.newBuilder() to construct. + private InitAckMessage(Builder builder) { + super(builder); + } + private InitAckMessage(boolean noInit) {} + + private static final InitAckMessage defaultInstance; + public static InitAckMessage getDefaultInstance() { + return defaultInstance; + } + + public InitAckMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_InitAckMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_InitAckMessage_fieldAccessorTable; + } + + private int bitField0_; + // required bytes yourSessionId = 1; + public static final int YOURSESSIONID_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString yourSessionId_; + public boolean hasYourSessionId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public com.google.protobuf.ByteString getYourSessionId() { + return yourSessionId_; + } + + // required uint32 yourPlayerId = 2; + public static final int YOURPLAYERID_FIELD_NUMBER = 2; + private int yourPlayerId_; + public boolean hasYourPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getYourPlayerId() { + return yourPlayerId_; + } + + // optional bytes yourAvatarHash = 3; + public static final int YOURAVATARHASH_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString yourAvatarHash_; + public boolean hasYourAvatarHash() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public com.google.protobuf.ByteString getYourAvatarHash() { + return yourAvatarHash_; + } + + // optional uint32 rejoinGameId = 4; + public static final int REJOINGAMEID_FIELD_NUMBER = 4; + private int rejoinGameId_; + public boolean hasRejoinGameId() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getRejoinGameId() { + return rejoinGameId_; + } + + private void initFields() { + yourSessionId_ = com.google.protobuf.ByteString.EMPTY; + yourPlayerId_ = 0; + yourAvatarHash_ = com.google.protobuf.ByteString.EMPTY; + rejoinGameId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasYourSessionId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasYourPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, yourSessionId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, yourPlayerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, yourAvatarHash_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(4, rejoinGameId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, yourSessionId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, yourPlayerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, yourAvatarHash_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, rejoinGameId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.InitAckMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.InitAckMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_InitAckMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_InitAckMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.InitAckMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + yourSessionId_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + yourPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + yourAvatarHash_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + rejoinGameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.InitAckMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.InitAckMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.InitAckMessage build() { + de.pokerth.protocol.ProtoBuf.InitAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.InitAckMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.InitAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.InitAckMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.InitAckMessage result = new de.pokerth.protocol.ProtoBuf.InitAckMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.yourSessionId_ = yourSessionId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.yourPlayerId_ = yourPlayerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.yourAvatarHash_ = yourAvatarHash_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.rejoinGameId_ = rejoinGameId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.InitAckMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.InitAckMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.InitAckMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance()) return this; + if (other.hasYourSessionId()) { + setYourSessionId(other.getYourSessionId()); + } + if (other.hasYourPlayerId()) { + setYourPlayerId(other.getYourPlayerId()); + } + if (other.hasYourAvatarHash()) { + setYourAvatarHash(other.getYourAvatarHash()); + } + if (other.hasRejoinGameId()) { + setRejoinGameId(other.getRejoinGameId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasYourSessionId()) { + + return false; + } + if (!hasYourPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + yourSessionId_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + yourPlayerId_ = input.readUInt32(); + break; + } + case 26: { + bitField0_ |= 0x00000004; + yourAvatarHash_ = input.readBytes(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + rejoinGameId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required bytes yourSessionId = 1; + private com.google.protobuf.ByteString yourSessionId_ = com.google.protobuf.ByteString.EMPTY; + public boolean hasYourSessionId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public com.google.protobuf.ByteString getYourSessionId() { + return yourSessionId_; + } + public Builder setYourSessionId(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + yourSessionId_ = value; + onChanged(); + return this; + } + public Builder clearYourSessionId() { + bitField0_ = (bitField0_ & ~0x00000001); + yourSessionId_ = getDefaultInstance().getYourSessionId(); + onChanged(); + return this; + } + + // required uint32 yourPlayerId = 2; + private int yourPlayerId_ ; + public boolean hasYourPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getYourPlayerId() { + return yourPlayerId_; + } + public Builder setYourPlayerId(int value) { + bitField0_ |= 0x00000002; + yourPlayerId_ = value; + onChanged(); + return this; + } + public Builder clearYourPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + yourPlayerId_ = 0; + onChanged(); + return this; + } + + // optional bytes yourAvatarHash = 3; + private com.google.protobuf.ByteString yourAvatarHash_ = com.google.protobuf.ByteString.EMPTY; + public boolean hasYourAvatarHash() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public com.google.protobuf.ByteString getYourAvatarHash() { + return yourAvatarHash_; + } + public Builder setYourAvatarHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + yourAvatarHash_ = value; + onChanged(); + return this; + } + public Builder clearYourAvatarHash() { + bitField0_ = (bitField0_ & ~0x00000004); + yourAvatarHash_ = getDefaultInstance().getYourAvatarHash(); + onChanged(); + return this; + } + + // optional uint32 rejoinGameId = 4; + private int rejoinGameId_ ; + public boolean hasRejoinGameId() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getRejoinGameId() { + return rejoinGameId_; + } + public Builder setRejoinGameId(int value) { + bitField0_ |= 0x00000008; + rejoinGameId_ = value; + onChanged(); + return this; + } + public Builder clearRejoinGameId() { + bitField0_ = (bitField0_ & ~0x00000008); + rejoinGameId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:InitAckMessage) + } + + static { + defaultInstance = new InitAckMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:InitAckMessage) + } + + public interface AvatarRequestMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 requestId = 1; + boolean hasRequestId(); + int getRequestId(); + + // required bytes avatarHash = 2; + boolean hasAvatarHash(); + com.google.protobuf.ByteString getAvatarHash(); + } + public static final class AvatarRequestMessage extends + com.google.protobuf.GeneratedMessage + implements AvatarRequestMessageOrBuilder { + // Use AvatarRequestMessage.newBuilder() to construct. + private AvatarRequestMessage(Builder builder) { + super(builder); + } + private AvatarRequestMessage(boolean noInit) {} + + private static final AvatarRequestMessage defaultInstance; + public static AvatarRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public AvatarRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AvatarRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AvatarRequestMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 requestId = 1; + public static final int REQUESTID_FIELD_NUMBER = 1; + private int requestId_; + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getRequestId() { + return requestId_; + } + + // required bytes avatarHash = 2; + public static final int AVATARHASH_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString avatarHash_; + public boolean hasAvatarHash() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public com.google.protobuf.ByteString getAvatarHash() { + return avatarHash_; + } + + private void initFields() { + requestId_ = 0; + avatarHash_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasRequestId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAvatarHash()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, requestId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, avatarHash_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, requestId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, avatarHash_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AvatarRequestMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.AvatarRequestMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AvatarRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AvatarRequestMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + requestId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + avatarHash_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.AvatarRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AvatarRequestMessage build() { + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AvatarRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AvatarRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage result = new de.pokerth.protocol.ProtoBuf.AvatarRequestMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.requestId_ = requestId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.avatarHash_ = avatarHash_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.AvatarRequestMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.AvatarRequestMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AvatarRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance()) return this; + if (other.hasRequestId()) { + setRequestId(other.getRequestId()); + } + if (other.hasAvatarHash()) { + setAvatarHash(other.getAvatarHash()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasRequestId()) { + + return false; + } + if (!hasAvatarHash()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + requestId_ = input.readUInt32(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + avatarHash_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 requestId = 1; + private int requestId_ ; + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getRequestId() { + return requestId_; + } + public Builder setRequestId(int value) { + bitField0_ |= 0x00000001; + requestId_ = value; + onChanged(); + return this; + } + public Builder clearRequestId() { + bitField0_ = (bitField0_ & ~0x00000001); + requestId_ = 0; + onChanged(); + return this; + } + + // required bytes avatarHash = 2; + private com.google.protobuf.ByteString avatarHash_ = com.google.protobuf.ByteString.EMPTY; + public boolean hasAvatarHash() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public com.google.protobuf.ByteString getAvatarHash() { + return avatarHash_; + } + public Builder setAvatarHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + avatarHash_ = value; + onChanged(); + return this; + } + public Builder clearAvatarHash() { + bitField0_ = (bitField0_ & ~0x00000002); + avatarHash_ = getDefaultInstance().getAvatarHash(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:AvatarRequestMessage) + } + + static { + defaultInstance = new AvatarRequestMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:AvatarRequestMessage) + } + + public interface AvatarHeaderMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 requestId = 1; + boolean hasRequestId(); + int getRequestId(); + + // required .NetAvatarType avatarType = 2; + boolean hasAvatarType(); + de.pokerth.protocol.ProtoBuf.NetAvatarType getAvatarType(); + + // required uint32 avatarSize = 3; + boolean hasAvatarSize(); + int getAvatarSize(); + } + public static final class AvatarHeaderMessage extends + com.google.protobuf.GeneratedMessage + implements AvatarHeaderMessageOrBuilder { + // Use AvatarHeaderMessage.newBuilder() to construct. + private AvatarHeaderMessage(Builder builder) { + super(builder); + } + private AvatarHeaderMessage(boolean noInit) {} + + private static final AvatarHeaderMessage defaultInstance; + public static AvatarHeaderMessage getDefaultInstance() { + return defaultInstance; + } + + public AvatarHeaderMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AvatarHeaderMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AvatarHeaderMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 requestId = 1; + public static final int REQUESTID_FIELD_NUMBER = 1; + private int requestId_; + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getRequestId() { + return requestId_; + } + + // required .NetAvatarType avatarType = 2; + public static final int AVATARTYPE_FIELD_NUMBER = 2; + private de.pokerth.protocol.ProtoBuf.NetAvatarType avatarType_; + public boolean hasAvatarType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.NetAvatarType getAvatarType() { + return avatarType_; + } + + // required uint32 avatarSize = 3; + public static final int AVATARSIZE_FIELD_NUMBER = 3; + private int avatarSize_; + public boolean hasAvatarSize() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getAvatarSize() { + return avatarSize_; + } + + private void initFields() { + requestId_ = 0; + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.avatarImagePng; + avatarSize_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasRequestId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAvatarType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAvatarSize()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, requestId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, avatarType_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, avatarSize_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, requestId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, avatarType_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, avatarSize_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.AvatarHeaderMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AvatarHeaderMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AvatarHeaderMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + requestId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.avatarImagePng; + bitField0_ = (bitField0_ & ~0x00000002); + avatarSize_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage build() { + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage result = new de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.requestId_ = requestId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.avatarType_ = avatarType_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.avatarSize_ = avatarSize_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance()) return this; + if (other.hasRequestId()) { + setRequestId(other.getRequestId()); + } + if (other.hasAvatarType()) { + setAvatarType(other.getAvatarType()); + } + if (other.hasAvatarSize()) { + setAvatarSize(other.getAvatarSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasRequestId()) { + + return false; + } + if (!hasAvatarType()) { + + return false; + } + if (!hasAvatarSize()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + requestId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetAvatarType value = de.pokerth.protocol.ProtoBuf.NetAvatarType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + avatarType_ = value; + } + break; + } + case 24: { + bitField0_ |= 0x00000004; + avatarSize_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 requestId = 1; + private int requestId_ ; + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getRequestId() { + return requestId_; + } + public Builder setRequestId(int value) { + bitField0_ |= 0x00000001; + requestId_ = value; + onChanged(); + return this; + } + public Builder clearRequestId() { + bitField0_ = (bitField0_ & ~0x00000001); + requestId_ = 0; + onChanged(); + return this; + } + + // required .NetAvatarType avatarType = 2; + private de.pokerth.protocol.ProtoBuf.NetAvatarType avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.avatarImagePng; + public boolean hasAvatarType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.NetAvatarType getAvatarType() { + return avatarType_; + } + public Builder setAvatarType(de.pokerth.protocol.ProtoBuf.NetAvatarType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + avatarType_ = value; + onChanged(); + return this; + } + public Builder clearAvatarType() { + bitField0_ = (bitField0_ & ~0x00000002); + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.avatarImagePng; + onChanged(); + return this; + } + + // required uint32 avatarSize = 3; + private int avatarSize_ ; + public boolean hasAvatarSize() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getAvatarSize() { + return avatarSize_; + } + public Builder setAvatarSize(int value) { + bitField0_ |= 0x00000004; + avatarSize_ = value; + onChanged(); + return this; + } + public Builder clearAvatarSize() { + bitField0_ = (bitField0_ & ~0x00000004); + avatarSize_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:AvatarHeaderMessage) + } + + static { + defaultInstance = new AvatarHeaderMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:AvatarHeaderMessage) + } + + public interface AvatarDataMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 requestId = 1; + boolean hasRequestId(); + int getRequestId(); + + // required bytes avatarBlock = 2; + boolean hasAvatarBlock(); + com.google.protobuf.ByteString getAvatarBlock(); + } + public static final class AvatarDataMessage extends + com.google.protobuf.GeneratedMessage + implements AvatarDataMessageOrBuilder { + // Use AvatarDataMessage.newBuilder() to construct. + private AvatarDataMessage(Builder builder) { + super(builder); + } + private AvatarDataMessage(boolean noInit) {} + + private static final AvatarDataMessage defaultInstance; + public static AvatarDataMessage getDefaultInstance() { + return defaultInstance; + } + + public AvatarDataMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AvatarDataMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AvatarDataMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 requestId = 1; + public static final int REQUESTID_FIELD_NUMBER = 1; + private int requestId_; + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getRequestId() { + return requestId_; + } + + // required bytes avatarBlock = 2; + public static final int AVATARBLOCK_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString avatarBlock_; + public boolean hasAvatarBlock() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public com.google.protobuf.ByteString getAvatarBlock() { + return avatarBlock_; + } + + private void initFields() { + requestId_ = 0; + avatarBlock_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasRequestId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAvatarBlock()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, requestId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, avatarBlock_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, requestId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, avatarBlock_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AvatarDataMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.AvatarDataMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AvatarDataMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AvatarDataMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.AvatarDataMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + requestId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + avatarBlock_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.AvatarDataMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AvatarDataMessage build() { + de.pokerth.protocol.ProtoBuf.AvatarDataMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AvatarDataMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AvatarDataMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AvatarDataMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AvatarDataMessage result = new de.pokerth.protocol.ProtoBuf.AvatarDataMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.requestId_ = requestId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.avatarBlock_ = avatarBlock_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.AvatarDataMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.AvatarDataMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AvatarDataMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance()) return this; + if (other.hasRequestId()) { + setRequestId(other.getRequestId()); + } + if (other.hasAvatarBlock()) { + setAvatarBlock(other.getAvatarBlock()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasRequestId()) { + + return false; + } + if (!hasAvatarBlock()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + requestId_ = input.readUInt32(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + avatarBlock_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 requestId = 1; + private int requestId_ ; + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getRequestId() { + return requestId_; + } + public Builder setRequestId(int value) { + bitField0_ |= 0x00000001; + requestId_ = value; + onChanged(); + return this; + } + public Builder clearRequestId() { + bitField0_ = (bitField0_ & ~0x00000001); + requestId_ = 0; + onChanged(); + return this; + } + + // required bytes avatarBlock = 2; + private com.google.protobuf.ByteString avatarBlock_ = com.google.protobuf.ByteString.EMPTY; + public boolean hasAvatarBlock() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public com.google.protobuf.ByteString getAvatarBlock() { + return avatarBlock_; + } + public Builder setAvatarBlock(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + avatarBlock_ = value; + onChanged(); + return this; + } + public Builder clearAvatarBlock() { + bitField0_ = (bitField0_ & ~0x00000002); + avatarBlock_ = getDefaultInstance().getAvatarBlock(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:AvatarDataMessage) + } + + static { + defaultInstance = new AvatarDataMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:AvatarDataMessage) + } + + public interface AvatarEndMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 requestId = 1; + boolean hasRequestId(); + int getRequestId(); + } + public static final class AvatarEndMessage extends + com.google.protobuf.GeneratedMessage + implements AvatarEndMessageOrBuilder { + // Use AvatarEndMessage.newBuilder() to construct. + private AvatarEndMessage(Builder builder) { + super(builder); + } + private AvatarEndMessage(boolean noInit) {} + + private static final AvatarEndMessage defaultInstance; + public static AvatarEndMessage getDefaultInstance() { + return defaultInstance; + } + + public AvatarEndMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AvatarEndMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AvatarEndMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 requestId = 1; + public static final int REQUESTID_FIELD_NUMBER = 1; + private int requestId_; + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getRequestId() { + return requestId_; + } + + private void initFields() { + requestId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasRequestId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, requestId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AvatarEndMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.AvatarEndMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AvatarEndMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AvatarEndMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.AvatarEndMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + requestId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.AvatarEndMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AvatarEndMessage build() { + de.pokerth.protocol.ProtoBuf.AvatarEndMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AvatarEndMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AvatarEndMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AvatarEndMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AvatarEndMessage result = new de.pokerth.protocol.ProtoBuf.AvatarEndMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.requestId_ = requestId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.AvatarEndMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.AvatarEndMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AvatarEndMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance()) return this; + if (other.hasRequestId()) { + setRequestId(other.getRequestId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasRequestId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + requestId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 requestId = 1; + private int requestId_ ; + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getRequestId() { + return requestId_; + } + public Builder setRequestId(int value) { + bitField0_ |= 0x00000001; + requestId_ = value; + onChanged(); + return this; + } + public Builder clearRequestId() { + bitField0_ = (bitField0_ & ~0x00000001); + requestId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:AvatarEndMessage) + } + + static { + defaultInstance = new AvatarEndMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:AvatarEndMessage) + } + + public interface UnknownAvatarMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 requestId = 1; + boolean hasRequestId(); + int getRequestId(); + } + public static final class UnknownAvatarMessage extends + com.google.protobuf.GeneratedMessage + implements UnknownAvatarMessageOrBuilder { + // Use UnknownAvatarMessage.newBuilder() to construct. + private UnknownAvatarMessage(Builder builder) { + super(builder); + } + private UnknownAvatarMessage(boolean noInit) {} + + private static final UnknownAvatarMessage defaultInstance; + public static UnknownAvatarMessage getDefaultInstance() { + return defaultInstance; + } + + public UnknownAvatarMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_UnknownAvatarMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_UnknownAvatarMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 requestId = 1; + public static final int REQUESTID_FIELD_NUMBER = 1; + private int requestId_; + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getRequestId() { + return requestId_; + } + + private void initFields() { + requestId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasRequestId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, requestId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.UnknownAvatarMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_UnknownAvatarMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_UnknownAvatarMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + requestId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage build() { + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage result = new de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.requestId_ = requestId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance()) return this; + if (other.hasRequestId()) { + setRequestId(other.getRequestId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasRequestId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + requestId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 requestId = 1; + private int requestId_ ; + public boolean hasRequestId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getRequestId() { + return requestId_; + } + public Builder setRequestId(int value) { + bitField0_ |= 0x00000001; + requestId_ = value; + onChanged(); + return this; + } + public Builder clearRequestId() { + bitField0_ = (bitField0_ & ~0x00000001); + requestId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:UnknownAvatarMessage) + } + + static { + defaultInstance = new UnknownAvatarMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:UnknownAvatarMessage) + } + + public interface PlayerListMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 playerId = 1; + boolean hasPlayerId(); + int getPlayerId(); + + // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; + boolean hasPlayerListNotification(); + de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification getPlayerListNotification(); + } + public static final class PlayerListMessage extends + com.google.protobuf.GeneratedMessage + implements PlayerListMessageOrBuilder { + // Use PlayerListMessage.newBuilder() to construct. + private PlayerListMessage(Builder builder) { + super(builder); + } + private PlayerListMessage(boolean noInit) {} + + private static final PlayerListMessage defaultInstance; + public static PlayerListMessage getDefaultInstance() { + return defaultInstance; + } + + public PlayerListMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerListMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerListMessage_fieldAccessorTable; + } + + public enum PlayerListNotification + implements com.google.protobuf.ProtocolMessageEnum { + playerListNew(0, 0), + playerListLeft(1, 1), + ; + + public static final int playerListNew_VALUE = 0; + public static final int playerListLeft_VALUE = 1; + + + public final int getNumber() { return value; } + + public static PlayerListNotification valueOf(int value) { + switch (value) { + case 0: return playerListNew; + case 1: return playerListLeft; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PlayerListNotification findValueByNumber(int number) { + return PlayerListNotification.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 de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final PlayerListNotification[] VALUES = { + playerListNew, playerListLeft, + }; + + public static PlayerListNotification 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 PlayerListNotification(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:PlayerListMessage.PlayerListNotification) + } + + private int bitField0_; + // required uint32 playerId = 1; + public static final int PLAYERID_FIELD_NUMBER = 1; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getPlayerId() { + return playerId_; + } + + // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; + public static final int PLAYERLISTNOTIFICATION_FIELD_NUMBER = 2; + private de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification playerListNotification_; + public boolean hasPlayerListNotification() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification getPlayerListNotification() { + return playerListNotification_; + } + + private void initFields() { + playerId_ = 0; + playerListNotification_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification.playerListNew; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerListNotification()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, playerId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, playerListNotification_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, playerId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, playerListNotification_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerListMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.PlayerListMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerListMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerListMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.PlayerListMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerListNotification_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification.playerListNew; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerListMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerListMessage build() { + de.pokerth.protocol.ProtoBuf.PlayerListMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayerListMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayerListMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayerListMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayerListMessage result = new de.pokerth.protocol.ProtoBuf.PlayerListMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerListNotification_ = playerListNotification_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.PlayerListMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.PlayerListMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayerListMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance()) return this; + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasPlayerListNotification()) { + setPlayerListNotification(other.getPlayerListNotification()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasPlayerId()) { + + return false; + } + if (!hasPlayerListNotification()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + playerId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification value = de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + playerListNotification_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 playerId = 1; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000001; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + onChanged(); + return this; + } + + // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; + private de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification playerListNotification_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification.playerListNew; + public boolean hasPlayerListNotification() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification getPlayerListNotification() { + return playerListNotification_; + } + public Builder setPlayerListNotification(de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + playerListNotification_ = value; + onChanged(); + return this; + } + public Builder clearPlayerListNotification() { + bitField0_ = (bitField0_ & ~0x00000002); + playerListNotification_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification.playerListNew; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PlayerListMessage) + } + + static { + defaultInstance = new PlayerListMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:PlayerListMessage) + } + + public interface GameListNewMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required .NetGameMode gameMode = 2; + boolean hasGameMode(); + de.pokerth.protocol.ProtoBuf.NetGameMode getGameMode(); + + // required bool isPrivate = 3; + boolean hasIsPrivate(); + boolean getIsPrivate(); + + // repeated uint32 playerIds = 4 [packed = true]; + java.util.List getPlayerIdsList(); + int getPlayerIdsCount(); + int getPlayerIds(int index); + + // required uint32 adminPlayerId = 5; + boolean hasAdminPlayerId(); + int getAdminPlayerId(); + + // required .NetGameInfo gameInfo = 6; + boolean hasGameInfo(); + de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo(); + de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder getGameInfoOrBuilder(); + } + public static final class GameListNewMessage extends + com.google.protobuf.GeneratedMessage + implements GameListNewMessageOrBuilder { + // Use GameListNewMessage.newBuilder() to construct. + private GameListNewMessage(Builder builder) { + super(builder); + } + private GameListNewMessage(boolean noInit) {} + + private static final GameListNewMessage defaultInstance; + public static GameListNewMessage getDefaultInstance() { + return defaultInstance; + } + + public GameListNewMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListNewMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListNewMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required .NetGameMode gameMode = 2; + public static final int GAMEMODE_FIELD_NUMBER = 2; + private de.pokerth.protocol.ProtoBuf.NetGameMode gameMode_; + public boolean hasGameMode() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.NetGameMode getGameMode() { + return gameMode_; + } + + // required bool isPrivate = 3; + public static final int ISPRIVATE_FIELD_NUMBER = 3; + private boolean isPrivate_; + public boolean hasIsPrivate() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public boolean getIsPrivate() { + return isPrivate_; + } + + // repeated uint32 playerIds = 4 [packed = true]; + public static final int PLAYERIDS_FIELD_NUMBER = 4; + private java.util.List playerIds_; + public java.util.List + getPlayerIdsList() { + return playerIds_; + } + public int getPlayerIdsCount() { + return playerIds_.size(); + } + public int getPlayerIds(int index) { + return playerIds_.get(index); + } + private int playerIdsMemoizedSerializedSize = -1; + + // required uint32 adminPlayerId = 5; + public static final int ADMINPLAYERID_FIELD_NUMBER = 5; + private int adminPlayerId_; + public boolean hasAdminPlayerId() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getAdminPlayerId() { + return adminPlayerId_; + } + + // required .NetGameInfo gameInfo = 6; + public static final int GAMEINFO_FIELD_NUMBER = 6; + private de.pokerth.protocol.ProtoBuf.NetGameInfo gameInfo_; + public boolean hasGameInfo() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { + return gameInfo_; + } + public de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder getGameInfoOrBuilder() { + return gameInfo_; + } + + private void initFields() { + gameId_ = 0; + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.gameCreated; + isPrivate_ = false; + playerIds_ = java.util.Collections.emptyList();; + adminPlayerId_ = 0; + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasGameMode()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasIsPrivate()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAdminPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasGameInfo()) { + memoizedIsInitialized = 0; + return false; + } + if (!getGameInfo().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, gameMode_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBool(3, isPrivate_); + } + if (getPlayerIdsList().size() > 0) { + output.writeRawVarint32(34); + output.writeRawVarint32(playerIdsMemoizedSerializedSize); + } + for (int i = 0; i < playerIds_.size(); i++) { + output.writeUInt32NoTag(playerIds_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(5, adminPlayerId_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(6, gameInfo_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, gameMode_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, isPrivate_); + } + { + int dataSize = 0; + for (int i = 0; i < playerIds_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(playerIds_.get(i)); + } + size += dataSize; + if (!getPlayerIdsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + playerIdsMemoizedSerializedSize = dataSize; + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, adminPlayerId_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, gameInfo_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListNewMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.GameListNewMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListNewMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListNewMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.GameListNewMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getGameInfoFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.gameCreated; + bitField0_ = (bitField0_ & ~0x00000002); + isPrivate_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + playerIds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000008); + adminPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + if (gameInfoBuilder_ == null) { + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + } else { + gameInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.GameListNewMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameListNewMessage build() { + de.pokerth.protocol.ProtoBuf.GameListNewMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameListNewMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameListNewMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameListNewMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameListNewMessage result = new de.pokerth.protocol.ProtoBuf.GameListNewMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.gameMode_ = gameMode_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.isPrivate_ = isPrivate_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + playerIds_ = java.util.Collections.unmodifiableList(playerIds_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.playerIds_ = playerIds_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.adminPlayerId_ = adminPlayerId_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + if (gameInfoBuilder_ == null) { + result.gameInfo_ = gameInfo_; + } else { + result.gameInfo_ = gameInfoBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.GameListNewMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.GameListNewMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameListNewMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasGameMode()) { + setGameMode(other.getGameMode()); + } + if (other.hasIsPrivate()) { + setIsPrivate(other.getIsPrivate()); + } + if (!other.playerIds_.isEmpty()) { + if (playerIds_.isEmpty()) { + playerIds_ = other.playerIds_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePlayerIdsIsMutable(); + playerIds_.addAll(other.playerIds_); + } + onChanged(); + } + if (other.hasAdminPlayerId()) { + setAdminPlayerId(other.getAdminPlayerId()); + } + if (other.hasGameInfo()) { + mergeGameInfo(other.getGameInfo()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasGameMode()) { + + return false; + } + if (!hasIsPrivate()) { + + return false; + } + if (!hasAdminPlayerId()) { + + return false; + } + if (!hasGameInfo()) { + + return false; + } + if (!getGameInfo().isInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameMode value = de.pokerth.protocol.ProtoBuf.NetGameMode.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + gameMode_ = value; + } + break; + } + case 24: { + bitField0_ |= 0x00000004; + isPrivate_ = input.readBool(); + break; + } + case 32: { + ensurePlayerIdsIsMutable(); + playerIds_.add(input.readUInt32()); + break; + } + case 34: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + addPlayerIds(input.readUInt32()); + } + input.popLimit(limit); + break; + } + case 40: { + bitField0_ |= 0x00000010; + adminPlayerId_ = input.readUInt32(); + break; + } + case 50: { + de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder subBuilder = de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder(); + if (hasGameInfo()) { + subBuilder.mergeFrom(getGameInfo()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameInfo(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required .NetGameMode gameMode = 2; + private de.pokerth.protocol.ProtoBuf.NetGameMode gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.gameCreated; + public boolean hasGameMode() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.NetGameMode getGameMode() { + return gameMode_; + } + public Builder setGameMode(de.pokerth.protocol.ProtoBuf.NetGameMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + gameMode_ = value; + onChanged(); + return this; + } + public Builder clearGameMode() { + bitField0_ = (bitField0_ & ~0x00000002); + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.gameCreated; + onChanged(); + return this; + } + + // required bool isPrivate = 3; + private boolean isPrivate_ ; + public boolean hasIsPrivate() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public boolean getIsPrivate() { + return isPrivate_; + } + public Builder setIsPrivate(boolean value) { + bitField0_ |= 0x00000004; + isPrivate_ = value; + onChanged(); + return this; + } + public Builder clearIsPrivate() { + bitField0_ = (bitField0_ & ~0x00000004); + isPrivate_ = false; + onChanged(); + return this; + } + + // repeated uint32 playerIds = 4 [packed = true]; + private java.util.List playerIds_ = java.util.Collections.emptyList();; + private void ensurePlayerIdsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + playerIds_ = new java.util.ArrayList(playerIds_); + bitField0_ |= 0x00000008; + } + } + public java.util.List + getPlayerIdsList() { + return java.util.Collections.unmodifiableList(playerIds_); + } + public int getPlayerIdsCount() { + return playerIds_.size(); + } + public int getPlayerIds(int index) { + return playerIds_.get(index); + } + public Builder setPlayerIds( + int index, int value) { + ensurePlayerIdsIsMutable(); + playerIds_.set(index, value); + onChanged(); + return this; + } + public Builder addPlayerIds(int value) { + ensurePlayerIdsIsMutable(); + playerIds_.add(value); + onChanged(); + return this; + } + public Builder addAllPlayerIds( + java.lang.Iterable values) { + ensurePlayerIdsIsMutable(); + super.addAll(values, playerIds_); + onChanged(); + return this; + } + public Builder clearPlayerIds() { + playerIds_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + // required uint32 adminPlayerId = 5; + private int adminPlayerId_ ; + public boolean hasAdminPlayerId() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getAdminPlayerId() { + return adminPlayerId_; + } + public Builder setAdminPlayerId(int value) { + bitField0_ |= 0x00000010; + adminPlayerId_ = value; + onChanged(); + return this; + } + public Builder clearAdminPlayerId() { + bitField0_ = (bitField0_ & ~0x00000010); + adminPlayerId_ = 0; + onChanged(); + return this; + } + + // required .NetGameInfo gameInfo = 6; + private de.pokerth.protocol.ProtoBuf.NetGameInfo gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.NetGameInfo, de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder, de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder> gameInfoBuilder_; + public boolean hasGameInfo() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { + if (gameInfoBuilder_ == null) { + return gameInfo_; + } else { + return gameInfoBuilder_.getMessage(); + } + } + public Builder setGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { + if (gameInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gameInfo_ = value; + onChanged(); + } else { + gameInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + return this; + } + public Builder setGameInfo( + de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder builderForValue) { + if (gameInfoBuilder_ == null) { + gameInfo_ = builderForValue.build(); + onChanged(); + } else { + gameInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + return this; + } + public Builder mergeGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { + if (gameInfoBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020) && + gameInfo_ != de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance()) { + gameInfo_ = + de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder(gameInfo_).mergeFrom(value).buildPartial(); + } else { + gameInfo_ = value; + } + onChanged(); + } else { + gameInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + return this; + } + public Builder clearGameInfo() { + if (gameInfoBuilder_ == null) { + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + onChanged(); + } else { + gameInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder getGameInfoBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getGameInfoFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder getGameInfoOrBuilder() { + if (gameInfoBuilder_ != null) { + return gameInfoBuilder_.getMessageOrBuilder(); + } else { + return gameInfo_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.NetGameInfo, de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder, de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder> + getGameInfoFieldBuilder() { + if (gameInfoBuilder_ == null) { + gameInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.NetGameInfo, de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder, de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder>( + gameInfo_, + getParentForChildren(), + isClean()); + gameInfo_ = null; + } + return gameInfoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:GameListNewMessage) + } + + static { + defaultInstance = new GameListNewMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:GameListNewMessage) + } + + public interface GameListUpdateMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required .NetGameMode gameMode = 2; + boolean hasGameMode(); + de.pokerth.protocol.ProtoBuf.NetGameMode getGameMode(); + } + public static final class GameListUpdateMessage extends + com.google.protobuf.GeneratedMessage + implements GameListUpdateMessageOrBuilder { + // Use GameListUpdateMessage.newBuilder() to construct. + private GameListUpdateMessage(Builder builder) { + super(builder); + } + private GameListUpdateMessage(boolean noInit) {} + + private static final GameListUpdateMessage defaultInstance; + public static GameListUpdateMessage getDefaultInstance() { + return defaultInstance; + } + + public GameListUpdateMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListUpdateMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListUpdateMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required .NetGameMode gameMode = 2; + public static final int GAMEMODE_FIELD_NUMBER = 2; + private de.pokerth.protocol.ProtoBuf.NetGameMode gameMode_; + public boolean hasGameMode() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.NetGameMode getGameMode() { + return gameMode_; + } + + private void initFields() { + gameId_ = 0; + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.gameCreated; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasGameMode()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, gameMode_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, gameMode_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListUpdateMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.GameListUpdateMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListUpdateMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListUpdateMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.gameCreated; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.GameListUpdateMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameListUpdateMessage build() { + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameListUpdateMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameListUpdateMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage result = new de.pokerth.protocol.ProtoBuf.GameListUpdateMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.gameMode_ = gameMode_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.GameListUpdateMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.GameListUpdateMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameListUpdateMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasGameMode()) { + setGameMode(other.getGameMode()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasGameMode()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameMode value = de.pokerth.protocol.ProtoBuf.NetGameMode.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + gameMode_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required .NetGameMode gameMode = 2; + private de.pokerth.protocol.ProtoBuf.NetGameMode gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.gameCreated; + public boolean hasGameMode() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.NetGameMode getGameMode() { + return gameMode_; + } + public Builder setGameMode(de.pokerth.protocol.ProtoBuf.NetGameMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + gameMode_ = value; + onChanged(); + return this; + } + public Builder clearGameMode() { + bitField0_ = (bitField0_ & ~0x00000002); + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.gameCreated; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:GameListUpdateMessage) + } + + static { + defaultInstance = new GameListUpdateMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:GameListUpdateMessage) + } + + public interface GameListPlayerJoinedMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 playerId = 2; + boolean hasPlayerId(); + int getPlayerId(); + } + public static final class GameListPlayerJoinedMessage extends + com.google.protobuf.GeneratedMessage + implements GameListPlayerJoinedMessageOrBuilder { + // Use GameListPlayerJoinedMessage.newBuilder() to construct. + private GameListPlayerJoinedMessage(Builder builder) { + super(builder); + } + private GameListPlayerJoinedMessage(boolean noInit) {} + + private static final GameListPlayerJoinedMessage defaultInstance; + public static GameListPlayerJoinedMessage getDefaultInstance() { + return defaultInstance; + } + + public GameListPlayerJoinedMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListPlayerJoinedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListPlayerJoinedMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 playerId = 2; + public static final int PLAYERID_FIELD_NUMBER = 2; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, playerId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, playerId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListPlayerJoinedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListPlayerJoinedMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage build() { + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage result = new de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 playerId = 2; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000002; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:GameListPlayerJoinedMessage) + } + + static { + defaultInstance = new GameListPlayerJoinedMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:GameListPlayerJoinedMessage) + } + + public interface GameListPlayerLeftMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 playerId = 2; + boolean hasPlayerId(); + int getPlayerId(); + } + public static final class GameListPlayerLeftMessage extends + com.google.protobuf.GeneratedMessage + implements GameListPlayerLeftMessageOrBuilder { + // Use GameListPlayerLeftMessage.newBuilder() to construct. + private GameListPlayerLeftMessage(Builder builder) { + super(builder); + } + private GameListPlayerLeftMessage(boolean noInit) {} + + private static final GameListPlayerLeftMessage defaultInstance; + public static GameListPlayerLeftMessage getDefaultInstance() { + return defaultInstance; + } + + public GameListPlayerLeftMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListPlayerLeftMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListPlayerLeftMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 playerId = 2; + public static final int PLAYERID_FIELD_NUMBER = 2; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, playerId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, playerId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListPlayerLeftMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListPlayerLeftMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage build() { + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage result = new de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 playerId = 2; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000002; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:GameListPlayerLeftMessage) + } + + static { + defaultInstance = new GameListPlayerLeftMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:GameListPlayerLeftMessage) + } + + public interface GameListAdminChangedMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 newAdminPlayerId = 2; + boolean hasNewAdminPlayerId(); + int getNewAdminPlayerId(); + } + public static final class GameListAdminChangedMessage extends + com.google.protobuf.GeneratedMessage + implements GameListAdminChangedMessageOrBuilder { + // Use GameListAdminChangedMessage.newBuilder() to construct. + private GameListAdminChangedMessage(Builder builder) { + super(builder); + } + private GameListAdminChangedMessage(boolean noInit) {} + + private static final GameListAdminChangedMessage defaultInstance; + public static GameListAdminChangedMessage getDefaultInstance() { + return defaultInstance; + } + + public GameListAdminChangedMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListAdminChangedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListAdminChangedMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 newAdminPlayerId = 2; + public static final int NEWADMINPLAYERID_FIELD_NUMBER = 2; + private int newAdminPlayerId_; + public boolean hasNewAdminPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getNewAdminPlayerId() { + return newAdminPlayerId_; + } + + private void initFields() { + gameId_ = 0; + newAdminPlayerId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNewAdminPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, newAdminPlayerId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, newAdminPlayerId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListAdminChangedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameListAdminChangedMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + newAdminPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage build() { + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage result = new de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.newAdminPlayerId_ = newAdminPlayerId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasNewAdminPlayerId()) { + setNewAdminPlayerId(other.getNewAdminPlayerId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasNewAdminPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + newAdminPlayerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 newAdminPlayerId = 2; + private int newAdminPlayerId_ ; + public boolean hasNewAdminPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getNewAdminPlayerId() { + return newAdminPlayerId_; + } + public Builder setNewAdminPlayerId(int value) { + bitField0_ |= 0x00000002; + newAdminPlayerId_ = value; + onChanged(); + return this; + } + public Builder clearNewAdminPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + newAdminPlayerId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:GameListAdminChangedMessage) + } + + static { + defaultInstance = new GameListAdminChangedMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:GameListAdminChangedMessage) + } + + public interface PlayerInfoRequestMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 playerId = 1; + boolean hasPlayerId(); + int getPlayerId(); + } + public static final class PlayerInfoRequestMessage extends + com.google.protobuf.GeneratedMessage + implements PlayerInfoRequestMessageOrBuilder { + // Use PlayerInfoRequestMessage.newBuilder() to construct. + private PlayerInfoRequestMessage(Builder builder) { + super(builder); + } + private PlayerInfoRequestMessage(boolean noInit) {} + + private static final PlayerInfoRequestMessage defaultInstance; + public static PlayerInfoRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public PlayerInfoRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerInfoRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerInfoRequestMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 playerId = 1; + public static final int PLAYERID_FIELD_NUMBER = 1; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getPlayerId() { + return playerId_; + } + + private void initFields() { + playerId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, playerId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, playerId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerInfoRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerInfoRequestMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage build() { + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage result = new de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.playerId_ = playerId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance()) return this; + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + playerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 playerId = 1; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000001; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PlayerInfoRequestMessage) + } + + static { + defaultInstance = new PlayerInfoRequestMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:PlayerInfoRequestMessage) + } + + public interface PlayerInfoReplyMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 playerId = 1; + boolean hasPlayerId(); + int getPlayerId(); + + // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; + boolean hasPlayerInfoData(); + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData getPlayerInfoData(); + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoDataOrBuilder getPlayerInfoDataOrBuilder(); + } + public static final class PlayerInfoReplyMessage extends + com.google.protobuf.GeneratedMessage + implements PlayerInfoReplyMessageOrBuilder { + // Use PlayerInfoReplyMessage.newBuilder() to construct. + private PlayerInfoReplyMessage(Builder builder) { + super(builder); + } + private PlayerInfoReplyMessage(boolean noInit) {} + + private static final PlayerInfoReplyMessage defaultInstance; + public static PlayerInfoReplyMessage getDefaultInstance() { + return defaultInstance; + } + + public PlayerInfoReplyMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerInfoReplyMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerInfoReplyMessage_fieldAccessorTable; + } + + public interface PlayerInfoDataOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string playerName = 1; + boolean hasPlayerName(); + String getPlayerName(); + + // required bool isHuman = 2; + boolean hasIsHuman(); + boolean getIsHuman(); + + // required .PlayerInfoRights playerRights = 3; + boolean hasPlayerRights(); + de.pokerth.protocol.ProtoBuf.PlayerInfoRights getPlayerRights(); + + // optional string countryCode = 4; + boolean hasCountryCode(); + String getCountryCode(); + + // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; + boolean hasAvatarData(); + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData getAvatarData(); + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarDataOrBuilder getAvatarDataOrBuilder(); + } + public static final class PlayerInfoData extends + com.google.protobuf.GeneratedMessage + implements PlayerInfoDataOrBuilder { + // Use PlayerInfoData.newBuilder() to construct. + private PlayerInfoData(Builder builder) { + super(builder); + } + private PlayerInfoData(boolean noInit) {} + + private static final PlayerInfoData defaultInstance; + public static PlayerInfoData getDefaultInstance() { + return defaultInstance; + } + + public PlayerInfoData getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerInfoReplyMessage_PlayerInfoData_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerInfoReplyMessage_PlayerInfoData_fieldAccessorTable; + } + + public interface AvatarDataOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required .NetAvatarType avatarType = 1; + boolean hasAvatarType(); + de.pokerth.protocol.ProtoBuf.NetAvatarType getAvatarType(); + + // required bytes avatarHash = 2; + boolean hasAvatarHash(); + com.google.protobuf.ByteString getAvatarHash(); + } + public static final class AvatarData extends + com.google.protobuf.GeneratedMessage + implements AvatarDataOrBuilder { + // Use AvatarData.newBuilder() to construct. + private AvatarData(Builder builder) { + super(builder); + } + private AvatarData(boolean noInit) {} + + private static final AvatarData defaultInstance; + public static AvatarData getDefaultInstance() { + return defaultInstance; + } + + public AvatarData getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_fieldAccessorTable; + } + + private int bitField0_; + // required .NetAvatarType avatarType = 1; + public static final int AVATARTYPE_FIELD_NUMBER = 1; + private de.pokerth.protocol.ProtoBuf.NetAvatarType avatarType_; + public boolean hasAvatarType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.NetAvatarType getAvatarType() { + return avatarType_; + } + + // required bytes avatarHash = 2; + public static final int AVATARHASH_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString avatarHash_; + public boolean hasAvatarHash() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public com.google.protobuf.ByteString getAvatarHash() { + return avatarHash_; + } + + private void initFields() { + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.avatarImagePng; + avatarHash_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasAvatarType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAvatarHash()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, avatarType_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, avatarHash_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, avatarType_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, avatarHash_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.avatarImagePng; + bitField0_ = (bitField0_ & ~0x00000001); + avatarHash_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData build() { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData result = new de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.avatarType_ = avatarType_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.avatarHash_ = avatarHash_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance()) return this; + if (other.hasAvatarType()) { + setAvatarType(other.getAvatarType()); + } + if (other.hasAvatarHash()) { + setAvatarHash(other.getAvatarHash()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasAvatarType()) { + + return false; + } + if (!hasAvatarHash()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetAvatarType value = de.pokerth.protocol.ProtoBuf.NetAvatarType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + avatarType_ = value; + } + break; + } + case 18: { + bitField0_ |= 0x00000002; + avatarHash_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required .NetAvatarType avatarType = 1; + private de.pokerth.protocol.ProtoBuf.NetAvatarType avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.avatarImagePng; + public boolean hasAvatarType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.NetAvatarType getAvatarType() { + return avatarType_; + } + public Builder setAvatarType(de.pokerth.protocol.ProtoBuf.NetAvatarType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + avatarType_ = value; + onChanged(); + return this; + } + public Builder clearAvatarType() { + bitField0_ = (bitField0_ & ~0x00000001); + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.avatarImagePng; + onChanged(); + return this; + } + + // required bytes avatarHash = 2; + private com.google.protobuf.ByteString avatarHash_ = com.google.protobuf.ByteString.EMPTY; + public boolean hasAvatarHash() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public com.google.protobuf.ByteString getAvatarHash() { + return avatarHash_; + } + public Builder setAvatarHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + avatarHash_ = value; + onChanged(); + return this; + } + public Builder clearAvatarHash() { + bitField0_ = (bitField0_ & ~0x00000002); + avatarHash_ = getDefaultInstance().getAvatarHash(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) + } + + static { + defaultInstance = new AvatarData(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) + } + + private int bitField0_; + // required string playerName = 1; + public static final int PLAYERNAME_FIELD_NUMBER = 1; + private java.lang.Object playerName_; + public boolean hasPlayerName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getPlayerName() { + java.lang.Object ref = playerName_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + playerName_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getPlayerNameBytes() { + java.lang.Object ref = playerName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + playerName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // required bool isHuman = 2; + public static final int ISHUMAN_FIELD_NUMBER = 2; + private boolean isHuman_; + public boolean hasIsHuman() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public boolean getIsHuman() { + return isHuman_; + } + + // required .PlayerInfoRights playerRights = 3; + public static final int PLAYERRIGHTS_FIELD_NUMBER = 3; + private de.pokerth.protocol.ProtoBuf.PlayerInfoRights playerRights_; + public boolean hasPlayerRights() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoRights getPlayerRights() { + return playerRights_; + } + + // optional string countryCode = 4; + public static final int COUNTRYCODE_FIELD_NUMBER = 4; + private java.lang.Object countryCode_; + public boolean hasCountryCode() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public String getCountryCode() { + java.lang.Object ref = countryCode_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + countryCode_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getCountryCodeBytes() { + java.lang.Object ref = countryCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + countryCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; + public static final int AVATARDATA_FIELD_NUMBER = 5; + private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData_; + public boolean hasAvatarData() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData getAvatarData() { + return avatarData_; + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarDataOrBuilder getAvatarDataOrBuilder() { + return avatarData_; + } + + private void initFields() { + playerName_ = ""; + isHuman_ = false; + playerRights_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRights.playerRightsGuest; + countryCode_ = ""; + avatarData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPlayerName()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasIsHuman()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerRights()) { + memoizedIsInitialized = 0; + return false; + } + if (hasAvatarData()) { + if (!getAvatarData().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getPlayerNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBool(2, isHuman_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, playerRights_.getNumber()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(4, getCountryCodeBytes()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(5, avatarData_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getPlayerNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, isHuman_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, playerRights_.getNumber()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, getCountryCodeBytes()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, avatarData_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerInfoReplyMessage_PlayerInfoData_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerInfoReplyMessage_PlayerInfoData_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getAvatarDataFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + playerName_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + isHuman_ = false; + bitField0_ = (bitField0_ & ~0x00000002); + playerRights_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRights.playerRightsGuest; + bitField0_ = (bitField0_ & ~0x00000004); + countryCode_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + if (avatarDataBuilder_ == null) { + avatarData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance(); + } else { + avatarDataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData build() { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData result = new de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.playerName_ = playerName_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.isHuman_ = isHuman_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.playerRights_ = playerRights_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.countryCode_ = countryCode_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + if (avatarDataBuilder_ == null) { + result.avatarData_ = avatarData_; + } else { + result.avatarData_ = avatarDataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance()) return this; + if (other.hasPlayerName()) { + setPlayerName(other.getPlayerName()); + } + if (other.hasIsHuman()) { + setIsHuman(other.getIsHuman()); + } + if (other.hasPlayerRights()) { + setPlayerRights(other.getPlayerRights()); + } + if (other.hasCountryCode()) { + setCountryCode(other.getCountryCode()); + } + if (other.hasAvatarData()) { + mergeAvatarData(other.getAvatarData()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasPlayerName()) { + + return false; + } + if (!hasIsHuman()) { + + return false; + } + if (!hasPlayerRights()) { + + return false; + } + if (hasAvatarData()) { + if (!getAvatarData().isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + playerName_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + isHuman_ = input.readBool(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.PlayerInfoRights value = de.pokerth.protocol.ProtoBuf.PlayerInfoRights.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(3, rawValue); + } else { + bitField0_ |= 0x00000004; + playerRights_ = value; + } + break; + } + case 34: { + bitField0_ |= 0x00000008; + countryCode_ = input.readBytes(); + break; + } + case 42: { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.newBuilder(); + if (hasAvatarData()) { + subBuilder.mergeFrom(getAvatarData()); + } + input.readMessage(subBuilder, extensionRegistry); + setAvatarData(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // required string playerName = 1; + private java.lang.Object playerName_ = ""; + public boolean hasPlayerName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getPlayerName() { + java.lang.Object ref = playerName_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + playerName_ = s; + return s; + } else { + return (String) ref; + } + } + public Builder setPlayerName(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + playerName_ = value; + onChanged(); + return this; + } + public Builder clearPlayerName() { + bitField0_ = (bitField0_ & ~0x00000001); + playerName_ = getDefaultInstance().getPlayerName(); + onChanged(); + return this; + } + void setPlayerName(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + playerName_ = value; + onChanged(); + } + + // required bool isHuman = 2; + private boolean isHuman_ ; + public boolean hasIsHuman() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public boolean getIsHuman() { + return isHuman_; + } + public Builder setIsHuman(boolean value) { + bitField0_ |= 0x00000002; + isHuman_ = value; + onChanged(); + return this; + } + public Builder clearIsHuman() { + bitField0_ = (bitField0_ & ~0x00000002); + isHuman_ = false; + onChanged(); + return this; + } + + // required .PlayerInfoRights playerRights = 3; + private de.pokerth.protocol.ProtoBuf.PlayerInfoRights playerRights_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRights.playerRightsGuest; + public boolean hasPlayerRights() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoRights getPlayerRights() { + return playerRights_; + } + public Builder setPlayerRights(de.pokerth.protocol.ProtoBuf.PlayerInfoRights value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + playerRights_ = value; + onChanged(); + return this; + } + public Builder clearPlayerRights() { + bitField0_ = (bitField0_ & ~0x00000004); + playerRights_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRights.playerRightsGuest; + onChanged(); + return this; + } + + // optional string countryCode = 4; + private java.lang.Object countryCode_ = ""; + public boolean hasCountryCode() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public String getCountryCode() { + java.lang.Object ref = countryCode_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + countryCode_ = s; + return s; + } else { + return (String) ref; + } + } + public Builder setCountryCode(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + countryCode_ = value; + onChanged(); + return this; + } + public Builder clearCountryCode() { + bitField0_ = (bitField0_ & ~0x00000008); + countryCode_ = getDefaultInstance().getCountryCode(); + onChanged(); + return this; + } + void setCountryCode(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000008; + countryCode_ = value; + onChanged(); + } + + // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; + private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.Builder, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarDataOrBuilder> avatarDataBuilder_; + public boolean hasAvatarData() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData getAvatarData() { + if (avatarDataBuilder_ == null) { + return avatarData_; + } else { + return avatarDataBuilder_.getMessage(); + } + } + public Builder setAvatarData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData value) { + if (avatarDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + avatarData_ = value; + onChanged(); + } else { + avatarDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + return this; + } + public Builder setAvatarData( + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.Builder builderForValue) { + if (avatarDataBuilder_ == null) { + avatarData_ = builderForValue.build(); + onChanged(); + } else { + avatarDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + return this; + } + public Builder mergeAvatarData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData value) { + if (avatarDataBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + avatarData_ != de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance()) { + avatarData_ = + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.newBuilder(avatarData_).mergeFrom(value).buildPartial(); + } else { + avatarData_ = value; + } + onChanged(); + } else { + avatarDataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + return this; + } + public Builder clearAvatarData() { + if (avatarDataBuilder_ == null) { + avatarData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance(); + onChanged(); + } else { + avatarDataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.Builder getAvatarDataBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getAvatarDataFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarDataOrBuilder getAvatarDataOrBuilder() { + if (avatarDataBuilder_ != null) { + return avatarDataBuilder_.getMessageOrBuilder(); + } else { + return avatarData_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.Builder, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarDataOrBuilder> + getAvatarDataFieldBuilder() { + if (avatarDataBuilder_ == null) { + avatarDataBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.Builder, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarDataOrBuilder>( + avatarData_, + getParentForChildren(), + isClean()); + avatarData_ = null; + } + return avatarDataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:PlayerInfoReplyMessage.PlayerInfoData) + } + + static { + defaultInstance = new PlayerInfoData(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage.PlayerInfoData) + } + + private int bitField0_; + // required uint32 playerId = 1; + public static final int PLAYERID_FIELD_NUMBER = 1; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getPlayerId() { + return playerId_; + } + + // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; + public static final int PLAYERINFODATA_FIELD_NUMBER = 2; + private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData playerInfoData_; + public boolean hasPlayerInfoData() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData getPlayerInfoData() { + return playerInfoData_; + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoDataOrBuilder getPlayerInfoDataOrBuilder() { + return playerInfoData_; + } + + private void initFields() { + playerId_ = 0; + playerInfoData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (hasPlayerInfoData()) { + if (!getPlayerInfoData().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, playerId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, playerInfoData_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, playerId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, playerInfoData_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerInfoReplyMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerInfoReplyMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getPlayerInfoDataFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + if (playerInfoDataBuilder_ == null) { + playerInfoData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance(); + } else { + playerInfoDataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage build() { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage result = new de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (playerInfoDataBuilder_ == null) { + result.playerInfoData_ = playerInfoData_; + } else { + result.playerInfoData_ = playerInfoDataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance()) return this; + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasPlayerInfoData()) { + mergePlayerInfoData(other.getPlayerInfoData()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasPlayerId()) { + + return false; + } + if (hasPlayerInfoData()) { + if (!getPlayerInfoData().isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + playerId_ = input.readUInt32(); + break; + } + case 18: { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.newBuilder(); + if (hasPlayerInfoData()) { + subBuilder.mergeFrom(getPlayerInfoData()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlayerInfoData(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 playerId = 1; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000001; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + onChanged(); + return this; + } + + // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; + private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData playerInfoData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.Builder, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoDataOrBuilder> playerInfoDataBuilder_; + public boolean hasPlayerInfoData() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData getPlayerInfoData() { + if (playerInfoDataBuilder_ == null) { + return playerInfoData_; + } else { + return playerInfoDataBuilder_.getMessage(); + } + } + public Builder setPlayerInfoData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData value) { + if (playerInfoDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + playerInfoData_ = value; + onChanged(); + } else { + playerInfoDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + public Builder setPlayerInfoData( + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.Builder builderForValue) { + if (playerInfoDataBuilder_ == null) { + playerInfoData_ = builderForValue.build(); + onChanged(); + } else { + playerInfoDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + public Builder mergePlayerInfoData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData value) { + if (playerInfoDataBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + playerInfoData_ != de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance()) { + playerInfoData_ = + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.newBuilder(playerInfoData_).mergeFrom(value).buildPartial(); + } else { + playerInfoData_ = value; + } + onChanged(); + } else { + playerInfoDataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + public Builder clearPlayerInfoData() { + if (playerInfoDataBuilder_ == null) { + playerInfoData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance(); + onChanged(); + } else { + playerInfoDataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.Builder getPlayerInfoDataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPlayerInfoDataFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoDataOrBuilder getPlayerInfoDataOrBuilder() { + if (playerInfoDataBuilder_ != null) { + return playerInfoDataBuilder_.getMessageOrBuilder(); + } else { + return playerInfoData_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.Builder, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoDataOrBuilder> + getPlayerInfoDataFieldBuilder() { + if (playerInfoDataBuilder_ == null) { + playerInfoDataBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.Builder, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoDataOrBuilder>( + playerInfoData_, + getParentForChildren(), + isClean()); + playerInfoData_ = null; + } + return playerInfoDataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:PlayerInfoReplyMessage) + } + + static { + defaultInstance = new PlayerInfoReplyMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage) + } + + public interface SubscriptionRequestMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; + boolean hasSubscriptionAction(); + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction getSubscriptionAction(); + } + public static final class SubscriptionRequestMessage extends + com.google.protobuf.GeneratedMessage + implements SubscriptionRequestMessageOrBuilder { + // Use SubscriptionRequestMessage.newBuilder() to construct. + private SubscriptionRequestMessage(Builder builder) { + super(builder); + } + private SubscriptionRequestMessage(boolean noInit) {} + + private static final SubscriptionRequestMessage defaultInstance; + public static SubscriptionRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public SubscriptionRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_SubscriptionRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_SubscriptionRequestMessage_fieldAccessorTable; + } + + public enum SubscriptionAction + implements com.google.protobuf.ProtocolMessageEnum { + unsubscribeGameList(0, 1), + resubscribeGameList(1, 2), + ; + + public static final int unsubscribeGameList_VALUE = 1; + public static final int resubscribeGameList_VALUE = 2; + + + public final int getNumber() { return value; } + + public static SubscriptionAction valueOf(int value) { + switch (value) { + case 1: return unsubscribeGameList; + case 2: return resubscribeGameList; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SubscriptionAction findValueByNumber(int number) { + return SubscriptionAction.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 de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final SubscriptionAction[] VALUES = { + unsubscribeGameList, resubscribeGameList, + }; + + public static SubscriptionAction 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 SubscriptionAction(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:SubscriptionRequestMessage.SubscriptionAction) + } + + private int bitField0_; + // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; + public static final int SUBSCRIPTIONACTION_FIELD_NUMBER = 1; + private de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction subscriptionAction_; + public boolean hasSubscriptionAction() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction getSubscriptionAction() { + return subscriptionAction_; + } + + private void initFields() { + subscriptionAction_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction.unsubscribeGameList; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasSubscriptionAction()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, subscriptionAction_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, subscriptionAction_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_SubscriptionRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_SubscriptionRequestMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + subscriptionAction_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction.unsubscribeGameList; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage build() { + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage result = new de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.subscriptionAction_ = subscriptionAction_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance()) return this; + if (other.hasSubscriptionAction()) { + setSubscriptionAction(other.getSubscriptionAction()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasSubscriptionAction()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction value = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + subscriptionAction_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; + private de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction subscriptionAction_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction.unsubscribeGameList; + public boolean hasSubscriptionAction() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction getSubscriptionAction() { + return subscriptionAction_; + } + public Builder setSubscriptionAction(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + subscriptionAction_ = value; + onChanged(); + return this; + } + public Builder clearSubscriptionAction() { + bitField0_ = (bitField0_ & ~0x00000001); + subscriptionAction_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction.unsubscribeGameList; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:SubscriptionRequestMessage) + } + + static { + defaultInstance = new SubscriptionRequestMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:SubscriptionRequestMessage) + } + + public interface JoinExistingGameMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // optional string password = 2; + boolean hasPassword(); + String getPassword(); + + // optional bool autoLeave = 3; + boolean hasAutoLeave(); + boolean getAutoLeave(); + } + public static final class JoinExistingGameMessage extends + com.google.protobuf.GeneratedMessage + implements JoinExistingGameMessageOrBuilder { + // Use JoinExistingGameMessage.newBuilder() to construct. + private JoinExistingGameMessage(Builder builder) { + super(builder); + } + private JoinExistingGameMessage(boolean noInit) {} + + private static final JoinExistingGameMessage defaultInstance; + public static JoinExistingGameMessage getDefaultInstance() { + return defaultInstance; + } + + public JoinExistingGameMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_JoinExistingGameMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_JoinExistingGameMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // optional string password = 2; + public static final int PASSWORD_FIELD_NUMBER = 2; + private java.lang.Object password_; + public boolean hasPassword() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + password_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional bool autoLeave = 3; + public static final int AUTOLEAVE_FIELD_NUMBER = 3; + private boolean autoLeave_; + public boolean hasAutoLeave() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public boolean getAutoLeave() { + return autoLeave_; + } + + private void initFields() { + gameId_ = 0; + password_ = ""; + autoLeave_ = false; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getPasswordBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBool(3, autoLeave_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getPasswordBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, autoLeave_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.JoinExistingGameMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_JoinExistingGameMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_JoinExistingGameMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + password_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + autoLeave_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage build() { + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage result = new de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.password_ = password_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.autoLeave_ = autoLeave_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPassword()) { + setPassword(other.getPassword()); + } + if (other.hasAutoLeave()) { + setAutoLeave(other.getAutoLeave()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + password_ = input.readBytes(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + autoLeave_ = input.readBool(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // optional string password = 2; + private java.lang.Object password_ = ""; + public boolean hasPassword() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + password_ = s; + return s; + } else { + return (String) ref; + } + } + public Builder setPassword(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + password_ = value; + onChanged(); + return this; + } + public Builder clearPassword() { + bitField0_ = (bitField0_ & ~0x00000002); + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + void setPassword(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; + password_ = value; + onChanged(); + } + + // optional bool autoLeave = 3; + private boolean autoLeave_ ; + public boolean hasAutoLeave() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public boolean getAutoLeave() { + return autoLeave_; + } + public Builder setAutoLeave(boolean value) { + bitField0_ |= 0x00000004; + autoLeave_ = value; + onChanged(); + return this; + } + public Builder clearAutoLeave() { + bitField0_ = (bitField0_ & ~0x00000004); + autoLeave_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:JoinExistingGameMessage) + } + + static { + defaultInstance = new JoinExistingGameMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:JoinExistingGameMessage) + } + + public interface JoinNewGameMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required .NetGameInfo gameInfo = 1; + boolean hasGameInfo(); + de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo(); + de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder getGameInfoOrBuilder(); + + // optional string password = 2; + boolean hasPassword(); + String getPassword(); + + // optional bool autoLeave = 3; + boolean hasAutoLeave(); + boolean getAutoLeave(); + } + public static final class JoinNewGameMessage extends + com.google.protobuf.GeneratedMessage + implements JoinNewGameMessageOrBuilder { + // Use JoinNewGameMessage.newBuilder() to construct. + private JoinNewGameMessage(Builder builder) { + super(builder); + } + private JoinNewGameMessage(boolean noInit) {} + + private static final JoinNewGameMessage defaultInstance; + public static JoinNewGameMessage getDefaultInstance() { + return defaultInstance; + } + + public JoinNewGameMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_JoinNewGameMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_JoinNewGameMessage_fieldAccessorTable; + } + + private int bitField0_; + // required .NetGameInfo gameInfo = 1; + public static final int GAMEINFO_FIELD_NUMBER = 1; + private de.pokerth.protocol.ProtoBuf.NetGameInfo gameInfo_; + public boolean hasGameInfo() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { + return gameInfo_; + } + public de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder getGameInfoOrBuilder() { + return gameInfo_; + } + + // optional string password = 2; + public static final int PASSWORD_FIELD_NUMBER = 2; + private java.lang.Object password_; + public boolean hasPassword() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + password_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional bool autoLeave = 3; + public static final int AUTOLEAVE_FIELD_NUMBER = 3; + private boolean autoLeave_; + public boolean hasAutoLeave() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public boolean getAutoLeave() { + return autoLeave_; + } + + private void initFields() { + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + password_ = ""; + autoLeave_ = false; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameInfo()) { + memoizedIsInitialized = 0; + return false; + } + if (!getGameInfo().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, gameInfo_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getPasswordBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBool(3, autoLeave_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, gameInfo_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getPasswordBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, autoLeave_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.JoinNewGameMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.JoinNewGameMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_JoinNewGameMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_JoinNewGameMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getGameInfoFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (gameInfoBuilder_ == null) { + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + } else { + gameInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + password_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + autoLeave_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.JoinNewGameMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.JoinNewGameMessage build() { + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.JoinNewGameMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.JoinNewGameMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage result = new de.pokerth.protocol.ProtoBuf.JoinNewGameMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (gameInfoBuilder_ == null) { + result.gameInfo_ = gameInfo_; + } else { + result.gameInfo_ = gameInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.password_ = password_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.autoLeave_ = autoLeave_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.JoinNewGameMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.JoinNewGameMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.JoinNewGameMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance()) return this; + if (other.hasGameInfo()) { + mergeGameInfo(other.getGameInfo()); + } + if (other.hasPassword()) { + setPassword(other.getPassword()); + } + if (other.hasAutoLeave()) { + setAutoLeave(other.getAutoLeave()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameInfo()) { + + return false; + } + if (!getGameInfo().isInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 10: { + de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder subBuilder = de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder(); + if (hasGameInfo()) { + subBuilder.mergeFrom(getGameInfo()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameInfo(subBuilder.buildPartial()); + break; + } + case 18: { + bitField0_ |= 0x00000002; + password_ = input.readBytes(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + autoLeave_ = input.readBool(); + break; + } + } + } + } + + private int bitField0_; + + // required .NetGameInfo gameInfo = 1; + private de.pokerth.protocol.ProtoBuf.NetGameInfo gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.NetGameInfo, de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder, de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder> gameInfoBuilder_; + public boolean hasGameInfo() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { + if (gameInfoBuilder_ == null) { + return gameInfo_; + } else { + return gameInfoBuilder_.getMessage(); + } + } + public Builder setGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { + if (gameInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gameInfo_ = value; + onChanged(); + } else { + gameInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + public Builder setGameInfo( + de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder builderForValue) { + if (gameInfoBuilder_ == null) { + gameInfo_ = builderForValue.build(); + onChanged(); + } else { + gameInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + public Builder mergeGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { + if (gameInfoBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + gameInfo_ != de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance()) { + gameInfo_ = + de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder(gameInfo_).mergeFrom(value).buildPartial(); + } else { + gameInfo_ = value; + } + onChanged(); + } else { + gameInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + public Builder clearGameInfo() { + if (gameInfoBuilder_ == null) { + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + onChanged(); + } else { + gameInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder getGameInfoBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGameInfoFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder getGameInfoOrBuilder() { + if (gameInfoBuilder_ != null) { + return gameInfoBuilder_.getMessageOrBuilder(); + } else { + return gameInfo_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.NetGameInfo, de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder, de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder> + getGameInfoFieldBuilder() { + if (gameInfoBuilder_ == null) { + gameInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.NetGameInfo, de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder, de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder>( + gameInfo_, + getParentForChildren(), + isClean()); + gameInfo_ = null; + } + return gameInfoBuilder_; + } + + // optional string password = 2; + private java.lang.Object password_ = ""; + public boolean hasPassword() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + password_ = s; + return s; + } else { + return (String) ref; + } + } + public Builder setPassword(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + password_ = value; + onChanged(); + return this; + } + public Builder clearPassword() { + bitField0_ = (bitField0_ & ~0x00000002); + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + void setPassword(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000002; + password_ = value; + onChanged(); + } + + // optional bool autoLeave = 3; + private boolean autoLeave_ ; + public boolean hasAutoLeave() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public boolean getAutoLeave() { + return autoLeave_; + } + public Builder setAutoLeave(boolean value) { + bitField0_ |= 0x00000004; + autoLeave_ = value; + onChanged(); + return this; + } + public Builder clearAutoLeave() { + bitField0_ = (bitField0_ & ~0x00000004); + autoLeave_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:JoinNewGameMessage) + } + + static { + defaultInstance = new JoinNewGameMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:JoinNewGameMessage) + } + + public interface RejoinExistingGameMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // optional bool autoLeave = 2; + boolean hasAutoLeave(); + boolean getAutoLeave(); + } + public static final class RejoinExistingGameMessage extends + com.google.protobuf.GeneratedMessage + implements RejoinExistingGameMessageOrBuilder { + // Use RejoinExistingGameMessage.newBuilder() to construct. + private RejoinExistingGameMessage(Builder builder) { + super(builder); + } + private RejoinExistingGameMessage(boolean noInit) {} + + private static final RejoinExistingGameMessage defaultInstance; + public static RejoinExistingGameMessage getDefaultInstance() { + return defaultInstance; + } + + public RejoinExistingGameMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_RejoinExistingGameMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_RejoinExistingGameMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // optional bool autoLeave = 2; + public static final int AUTOLEAVE_FIELD_NUMBER = 2; + private boolean autoLeave_; + public boolean hasAutoLeave() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public boolean getAutoLeave() { + return autoLeave_; + } + + private void initFields() { + gameId_ = 0; + autoLeave_ = false; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBool(2, autoLeave_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, autoLeave_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_RejoinExistingGameMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_RejoinExistingGameMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + autoLeave_ = false; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage build() { + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage result = new de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.autoLeave_ = autoLeave_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasAutoLeave()) { + setAutoLeave(other.getAutoLeave()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + autoLeave_ = input.readBool(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // optional bool autoLeave = 2; + private boolean autoLeave_ ; + public boolean hasAutoLeave() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public boolean getAutoLeave() { + return autoLeave_; + } + public Builder setAutoLeave(boolean value) { + bitField0_ |= 0x00000002; + autoLeave_ = value; + onChanged(); + return this; + } + public Builder clearAutoLeave() { + bitField0_ = (bitField0_ & ~0x00000002); + autoLeave_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:RejoinExistingGameMessage) + } + + static { + defaultInstance = new RejoinExistingGameMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:RejoinExistingGameMessage) + } + + public interface JoinGameAckMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required bool areYouGameAdmin = 2; + boolean hasAreYouGameAdmin(); + boolean getAreYouGameAdmin(); + + // required .NetGameInfo gameInfo = 3; + boolean hasGameInfo(); + de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo(); + de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder getGameInfoOrBuilder(); + } + public static final class JoinGameAckMessage extends + com.google.protobuf.GeneratedMessage + implements JoinGameAckMessageOrBuilder { + // Use JoinGameAckMessage.newBuilder() to construct. + private JoinGameAckMessage(Builder builder) { + super(builder); + } + private JoinGameAckMessage(boolean noInit) {} + + private static final JoinGameAckMessage defaultInstance; + public static JoinGameAckMessage getDefaultInstance() { + return defaultInstance; + } + + public JoinGameAckMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_JoinGameAckMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_JoinGameAckMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required bool areYouGameAdmin = 2; + public static final int AREYOUGAMEADMIN_FIELD_NUMBER = 2; + private boolean areYouGameAdmin_; + public boolean hasAreYouGameAdmin() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public boolean getAreYouGameAdmin() { + return areYouGameAdmin_; + } + + // required .NetGameInfo gameInfo = 3; + public static final int GAMEINFO_FIELD_NUMBER = 3; + private de.pokerth.protocol.ProtoBuf.NetGameInfo gameInfo_; + public boolean hasGameInfo() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { + return gameInfo_; + } + public de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder getGameInfoOrBuilder() { + return gameInfo_; + } + + private void initFields() { + gameId_ = 0; + areYouGameAdmin_ = false; + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAreYouGameAdmin()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasGameInfo()) { + memoizedIsInitialized = 0; + return false; + } + if (!getGameInfo().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBool(2, areYouGameAdmin_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, gameInfo_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, areYouGameAdmin_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, gameInfo_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.JoinGameAckMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.JoinGameAckMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_JoinGameAckMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_JoinGameAckMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getGameInfoFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + areYouGameAdmin_ = false; + bitField0_ = (bitField0_ & ~0x00000002); + if (gameInfoBuilder_ == null) { + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + } else { + gameInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.JoinGameAckMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.JoinGameAckMessage build() { + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.JoinGameAckMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.JoinGameAckMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage result = new de.pokerth.protocol.ProtoBuf.JoinGameAckMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.areYouGameAdmin_ = areYouGameAdmin_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (gameInfoBuilder_ == null) { + result.gameInfo_ = gameInfo_; + } else { + result.gameInfo_ = gameInfoBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.JoinGameAckMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.JoinGameAckMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.JoinGameAckMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasAreYouGameAdmin()) { + setAreYouGameAdmin(other.getAreYouGameAdmin()); + } + if (other.hasGameInfo()) { + mergeGameInfo(other.getGameInfo()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasAreYouGameAdmin()) { + + return false; + } + if (!hasGameInfo()) { + + return false; + } + if (!getGameInfo().isInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + areYouGameAdmin_ = input.readBool(); + break; + } + case 26: { + de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder subBuilder = de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder(); + if (hasGameInfo()) { + subBuilder.mergeFrom(getGameInfo()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameInfo(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required bool areYouGameAdmin = 2; + private boolean areYouGameAdmin_ ; + public boolean hasAreYouGameAdmin() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public boolean getAreYouGameAdmin() { + return areYouGameAdmin_; + } + public Builder setAreYouGameAdmin(boolean value) { + bitField0_ |= 0x00000002; + areYouGameAdmin_ = value; + onChanged(); + return this; + } + public Builder clearAreYouGameAdmin() { + bitField0_ = (bitField0_ & ~0x00000002); + areYouGameAdmin_ = false; + onChanged(); + return this; + } + + // required .NetGameInfo gameInfo = 3; + private de.pokerth.protocol.ProtoBuf.NetGameInfo gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.NetGameInfo, de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder, de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder> gameInfoBuilder_; + public boolean hasGameInfo() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { + if (gameInfoBuilder_ == null) { + return gameInfo_; + } else { + return gameInfoBuilder_.getMessage(); + } + } + public Builder setGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { + if (gameInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gameInfo_ = value; + onChanged(); + } else { + gameInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + public Builder setGameInfo( + de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder builderForValue) { + if (gameInfoBuilder_ == null) { + gameInfo_ = builderForValue.build(); + onChanged(); + } else { + gameInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + public Builder mergeGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { + if (gameInfoBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + gameInfo_ != de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance()) { + gameInfo_ = + de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder(gameInfo_).mergeFrom(value).buildPartial(); + } else { + gameInfo_ = value; + } + onChanged(); + } else { + gameInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + public Builder clearGameInfo() { + if (gameInfoBuilder_ == null) { + gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + onChanged(); + } else { + gameInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + public de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder getGameInfoBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getGameInfoFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder getGameInfoOrBuilder() { + if (gameInfoBuilder_ != null) { + return gameInfoBuilder_.getMessageOrBuilder(); + } else { + return gameInfo_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.NetGameInfo, de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder, de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder> + getGameInfoFieldBuilder() { + if (gameInfoBuilder_ == null) { + gameInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.NetGameInfo, de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder, de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder>( + gameInfo_, + getParentForChildren(), + isClean()); + gameInfo_ = null; + } + return gameInfoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:JoinGameAckMessage) + } + + static { + defaultInstance = new JoinGameAckMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:JoinGameAckMessage) + } + + public interface JoinGameFailedMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; + boolean hasJoinGameFailureReason(); + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason getJoinGameFailureReason(); + } + public static final class JoinGameFailedMessage extends + com.google.protobuf.GeneratedMessage + implements JoinGameFailedMessageOrBuilder { + // Use JoinGameFailedMessage.newBuilder() to construct. + private JoinGameFailedMessage(Builder builder) { + super(builder); + } + private JoinGameFailedMessage(boolean noInit) {} + + private static final JoinGameFailedMessage defaultInstance; + public static JoinGameFailedMessage getDefaultInstance() { + return defaultInstance; + } + + public JoinGameFailedMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_JoinGameFailedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_JoinGameFailedMessage_fieldAccessorTable; + } + + public enum JoinGameFailureReason + implements com.google.protobuf.ProtocolMessageEnum { + invalidGame(0, 1), + gameIsFull(1, 2), + gameIsRunning(2, 3), + invalidPassword(3, 4), + notAllowedAsGuest(4, 5), + notInvited(5, 6), + gameNameInUse(6, 7), + badGameName(7, 8), + invalidSettings(8, 9), + ipAddressBlocked(9, 10), + rejoinFailed(10, 11), + ; + + public static final int invalidGame_VALUE = 1; + public static final int gameIsFull_VALUE = 2; + public static final int gameIsRunning_VALUE = 3; + public static final int invalidPassword_VALUE = 4; + public static final int notAllowedAsGuest_VALUE = 5; + public static final int notInvited_VALUE = 6; + public static final int gameNameInUse_VALUE = 7; + public static final int badGameName_VALUE = 8; + public static final int invalidSettings_VALUE = 9; + public static final int ipAddressBlocked_VALUE = 10; + public static final int rejoinFailed_VALUE = 11; + + + public final int getNumber() { return value; } + + public static JoinGameFailureReason valueOf(int value) { + switch (value) { + case 1: return invalidGame; + case 2: return gameIsFull; + case 3: return gameIsRunning; + case 4: return invalidPassword; + case 5: return notAllowedAsGuest; + case 6: return notInvited; + case 7: return gameNameInUse; + case 8: return badGameName; + case 9: return invalidSettings; + case 10: return ipAddressBlocked; + case 11: return rejoinFailed; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JoinGameFailureReason findValueByNumber(int number) { + return JoinGameFailureReason.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 de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final JoinGameFailureReason[] VALUES = { + invalidGame, gameIsFull, gameIsRunning, invalidPassword, notAllowedAsGuest, notInvited, gameNameInUse, badGameName, invalidSettings, ipAddressBlocked, rejoinFailed, + }; + + public static JoinGameFailureReason 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 JoinGameFailureReason(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:JoinGameFailedMessage.JoinGameFailureReason) + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; + public static final int JOINGAMEFAILUREREASON_FIELD_NUMBER = 2; + private de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason_; + public boolean hasJoinGameFailureReason() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason getJoinGameFailureReason() { + return joinGameFailureReason_; + } + + private void initFields() { + gameId_ = 0; + joinGameFailureReason_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason.invalidGame; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasJoinGameFailureReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, joinGameFailureReason_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, joinGameFailureReason_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.JoinGameFailedMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_JoinGameFailedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_JoinGameFailedMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + joinGameFailureReason_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason.invalidGame; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage build() { + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage result = new de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.joinGameFailureReason_ = joinGameFailureReason_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasJoinGameFailureReason()) { + setJoinGameFailureReason(other.getJoinGameFailureReason()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasJoinGameFailureReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason value = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + joinGameFailureReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; + private de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason.invalidGame; + public boolean hasJoinGameFailureReason() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason getJoinGameFailureReason() { + return joinGameFailureReason_; + } + public Builder setJoinGameFailureReason(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + joinGameFailureReason_ = value; + onChanged(); + return this; + } + public Builder clearJoinGameFailureReason() { + bitField0_ = (bitField0_ & ~0x00000002); + joinGameFailureReason_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason.invalidGame; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:JoinGameFailedMessage) + } + + static { + defaultInstance = new JoinGameFailedMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:JoinGameFailedMessage) + } + + public interface GamePlayerJoinedMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 playerId = 2; + boolean hasPlayerId(); + int getPlayerId(); + + // required bool isGameAdmin = 3; + boolean hasIsGameAdmin(); + boolean getIsGameAdmin(); + } + public static final class GamePlayerJoinedMessage extends + com.google.protobuf.GeneratedMessage + implements GamePlayerJoinedMessageOrBuilder { + // Use GamePlayerJoinedMessage.newBuilder() to construct. + private GamePlayerJoinedMessage(Builder builder) { + super(builder); + } + private GamePlayerJoinedMessage(boolean noInit) {} + + private static final GamePlayerJoinedMessage defaultInstance; + public static GamePlayerJoinedMessage getDefaultInstance() { + return defaultInstance; + } + + public GamePlayerJoinedMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GamePlayerJoinedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GamePlayerJoinedMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 playerId = 2; + public static final int PLAYERID_FIELD_NUMBER = 2; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + + // required bool isGameAdmin = 3; + public static final int ISGAMEADMIN_FIELD_NUMBER = 3; + private boolean isGameAdmin_; + public boolean hasIsGameAdmin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public boolean getIsGameAdmin() { + return isGameAdmin_; + } + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + isGameAdmin_ = false; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasIsGameAdmin()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, playerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBool(3, isGameAdmin_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, playerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, isGameAdmin_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GamePlayerJoinedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GamePlayerJoinedMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + isGameAdmin_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage build() { + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage result = new de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.isGameAdmin_ = isGameAdmin_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasIsGameAdmin()) { + setIsGameAdmin(other.getIsGameAdmin()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + if (!hasIsGameAdmin()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + isGameAdmin_ = input.readBool(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 playerId = 2; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000002; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + onChanged(); + return this; + } + + // required bool isGameAdmin = 3; + private boolean isGameAdmin_ ; + public boolean hasIsGameAdmin() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public boolean getIsGameAdmin() { + return isGameAdmin_; + } + public Builder setIsGameAdmin(boolean value) { + bitField0_ |= 0x00000004; + isGameAdmin_ = value; + onChanged(); + return this; + } + public Builder clearIsGameAdmin() { + bitField0_ = (bitField0_ & ~0x00000004); + isGameAdmin_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:GamePlayerJoinedMessage) + } + + static { + defaultInstance = new GamePlayerJoinedMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:GamePlayerJoinedMessage) + } + + public interface GamePlayerLeftMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 playerId = 2; + boolean hasPlayerId(); + int getPlayerId(); + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; + boolean hasGamePlayerLeftReason(); + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason getGamePlayerLeftReason(); + } + public static final class GamePlayerLeftMessage extends + com.google.protobuf.GeneratedMessage + implements GamePlayerLeftMessageOrBuilder { + // Use GamePlayerLeftMessage.newBuilder() to construct. + private GamePlayerLeftMessage(Builder builder) { + super(builder); + } + private GamePlayerLeftMessage(boolean noInit) {} + + private static final GamePlayerLeftMessage defaultInstance; + public static GamePlayerLeftMessage getDefaultInstance() { + return defaultInstance; + } + + public GamePlayerLeftMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GamePlayerLeftMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GamePlayerLeftMessage_fieldAccessorTable; + } + + public enum GamePlayerLeftReason + implements com.google.protobuf.ProtocolMessageEnum { + leftOnRequest(0, 0), + leftKicked(1, 1), + leftError(2, 2), + ; + + public static final int leftOnRequest_VALUE = 0; + public static final int leftKicked_VALUE = 1; + public static final int leftError_VALUE = 2; + + + public final int getNumber() { return value; } + + public static GamePlayerLeftReason valueOf(int value) { + switch (value) { + case 0: return leftOnRequest; + case 1: return leftKicked; + case 2: return leftError; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GamePlayerLeftReason findValueByNumber(int number) { + return GamePlayerLeftReason.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 de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final GamePlayerLeftReason[] VALUES = { + leftOnRequest, leftKicked, leftError, + }; + + public static GamePlayerLeftReason 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 GamePlayerLeftReason(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:GamePlayerLeftMessage.GamePlayerLeftReason) + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 playerId = 2; + public static final int PLAYERID_FIELD_NUMBER = 2; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; + public static final int GAMEPLAYERLEFTREASON_FIELD_NUMBER = 3; + private de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason_; + public boolean hasGamePlayerLeftReason() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason getGamePlayerLeftReason() { + return gamePlayerLeftReason_; + } + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + gamePlayerLeftReason_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasGamePlayerLeftReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, playerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, gamePlayerLeftReason_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, playerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, gamePlayerLeftReason_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GamePlayerLeftMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GamePlayerLeftMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + gamePlayerLeftReason_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage build() { + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage result = new de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.gamePlayerLeftReason_ = gamePlayerLeftReason_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasGamePlayerLeftReason()) { + setGamePlayerLeftReason(other.getGamePlayerLeftReason()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + if (!hasGamePlayerLeftReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason value = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(3, rawValue); + } else { + bitField0_ |= 0x00000004; + gamePlayerLeftReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 playerId = 2; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000002; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + onChanged(); + return this; + } + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; + private de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest; + public boolean hasGamePlayerLeftReason() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason getGamePlayerLeftReason() { + return gamePlayerLeftReason_; + } + public Builder setGamePlayerLeftReason(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + gamePlayerLeftReason_ = value; + onChanged(); + return this; + } + public Builder clearGamePlayerLeftReason() { + bitField0_ = (bitField0_ & ~0x00000004); + gamePlayerLeftReason_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:GamePlayerLeftMessage) + } + + static { + defaultInstance = new GamePlayerLeftMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:GamePlayerLeftMessage) + } + + public interface GameAdminChangedMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 newAdminPlayerId = 2; + boolean hasNewAdminPlayerId(); + int getNewAdminPlayerId(); + } + public static final class GameAdminChangedMessage extends + com.google.protobuf.GeneratedMessage + implements GameAdminChangedMessageOrBuilder { + // Use GameAdminChangedMessage.newBuilder() to construct. + private GameAdminChangedMessage(Builder builder) { + super(builder); + } + private GameAdminChangedMessage(boolean noInit) {} + + private static final GameAdminChangedMessage defaultInstance; + public static GameAdminChangedMessage getDefaultInstance() { + return defaultInstance; + } + + public GameAdminChangedMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameAdminChangedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameAdminChangedMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 newAdminPlayerId = 2; + public static final int NEWADMINPLAYERID_FIELD_NUMBER = 2; + private int newAdminPlayerId_; + public boolean hasNewAdminPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getNewAdminPlayerId() { + return newAdminPlayerId_; + } + + private void initFields() { + gameId_ = 0; + newAdminPlayerId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNewAdminPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, newAdminPlayerId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, newAdminPlayerId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.GameAdminChangedMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameAdminChangedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameAdminChangedMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + newAdminPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage build() { + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage result = new de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.newAdminPlayerId_ = newAdminPlayerId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasNewAdminPlayerId()) { + setNewAdminPlayerId(other.getNewAdminPlayerId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasNewAdminPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + newAdminPlayerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 newAdminPlayerId = 2; + private int newAdminPlayerId_ ; + public boolean hasNewAdminPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getNewAdminPlayerId() { + return newAdminPlayerId_; + } + public Builder setNewAdminPlayerId(int value) { + bitField0_ |= 0x00000002; + newAdminPlayerId_ = value; + onChanged(); + return this; + } + public Builder clearNewAdminPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + newAdminPlayerId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:GameAdminChangedMessage) + } + + static { + defaultInstance = new GameAdminChangedMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:GameAdminChangedMessage) + } + + public interface RemovedFromGameMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; + boolean hasRemovedFromGameReason(); + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason getRemovedFromGameReason(); + } + public static final class RemovedFromGameMessage extends + com.google.protobuf.GeneratedMessage + implements RemovedFromGameMessageOrBuilder { + // Use RemovedFromGameMessage.newBuilder() to construct. + private RemovedFromGameMessage(Builder builder) { + super(builder); + } + private RemovedFromGameMessage(boolean noInit) {} + + private static final RemovedFromGameMessage defaultInstance; + public static RemovedFromGameMessage getDefaultInstance() { + return defaultInstance; + } + + public RemovedFromGameMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_RemovedFromGameMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_RemovedFromGameMessage_fieldAccessorTable; + } + + public enum RemovedFromGameReason + implements com.google.protobuf.ProtocolMessageEnum { + removedOnRequest(0, 0), + kickedFromGame(1, 1), + gameIsFull(2, 2), + gameIsRunning(3, 3), + gameTimeout(4, 4), + removedStartFailed(5, 5), + ; + + public static final int removedOnRequest_VALUE = 0; + public static final int kickedFromGame_VALUE = 1; + public static final int gameIsFull_VALUE = 2; + public static final int gameIsRunning_VALUE = 3; + public static final int gameTimeout_VALUE = 4; + public static final int removedStartFailed_VALUE = 5; + + + public final int getNumber() { return value; } + + public static RemovedFromGameReason valueOf(int value) { + switch (value) { + case 0: return removedOnRequest; + case 1: return kickedFromGame; + case 2: return gameIsFull; + case 3: return gameIsRunning; + case 4: return gameTimeout; + case 5: return removedStartFailed; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RemovedFromGameReason findValueByNumber(int number) { + return RemovedFromGameReason.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 de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final RemovedFromGameReason[] VALUES = { + removedOnRequest, kickedFromGame, gameIsFull, gameIsRunning, gameTimeout, removedStartFailed, + }; + + public static RemovedFromGameReason 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 RemovedFromGameReason(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:RemovedFromGameMessage.RemovedFromGameReason) + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; + public static final int REMOVEDFROMGAMEREASON_FIELD_NUMBER = 2; + private de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason_; + public boolean hasRemovedFromGameReason() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason getRemovedFromGameReason() { + return removedFromGameReason_; + } + + private void initFields() { + gameId_ = 0; + removedFromGameReason_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason.removedOnRequest; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRemovedFromGameReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, removedFromGameReason_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, removedFromGameReason_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.RemovedFromGameMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_RemovedFromGameMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_RemovedFromGameMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + removedFromGameReason_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason.removedOnRequest; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage build() { + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage result = new de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.removedFromGameReason_ = removedFromGameReason_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasRemovedFromGameReason()) { + setRemovedFromGameReason(other.getRemovedFromGameReason()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasRemovedFromGameReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason value = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + removedFromGameReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; + private de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason.removedOnRequest; + public boolean hasRemovedFromGameReason() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason getRemovedFromGameReason() { + return removedFromGameReason_; + } + public Builder setRemovedFromGameReason(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + removedFromGameReason_ = value; + onChanged(); + return this; + } + public Builder clearRemovedFromGameReason() { + bitField0_ = (bitField0_ & ~0x00000002); + removedFromGameReason_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason.removedOnRequest; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:RemovedFromGameMessage) + } + + static { + defaultInstance = new RemovedFromGameMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:RemovedFromGameMessage) + } + + public interface KickPlayerRequestMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 playerId = 2; + boolean hasPlayerId(); + int getPlayerId(); + } + public static final class KickPlayerRequestMessage extends + com.google.protobuf.GeneratedMessage + implements KickPlayerRequestMessageOrBuilder { + // Use KickPlayerRequestMessage.newBuilder() to construct. + private KickPlayerRequestMessage(Builder builder) { + super(builder); + } + private KickPlayerRequestMessage(boolean noInit) {} + + private static final KickPlayerRequestMessage defaultInstance; + public static KickPlayerRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public KickPlayerRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_KickPlayerRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_KickPlayerRequestMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 playerId = 2; + public static final int PLAYERID_FIELD_NUMBER = 2; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, playerId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, playerId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_KickPlayerRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_KickPlayerRequestMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage build() { + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage result = new de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 playerId = 2; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000002; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:KickPlayerRequestMessage) + } + + static { + defaultInstance = new KickPlayerRequestMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:KickPlayerRequestMessage) + } + + public interface LeaveGameRequestMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + } + public static final class LeaveGameRequestMessage extends + com.google.protobuf.GeneratedMessage + implements LeaveGameRequestMessageOrBuilder { + // Use LeaveGameRequestMessage.newBuilder() to construct. + private LeaveGameRequestMessage(Builder builder) { + super(builder); + } + private LeaveGameRequestMessage(boolean noInit) {} + + private static final LeaveGameRequestMessage defaultInstance; + public static LeaveGameRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public LeaveGameRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_LeaveGameRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_LeaveGameRequestMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + private void initFields() { + gameId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_LeaveGameRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_LeaveGameRequestMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage build() { + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage result = new de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:LeaveGameRequestMessage) + } + + static { + defaultInstance = new LeaveGameRequestMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:LeaveGameRequestMessage) + } + + public interface InvitePlayerToGameMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 playerId = 2; + boolean hasPlayerId(); + int getPlayerId(); + } + public static final class InvitePlayerToGameMessage extends + com.google.protobuf.GeneratedMessage + implements InvitePlayerToGameMessageOrBuilder { + // Use InvitePlayerToGameMessage.newBuilder() to construct. + private InvitePlayerToGameMessage(Builder builder) { + super(builder); + } + private InvitePlayerToGameMessage(boolean noInit) {} + + private static final InvitePlayerToGameMessage defaultInstance; + public static InvitePlayerToGameMessage getDefaultInstance() { + return defaultInstance; + } + + public InvitePlayerToGameMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_InvitePlayerToGameMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_InvitePlayerToGameMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 playerId = 2; + public static final int PLAYERID_FIELD_NUMBER = 2; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, playerId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, playerId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_InvitePlayerToGameMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_InvitePlayerToGameMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage build() { + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage result = new de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 playerId = 2; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000002; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:InvitePlayerToGameMessage) + } + + static { + defaultInstance = new InvitePlayerToGameMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:InvitePlayerToGameMessage) + } + + public interface InviteNotifyMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 playerIdWho = 2; + boolean hasPlayerIdWho(); + int getPlayerIdWho(); + + // required uint32 playerIdByWhom = 3; + boolean hasPlayerIdByWhom(); + int getPlayerIdByWhom(); + } + public static final class InviteNotifyMessage extends + com.google.protobuf.GeneratedMessage + implements InviteNotifyMessageOrBuilder { + // Use InviteNotifyMessage.newBuilder() to construct. + private InviteNotifyMessage(Builder builder) { + super(builder); + } + private InviteNotifyMessage(boolean noInit) {} + + private static final InviteNotifyMessage defaultInstance; + public static InviteNotifyMessage getDefaultInstance() { + return defaultInstance; + } + + public InviteNotifyMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_InviteNotifyMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_InviteNotifyMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 playerIdWho = 2; + public static final int PLAYERIDWHO_FIELD_NUMBER = 2; + private int playerIdWho_; + public boolean hasPlayerIdWho() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerIdWho() { + return playerIdWho_; + } + + // required uint32 playerIdByWhom = 3; + public static final int PLAYERIDBYWHOM_FIELD_NUMBER = 3; + private int playerIdByWhom_; + public boolean hasPlayerIdByWhom() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getPlayerIdByWhom() { + return playerIdByWhom_; + } + + private void initFields() { + gameId_ = 0; + playerIdWho_ = 0; + playerIdByWhom_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerIdWho()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerIdByWhom()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, playerIdWho_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, playerIdByWhom_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, playerIdWho_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, playerIdByWhom_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.InviteNotifyMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.InviteNotifyMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_InviteNotifyMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_InviteNotifyMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerIdWho_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + playerIdByWhom_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.InviteNotifyMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.InviteNotifyMessage build() { + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.InviteNotifyMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.InviteNotifyMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage result = new de.pokerth.protocol.ProtoBuf.InviteNotifyMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerIdWho_ = playerIdWho_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.playerIdByWhom_ = playerIdByWhom_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.InviteNotifyMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.InviteNotifyMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.InviteNotifyMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerIdWho()) { + setPlayerIdWho(other.getPlayerIdWho()); + } + if (other.hasPlayerIdByWhom()) { + setPlayerIdByWhom(other.getPlayerIdByWhom()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerIdWho()) { + + return false; + } + if (!hasPlayerIdByWhom()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerIdWho_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + playerIdByWhom_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 playerIdWho = 2; + private int playerIdWho_ ; + public boolean hasPlayerIdWho() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerIdWho() { + return playerIdWho_; + } + public Builder setPlayerIdWho(int value) { + bitField0_ |= 0x00000002; + playerIdWho_ = value; + onChanged(); + return this; + } + public Builder clearPlayerIdWho() { + bitField0_ = (bitField0_ & ~0x00000002); + playerIdWho_ = 0; + onChanged(); + return this; + } + + // required uint32 playerIdByWhom = 3; + private int playerIdByWhom_ ; + public boolean hasPlayerIdByWhom() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getPlayerIdByWhom() { + return playerIdByWhom_; + } + public Builder setPlayerIdByWhom(int value) { + bitField0_ |= 0x00000004; + playerIdByWhom_ = value; + onChanged(); + return this; + } + public Builder clearPlayerIdByWhom() { + bitField0_ = (bitField0_ & ~0x00000004); + playerIdByWhom_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:InviteNotifyMessage) + } + + static { + defaultInstance = new InviteNotifyMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:InviteNotifyMessage) + } + + public interface RejectGameInvitationMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; + boolean hasMyRejectReason(); + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason getMyRejectReason(); + } + public static final class RejectGameInvitationMessage extends + com.google.protobuf.GeneratedMessage + implements RejectGameInvitationMessageOrBuilder { + // Use RejectGameInvitationMessage.newBuilder() to construct. + private RejectGameInvitationMessage(Builder builder) { + super(builder); + } + private RejectGameInvitationMessage(boolean noInit) {} + + private static final RejectGameInvitationMessage defaultInstance; + public static RejectGameInvitationMessage getDefaultInstance() { + return defaultInstance; + } + + public RejectGameInvitationMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_RejectGameInvitationMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_RejectGameInvitationMessage_fieldAccessorTable; + } + + public enum RejectGameInvReason + implements com.google.protobuf.ProtocolMessageEnum { + rejectReasonNo(0, 0), + rejectReasonBusy(1, 1), + ; + + public static final int rejectReasonNo_VALUE = 0; + public static final int rejectReasonBusy_VALUE = 1; + + + public final int getNumber() { return value; } + + public static RejectGameInvReason valueOf(int value) { + switch (value) { + case 0: return rejectReasonNo; + case 1: return rejectReasonBusy; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RejectGameInvReason findValueByNumber(int number) { + return RejectGameInvReason.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 de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final RejectGameInvReason[] VALUES = { + rejectReasonNo, rejectReasonBusy, + }; + + public static RejectGameInvReason 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 RejectGameInvReason(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:RejectGameInvitationMessage.RejectGameInvReason) + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; + public static final int MYREJECTREASON_FIELD_NUMBER = 2; + private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason myRejectReason_; + public boolean hasMyRejectReason() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason getMyRejectReason() { + return myRejectReason_; + } + + private void initFields() { + gameId_ = 0; + myRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMyRejectReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, myRejectReason_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, myRejectReason_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_RejectGameInvitationMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_RejectGameInvitationMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + myRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage build() { + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage result = new de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.myRejectReason_ = myRejectReason_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasMyRejectReason()) { + setMyRejectReason(other.getMyRejectReason()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasMyRejectReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason value = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + myRejectReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; + private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason myRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; + public boolean hasMyRejectReason() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason getMyRejectReason() { + return myRejectReason_; + } + public Builder setMyRejectReason(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + myRejectReason_ = value; + onChanged(); + return this; + } + public Builder clearMyRejectReason() { + bitField0_ = (bitField0_ & ~0x00000002); + myRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:RejectGameInvitationMessage) + } + + static { + defaultInstance = new RejectGameInvitationMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:RejectGameInvitationMessage) + } + + public interface RejectInvNotifyMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 playerId = 2; + boolean hasPlayerId(); + int getPlayerId(); + + // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; + boolean hasPlayerRejectReason(); + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason getPlayerRejectReason(); + } + public static final class RejectInvNotifyMessage extends + com.google.protobuf.GeneratedMessage + implements RejectInvNotifyMessageOrBuilder { + // Use RejectInvNotifyMessage.newBuilder() to construct. + private RejectInvNotifyMessage(Builder builder) { + super(builder); + } + private RejectInvNotifyMessage(boolean noInit) {} + + private static final RejectInvNotifyMessage defaultInstance; + public static RejectInvNotifyMessage getDefaultInstance() { + return defaultInstance; + } + + public RejectInvNotifyMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_RejectInvNotifyMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_RejectInvNotifyMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 playerId = 2; + public static final int PLAYERID_FIELD_NUMBER = 2; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + + // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; + public static final int PLAYERREJECTREASON_FIELD_NUMBER = 3; + private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason playerRejectReason_; + public boolean hasPlayerRejectReason() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason getPlayerRejectReason() { + return playerRejectReason_; + } + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + playerRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerRejectReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, playerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, playerRejectReason_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, playerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, playerRejectReason_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_RejectInvNotifyMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_RejectInvNotifyMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + playerRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage build() { + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage result = new de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.playerRejectReason_ = playerRejectReason_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasPlayerRejectReason()) { + setPlayerRejectReason(other.getPlayerRejectReason()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + if (!hasPlayerRejectReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason value = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(3, rawValue); + } else { + bitField0_ |= 0x00000004; + playerRejectReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 playerId = 2; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000002; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + onChanged(); + return this; + } + + // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; + private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason playerRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; + public boolean hasPlayerRejectReason() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason getPlayerRejectReason() { + return playerRejectReason_; + } + public Builder setPlayerRejectReason(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + playerRejectReason_ = value; + onChanged(); + return this; + } + public Builder clearPlayerRejectReason() { + bitField0_ = (bitField0_ & ~0x00000004); + playerRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:RejectInvNotifyMessage) + } + + static { + defaultInstance = new RejectInvNotifyMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:RejectInvNotifyMessage) + } + + public interface StartEventMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required .StartEventMessage.StartEventType startEventType = 2; + boolean hasStartEventType(); + de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType getStartEventType(); + + // optional bool fillWithComputerPlayers = 3; + boolean hasFillWithComputerPlayers(); + boolean getFillWithComputerPlayers(); + } + public static final class StartEventMessage extends + com.google.protobuf.GeneratedMessage + implements StartEventMessageOrBuilder { + // Use StartEventMessage.newBuilder() to construct. + private StartEventMessage(Builder builder) { + super(builder); + } + private StartEventMessage(boolean noInit) {} + + private static final StartEventMessage defaultInstance; + public static StartEventMessage getDefaultInstance() { + return defaultInstance; + } + + public StartEventMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_StartEventMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_StartEventMessage_fieldAccessorTable; + } + + public enum StartEventType + implements com.google.protobuf.ProtocolMessageEnum { + startEvent(0, 0), + rejoinEvent(1, 1), + ; + + public static final int startEvent_VALUE = 0; + public static final int rejoinEvent_VALUE = 1; + + + public final int getNumber() { return value; } + + public static StartEventType valueOf(int value) { + switch (value) { + case 0: return startEvent; + case 1: return rejoinEvent; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StartEventType findValueByNumber(int number) { + return StartEventType.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 de.pokerth.protocol.ProtoBuf.StartEventMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final StartEventType[] VALUES = { + startEvent, rejoinEvent, + }; + + public static StartEventType 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 StartEventType(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:StartEventMessage.StartEventType) + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required .StartEventMessage.StartEventType startEventType = 2; + public static final int STARTEVENTTYPE_FIELD_NUMBER = 2; + private de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType startEventType_; + public boolean hasStartEventType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType getStartEventType() { + return startEventType_; + } + + // optional bool fillWithComputerPlayers = 3; + public static final int FILLWITHCOMPUTERPLAYERS_FIELD_NUMBER = 3; + private boolean fillWithComputerPlayers_; + public boolean hasFillWithComputerPlayers() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public boolean getFillWithComputerPlayers() { + return fillWithComputerPlayers_; + } + + private void initFields() { + gameId_ = 0; + startEventType_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType.startEvent; + fillWithComputerPlayers_ = false; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStartEventType()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, startEventType_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBool(3, fillWithComputerPlayers_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, startEventType_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, fillWithComputerPlayers_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.StartEventMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.StartEventMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_StartEventMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_StartEventMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.StartEventMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + startEventType_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType.startEvent; + bitField0_ = (bitField0_ & ~0x00000002); + fillWithComputerPlayers_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.StartEventMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.StartEventMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.StartEventMessage build() { + de.pokerth.protocol.ProtoBuf.StartEventMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.StartEventMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.StartEventMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.StartEventMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.StartEventMessage result = new de.pokerth.protocol.ProtoBuf.StartEventMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.startEventType_ = startEventType_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.fillWithComputerPlayers_ = fillWithComputerPlayers_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.StartEventMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.StartEventMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.StartEventMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasStartEventType()) { + setStartEventType(other.getStartEventType()); + } + if (other.hasFillWithComputerPlayers()) { + setFillWithComputerPlayers(other.getFillWithComputerPlayers()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasStartEventType()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType value = de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + startEventType_ = value; + } + break; + } + case 24: { + bitField0_ |= 0x00000004; + fillWithComputerPlayers_ = input.readBool(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required .StartEventMessage.StartEventType startEventType = 2; + private de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType startEventType_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType.startEvent; + public boolean hasStartEventType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType getStartEventType() { + return startEventType_; + } + public Builder setStartEventType(de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + startEventType_ = value; + onChanged(); + return this; + } + public Builder clearStartEventType() { + bitField0_ = (bitField0_ & ~0x00000002); + startEventType_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType.startEvent; + onChanged(); + return this; + } + + // optional bool fillWithComputerPlayers = 3; + private boolean fillWithComputerPlayers_ ; + public boolean hasFillWithComputerPlayers() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public boolean getFillWithComputerPlayers() { + return fillWithComputerPlayers_; + } + public Builder setFillWithComputerPlayers(boolean value) { + bitField0_ |= 0x00000004; + fillWithComputerPlayers_ = value; + onChanged(); + return this; + } + public Builder clearFillWithComputerPlayers() { + bitField0_ = (bitField0_ & ~0x00000004); + fillWithComputerPlayers_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:StartEventMessage) + } + + static { + defaultInstance = new StartEventMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:StartEventMessage) + } + + public interface StartEventAckMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + } + public static final class StartEventAckMessage extends + com.google.protobuf.GeneratedMessage + implements StartEventAckMessageOrBuilder { + // Use StartEventAckMessage.newBuilder() to construct. + private StartEventAckMessage(Builder builder) { + super(builder); + } + private StartEventAckMessage(boolean noInit) {} + + private static final StartEventAckMessage defaultInstance; + public static StartEventAckMessage getDefaultInstance() { + return defaultInstance; + } + + public StartEventAckMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_StartEventAckMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_StartEventAckMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + private void initFields() { + gameId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.StartEventAckMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.StartEventAckMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_StartEventAckMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_StartEventAckMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.StartEventAckMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.StartEventAckMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.StartEventAckMessage build() { + de.pokerth.protocol.ProtoBuf.StartEventAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.StartEventAckMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.StartEventAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.StartEventAckMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.StartEventAckMessage result = new de.pokerth.protocol.ProtoBuf.StartEventAckMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.StartEventAckMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.StartEventAckMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.StartEventAckMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:StartEventAckMessage) + } + + static { + defaultInstance = new StartEventAckMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:StartEventAckMessage) + } + + public interface GameStartInitialMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 startDealerPlayerId = 2; + boolean hasStartDealerPlayerId(); + int getStartDealerPlayerId(); + + // repeated uint32 playerSeats = 3 [packed = true]; + java.util.List getPlayerSeatsList(); + int getPlayerSeatsCount(); + int getPlayerSeats(int index); + } + public static final class GameStartInitialMessage extends + com.google.protobuf.GeneratedMessage + implements GameStartInitialMessageOrBuilder { + // Use GameStartInitialMessage.newBuilder() to construct. + private GameStartInitialMessage(Builder builder) { + super(builder); + } + private GameStartInitialMessage(boolean noInit) {} + + private static final GameStartInitialMessage defaultInstance; + public static GameStartInitialMessage getDefaultInstance() { + return defaultInstance; + } + + public GameStartInitialMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameStartInitialMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameStartInitialMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 startDealerPlayerId = 2; + public static final int STARTDEALERPLAYERID_FIELD_NUMBER = 2; + private int startDealerPlayerId_; + public boolean hasStartDealerPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getStartDealerPlayerId() { + return startDealerPlayerId_; + } + + // repeated uint32 playerSeats = 3 [packed = true]; + public static final int PLAYERSEATS_FIELD_NUMBER = 3; + private java.util.List playerSeats_; + public java.util.List + getPlayerSeatsList() { + return playerSeats_; + } + public int getPlayerSeatsCount() { + return playerSeats_.size(); + } + public int getPlayerSeats(int index) { + return playerSeats_.get(index); + } + private int playerSeatsMemoizedSerializedSize = -1; + + private void initFields() { + gameId_ = 0; + startDealerPlayerId_ = 0; + playerSeats_ = java.util.Collections.emptyList();; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStartDealerPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, startDealerPlayerId_); + } + if (getPlayerSeatsList().size() > 0) { + output.writeRawVarint32(26); + output.writeRawVarint32(playerSeatsMemoizedSerializedSize); + } + for (int i = 0; i < playerSeats_.size(); i++) { + output.writeUInt32NoTag(playerSeats_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, startDealerPlayerId_); + } + { + int dataSize = 0; + for (int i = 0; i < playerSeats_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(playerSeats_.get(i)); + } + size += dataSize; + if (!getPlayerSeatsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + playerSeatsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameStartInitialMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.GameStartInitialMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameStartInitialMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameStartInitialMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + startDealerPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + playerSeats_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.GameStartInitialMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameStartInitialMessage build() { + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameStartInitialMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameStartInitialMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage result = new de.pokerth.protocol.ProtoBuf.GameStartInitialMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.startDealerPlayerId_ = startDealerPlayerId_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + playerSeats_ = java.util.Collections.unmodifiableList(playerSeats_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.playerSeats_ = playerSeats_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.GameStartInitialMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.GameStartInitialMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameStartInitialMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasStartDealerPlayerId()) { + setStartDealerPlayerId(other.getStartDealerPlayerId()); + } + if (!other.playerSeats_.isEmpty()) { + if (playerSeats_.isEmpty()) { + playerSeats_ = other.playerSeats_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePlayerSeatsIsMutable(); + playerSeats_.addAll(other.playerSeats_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasStartDealerPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + startDealerPlayerId_ = input.readUInt32(); + break; + } + case 24: { + ensurePlayerSeatsIsMutable(); + playerSeats_.add(input.readUInt32()); + break; + } + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + addPlayerSeats(input.readUInt32()); + } + input.popLimit(limit); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 startDealerPlayerId = 2; + private int startDealerPlayerId_ ; + public boolean hasStartDealerPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getStartDealerPlayerId() { + return startDealerPlayerId_; + } + public Builder setStartDealerPlayerId(int value) { + bitField0_ |= 0x00000002; + startDealerPlayerId_ = value; + onChanged(); + return this; + } + public Builder clearStartDealerPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + startDealerPlayerId_ = 0; + onChanged(); + return this; + } + + // repeated uint32 playerSeats = 3 [packed = true]; + private java.util.List playerSeats_ = java.util.Collections.emptyList();; + private void ensurePlayerSeatsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + playerSeats_ = new java.util.ArrayList(playerSeats_); + bitField0_ |= 0x00000004; + } + } + public java.util.List + getPlayerSeatsList() { + return java.util.Collections.unmodifiableList(playerSeats_); + } + public int getPlayerSeatsCount() { + return playerSeats_.size(); + } + public int getPlayerSeats(int index) { + return playerSeats_.get(index); + } + public Builder setPlayerSeats( + int index, int value) { + ensurePlayerSeatsIsMutable(); + playerSeats_.set(index, value); + onChanged(); + return this; + } + public Builder addPlayerSeats(int value) { + ensurePlayerSeatsIsMutable(); + playerSeats_.add(value); + onChanged(); + return this; + } + public Builder addAllPlayerSeats( + java.lang.Iterable values) { + ensurePlayerSeatsIsMutable(); + super.addAll(values, playerSeats_); + onChanged(); + return this; + } + public Builder clearPlayerSeats() { + playerSeats_ = java.util.Collections.emptyList();; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:GameStartInitialMessage) + } + + static { + defaultInstance = new GameStartInitialMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:GameStartInitialMessage) + } + + public interface GameStartRejoinMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 startDealerPlayerId = 2; + boolean hasStartDealerPlayerId(); + int getStartDealerPlayerId(); + + // required uint32 handNum = 3; + boolean hasHandNum(); + int getHandNum(); + + // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; + java.util.List + getRejoinPlayerDataList(); + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData getRejoinPlayerData(int index); + int getRejoinPlayerDataCount(); + java.util.List + getRejoinPlayerDataOrBuilderList(); + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerDataOrBuilder getRejoinPlayerDataOrBuilder( + int index); + } + public static final class GameStartRejoinMessage extends + com.google.protobuf.GeneratedMessage + implements GameStartRejoinMessageOrBuilder { + // Use GameStartRejoinMessage.newBuilder() to construct. + private GameStartRejoinMessage(Builder builder) { + super(builder); + } + private GameStartRejoinMessage(boolean noInit) {} + + private static final GameStartRejoinMessage defaultInstance; + public static GameStartRejoinMessage getDefaultInstance() { + return defaultInstance; + } + + public GameStartRejoinMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameStartRejoinMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameStartRejoinMessage_fieldAccessorTable; + } + + public interface RejoinPlayerDataOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 playerId = 1; + boolean hasPlayerId(); + int getPlayerId(); + + // required uint32 playerMoney = 2; + boolean hasPlayerMoney(); + int getPlayerMoney(); + } + public static final class RejoinPlayerData extends + com.google.protobuf.GeneratedMessage + implements RejoinPlayerDataOrBuilder { + // Use RejoinPlayerData.newBuilder() to construct. + private RejoinPlayerData(Builder builder) { + super(builder); + } + private RejoinPlayerData(boolean noInit) {} + + private static final RejoinPlayerData defaultInstance; + public static RejoinPlayerData getDefaultInstance() { + return defaultInstance; + } + + public RejoinPlayerData getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameStartRejoinMessage_RejoinPlayerData_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameStartRejoinMessage_RejoinPlayerData_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 playerId = 1; + public static final int PLAYERID_FIELD_NUMBER = 1; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getPlayerId() { + return playerId_; + } + + // required uint32 playerMoney = 2; + public static final int PLAYERMONEY_FIELD_NUMBER = 2; + private int playerMoney_; + public boolean hasPlayerMoney() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerMoney() { + return playerMoney_; + } + + private void initFields() { + playerId_ = 0; + playerMoney_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerMoney()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, playerId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, playerMoney_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, playerId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, playerMoney_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameStartRejoinMessage_RejoinPlayerData_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameStartRejoinMessage_RejoinPlayerData_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerMoney_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData build() { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData buildPartial() { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData result = new de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerMoney_ = playerMoney_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData other) { + if (other == de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.getDefaultInstance()) return this; + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasPlayerMoney()) { + setPlayerMoney(other.getPlayerMoney()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasPlayerId()) { + + return false; + } + if (!hasPlayerMoney()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + playerId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerMoney_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 playerId = 1; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000001; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + onChanged(); + return this; + } + + // required uint32 playerMoney = 2; + private int playerMoney_ ; + public boolean hasPlayerMoney() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerMoney() { + return playerMoney_; + } + public Builder setPlayerMoney(int value) { + bitField0_ |= 0x00000002; + playerMoney_ = value; + onChanged(); + return this; + } + public Builder clearPlayerMoney() { + bitField0_ = (bitField0_ & ~0x00000002); + playerMoney_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:GameStartRejoinMessage.RejoinPlayerData) + } + + static { + defaultInstance = new RejoinPlayerData(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:GameStartRejoinMessage.RejoinPlayerData) + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 startDealerPlayerId = 2; + public static final int STARTDEALERPLAYERID_FIELD_NUMBER = 2; + private int startDealerPlayerId_; + public boolean hasStartDealerPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getStartDealerPlayerId() { + return startDealerPlayerId_; + } + + // required uint32 handNum = 3; + public static final int HANDNUM_FIELD_NUMBER = 3; + private int handNum_; + public boolean hasHandNum() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getHandNum() { + return handNum_; + } + + // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; + public static final int REJOINPLAYERDATA_FIELD_NUMBER = 4; + private java.util.List rejoinPlayerData_; + public java.util.List getRejoinPlayerDataList() { + return rejoinPlayerData_; + } + public java.util.List + getRejoinPlayerDataOrBuilderList() { + return rejoinPlayerData_; + } + public int getRejoinPlayerDataCount() { + return rejoinPlayerData_.size(); + } + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData getRejoinPlayerData(int index) { + return rejoinPlayerData_.get(index); + } + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerDataOrBuilder getRejoinPlayerDataOrBuilder( + int index) { + return rejoinPlayerData_.get(index); + } + + private void initFields() { + gameId_ = 0; + startDealerPlayerId_ = 0; + handNum_ = 0; + rejoinPlayerData_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStartDealerPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasHandNum()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getRejoinPlayerDataCount(); i++) { + if (!getRejoinPlayerData(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, startDealerPlayerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, handNum_); + } + for (int i = 0; i < rejoinPlayerData_.size(); i++) { + output.writeMessage(4, rejoinPlayerData_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, startDealerPlayerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, handNum_); + } + for (int i = 0; i < rejoinPlayerData_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, rejoinPlayerData_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.GameStartRejoinMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameStartRejoinMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_GameStartRejoinMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getRejoinPlayerDataFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + startDealerPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + handNum_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + if (rejoinPlayerDataBuilder_ == null) { + rejoinPlayerData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + rejoinPlayerDataBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage build() { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage result = new de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.startDealerPlayerId_ = startDealerPlayerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.handNum_ = handNum_; + if (rejoinPlayerDataBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + rejoinPlayerData_ = java.util.Collections.unmodifiableList(rejoinPlayerData_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.rejoinPlayerData_ = rejoinPlayerData_; + } else { + result.rejoinPlayerData_ = rejoinPlayerDataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasStartDealerPlayerId()) { + setStartDealerPlayerId(other.getStartDealerPlayerId()); + } + if (other.hasHandNum()) { + setHandNum(other.getHandNum()); + } + if (rejoinPlayerDataBuilder_ == null) { + if (!other.rejoinPlayerData_.isEmpty()) { + if (rejoinPlayerData_.isEmpty()) { + rejoinPlayerData_ = other.rejoinPlayerData_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureRejoinPlayerDataIsMutable(); + rejoinPlayerData_.addAll(other.rejoinPlayerData_); + } + onChanged(); + } + } else { + if (!other.rejoinPlayerData_.isEmpty()) { + if (rejoinPlayerDataBuilder_.isEmpty()) { + rejoinPlayerDataBuilder_.dispose(); + rejoinPlayerDataBuilder_ = null; + rejoinPlayerData_ = other.rejoinPlayerData_; + bitField0_ = (bitField0_ & ~0x00000008); + rejoinPlayerDataBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getRejoinPlayerDataFieldBuilder() : null; + } else { + rejoinPlayerDataBuilder_.addAllMessages(other.rejoinPlayerData_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasStartDealerPlayerId()) { + + return false; + } + if (!hasHandNum()) { + + return false; + } + for (int i = 0; i < getRejoinPlayerDataCount(); i++) { + if (!getRejoinPlayerData(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + startDealerPlayerId_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + handNum_ = input.readUInt32(); + break; + } + case 34: { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addRejoinPlayerData(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 startDealerPlayerId = 2; + private int startDealerPlayerId_ ; + public boolean hasStartDealerPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getStartDealerPlayerId() { + return startDealerPlayerId_; + } + public Builder setStartDealerPlayerId(int value) { + bitField0_ |= 0x00000002; + startDealerPlayerId_ = value; + onChanged(); + return this; + } + public Builder clearStartDealerPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + startDealerPlayerId_ = 0; + onChanged(); + return this; + } + + // required uint32 handNum = 3; + private int handNum_ ; + public boolean hasHandNum() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getHandNum() { + return handNum_; + } + public Builder setHandNum(int value) { + bitField0_ |= 0x00000004; + handNum_ = value; + onChanged(); + return this; + } + public Builder clearHandNum() { + bitField0_ = (bitField0_ & ~0x00000004); + handNum_ = 0; + onChanged(); + return this; + } + + // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; + private java.util.List rejoinPlayerData_ = + java.util.Collections.emptyList(); + private void ensureRejoinPlayerDataIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + rejoinPlayerData_ = new java.util.ArrayList(rejoinPlayerData_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerDataOrBuilder> rejoinPlayerDataBuilder_; + + public java.util.List getRejoinPlayerDataList() { + if (rejoinPlayerDataBuilder_ == null) { + return java.util.Collections.unmodifiableList(rejoinPlayerData_); + } else { + return rejoinPlayerDataBuilder_.getMessageList(); + } + } + public int getRejoinPlayerDataCount() { + if (rejoinPlayerDataBuilder_ == null) { + return rejoinPlayerData_.size(); + } else { + return rejoinPlayerDataBuilder_.getCount(); + } + } + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData getRejoinPlayerData(int index) { + if (rejoinPlayerDataBuilder_ == null) { + return rejoinPlayerData_.get(index); + } else { + return rejoinPlayerDataBuilder_.getMessage(index); + } + } + public Builder setRejoinPlayerData( + int index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData value) { + if (rejoinPlayerDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRejoinPlayerDataIsMutable(); + rejoinPlayerData_.set(index, value); + onChanged(); + } else { + rejoinPlayerDataBuilder_.setMessage(index, value); + } + return this; + } + public Builder setRejoinPlayerData( + int index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder builderForValue) { + if (rejoinPlayerDataBuilder_ == null) { + ensureRejoinPlayerDataIsMutable(); + rejoinPlayerData_.set(index, builderForValue.build()); + onChanged(); + } else { + rejoinPlayerDataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + public Builder addRejoinPlayerData(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData value) { + if (rejoinPlayerDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRejoinPlayerDataIsMutable(); + rejoinPlayerData_.add(value); + onChanged(); + } else { + rejoinPlayerDataBuilder_.addMessage(value); + } + return this; + } + public Builder addRejoinPlayerData( + int index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData value) { + if (rejoinPlayerDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRejoinPlayerDataIsMutable(); + rejoinPlayerData_.add(index, value); + onChanged(); + } else { + rejoinPlayerDataBuilder_.addMessage(index, value); + } + return this; + } + public Builder addRejoinPlayerData( + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder builderForValue) { + if (rejoinPlayerDataBuilder_ == null) { + ensureRejoinPlayerDataIsMutable(); + rejoinPlayerData_.add(builderForValue.build()); + onChanged(); + } else { + rejoinPlayerDataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addRejoinPlayerData( + int index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder builderForValue) { + if (rejoinPlayerDataBuilder_ == null) { + ensureRejoinPlayerDataIsMutable(); + rejoinPlayerData_.add(index, builderForValue.build()); + onChanged(); + } else { + rejoinPlayerDataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + public Builder addAllRejoinPlayerData( + java.lang.Iterable values) { + if (rejoinPlayerDataBuilder_ == null) { + ensureRejoinPlayerDataIsMutable(); + super.addAll(values, rejoinPlayerData_); + onChanged(); + } else { + rejoinPlayerDataBuilder_.addAllMessages(values); + } + return this; + } + public Builder clearRejoinPlayerData() { + if (rejoinPlayerDataBuilder_ == null) { + rejoinPlayerData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + rejoinPlayerDataBuilder_.clear(); + } + return this; + } + public Builder removeRejoinPlayerData(int index) { + if (rejoinPlayerDataBuilder_ == null) { + ensureRejoinPlayerDataIsMutable(); + rejoinPlayerData_.remove(index); + onChanged(); + } else { + rejoinPlayerDataBuilder_.remove(index); + } + return this; + } + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder getRejoinPlayerDataBuilder( + int index) { + return getRejoinPlayerDataFieldBuilder().getBuilder(index); + } + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerDataOrBuilder getRejoinPlayerDataOrBuilder( + int index) { + if (rejoinPlayerDataBuilder_ == null) { + return rejoinPlayerData_.get(index); } else { + return rejoinPlayerDataBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getRejoinPlayerDataOrBuilderList() { + if (rejoinPlayerDataBuilder_ != null) { + return rejoinPlayerDataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rejoinPlayerData_); + } + } + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder addRejoinPlayerDataBuilder() { + return getRejoinPlayerDataFieldBuilder().addBuilder( + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.getDefaultInstance()); + } + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder addRejoinPlayerDataBuilder( + int index) { + return getRejoinPlayerDataFieldBuilder().addBuilder( + index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.getDefaultInstance()); + } + public java.util.List + getRejoinPlayerDataBuilderList() { + return getRejoinPlayerDataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerDataOrBuilder> + getRejoinPlayerDataFieldBuilder() { + if (rejoinPlayerDataBuilder_ == null) { + rejoinPlayerDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerDataOrBuilder>( + rejoinPlayerData_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + rejoinPlayerData_ = null; + } + return rejoinPlayerDataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:GameStartRejoinMessage) + } + + static { + defaultInstance = new GameStartRejoinMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:GameStartRejoinMessage) + } + + public interface HandStartMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // optional .HandStartMessage.PlainCards plainCards = 2; + boolean hasPlainCards(); + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards getPlainCards(); + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCardsOrBuilder getPlainCardsOrBuilder(); + + // optional bytes encryptedCards = 3; + boolean hasEncryptedCards(); + com.google.protobuf.ByteString getEncryptedCards(); + + // required uint32 smallBlind = 4; + boolean hasSmallBlind(); + int getSmallBlind(); + + // repeated .NetPlayerState seatStates = 5; + java.util.List getSeatStatesList(); + int getSeatStatesCount(); + de.pokerth.protocol.ProtoBuf.NetPlayerState getSeatStates(int index); + } + public static final class HandStartMessage extends + com.google.protobuf.GeneratedMessage + implements HandStartMessageOrBuilder { + // Use HandStartMessage.newBuilder() to construct. + private HandStartMessage(Builder builder) { + super(builder); + } + private HandStartMessage(boolean noInit) {} + + private static final HandStartMessage defaultInstance; + public static HandStartMessage getDefaultInstance() { + return defaultInstance; + } + + public HandStartMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_HandStartMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_HandStartMessage_fieldAccessorTable; + } + + public interface PlainCardsOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 plainCard1 = 1; + boolean hasPlainCard1(); + int getPlainCard1(); + + // required uint32 plainCard2 = 2; + boolean hasPlainCard2(); + int getPlainCard2(); + } + public static final class PlainCards extends + com.google.protobuf.GeneratedMessage + implements PlainCardsOrBuilder { + // Use PlainCards.newBuilder() to construct. + private PlainCards(Builder builder) { + super(builder); + } + private PlainCards(boolean noInit) {} + + private static final PlainCards defaultInstance; + public static PlainCards getDefaultInstance() { + return defaultInstance; + } + + public PlainCards getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_HandStartMessage_PlainCards_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_HandStartMessage_PlainCards_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 plainCard1 = 1; + public static final int PLAINCARD1_FIELD_NUMBER = 1; + private int plainCard1_; + public boolean hasPlainCard1() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getPlainCard1() { + return plainCard1_; + } + + // required uint32 plainCard2 = 2; + public static final int PLAINCARD2_FIELD_NUMBER = 2; + private int plainCard2_; + public boolean hasPlainCard2() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlainCard2() { + return plainCard2_; + } + + private void initFields() { + plainCard1_ = 0; + plainCard2_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPlainCard1()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlainCard2()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, plainCard1_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, plainCard2_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, plainCard1_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, plainCard2_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCardsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_HandStartMessage_PlainCards_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_HandStartMessage_PlainCards_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + plainCard1_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + plainCard2_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards build() { + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards buildPartial() { + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards result = new de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.plainCard1_ = plainCard1_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.plainCard2_ = plainCard2_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards other) { + if (other == de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance()) return this; + if (other.hasPlainCard1()) { + setPlainCard1(other.getPlainCard1()); + } + if (other.hasPlainCard2()) { + setPlainCard2(other.getPlainCard2()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasPlainCard1()) { + + return false; + } + if (!hasPlainCard2()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + plainCard1_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + plainCard2_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 plainCard1 = 1; + private int plainCard1_ ; + public boolean hasPlainCard1() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getPlainCard1() { + return plainCard1_; + } + public Builder setPlainCard1(int value) { + bitField0_ |= 0x00000001; + plainCard1_ = value; + onChanged(); + return this; + } + public Builder clearPlainCard1() { + bitField0_ = (bitField0_ & ~0x00000001); + plainCard1_ = 0; + onChanged(); + return this; + } + + // required uint32 plainCard2 = 2; + private int plainCard2_ ; + public boolean hasPlainCard2() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlainCard2() { + return plainCard2_; + } + public Builder setPlainCard2(int value) { + bitField0_ |= 0x00000002; + plainCard2_ = value; + onChanged(); + return this; + } + public Builder clearPlainCard2() { + bitField0_ = (bitField0_ & ~0x00000002); + plainCard2_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:HandStartMessage.PlainCards) + } + + static { + defaultInstance = new PlainCards(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:HandStartMessage.PlainCards) + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // optional .HandStartMessage.PlainCards plainCards = 2; + public static final int PLAINCARDS_FIELD_NUMBER = 2; + private de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards plainCards_; + public boolean hasPlainCards() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards getPlainCards() { + return plainCards_; + } + public de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCardsOrBuilder getPlainCardsOrBuilder() { + return plainCards_; + } + + // optional bytes encryptedCards = 3; + public static final int ENCRYPTEDCARDS_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString encryptedCards_; + public boolean hasEncryptedCards() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public com.google.protobuf.ByteString getEncryptedCards() { + return encryptedCards_; + } + + // required uint32 smallBlind = 4; + public static final int SMALLBLIND_FIELD_NUMBER = 4; + private int smallBlind_; + public boolean hasSmallBlind() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getSmallBlind() { + return smallBlind_; + } + + // repeated .NetPlayerState seatStates = 5; + public static final int SEATSTATES_FIELD_NUMBER = 5; + private java.util.List seatStates_; + public java.util.List getSeatStatesList() { + return seatStates_; + } + public int getSeatStatesCount() { + return seatStates_.size(); + } + public de.pokerth.protocol.ProtoBuf.NetPlayerState getSeatStates(int index) { + return seatStates_.get(index); + } + + private void initFields() { + gameId_ = 0; + plainCards_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance(); + encryptedCards_ = com.google.protobuf.ByteString.EMPTY; + smallBlind_ = 0; + seatStates_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasSmallBlind()) { + memoizedIsInitialized = 0; + return false; + } + if (hasPlainCards()) { + if (!getPlainCards().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, plainCards_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, encryptedCards_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(4, smallBlind_); + } + for (int i = 0; i < seatStates_.size(); i++) { + output.writeEnum(5, seatStates_.get(i).getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, plainCards_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, encryptedCards_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, smallBlind_); + } + { + int dataSize = 0; + for (int i = 0; i < seatStates_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(seatStates_.get(i).getNumber()); + } + size += dataSize; + size += 1 * seatStates_.size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.HandStartMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.HandStartMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_HandStartMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_HandStartMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.HandStartMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getPlainCardsFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + if (plainCardsBuilder_ == null) { + plainCards_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance(); + } else { + plainCardsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + encryptedCards_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + smallBlind_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + seatStates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.HandStartMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.HandStartMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.HandStartMessage build() { + de.pokerth.protocol.ProtoBuf.HandStartMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.HandStartMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.HandStartMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.HandStartMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.HandStartMessage result = new de.pokerth.protocol.ProtoBuf.HandStartMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (plainCardsBuilder_ == null) { + result.plainCards_ = plainCards_; + } else { + result.plainCards_ = plainCardsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.encryptedCards_ = encryptedCards_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.smallBlind_ = smallBlind_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + seatStates_ = java.util.Collections.unmodifiableList(seatStates_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.seatStates_ = seatStates_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.HandStartMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.HandStartMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.HandStartMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlainCards()) { + mergePlainCards(other.getPlainCards()); + } + if (other.hasEncryptedCards()) { + setEncryptedCards(other.getEncryptedCards()); + } + if (other.hasSmallBlind()) { + setSmallBlind(other.getSmallBlind()); + } + if (!other.seatStates_.isEmpty()) { + if (seatStates_.isEmpty()) { + seatStates_ = other.seatStates_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureSeatStatesIsMutable(); + seatStates_.addAll(other.seatStates_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasSmallBlind()) { + + return false; + } + if (hasPlainCards()) { + if (!getPlainCards().isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 18: { + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.Builder subBuilder = de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.newBuilder(); + if (hasPlainCards()) { + subBuilder.mergeFrom(getPlainCards()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlainCards(subBuilder.buildPartial()); + break; + } + case 26: { + bitField0_ |= 0x00000004; + encryptedCards_ = input.readBytes(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + smallBlind_ = input.readUInt32(); + break; + } + case 40: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetPlayerState value = de.pokerth.protocol.ProtoBuf.NetPlayerState.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(5, rawValue); + } else { + addSeatStates(value); + } + break; + } + case 42: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetPlayerState value = de.pokerth.protocol.ProtoBuf.NetPlayerState.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(5, rawValue); + } else { + addSeatStates(value); + } + } + input.popLimit(oldLimit); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // optional .HandStartMessage.PlainCards plainCards = 2; + private de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards plainCards_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards, de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.Builder, de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCardsOrBuilder> plainCardsBuilder_; + public boolean hasPlainCards() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards getPlainCards() { + if (plainCardsBuilder_ == null) { + return plainCards_; + } else { + return plainCardsBuilder_.getMessage(); + } + } + public Builder setPlainCards(de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards value) { + if (plainCardsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + plainCards_ = value; + onChanged(); + } else { + plainCardsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + public Builder setPlainCards( + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.Builder builderForValue) { + if (plainCardsBuilder_ == null) { + plainCards_ = builderForValue.build(); + onChanged(); + } else { + plainCardsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + public Builder mergePlainCards(de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards value) { + if (plainCardsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + plainCards_ != de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance()) { + plainCards_ = + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.newBuilder(plainCards_).mergeFrom(value).buildPartial(); + } else { + plainCards_ = value; + } + onChanged(); + } else { + plainCardsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + public Builder clearPlainCards() { + if (plainCardsBuilder_ == null) { + plainCards_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance(); + onChanged(); + } else { + plainCardsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + public de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.Builder getPlainCardsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPlainCardsFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCardsOrBuilder getPlainCardsOrBuilder() { + if (plainCardsBuilder_ != null) { + return plainCardsBuilder_.getMessageOrBuilder(); + } else { + return plainCards_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards, de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.Builder, de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCardsOrBuilder> + getPlainCardsFieldBuilder() { + if (plainCardsBuilder_ == null) { + plainCardsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards, de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.Builder, de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCardsOrBuilder>( + plainCards_, + getParentForChildren(), + isClean()); + plainCards_ = null; + } + return plainCardsBuilder_; + } + + // optional bytes encryptedCards = 3; + private com.google.protobuf.ByteString encryptedCards_ = com.google.protobuf.ByteString.EMPTY; + public boolean hasEncryptedCards() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public com.google.protobuf.ByteString getEncryptedCards() { + return encryptedCards_; + } + public Builder setEncryptedCards(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + encryptedCards_ = value; + onChanged(); + return this; + } + public Builder clearEncryptedCards() { + bitField0_ = (bitField0_ & ~0x00000004); + encryptedCards_ = getDefaultInstance().getEncryptedCards(); + onChanged(); + return this; + } + + // required uint32 smallBlind = 4; + private int smallBlind_ ; + public boolean hasSmallBlind() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getSmallBlind() { + return smallBlind_; + } + public Builder setSmallBlind(int value) { + bitField0_ |= 0x00000008; + smallBlind_ = value; + onChanged(); + return this; + } + public Builder clearSmallBlind() { + bitField0_ = (bitField0_ & ~0x00000008); + smallBlind_ = 0; + onChanged(); + return this; + } + + // repeated .NetPlayerState seatStates = 5; + private java.util.List seatStates_ = + java.util.Collections.emptyList(); + private void ensureSeatStatesIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + seatStates_ = new java.util.ArrayList(seatStates_); + bitField0_ |= 0x00000010; + } + } + public java.util.List getSeatStatesList() { + return java.util.Collections.unmodifiableList(seatStates_); + } + public int getSeatStatesCount() { + return seatStates_.size(); + } + public de.pokerth.protocol.ProtoBuf.NetPlayerState getSeatStates(int index) { + return seatStates_.get(index); + } + public Builder setSeatStates( + int index, de.pokerth.protocol.ProtoBuf.NetPlayerState value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSeatStatesIsMutable(); + seatStates_.set(index, value); + onChanged(); + return this; + } + public Builder addSeatStates(de.pokerth.protocol.ProtoBuf.NetPlayerState value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSeatStatesIsMutable(); + seatStates_.add(value); + onChanged(); + return this; + } + public Builder addAllSeatStates( + java.lang.Iterable values) { + ensureSeatStatesIsMutable(); + super.addAll(values, seatStates_); + onChanged(); + return this; + } + public Builder clearSeatStates() { + seatStates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:HandStartMessage) + } + + static { + defaultInstance = new HandStartMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:HandStartMessage) + } + + public interface PlayersTurnMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 playerId = 2; + boolean hasPlayerId(); + int getPlayerId(); + + // required .NetGameState gameState = 3; + boolean hasGameState(); + de.pokerth.protocol.ProtoBuf.NetGameState getGameState(); + } + public static final class PlayersTurnMessage extends + com.google.protobuf.GeneratedMessage + implements PlayersTurnMessageOrBuilder { + // Use PlayersTurnMessage.newBuilder() to construct. + private PlayersTurnMessage(Builder builder) { + super(builder); + } + private PlayersTurnMessage(boolean noInit) {} + + private static final PlayersTurnMessage defaultInstance; + public static PlayersTurnMessage getDefaultInstance() { + return defaultInstance; + } + + public PlayersTurnMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayersTurnMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayersTurnMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 playerId = 2; + public static final int PLAYERID_FIELD_NUMBER = 2; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + + // required .NetGameState gameState = 3; + public static final int GAMESTATE_FIELD_NUMBER = 3; + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_; + public boolean hasGameState() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { + return gameState_; + } + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasGameState()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, playerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, gameState_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, playerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, gameState_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayersTurnMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.PlayersTurnMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayersTurnMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayersTurnMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.PlayersTurnMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.PlayersTurnMessage build() { + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayersTurnMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayersTurnMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage result = new de.pokerth.protocol.ProtoBuf.PlayersTurnMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.gameState_ = gameState_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.PlayersTurnMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.PlayersTurnMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayersTurnMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasGameState()) { + setGameState(other.getGameState()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + if (!hasGameState()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameState value = de.pokerth.protocol.ProtoBuf.NetGameState.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(3, rawValue); + } else { + bitField0_ |= 0x00000004; + gameState_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 playerId = 2; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000002; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + onChanged(); + return this; + } + + // required .NetGameState gameState = 3; + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + public boolean hasGameState() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { + return gameState_; + } + public Builder setGameState(de.pokerth.protocol.ProtoBuf.NetGameState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + gameState_ = value; + onChanged(); + return this; + } + public Builder clearGameState() { + bitField0_ = (bitField0_ & ~0x00000004); + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PlayersTurnMessage) + } + + static { + defaultInstance = new PlayersTurnMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:PlayersTurnMessage) + } + + public interface MyActionRequestMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 handNum = 2; + boolean hasHandNum(); + int getHandNum(); + + // required .NetGameState gameState = 3; + boolean hasGameState(); + de.pokerth.protocol.ProtoBuf.NetGameState getGameState(); + + // required .NetPlayerAction myAction = 4; + boolean hasMyAction(); + de.pokerth.protocol.ProtoBuf.NetPlayerAction getMyAction(); + + // required uint32 myRelativeBet = 5; + boolean hasMyRelativeBet(); + int getMyRelativeBet(); + } + public static final class MyActionRequestMessage extends + com.google.protobuf.GeneratedMessage + implements MyActionRequestMessageOrBuilder { + // Use MyActionRequestMessage.newBuilder() to construct. + private MyActionRequestMessage(Builder builder) { + super(builder); + } + private MyActionRequestMessage(boolean noInit) {} + + private static final MyActionRequestMessage defaultInstance; + public static MyActionRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public MyActionRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_MyActionRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_MyActionRequestMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 handNum = 2; + public static final int HANDNUM_FIELD_NUMBER = 2; + private int handNum_; + public boolean hasHandNum() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getHandNum() { + return handNum_; + } + + // required .NetGameState gameState = 3; + public static final int GAMESTATE_FIELD_NUMBER = 3; + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_; + public boolean hasGameState() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { + return gameState_; + } + + // required .NetPlayerAction myAction = 4; + public static final int MYACTION_FIELD_NUMBER = 4; + private de.pokerth.protocol.ProtoBuf.NetPlayerAction myAction_; + public boolean hasMyAction() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public de.pokerth.protocol.ProtoBuf.NetPlayerAction getMyAction() { + return myAction_; + } + + // required uint32 myRelativeBet = 5; + public static final int MYRELATIVEBET_FIELD_NUMBER = 5; + private int myRelativeBet_; + public boolean hasMyRelativeBet() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getMyRelativeBet() { + return myRelativeBet_; + } + + private void initFields() { + gameId_ = 0; + handNum_ = 0; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + myRelativeBet_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasHandNum()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasGameState()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMyAction()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMyRelativeBet()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, handNum_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, gameState_.getNumber()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeEnum(4, myAction_.getNumber()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt32(5, myRelativeBet_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, handNum_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, gameState_.getNumber()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, myAction_.getNumber()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, myRelativeBet_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.MyActionRequestMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.MyActionRequestMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_MyActionRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_MyActionRequestMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + handNum_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + bitField0_ = (bitField0_ & ~0x00000004); + myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + bitField0_ = (bitField0_ & ~0x00000008); + myRelativeBet_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.MyActionRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.MyActionRequestMessage build() { + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.MyActionRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.MyActionRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage result = new de.pokerth.protocol.ProtoBuf.MyActionRequestMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.handNum_ = handNum_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.gameState_ = gameState_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.myAction_ = myAction_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.myRelativeBet_ = myRelativeBet_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.MyActionRequestMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.MyActionRequestMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.MyActionRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasHandNum()) { + setHandNum(other.getHandNum()); + } + if (other.hasGameState()) { + setGameState(other.getGameState()); + } + if (other.hasMyAction()) { + setMyAction(other.getMyAction()); + } + if (other.hasMyRelativeBet()) { + setMyRelativeBet(other.getMyRelativeBet()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasHandNum()) { + + return false; + } + if (!hasGameState()) { + + return false; + } + if (!hasMyAction()) { + + return false; + } + if (!hasMyRelativeBet()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + handNum_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameState value = de.pokerth.protocol.ProtoBuf.NetGameState.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(3, rawValue); + } else { + bitField0_ |= 0x00000004; + gameState_ = value; + } + break; + } + case 32: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetPlayerAction value = de.pokerth.protocol.ProtoBuf.NetPlayerAction.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(4, rawValue); + } else { + bitField0_ |= 0x00000008; + myAction_ = value; + } + break; + } + case 40: { + bitField0_ |= 0x00000010; + myRelativeBet_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 handNum = 2; + private int handNum_ ; + public boolean hasHandNum() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getHandNum() { + return handNum_; + } + public Builder setHandNum(int value) { + bitField0_ |= 0x00000002; + handNum_ = value; + onChanged(); + return this; + } + public Builder clearHandNum() { + bitField0_ = (bitField0_ & ~0x00000002); + handNum_ = 0; + onChanged(); + return this; + } + + // required .NetGameState gameState = 3; + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + public boolean hasGameState() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { + return gameState_; + } + public Builder setGameState(de.pokerth.protocol.ProtoBuf.NetGameState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + gameState_ = value; + onChanged(); + return this; + } + public Builder clearGameState() { + bitField0_ = (bitField0_ & ~0x00000004); + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + onChanged(); + return this; + } + + // required .NetPlayerAction myAction = 4; + private de.pokerth.protocol.ProtoBuf.NetPlayerAction myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + public boolean hasMyAction() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public de.pokerth.protocol.ProtoBuf.NetPlayerAction getMyAction() { + return myAction_; + } + public Builder setMyAction(de.pokerth.protocol.ProtoBuf.NetPlayerAction value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + myAction_ = value; + onChanged(); + return this; + } + public Builder clearMyAction() { + bitField0_ = (bitField0_ & ~0x00000008); + myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + onChanged(); + return this; + } + + // required uint32 myRelativeBet = 5; + private int myRelativeBet_ ; + public boolean hasMyRelativeBet() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getMyRelativeBet() { + return myRelativeBet_; + } + public Builder setMyRelativeBet(int value) { + bitField0_ |= 0x00000010; + myRelativeBet_ = value; + onChanged(); + return this; + } + public Builder clearMyRelativeBet() { + bitField0_ = (bitField0_ & ~0x00000010); + myRelativeBet_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:MyActionRequestMessage) + } + + static { + defaultInstance = new MyActionRequestMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:MyActionRequestMessage) + } + + public interface YourActionRejectedMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required .NetGameState gameState = 2; + boolean hasGameState(); + de.pokerth.protocol.ProtoBuf.NetGameState getGameState(); + + // required .NetPlayerAction yourAction = 3; + boolean hasYourAction(); + de.pokerth.protocol.ProtoBuf.NetPlayerAction getYourAction(); + + // required uint32 yourRelativeBet = 4; + boolean hasYourRelativeBet(); + int getYourRelativeBet(); + + // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; + boolean hasRejectionReason(); + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason getRejectionReason(); + } + public static final class YourActionRejectedMessage extends + com.google.protobuf.GeneratedMessage + implements YourActionRejectedMessageOrBuilder { + // Use YourActionRejectedMessage.newBuilder() to construct. + private YourActionRejectedMessage(Builder builder) { + super(builder); + } + private YourActionRejectedMessage(boolean noInit) {} + + private static final YourActionRejectedMessage defaultInstance; + public static YourActionRejectedMessage getDefaultInstance() { + return defaultInstance; + } + + public YourActionRejectedMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_YourActionRejectedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_YourActionRejectedMessage_fieldAccessorTable; + } + + public enum RejectionReason + implements com.google.protobuf.ProtocolMessageEnum { + rejectedInvalidGameState(0, 1), + rejectedNotYourTurn(1, 2), + rejectedActionNotAllowed(2, 3), + ; + + public static final int rejectedInvalidGameState_VALUE = 1; + public static final int rejectedNotYourTurn_VALUE = 2; + public static final int rejectedActionNotAllowed_VALUE = 3; + + + public final int getNumber() { return value; } + + public static RejectionReason valueOf(int value) { + switch (value) { + case 1: return rejectedInvalidGameState; + case 2: return rejectedNotYourTurn; + case 3: return rejectedActionNotAllowed; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RejectionReason findValueByNumber(int number) { + return RejectionReason.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 de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final RejectionReason[] VALUES = { + rejectedInvalidGameState, rejectedNotYourTurn, rejectedActionNotAllowed, + }; + + public static RejectionReason 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 RejectionReason(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:YourActionRejectedMessage.RejectionReason) + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required .NetGameState gameState = 2; + public static final int GAMESTATE_FIELD_NUMBER = 2; + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_; + public boolean hasGameState() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { + return gameState_; + } + + // required .NetPlayerAction yourAction = 3; + public static final int YOURACTION_FIELD_NUMBER = 3; + private de.pokerth.protocol.ProtoBuf.NetPlayerAction yourAction_; + public boolean hasYourAction() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.NetPlayerAction getYourAction() { + return yourAction_; + } + + // required uint32 yourRelativeBet = 4; + public static final int YOURRELATIVEBET_FIELD_NUMBER = 4; + private int yourRelativeBet_; + public boolean hasYourRelativeBet() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getYourRelativeBet() { + return yourRelativeBet_; + } + + // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; + public static final int REJECTIONREASON_FIELD_NUMBER = 5; + private de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason rejectionReason_; + public boolean hasRejectionReason() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason getRejectionReason() { + return rejectionReason_; + } + + private void initFields() { + gameId_ = 0; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + yourRelativeBet_ = 0; + rejectionReason_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason.rejectedInvalidGameState; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasGameState()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasYourAction()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasYourRelativeBet()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRejectionReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, gameState_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, yourAction_.getNumber()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(4, yourRelativeBet_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeEnum(5, rejectionReason_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, gameState_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, yourAction_.getNumber()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, yourRelativeBet_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, rejectionReason_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.YourActionRejectedMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_YourActionRejectedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_YourActionRejectedMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + bitField0_ = (bitField0_ & ~0x00000002); + yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + bitField0_ = (bitField0_ & ~0x00000004); + yourRelativeBet_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + rejectionReason_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason.rejectedInvalidGameState; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage build() { + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage result = new de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.gameState_ = gameState_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.yourAction_ = yourAction_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.yourRelativeBet_ = yourRelativeBet_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.rejectionReason_ = rejectionReason_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasGameState()) { + setGameState(other.getGameState()); + } + if (other.hasYourAction()) { + setYourAction(other.getYourAction()); + } + if (other.hasYourRelativeBet()) { + setYourRelativeBet(other.getYourRelativeBet()); + } + if (other.hasRejectionReason()) { + setRejectionReason(other.getRejectionReason()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasGameState()) { + + return false; + } + if (!hasYourAction()) { + + return false; + } + if (!hasYourRelativeBet()) { + + return false; + } + if (!hasRejectionReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameState value = de.pokerth.protocol.ProtoBuf.NetGameState.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + gameState_ = value; + } + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetPlayerAction value = de.pokerth.protocol.ProtoBuf.NetPlayerAction.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(3, rawValue); + } else { + bitField0_ |= 0x00000004; + yourAction_ = value; + } + break; + } + case 32: { + bitField0_ |= 0x00000008; + yourRelativeBet_ = input.readUInt32(); + break; + } + case 40: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason value = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(5, rawValue); + } else { + bitField0_ |= 0x00000010; + rejectionReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required .NetGameState gameState = 2; + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + public boolean hasGameState() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { + return gameState_; + } + public Builder setGameState(de.pokerth.protocol.ProtoBuf.NetGameState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + gameState_ = value; + onChanged(); + return this; + } + public Builder clearGameState() { + bitField0_ = (bitField0_ & ~0x00000002); + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + onChanged(); + return this; + } + + // required .NetPlayerAction yourAction = 3; + private de.pokerth.protocol.ProtoBuf.NetPlayerAction yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + public boolean hasYourAction() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.NetPlayerAction getYourAction() { + return yourAction_; + } + public Builder setYourAction(de.pokerth.protocol.ProtoBuf.NetPlayerAction value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + yourAction_ = value; + onChanged(); + return this; + } + public Builder clearYourAction() { + bitField0_ = (bitField0_ & ~0x00000004); + yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + onChanged(); + return this; + } + + // required uint32 yourRelativeBet = 4; + private int yourRelativeBet_ ; + public boolean hasYourRelativeBet() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getYourRelativeBet() { + return yourRelativeBet_; + } + public Builder setYourRelativeBet(int value) { + bitField0_ |= 0x00000008; + yourRelativeBet_ = value; + onChanged(); + return this; + } + public Builder clearYourRelativeBet() { + bitField0_ = (bitField0_ & ~0x00000008); + yourRelativeBet_ = 0; + onChanged(); + return this; + } + + // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; + private de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason rejectionReason_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason.rejectedInvalidGameState; + public boolean hasRejectionReason() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason getRejectionReason() { + return rejectionReason_; + } + public Builder setRejectionReason(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + rejectionReason_ = value; + onChanged(); + return this; + } + public Builder clearRejectionReason() { + bitField0_ = (bitField0_ & ~0x00000010); + rejectionReason_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason.rejectedInvalidGameState; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:YourActionRejectedMessage) + } + + static { + defaultInstance = new YourActionRejectedMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:YourActionRejectedMessage) + } + + public interface PlayersActionDoneMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 playerId = 2; + boolean hasPlayerId(); + int getPlayerId(); + + // required .NetGameState gameState = 3; + boolean hasGameState(); + de.pokerth.protocol.ProtoBuf.NetGameState getGameState(); + + // required .NetPlayerAction playerAction = 4; + boolean hasPlayerAction(); + de.pokerth.protocol.ProtoBuf.NetPlayerAction getPlayerAction(); + + // required uint32 totalPlayerBet = 5; + boolean hasTotalPlayerBet(); + int getTotalPlayerBet(); + + // required uint32 playerMoney = 6; + boolean hasPlayerMoney(); + int getPlayerMoney(); + + // required uint32 highestSet = 7; + boolean hasHighestSet(); + int getHighestSet(); + + // required uint32 minimumRaise = 8; + boolean hasMinimumRaise(); + int getMinimumRaise(); + } + public static final class PlayersActionDoneMessage extends + com.google.protobuf.GeneratedMessage + implements PlayersActionDoneMessageOrBuilder { + // Use PlayersActionDoneMessage.newBuilder() to construct. + private PlayersActionDoneMessage(Builder builder) { + super(builder); + } + private PlayersActionDoneMessage(boolean noInit) {} + + private static final PlayersActionDoneMessage defaultInstance; + public static PlayersActionDoneMessage getDefaultInstance() { + return defaultInstance; + } + + public PlayersActionDoneMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayersActionDoneMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayersActionDoneMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 playerId = 2; + public static final int PLAYERID_FIELD_NUMBER = 2; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + + // required .NetGameState gameState = 3; + public static final int GAMESTATE_FIELD_NUMBER = 3; + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_; + public boolean hasGameState() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { + return gameState_; + } + + // required .NetPlayerAction playerAction = 4; + public static final int PLAYERACTION_FIELD_NUMBER = 4; + private de.pokerth.protocol.ProtoBuf.NetPlayerAction playerAction_; + public boolean hasPlayerAction() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public de.pokerth.protocol.ProtoBuf.NetPlayerAction getPlayerAction() { + return playerAction_; + } + + // required uint32 totalPlayerBet = 5; + public static final int TOTALPLAYERBET_FIELD_NUMBER = 5; + private int totalPlayerBet_; + public boolean hasTotalPlayerBet() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getTotalPlayerBet() { + return totalPlayerBet_; + } + + // required uint32 playerMoney = 6; + public static final int PLAYERMONEY_FIELD_NUMBER = 6; + private int playerMoney_; + public boolean hasPlayerMoney() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public int getPlayerMoney() { + return playerMoney_; + } + + // required uint32 highestSet = 7; + public static final int HIGHESTSET_FIELD_NUMBER = 7; + private int highestSet_; + public boolean hasHighestSet() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + public int getHighestSet() { + return highestSet_; + } + + // required uint32 minimumRaise = 8; + public static final int MINIMUMRAISE_FIELD_NUMBER = 8; + private int minimumRaise_; + public boolean hasMinimumRaise() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + public int getMinimumRaise() { + return minimumRaise_; + } + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + totalPlayerBet_ = 0; + playerMoney_ = 0; + highestSet_ = 0; + minimumRaise_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasGameState()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerAction()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTotalPlayerBet()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerMoney()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasHighestSet()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMinimumRaise()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, playerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, gameState_.getNumber()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeEnum(4, playerAction_.getNumber()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt32(5, totalPlayerBet_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeUInt32(6, playerMoney_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeUInt32(7, highestSet_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeUInt32(8, minimumRaise_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, playerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, gameState_.getNumber()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, playerAction_.getNumber()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, totalPlayerBet_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, playerMoney_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(7, highestSet_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, minimumRaise_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayersActionDoneMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayersActionDoneMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + bitField0_ = (bitField0_ & ~0x00000004); + playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + bitField0_ = (bitField0_ & ~0x00000008); + totalPlayerBet_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + playerMoney_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + highestSet_ = 0; + bitField0_ = (bitField0_ & ~0x00000040); + minimumRaise_ = 0; + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage build() { + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage result = new de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.gameState_ = gameState_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.playerAction_ = playerAction_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.totalPlayerBet_ = totalPlayerBet_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.playerMoney_ = playerMoney_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.highestSet_ = highestSet_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; + } + result.minimumRaise_ = minimumRaise_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasGameState()) { + setGameState(other.getGameState()); + } + if (other.hasPlayerAction()) { + setPlayerAction(other.getPlayerAction()); + } + if (other.hasTotalPlayerBet()) { + setTotalPlayerBet(other.getTotalPlayerBet()); + } + if (other.hasPlayerMoney()) { + setPlayerMoney(other.getPlayerMoney()); + } + if (other.hasHighestSet()) { + setHighestSet(other.getHighestSet()); + } + if (other.hasMinimumRaise()) { + setMinimumRaise(other.getMinimumRaise()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + if (!hasGameState()) { + + return false; + } + if (!hasPlayerAction()) { + + return false; + } + if (!hasTotalPlayerBet()) { + + return false; + } + if (!hasPlayerMoney()) { + + return false; + } + if (!hasHighestSet()) { + + return false; + } + if (!hasMinimumRaise()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetGameState value = de.pokerth.protocol.ProtoBuf.NetGameState.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(3, rawValue); + } else { + bitField0_ |= 0x00000004; + gameState_ = value; + } + break; + } + case 32: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.NetPlayerAction value = de.pokerth.protocol.ProtoBuf.NetPlayerAction.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(4, rawValue); + } else { + bitField0_ |= 0x00000008; + playerAction_ = value; + } + break; + } + case 40: { + bitField0_ |= 0x00000010; + totalPlayerBet_ = input.readUInt32(); + break; + } + case 48: { + bitField0_ |= 0x00000020; + playerMoney_ = input.readUInt32(); + break; + } + case 56: { + bitField0_ |= 0x00000040; + highestSet_ = input.readUInt32(); + break; + } + case 64: { + bitField0_ |= 0x00000080; + minimumRaise_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 playerId = 2; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000002; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + onChanged(); + return this; + } + + // required .NetGameState gameState = 3; + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + public boolean hasGameState() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { + return gameState_; + } + public Builder setGameState(de.pokerth.protocol.ProtoBuf.NetGameState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + gameState_ = value; + onChanged(); + return this; + } + public Builder clearGameState() { + bitField0_ = (bitField0_ & ~0x00000004); + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + onChanged(); + return this; + } + + // required .NetPlayerAction playerAction = 4; + private de.pokerth.protocol.ProtoBuf.NetPlayerAction playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + public boolean hasPlayerAction() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public de.pokerth.protocol.ProtoBuf.NetPlayerAction getPlayerAction() { + return playerAction_; + } + public Builder setPlayerAction(de.pokerth.protocol.ProtoBuf.NetPlayerAction value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + playerAction_ = value; + onChanged(); + return this; + } + public Builder clearPlayerAction() { + bitField0_ = (bitField0_ & ~0x00000008); + playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + onChanged(); + return this; + } + + // required uint32 totalPlayerBet = 5; + private int totalPlayerBet_ ; + public boolean hasTotalPlayerBet() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getTotalPlayerBet() { + return totalPlayerBet_; + } + public Builder setTotalPlayerBet(int value) { + bitField0_ |= 0x00000010; + totalPlayerBet_ = value; + onChanged(); + return this; + } + public Builder clearTotalPlayerBet() { + bitField0_ = (bitField0_ & ~0x00000010); + totalPlayerBet_ = 0; + onChanged(); + return this; + } + + // required uint32 playerMoney = 6; + private int playerMoney_ ; + public boolean hasPlayerMoney() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public int getPlayerMoney() { + return playerMoney_; + } + public Builder setPlayerMoney(int value) { + bitField0_ |= 0x00000020; + playerMoney_ = value; + onChanged(); + return this; + } + public Builder clearPlayerMoney() { + bitField0_ = (bitField0_ & ~0x00000020); + playerMoney_ = 0; + onChanged(); + return this; + } + + // required uint32 highestSet = 7; + private int highestSet_ ; + public boolean hasHighestSet() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + public int getHighestSet() { + return highestSet_; + } + public Builder setHighestSet(int value) { + bitField0_ |= 0x00000040; + highestSet_ = value; + onChanged(); + return this; + } + public Builder clearHighestSet() { + bitField0_ = (bitField0_ & ~0x00000040); + highestSet_ = 0; + onChanged(); + return this; + } + + // required uint32 minimumRaise = 8; + private int minimumRaise_ ; + public boolean hasMinimumRaise() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + public int getMinimumRaise() { + return minimumRaise_; + } + public Builder setMinimumRaise(int value) { + bitField0_ |= 0x00000080; + minimumRaise_ = value; + onChanged(); + return this; + } + public Builder clearMinimumRaise() { + bitField0_ = (bitField0_ & ~0x00000080); + minimumRaise_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PlayersActionDoneMessage) + } + + static { + defaultInstance = new PlayersActionDoneMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:PlayersActionDoneMessage) + } + + public interface DealFlopCardsMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 flopCard1 = 2; + boolean hasFlopCard1(); + int getFlopCard1(); + + // required uint32 flopCard2 = 3; + boolean hasFlopCard2(); + int getFlopCard2(); + + // required uint32 flopCard3 = 4; + boolean hasFlopCard3(); + int getFlopCard3(); + } + public static final class DealFlopCardsMessage extends + com.google.protobuf.GeneratedMessage + implements DealFlopCardsMessageOrBuilder { + // Use DealFlopCardsMessage.newBuilder() to construct. + private DealFlopCardsMessage(Builder builder) { + super(builder); + } + private DealFlopCardsMessage(boolean noInit) {} + + private static final DealFlopCardsMessage defaultInstance; + public static DealFlopCardsMessage getDefaultInstance() { + return defaultInstance; + } + + public DealFlopCardsMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_DealFlopCardsMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_DealFlopCardsMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 flopCard1 = 2; + public static final int FLOPCARD1_FIELD_NUMBER = 2; + private int flopCard1_; + public boolean hasFlopCard1() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getFlopCard1() { + return flopCard1_; + } + + // required uint32 flopCard2 = 3; + public static final int FLOPCARD2_FIELD_NUMBER = 3; + private int flopCard2_; + public boolean hasFlopCard2() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getFlopCard2() { + return flopCard2_; + } + + // required uint32 flopCard3 = 4; + public static final int FLOPCARD3_FIELD_NUMBER = 4; + private int flopCard3_; + public boolean hasFlopCard3() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getFlopCard3() { + return flopCard3_; + } + + private void initFields() { + gameId_ = 0; + flopCard1_ = 0; + flopCard2_ = 0; + flopCard3_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasFlopCard1()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasFlopCard2()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasFlopCard3()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, flopCard1_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, flopCard2_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(4, flopCard3_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, flopCard1_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, flopCard2_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, flopCard3_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.DealFlopCardsMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_DealFlopCardsMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_DealFlopCardsMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + flopCard1_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + flopCard2_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + flopCard3_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage build() { + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage result = new de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.flopCard1_ = flopCard1_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.flopCard2_ = flopCard2_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.flopCard3_ = flopCard3_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasFlopCard1()) { + setFlopCard1(other.getFlopCard1()); + } + if (other.hasFlopCard2()) { + setFlopCard2(other.getFlopCard2()); + } + if (other.hasFlopCard3()) { + setFlopCard3(other.getFlopCard3()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasFlopCard1()) { + + return false; + } + if (!hasFlopCard2()) { + + return false; + } + if (!hasFlopCard3()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + flopCard1_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + flopCard2_ = input.readUInt32(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + flopCard3_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 flopCard1 = 2; + private int flopCard1_ ; + public boolean hasFlopCard1() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getFlopCard1() { + return flopCard1_; + } + public Builder setFlopCard1(int value) { + bitField0_ |= 0x00000002; + flopCard1_ = value; + onChanged(); + return this; + } + public Builder clearFlopCard1() { + bitField0_ = (bitField0_ & ~0x00000002); + flopCard1_ = 0; + onChanged(); + return this; + } + + // required uint32 flopCard2 = 3; + private int flopCard2_ ; + public boolean hasFlopCard2() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getFlopCard2() { + return flopCard2_; + } + public Builder setFlopCard2(int value) { + bitField0_ |= 0x00000004; + flopCard2_ = value; + onChanged(); + return this; + } + public Builder clearFlopCard2() { + bitField0_ = (bitField0_ & ~0x00000004); + flopCard2_ = 0; + onChanged(); + return this; + } + + // required uint32 flopCard3 = 4; + private int flopCard3_ ; + public boolean hasFlopCard3() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getFlopCard3() { + return flopCard3_; + } + public Builder setFlopCard3(int value) { + bitField0_ |= 0x00000008; + flopCard3_ = value; + onChanged(); + return this; + } + public Builder clearFlopCard3() { + bitField0_ = (bitField0_ & ~0x00000008); + flopCard3_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:DealFlopCardsMessage) + } + + static { + defaultInstance = new DealFlopCardsMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:DealFlopCardsMessage) + } + + public interface DealTurnCardMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 turnCard = 2; + boolean hasTurnCard(); + int getTurnCard(); + } + public static final class DealTurnCardMessage extends + com.google.protobuf.GeneratedMessage + implements DealTurnCardMessageOrBuilder { + // Use DealTurnCardMessage.newBuilder() to construct. + private DealTurnCardMessage(Builder builder) { + super(builder); + } + private DealTurnCardMessage(boolean noInit) {} + + private static final DealTurnCardMessage defaultInstance; + public static DealTurnCardMessage getDefaultInstance() { + return defaultInstance; + } + + public DealTurnCardMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_DealTurnCardMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_DealTurnCardMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 turnCard = 2; + public static final int TURNCARD_FIELD_NUMBER = 2; + private int turnCard_; + public boolean hasTurnCard() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getTurnCard() { + return turnCard_; + } + + private void initFields() { + gameId_ = 0; + turnCard_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasTurnCard()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, turnCard_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, turnCard_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.DealTurnCardMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.DealTurnCardMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_DealTurnCardMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_DealTurnCardMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + turnCard_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.DealTurnCardMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.DealTurnCardMessage build() { + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.DealTurnCardMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.DealTurnCardMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage result = new de.pokerth.protocol.ProtoBuf.DealTurnCardMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.turnCard_ = turnCard_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.DealTurnCardMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.DealTurnCardMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.DealTurnCardMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasTurnCard()) { + setTurnCard(other.getTurnCard()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasTurnCard()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + turnCard_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 turnCard = 2; + private int turnCard_ ; + public boolean hasTurnCard() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getTurnCard() { + return turnCard_; + } + public Builder setTurnCard(int value) { + bitField0_ |= 0x00000002; + turnCard_ = value; + onChanged(); + return this; + } + public Builder clearTurnCard() { + bitField0_ = (bitField0_ & ~0x00000002); + turnCard_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:DealTurnCardMessage) + } + + static { + defaultInstance = new DealTurnCardMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:DealTurnCardMessage) + } + + public interface DealRiverCardMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 riverCard = 2; + boolean hasRiverCard(); + int getRiverCard(); + } + public static final class DealRiverCardMessage extends + com.google.protobuf.GeneratedMessage + implements DealRiverCardMessageOrBuilder { + // Use DealRiverCardMessage.newBuilder() to construct. + private DealRiverCardMessage(Builder builder) { + super(builder); + } + private DealRiverCardMessage(boolean noInit) {} + + private static final DealRiverCardMessage defaultInstance; + public static DealRiverCardMessage getDefaultInstance() { + return defaultInstance; + } + + public DealRiverCardMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_DealRiverCardMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_DealRiverCardMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 riverCard = 2; + public static final int RIVERCARD_FIELD_NUMBER = 2; + private int riverCard_; + public boolean hasRiverCard() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getRiverCard() { + return riverCard_; + } + + private void initFields() { + gameId_ = 0; + riverCard_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRiverCard()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, riverCard_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, riverCard_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.DealRiverCardMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.DealRiverCardMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_DealRiverCardMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_DealRiverCardMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + riverCard_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.DealRiverCardMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.DealRiverCardMessage build() { + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.DealRiverCardMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.DealRiverCardMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage result = new de.pokerth.protocol.ProtoBuf.DealRiverCardMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.riverCard_ = riverCard_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.DealRiverCardMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.DealRiverCardMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.DealRiverCardMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasRiverCard()) { + setRiverCard(other.getRiverCard()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasRiverCard()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + riverCard_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 riverCard = 2; + private int riverCard_ ; + public boolean hasRiverCard() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getRiverCard() { + return riverCard_; + } + public Builder setRiverCard(int value) { + bitField0_ |= 0x00000002; + riverCard_ = value; + onChanged(); + return this; + } + public Builder clearRiverCard() { + bitField0_ = (bitField0_ & ~0x00000002); + riverCard_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:DealRiverCardMessage) + } + + static { + defaultInstance = new DealRiverCardMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:DealRiverCardMessage) + } + + public interface AllInShowCardsMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; + java.util.List + getPlayersAllInList(); + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn getPlayersAllIn(int index); + int getPlayersAllInCount(); + java.util.List + getPlayersAllInOrBuilderList(); + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllInOrBuilder getPlayersAllInOrBuilder( + int index); + } + public static final class AllInShowCardsMessage extends + com.google.protobuf.GeneratedMessage + implements AllInShowCardsMessageOrBuilder { + // Use AllInShowCardsMessage.newBuilder() to construct. + private AllInShowCardsMessage(Builder builder) { + super(builder); + } + private AllInShowCardsMessage(boolean noInit) {} + + private static final AllInShowCardsMessage defaultInstance; + public static AllInShowCardsMessage getDefaultInstance() { + return defaultInstance; + } + + public AllInShowCardsMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AllInShowCardsMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AllInShowCardsMessage_fieldAccessorTable; + } + + public interface PlayerAllInOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 playerId = 1; + boolean hasPlayerId(); + int getPlayerId(); + + // required uint32 allInCard1 = 2; + boolean hasAllInCard1(); + int getAllInCard1(); + + // required uint32 allInCard2 = 3; + boolean hasAllInCard2(); + int getAllInCard2(); + } + public static final class PlayerAllIn extends + com.google.protobuf.GeneratedMessage + implements PlayerAllInOrBuilder { + // Use PlayerAllIn.newBuilder() to construct. + private PlayerAllIn(Builder builder) { + super(builder); + } + private PlayerAllIn(boolean noInit) {} + + private static final PlayerAllIn defaultInstance; + public static PlayerAllIn getDefaultInstance() { + return defaultInstance; + } + + public PlayerAllIn getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AllInShowCardsMessage_PlayerAllIn_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AllInShowCardsMessage_PlayerAllIn_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 playerId = 1; + public static final int PLAYERID_FIELD_NUMBER = 1; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getPlayerId() { + return playerId_; + } + + // required uint32 allInCard1 = 2; + public static final int ALLINCARD1_FIELD_NUMBER = 2; + private int allInCard1_; + public boolean hasAllInCard1() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getAllInCard1() { + return allInCard1_; + } + + // required uint32 allInCard2 = 3; + public static final int ALLINCARD2_FIELD_NUMBER = 3; + private int allInCard2_; + public boolean hasAllInCard2() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getAllInCard2() { + return allInCard2_; + } + + private void initFields() { + playerId_ = 0; + allInCard1_ = 0; + allInCard2_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAllInCard1()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasAllInCard2()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, playerId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, allInCard1_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, allInCard2_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, playerId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, allInCard1_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, allInCard2_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllInOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AllInShowCardsMessage_PlayerAllIn_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AllInShowCardsMessage_PlayerAllIn_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + allInCard1_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + allInCard2_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn build() { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn buildPartial() { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn result = new de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.allInCard1_ = allInCard1_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.allInCard2_ = allInCard2_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn other) { + if (other == de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.getDefaultInstance()) return this; + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasAllInCard1()) { + setAllInCard1(other.getAllInCard1()); + } + if (other.hasAllInCard2()) { + setAllInCard2(other.getAllInCard2()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasPlayerId()) { + + return false; + } + if (!hasAllInCard1()) { + + return false; + } + if (!hasAllInCard2()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + playerId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + allInCard1_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + allInCard2_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 playerId = 1; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000001; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + onChanged(); + return this; + } + + // required uint32 allInCard1 = 2; + private int allInCard1_ ; + public boolean hasAllInCard1() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getAllInCard1() { + return allInCard1_; + } + public Builder setAllInCard1(int value) { + bitField0_ |= 0x00000002; + allInCard1_ = value; + onChanged(); + return this; + } + public Builder clearAllInCard1() { + bitField0_ = (bitField0_ & ~0x00000002); + allInCard1_ = 0; + onChanged(); + return this; + } + + // required uint32 allInCard2 = 3; + private int allInCard2_ ; + public boolean hasAllInCard2() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getAllInCard2() { + return allInCard2_; + } + public Builder setAllInCard2(int value) { + bitField0_ |= 0x00000004; + allInCard2_ = value; + onChanged(); + return this; + } + public Builder clearAllInCard2() { + bitField0_ = (bitField0_ & ~0x00000004); + allInCard2_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:AllInShowCardsMessage.PlayerAllIn) + } + + static { + defaultInstance = new PlayerAllIn(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:AllInShowCardsMessage.PlayerAllIn) + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; + public static final int PLAYERSALLIN_FIELD_NUMBER = 2; + private java.util.List playersAllIn_; + public java.util.List getPlayersAllInList() { + return playersAllIn_; + } + public java.util.List + getPlayersAllInOrBuilderList() { + return playersAllIn_; + } + public int getPlayersAllInCount() { + return playersAllIn_.size(); + } + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn getPlayersAllIn(int index) { + return playersAllIn_.get(index); + } + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllInOrBuilder getPlayersAllInOrBuilder( + int index) { + return playersAllIn_.get(index); + } + + private void initFields() { + gameId_ = 0; + playersAllIn_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getPlayersAllInCount(); i++) { + if (!getPlayersAllIn(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + for (int i = 0; i < playersAllIn_.size(); i++) { + output.writeMessage(2, playersAllIn_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + for (int i = 0; i < playersAllIn_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, playersAllIn_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.AllInShowCardsMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AllInShowCardsMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AllInShowCardsMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getPlayersAllInFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + if (playersAllInBuilder_ == null) { + playersAllIn_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + playersAllInBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage build() { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage result = new de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (playersAllInBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + playersAllIn_ = java.util.Collections.unmodifiableList(playersAllIn_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.playersAllIn_ = playersAllIn_; + } else { + result.playersAllIn_ = playersAllInBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (playersAllInBuilder_ == null) { + if (!other.playersAllIn_.isEmpty()) { + if (playersAllIn_.isEmpty()) { + playersAllIn_ = other.playersAllIn_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePlayersAllInIsMutable(); + playersAllIn_.addAll(other.playersAllIn_); + } + onChanged(); + } + } else { + if (!other.playersAllIn_.isEmpty()) { + if (playersAllInBuilder_.isEmpty()) { + playersAllInBuilder_.dispose(); + playersAllInBuilder_ = null; + playersAllIn_ = other.playersAllIn_; + bitField0_ = (bitField0_ & ~0x00000002); + playersAllInBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getPlayersAllInFieldBuilder() : null; + } else { + playersAllInBuilder_.addAllMessages(other.playersAllIn_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + for (int i = 0; i < getPlayersAllInCount(); i++) { + if (!getPlayersAllIn(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 18: { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addPlayersAllIn(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; + private java.util.List playersAllIn_ = + java.util.Collections.emptyList(); + private void ensurePlayersAllInIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + playersAllIn_ = new java.util.ArrayList(playersAllIn_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllInOrBuilder> playersAllInBuilder_; + + public java.util.List getPlayersAllInList() { + if (playersAllInBuilder_ == null) { + return java.util.Collections.unmodifiableList(playersAllIn_); + } else { + return playersAllInBuilder_.getMessageList(); + } + } + public int getPlayersAllInCount() { + if (playersAllInBuilder_ == null) { + return playersAllIn_.size(); + } else { + return playersAllInBuilder_.getCount(); + } + } + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn getPlayersAllIn(int index) { + if (playersAllInBuilder_ == null) { + return playersAllIn_.get(index); + } else { + return playersAllInBuilder_.getMessage(index); + } + } + public Builder setPlayersAllIn( + int index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn value) { + if (playersAllInBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePlayersAllInIsMutable(); + playersAllIn_.set(index, value); + onChanged(); + } else { + playersAllInBuilder_.setMessage(index, value); + } + return this; + } + public Builder setPlayersAllIn( + int index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder builderForValue) { + if (playersAllInBuilder_ == null) { + ensurePlayersAllInIsMutable(); + playersAllIn_.set(index, builderForValue.build()); + onChanged(); + } else { + playersAllInBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + public Builder addPlayersAllIn(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn value) { + if (playersAllInBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePlayersAllInIsMutable(); + playersAllIn_.add(value); + onChanged(); + } else { + playersAllInBuilder_.addMessage(value); + } + return this; + } + public Builder addPlayersAllIn( + int index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn value) { + if (playersAllInBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePlayersAllInIsMutable(); + playersAllIn_.add(index, value); + onChanged(); + } else { + playersAllInBuilder_.addMessage(index, value); + } + return this; + } + public Builder addPlayersAllIn( + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder builderForValue) { + if (playersAllInBuilder_ == null) { + ensurePlayersAllInIsMutable(); + playersAllIn_.add(builderForValue.build()); + onChanged(); + } else { + playersAllInBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addPlayersAllIn( + int index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder builderForValue) { + if (playersAllInBuilder_ == null) { + ensurePlayersAllInIsMutable(); + playersAllIn_.add(index, builderForValue.build()); + onChanged(); + } else { + playersAllInBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + public Builder addAllPlayersAllIn( + java.lang.Iterable values) { + if (playersAllInBuilder_ == null) { + ensurePlayersAllInIsMutable(); + super.addAll(values, playersAllIn_); + onChanged(); + } else { + playersAllInBuilder_.addAllMessages(values); + } + return this; + } + public Builder clearPlayersAllIn() { + if (playersAllInBuilder_ == null) { + playersAllIn_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + playersAllInBuilder_.clear(); + } + return this; + } + public Builder removePlayersAllIn(int index) { + if (playersAllInBuilder_ == null) { + ensurePlayersAllInIsMutable(); + playersAllIn_.remove(index); + onChanged(); + } else { + playersAllInBuilder_.remove(index); + } + return this; + } + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder getPlayersAllInBuilder( + int index) { + return getPlayersAllInFieldBuilder().getBuilder(index); + } + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllInOrBuilder getPlayersAllInOrBuilder( + int index) { + if (playersAllInBuilder_ == null) { + return playersAllIn_.get(index); } else { + return playersAllInBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getPlayersAllInOrBuilderList() { + if (playersAllInBuilder_ != null) { + return playersAllInBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(playersAllIn_); + } + } + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder addPlayersAllInBuilder() { + return getPlayersAllInFieldBuilder().addBuilder( + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.getDefaultInstance()); + } + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder addPlayersAllInBuilder( + int index) { + return getPlayersAllInFieldBuilder().addBuilder( + index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.getDefaultInstance()); + } + public java.util.List + getPlayersAllInBuilderList() { + return getPlayersAllInFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllInOrBuilder> + getPlayersAllInFieldBuilder() { + if (playersAllInBuilder_ == null) { + playersAllInBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllInOrBuilder>( + playersAllIn_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + playersAllIn_ = null; + } + return playersAllInBuilder_; + } + + // @@protoc_insertion_point(builder_scope:AllInShowCardsMessage) + } + + static { + defaultInstance = new AllInShowCardsMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:AllInShowCardsMessage) + } + + public interface EndOfHandShowCardsMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // repeated .PlayerResult playerResults = 2; + java.util.List + getPlayerResultsList(); + de.pokerth.protocol.ProtoBuf.PlayerResult getPlayerResults(int index); + int getPlayerResultsCount(); + java.util.List + getPlayerResultsOrBuilderList(); + de.pokerth.protocol.ProtoBuf.PlayerResultOrBuilder getPlayerResultsOrBuilder( + int index); + } + public static final class EndOfHandShowCardsMessage extends + com.google.protobuf.GeneratedMessage + implements EndOfHandShowCardsMessageOrBuilder { + // Use EndOfHandShowCardsMessage.newBuilder() to construct. + private EndOfHandShowCardsMessage(Builder builder) { + super(builder); + } + private EndOfHandShowCardsMessage(boolean noInit) {} + + private static final EndOfHandShowCardsMessage defaultInstance; + public static EndOfHandShowCardsMessage getDefaultInstance() { + return defaultInstance; + } + + public EndOfHandShowCardsMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_EndOfHandShowCardsMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_EndOfHandShowCardsMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // repeated .PlayerResult playerResults = 2; + public static final int PLAYERRESULTS_FIELD_NUMBER = 2; + private java.util.List playerResults_; + public java.util.List getPlayerResultsList() { + return playerResults_; + } + public java.util.List + getPlayerResultsOrBuilderList() { + return playerResults_; + } + public int getPlayerResultsCount() { + return playerResults_.size(); + } + public de.pokerth.protocol.ProtoBuf.PlayerResult getPlayerResults(int index) { + return playerResults_.get(index); + } + public de.pokerth.protocol.ProtoBuf.PlayerResultOrBuilder getPlayerResultsOrBuilder( + int index) { + return playerResults_.get(index); + } + + private void initFields() { + gameId_ = 0; + playerResults_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getPlayerResultsCount(); i++) { + if (!getPlayerResults(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + for (int i = 0; i < playerResults_.size(); i++) { + output.writeMessage(2, playerResults_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + for (int i = 0; i < playerResults_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, playerResults_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_EndOfHandShowCardsMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_EndOfHandShowCardsMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getPlayerResultsFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + if (playerResultsBuilder_ == null) { + playerResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + playerResultsBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage build() { + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage result = new de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (playerResultsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + playerResults_ = java.util.Collections.unmodifiableList(playerResults_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.playerResults_ = playerResults_; + } else { + result.playerResults_ = playerResultsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (playerResultsBuilder_ == null) { + if (!other.playerResults_.isEmpty()) { + if (playerResults_.isEmpty()) { + playerResults_ = other.playerResults_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePlayerResultsIsMutable(); + playerResults_.addAll(other.playerResults_); + } + onChanged(); + } + } else { + if (!other.playerResults_.isEmpty()) { + if (playerResultsBuilder_.isEmpty()) { + playerResultsBuilder_.dispose(); + playerResultsBuilder_ = null; + playerResults_ = other.playerResults_; + bitField0_ = (bitField0_ & ~0x00000002); + playerResultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getPlayerResultsFieldBuilder() : null; + } else { + playerResultsBuilder_.addAllMessages(other.playerResults_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + for (int i = 0; i < getPlayerResultsCount(); i++) { + if (!getPlayerResults(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 18: { + de.pokerth.protocol.ProtoBuf.PlayerResult.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayerResult.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addPlayerResults(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // repeated .PlayerResult playerResults = 2; + private java.util.List playerResults_ = + java.util.Collections.emptyList(); + private void ensurePlayerResultsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + playerResults_ = new java.util.ArrayList(playerResults_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerResult, de.pokerth.protocol.ProtoBuf.PlayerResult.Builder, de.pokerth.protocol.ProtoBuf.PlayerResultOrBuilder> playerResultsBuilder_; + + public java.util.List getPlayerResultsList() { + if (playerResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(playerResults_); + } else { + return playerResultsBuilder_.getMessageList(); + } + } + public int getPlayerResultsCount() { + if (playerResultsBuilder_ == null) { + return playerResults_.size(); + } else { + return playerResultsBuilder_.getCount(); + } + } + public de.pokerth.protocol.ProtoBuf.PlayerResult getPlayerResults(int index) { + if (playerResultsBuilder_ == null) { + return playerResults_.get(index); + } else { + return playerResultsBuilder_.getMessage(index); + } + } + public Builder setPlayerResults( + int index, de.pokerth.protocol.ProtoBuf.PlayerResult value) { + if (playerResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePlayerResultsIsMutable(); + playerResults_.set(index, value); + onChanged(); + } else { + playerResultsBuilder_.setMessage(index, value); + } + return this; + } + public Builder setPlayerResults( + int index, de.pokerth.protocol.ProtoBuf.PlayerResult.Builder builderForValue) { + if (playerResultsBuilder_ == null) { + ensurePlayerResultsIsMutable(); + playerResults_.set(index, builderForValue.build()); + onChanged(); + } else { + playerResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + public Builder addPlayerResults(de.pokerth.protocol.ProtoBuf.PlayerResult value) { + if (playerResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePlayerResultsIsMutable(); + playerResults_.add(value); + onChanged(); + } else { + playerResultsBuilder_.addMessage(value); + } + return this; + } + public Builder addPlayerResults( + int index, de.pokerth.protocol.ProtoBuf.PlayerResult value) { + if (playerResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePlayerResultsIsMutable(); + playerResults_.add(index, value); + onChanged(); + } else { + playerResultsBuilder_.addMessage(index, value); + } + return this; + } + public Builder addPlayerResults( + de.pokerth.protocol.ProtoBuf.PlayerResult.Builder builderForValue) { + if (playerResultsBuilder_ == null) { + ensurePlayerResultsIsMutable(); + playerResults_.add(builderForValue.build()); + onChanged(); + } else { + playerResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addPlayerResults( + int index, de.pokerth.protocol.ProtoBuf.PlayerResult.Builder builderForValue) { + if (playerResultsBuilder_ == null) { + ensurePlayerResultsIsMutable(); + playerResults_.add(index, builderForValue.build()); + onChanged(); + } else { + playerResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + public Builder addAllPlayerResults( + java.lang.Iterable values) { + if (playerResultsBuilder_ == null) { + ensurePlayerResultsIsMutable(); + super.addAll(values, playerResults_); + onChanged(); + } else { + playerResultsBuilder_.addAllMessages(values); + } + return this; + } + public Builder clearPlayerResults() { + if (playerResultsBuilder_ == null) { + playerResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + playerResultsBuilder_.clear(); + } + return this; + } + public Builder removePlayerResults(int index) { + if (playerResultsBuilder_ == null) { + ensurePlayerResultsIsMutable(); + playerResults_.remove(index); + onChanged(); + } else { + playerResultsBuilder_.remove(index); + } + return this; + } + public de.pokerth.protocol.ProtoBuf.PlayerResult.Builder getPlayerResultsBuilder( + int index) { + return getPlayerResultsFieldBuilder().getBuilder(index); + } + public de.pokerth.protocol.ProtoBuf.PlayerResultOrBuilder getPlayerResultsOrBuilder( + int index) { + if (playerResultsBuilder_ == null) { + return playerResults_.get(index); } else { + return playerResultsBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getPlayerResultsOrBuilderList() { + if (playerResultsBuilder_ != null) { + return playerResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(playerResults_); + } + } + public de.pokerth.protocol.ProtoBuf.PlayerResult.Builder addPlayerResultsBuilder() { + return getPlayerResultsFieldBuilder().addBuilder( + de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance()); + } + public de.pokerth.protocol.ProtoBuf.PlayerResult.Builder addPlayerResultsBuilder( + int index) { + return getPlayerResultsFieldBuilder().addBuilder( + index, de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance()); + } + public java.util.List + getPlayerResultsBuilderList() { + return getPlayerResultsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerResult, de.pokerth.protocol.ProtoBuf.PlayerResult.Builder, de.pokerth.protocol.ProtoBuf.PlayerResultOrBuilder> + getPlayerResultsFieldBuilder() { + if (playerResultsBuilder_ == null) { + playerResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerResult, de.pokerth.protocol.ProtoBuf.PlayerResult.Builder, de.pokerth.protocol.ProtoBuf.PlayerResultOrBuilder>( + playerResults_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + playerResults_ = null; + } + return playerResultsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:EndOfHandShowCardsMessage) + } + + static { + defaultInstance = new EndOfHandShowCardsMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:EndOfHandShowCardsMessage) + } + + public interface EndOfHandHideCardsMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 playerId = 2; + boolean hasPlayerId(); + int getPlayerId(); + + // required uint32 moneyWon = 3; + boolean hasMoneyWon(); + int getMoneyWon(); + + // required uint32 playerMoney = 4; + boolean hasPlayerMoney(); + int getPlayerMoney(); + } + public static final class EndOfHandHideCardsMessage extends + com.google.protobuf.GeneratedMessage + implements EndOfHandHideCardsMessageOrBuilder { + // Use EndOfHandHideCardsMessage.newBuilder() to construct. + private EndOfHandHideCardsMessage(Builder builder) { + super(builder); + } + private EndOfHandHideCardsMessage(boolean noInit) {} + + private static final EndOfHandHideCardsMessage defaultInstance; + public static EndOfHandHideCardsMessage getDefaultInstance() { + return defaultInstance; + } + + public EndOfHandHideCardsMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_EndOfHandHideCardsMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_EndOfHandHideCardsMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 playerId = 2; + public static final int PLAYERID_FIELD_NUMBER = 2; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + + // required uint32 moneyWon = 3; + public static final int MONEYWON_FIELD_NUMBER = 3; + private int moneyWon_; + public boolean hasMoneyWon() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getMoneyWon() { + return moneyWon_; + } + + // required uint32 playerMoney = 4; + public static final int PLAYERMONEY_FIELD_NUMBER = 4; + private int playerMoney_; + public boolean hasPlayerMoney() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getPlayerMoney() { + return playerMoney_; + } + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + moneyWon_ = 0; + playerMoney_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasMoneyWon()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerMoney()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, playerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, moneyWon_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(4, playerMoney_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, playerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, moneyWon_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, playerMoney_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_EndOfHandHideCardsMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_EndOfHandHideCardsMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + moneyWon_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + playerMoney_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage build() { + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage result = new de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.moneyWon_ = moneyWon_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.playerMoney_ = playerMoney_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasMoneyWon()) { + setMoneyWon(other.getMoneyWon()); + } + if (other.hasPlayerMoney()) { + setPlayerMoney(other.getPlayerMoney()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + if (!hasMoneyWon()) { + + return false; + } + if (!hasPlayerMoney()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + moneyWon_ = input.readUInt32(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + playerMoney_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 playerId = 2; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000002; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + onChanged(); + return this; + } + + // required uint32 moneyWon = 3; + private int moneyWon_ ; + public boolean hasMoneyWon() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getMoneyWon() { + return moneyWon_; + } + public Builder setMoneyWon(int value) { + bitField0_ |= 0x00000004; + moneyWon_ = value; + onChanged(); + return this; + } + public Builder clearMoneyWon() { + bitField0_ = (bitField0_ & ~0x00000004); + moneyWon_ = 0; + onChanged(); + return this; + } + + // required uint32 playerMoney = 4; + private int playerMoney_ ; + public boolean hasPlayerMoney() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getPlayerMoney() { + return playerMoney_; + } + public Builder setPlayerMoney(int value) { + bitField0_ |= 0x00000008; + playerMoney_ = value; + onChanged(); + return this; + } + public Builder clearPlayerMoney() { + bitField0_ = (bitField0_ & ~0x00000008); + playerMoney_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:EndOfHandHideCardsMessage) + } + + static { + defaultInstance = new EndOfHandHideCardsMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:EndOfHandHideCardsMessage) + } + + public interface ShowMyCardsRequestMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + } + public static final class ShowMyCardsRequestMessage extends + com.google.protobuf.GeneratedMessage + implements ShowMyCardsRequestMessageOrBuilder { + // Use ShowMyCardsRequestMessage.newBuilder() to construct. + private ShowMyCardsRequestMessage(Builder builder) { + super(builder); + } + private ShowMyCardsRequestMessage(boolean noInit) {} + + private static final ShowMyCardsRequestMessage defaultInstance; + public static ShowMyCardsRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public ShowMyCardsRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ShowMyCardsRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ShowMyCardsRequestMessage_fieldAccessorTable; + } + + private void initFields() { + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ShowMyCardsRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ShowMyCardsRequestMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage build() { + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage result = new de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage(this); + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + } + } + } + + + // @@protoc_insertion_point(builder_scope:ShowMyCardsRequestMessage) + } + + static { + defaultInstance = new ShowMyCardsRequestMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:ShowMyCardsRequestMessage) + } + + public interface AfterHandShowCardsMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required .PlayerResult playerResult = 1; + boolean hasPlayerResult(); + de.pokerth.protocol.ProtoBuf.PlayerResult getPlayerResult(); + de.pokerth.protocol.ProtoBuf.PlayerResultOrBuilder getPlayerResultOrBuilder(); + } + public static final class AfterHandShowCardsMessage extends + com.google.protobuf.GeneratedMessage + implements AfterHandShowCardsMessageOrBuilder { + // Use AfterHandShowCardsMessage.newBuilder() to construct. + private AfterHandShowCardsMessage(Builder builder) { + super(builder); + } + private AfterHandShowCardsMessage(boolean noInit) {} + + private static final AfterHandShowCardsMessage defaultInstance; + public static AfterHandShowCardsMessage getDefaultInstance() { + return defaultInstance; + } + + public AfterHandShowCardsMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AfterHandShowCardsMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AfterHandShowCardsMessage_fieldAccessorTable; + } + + private int bitField0_; + // required .PlayerResult playerResult = 1; + public static final int PLAYERRESULT_FIELD_NUMBER = 1; + private de.pokerth.protocol.ProtoBuf.PlayerResult playerResult_; + public boolean hasPlayerResult() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.PlayerResult getPlayerResult() { + return playerResult_; + } + public de.pokerth.protocol.ProtoBuf.PlayerResultOrBuilder getPlayerResultOrBuilder() { + return playerResult_; + } + + private void initFields() { + playerResult_ = de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPlayerResult()) { + memoizedIsInitialized = 0; + return false; + } + if (!getPlayerResult().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, playerResult_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, playerResult_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AfterHandShowCardsMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AfterHandShowCardsMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getPlayerResultFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (playerResultBuilder_ == null) { + playerResult_ = de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance(); + } else { + playerResultBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage build() { + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage result = new de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (playerResultBuilder_ == null) { + result.playerResult_ = playerResult_; + } else { + result.playerResult_ = playerResultBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance()) return this; + if (other.hasPlayerResult()) { + mergePlayerResult(other.getPlayerResult()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasPlayerResult()) { + + return false; + } + if (!getPlayerResult().isInitialized()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 10: { + de.pokerth.protocol.ProtoBuf.PlayerResult.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayerResult.newBuilder(); + if (hasPlayerResult()) { + subBuilder.mergeFrom(getPlayerResult()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlayerResult(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // required .PlayerResult playerResult = 1; + private de.pokerth.protocol.ProtoBuf.PlayerResult playerResult_ = de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerResult, de.pokerth.protocol.ProtoBuf.PlayerResult.Builder, de.pokerth.protocol.ProtoBuf.PlayerResultOrBuilder> playerResultBuilder_; + public boolean hasPlayerResult() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.PlayerResult getPlayerResult() { + if (playerResultBuilder_ == null) { + return playerResult_; + } else { + return playerResultBuilder_.getMessage(); + } + } + public Builder setPlayerResult(de.pokerth.protocol.ProtoBuf.PlayerResult value) { + if (playerResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + playerResult_ = value; + onChanged(); + } else { + playerResultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + public Builder setPlayerResult( + de.pokerth.protocol.ProtoBuf.PlayerResult.Builder builderForValue) { + if (playerResultBuilder_ == null) { + playerResult_ = builderForValue.build(); + onChanged(); + } else { + playerResultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + public Builder mergePlayerResult(de.pokerth.protocol.ProtoBuf.PlayerResult value) { + if (playerResultBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + playerResult_ != de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance()) { + playerResult_ = + de.pokerth.protocol.ProtoBuf.PlayerResult.newBuilder(playerResult_).mergeFrom(value).buildPartial(); + } else { + playerResult_ = value; + } + onChanged(); + } else { + playerResultBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + public Builder clearPlayerResult() { + if (playerResultBuilder_ == null) { + playerResult_ = de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance(); + onChanged(); + } else { + playerResultBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + public de.pokerth.protocol.ProtoBuf.PlayerResult.Builder getPlayerResultBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPlayerResultFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.PlayerResultOrBuilder getPlayerResultOrBuilder() { + if (playerResultBuilder_ != null) { + return playerResultBuilder_.getMessageOrBuilder(); + } else { + return playerResult_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerResult, de.pokerth.protocol.ProtoBuf.PlayerResult.Builder, de.pokerth.protocol.ProtoBuf.PlayerResultOrBuilder> + getPlayerResultFieldBuilder() { + if (playerResultBuilder_ == null) { + playerResultBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerResult, de.pokerth.protocol.ProtoBuf.PlayerResult.Builder, de.pokerth.protocol.ProtoBuf.PlayerResultOrBuilder>( + playerResult_, + getParentForChildren(), + isClean()); + playerResult_ = null; + } + return playerResultBuilder_; + } + + // @@protoc_insertion_point(builder_scope:AfterHandShowCardsMessage) + } + + static { + defaultInstance = new AfterHandShowCardsMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:AfterHandShowCardsMessage) + } + + public interface EndOfGameMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 winnerPlayerId = 2; + boolean hasWinnerPlayerId(); + int getWinnerPlayerId(); + } + public static final class EndOfGameMessage extends + com.google.protobuf.GeneratedMessage + implements EndOfGameMessageOrBuilder { + // Use EndOfGameMessage.newBuilder() to construct. + private EndOfGameMessage(Builder builder) { + super(builder); + } + private EndOfGameMessage(boolean noInit) {} + + private static final EndOfGameMessage defaultInstance; + public static EndOfGameMessage getDefaultInstance() { + return defaultInstance; + } + + public EndOfGameMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_EndOfGameMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_EndOfGameMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 winnerPlayerId = 2; + public static final int WINNERPLAYERID_FIELD_NUMBER = 2; + private int winnerPlayerId_; + public boolean hasWinnerPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getWinnerPlayerId() { + return winnerPlayerId_; + } + + private void initFields() { + gameId_ = 0; + winnerPlayerId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasWinnerPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, winnerPlayerId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, winnerPlayerId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.EndOfGameMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.EndOfGameMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_EndOfGameMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_EndOfGameMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.EndOfGameMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + winnerPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.EndOfGameMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.EndOfGameMessage build() { + de.pokerth.protocol.ProtoBuf.EndOfGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.EndOfGameMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.EndOfGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.EndOfGameMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.EndOfGameMessage result = new de.pokerth.protocol.ProtoBuf.EndOfGameMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.winnerPlayerId_ = winnerPlayerId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.EndOfGameMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.EndOfGameMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.EndOfGameMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasWinnerPlayerId()) { + setWinnerPlayerId(other.getWinnerPlayerId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasWinnerPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + winnerPlayerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 winnerPlayerId = 2; + private int winnerPlayerId_ ; + public boolean hasWinnerPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getWinnerPlayerId() { + return winnerPlayerId_; + } + public Builder setWinnerPlayerId(int value) { + bitField0_ |= 0x00000002; + winnerPlayerId_ = value; + onChanged(); + return this; + } + public Builder clearWinnerPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + winnerPlayerId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:EndOfGameMessage) + } + + static { + defaultInstance = new EndOfGameMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:EndOfGameMessage) + } + + public interface PlayerIdChangedMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 oldPlayerId = 1; + boolean hasOldPlayerId(); + int getOldPlayerId(); + + // required uint32 newPlayerId = 2; + boolean hasNewPlayerId(); + int getNewPlayerId(); + } + public static final class PlayerIdChangedMessage extends + com.google.protobuf.GeneratedMessage + implements PlayerIdChangedMessageOrBuilder { + // Use PlayerIdChangedMessage.newBuilder() to construct. + private PlayerIdChangedMessage(Builder builder) { + super(builder); + } + private PlayerIdChangedMessage(boolean noInit) {} + + private static final PlayerIdChangedMessage defaultInstance; + public static PlayerIdChangedMessage getDefaultInstance() { + return defaultInstance; + } + + public PlayerIdChangedMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerIdChangedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerIdChangedMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 oldPlayerId = 1; + public static final int OLDPLAYERID_FIELD_NUMBER = 1; + private int oldPlayerId_; + public boolean hasOldPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getOldPlayerId() { + return oldPlayerId_; + } + + // required uint32 newPlayerId = 2; + public static final int NEWPLAYERID_FIELD_NUMBER = 2; + private int newPlayerId_; + public boolean hasNewPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getNewPlayerId() { + return newPlayerId_; + } + + private void initFields() { + oldPlayerId_ = 0; + newPlayerId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasOldPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNewPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, oldPlayerId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, newPlayerId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, oldPlayerId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, newPlayerId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerIdChangedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PlayerIdChangedMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + oldPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + newPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage build() { + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage result = new de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.oldPlayerId_ = oldPlayerId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.newPlayerId_ = newPlayerId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance()) return this; + if (other.hasOldPlayerId()) { + setOldPlayerId(other.getOldPlayerId()); + } + if (other.hasNewPlayerId()) { + setNewPlayerId(other.getNewPlayerId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasOldPlayerId()) { + + return false; + } + if (!hasNewPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + oldPlayerId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + newPlayerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 oldPlayerId = 1; + private int oldPlayerId_ ; + public boolean hasOldPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getOldPlayerId() { + return oldPlayerId_; + } + public Builder setOldPlayerId(int value) { + bitField0_ |= 0x00000001; + oldPlayerId_ = value; + onChanged(); + return this; + } + public Builder clearOldPlayerId() { + bitField0_ = (bitField0_ & ~0x00000001); + oldPlayerId_ = 0; + onChanged(); + return this; + } + + // required uint32 newPlayerId = 2; + private int newPlayerId_ ; + public boolean hasNewPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getNewPlayerId() { + return newPlayerId_; + } + public Builder setNewPlayerId(int value) { + bitField0_ |= 0x00000002; + newPlayerId_ = value; + onChanged(); + return this; + } + public Builder clearNewPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + newPlayerId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PlayerIdChangedMessage) + } + + static { + defaultInstance = new PlayerIdChangedMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:PlayerIdChangedMessage) + } + + public interface AskKickPlayerMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 playerId = 2; + boolean hasPlayerId(); + int getPlayerId(); + } + public static final class AskKickPlayerMessage extends + com.google.protobuf.GeneratedMessage + implements AskKickPlayerMessageOrBuilder { + // Use AskKickPlayerMessage.newBuilder() to construct. + private AskKickPlayerMessage(Builder builder) { + super(builder); + } + private AskKickPlayerMessage(boolean noInit) {} + + private static final AskKickPlayerMessage defaultInstance; + public static AskKickPlayerMessage getDefaultInstance() { + return defaultInstance; + } + + public AskKickPlayerMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AskKickPlayerMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AskKickPlayerMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 playerId = 2; + public static final int PLAYERID_FIELD_NUMBER = 2; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, playerId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, playerId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.AskKickPlayerMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AskKickPlayerMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AskKickPlayerMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage build() { + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage result = new de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 playerId = 2; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000002; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:AskKickPlayerMessage) + } + + static { + defaultInstance = new AskKickPlayerMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:AskKickPlayerMessage) + } + + public interface AskKickDeniedMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 playerId = 2; + boolean hasPlayerId(); + int getPlayerId(); + + // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; + boolean hasKickDeniedReason(); + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason getKickDeniedReason(); + } + public static final class AskKickDeniedMessage extends + com.google.protobuf.GeneratedMessage + implements AskKickDeniedMessageOrBuilder { + // Use AskKickDeniedMessage.newBuilder() to construct. + private AskKickDeniedMessage(Builder builder) { + super(builder); + } + private AskKickDeniedMessage(boolean noInit) {} + + private static final AskKickDeniedMessage defaultInstance; + public static AskKickDeniedMessage getDefaultInstance() { + return defaultInstance; + } + + public AskKickDeniedMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AskKickDeniedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AskKickDeniedMessage_fieldAccessorTable; + } + + public enum KickDeniedReason + implements com.google.protobuf.ProtocolMessageEnum { + kickDeniedInvalidGameState(0, 0), + kickDeniedNotPossible(1, 1), + kickDeniedTryAgainLater(2, 2), + kickDeniedAlreadyInProgress(3, 3), + kickDeniedInvalidPlayerId(4, 4), + ; + + public static final int kickDeniedInvalidGameState_VALUE = 0; + public static final int kickDeniedNotPossible_VALUE = 1; + public static final int kickDeniedTryAgainLater_VALUE = 2; + public static final int kickDeniedAlreadyInProgress_VALUE = 3; + public static final int kickDeniedInvalidPlayerId_VALUE = 4; + + + public final int getNumber() { return value; } + + public static KickDeniedReason valueOf(int value) { + switch (value) { + case 0: return kickDeniedInvalidGameState; + case 1: return kickDeniedNotPossible; + case 2: return kickDeniedTryAgainLater; + case 3: return kickDeniedAlreadyInProgress; + case 4: return kickDeniedInvalidPlayerId; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public KickDeniedReason findValueByNumber(int number) { + return KickDeniedReason.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 de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final KickDeniedReason[] VALUES = { + kickDeniedInvalidGameState, kickDeniedNotPossible, kickDeniedTryAgainLater, kickDeniedAlreadyInProgress, kickDeniedInvalidPlayerId, + }; + + public static KickDeniedReason 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 KickDeniedReason(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:AskKickDeniedMessage.KickDeniedReason) + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 playerId = 2; + public static final int PLAYERID_FIELD_NUMBER = 2; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + + // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; + public static final int KICKDENIEDREASON_FIELD_NUMBER = 3; + private de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason kickDeniedReason_; + public boolean hasKickDeniedReason() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason getKickDeniedReason() { + return kickDeniedReason_; + } + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + kickDeniedReason_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason.kickDeniedInvalidGameState; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasKickDeniedReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, playerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, kickDeniedReason_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, playerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, kickDeniedReason_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.AskKickDeniedMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_AskKickDeniedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_AskKickDeniedMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + kickDeniedReason_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason.kickDeniedInvalidGameState; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage build() { + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage result = new de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.kickDeniedReason_ = kickDeniedReason_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasKickDeniedReason()) { + setKickDeniedReason(other.getKickDeniedReason()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPlayerId()) { + + return false; + } + if (!hasKickDeniedReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason value = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(3, rawValue); + } else { + bitField0_ |= 0x00000004; + kickDeniedReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 playerId = 2; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000002; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + onChanged(); + return this; + } + + // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; + private de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason kickDeniedReason_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason.kickDeniedInvalidGameState; + public boolean hasKickDeniedReason() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason getKickDeniedReason() { + return kickDeniedReason_; + } + public Builder setKickDeniedReason(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + kickDeniedReason_ = value; + onChanged(); + return this; + } + public Builder clearKickDeniedReason() { + bitField0_ = (bitField0_ & ~0x00000004); + kickDeniedReason_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason.kickDeniedInvalidGameState; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:AskKickDeniedMessage) + } + + static { + defaultInstance = new AskKickDeniedMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:AskKickDeniedMessage) + } + + public interface StartKickPetitionMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 petitionId = 2; + boolean hasPetitionId(); + int getPetitionId(); + + // required uint32 proposingPlayerId = 3; + boolean hasProposingPlayerId(); + int getProposingPlayerId(); + + // required uint32 kickPlayerId = 4; + boolean hasKickPlayerId(); + int getKickPlayerId(); + + // required uint32 kickTimeoutSec = 5; + boolean hasKickTimeoutSec(); + int getKickTimeoutSec(); + + // required uint32 numVotesNeededToKick = 6; + boolean hasNumVotesNeededToKick(); + int getNumVotesNeededToKick(); + } + public static final class StartKickPetitionMessage extends + com.google.protobuf.GeneratedMessage + implements StartKickPetitionMessageOrBuilder { + // Use StartKickPetitionMessage.newBuilder() to construct. + private StartKickPetitionMessage(Builder builder) { + super(builder); + } + private StartKickPetitionMessage(boolean noInit) {} + + private static final StartKickPetitionMessage defaultInstance; + public static StartKickPetitionMessage getDefaultInstance() { + return defaultInstance; + } + + public StartKickPetitionMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_StartKickPetitionMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_StartKickPetitionMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 petitionId = 2; + public static final int PETITIONID_FIELD_NUMBER = 2; + private int petitionId_; + public boolean hasPetitionId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPetitionId() { + return petitionId_; + } + + // required uint32 proposingPlayerId = 3; + public static final int PROPOSINGPLAYERID_FIELD_NUMBER = 3; + private int proposingPlayerId_; + public boolean hasProposingPlayerId() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getProposingPlayerId() { + return proposingPlayerId_; + } + + // required uint32 kickPlayerId = 4; + public static final int KICKPLAYERID_FIELD_NUMBER = 4; + private int kickPlayerId_; + public boolean hasKickPlayerId() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getKickPlayerId() { + return kickPlayerId_; + } + + // required uint32 kickTimeoutSec = 5; + public static final int KICKTIMEOUTSEC_FIELD_NUMBER = 5; + private int kickTimeoutSec_; + public boolean hasKickTimeoutSec() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getKickTimeoutSec() { + return kickTimeoutSec_; + } + + // required uint32 numVotesNeededToKick = 6; + public static final int NUMVOTESNEEDEDTOKICK_FIELD_NUMBER = 6; + private int numVotesNeededToKick_; + public boolean hasNumVotesNeededToKick() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public int getNumVotesNeededToKick() { + return numVotesNeededToKick_; + } + + private void initFields() { + gameId_ = 0; + petitionId_ = 0; + proposingPlayerId_ = 0; + kickPlayerId_ = 0; + kickTimeoutSec_ = 0; + numVotesNeededToKick_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPetitionId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasProposingPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasKickPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasKickTimeoutSec()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNumVotesNeededToKick()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, petitionId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, proposingPlayerId_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(4, kickPlayerId_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt32(5, kickTimeoutSec_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeUInt32(6, numVotesNeededToKick_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, petitionId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, proposingPlayerId_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, kickPlayerId_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, kickTimeoutSec_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, numVotesNeededToKick_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.StartKickPetitionMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_StartKickPetitionMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_StartKickPetitionMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + petitionId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + proposingPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + kickPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + kickTimeoutSec_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + numVotesNeededToKick_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage build() { + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage result = new de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.petitionId_ = petitionId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.proposingPlayerId_ = proposingPlayerId_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.kickPlayerId_ = kickPlayerId_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.kickTimeoutSec_ = kickTimeoutSec_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.numVotesNeededToKick_ = numVotesNeededToKick_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPetitionId()) { + setPetitionId(other.getPetitionId()); + } + if (other.hasProposingPlayerId()) { + setProposingPlayerId(other.getProposingPlayerId()); + } + if (other.hasKickPlayerId()) { + setKickPlayerId(other.getKickPlayerId()); + } + if (other.hasKickTimeoutSec()) { + setKickTimeoutSec(other.getKickTimeoutSec()); + } + if (other.hasNumVotesNeededToKick()) { + setNumVotesNeededToKick(other.getNumVotesNeededToKick()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPetitionId()) { + + return false; + } + if (!hasProposingPlayerId()) { + + return false; + } + if (!hasKickPlayerId()) { + + return false; + } + if (!hasKickTimeoutSec()) { + + return false; + } + if (!hasNumVotesNeededToKick()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + petitionId_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + proposingPlayerId_ = input.readUInt32(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + kickPlayerId_ = input.readUInt32(); + break; + } + case 40: { + bitField0_ |= 0x00000010; + kickTimeoutSec_ = input.readUInt32(); + break; + } + case 48: { + bitField0_ |= 0x00000020; + numVotesNeededToKick_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 petitionId = 2; + private int petitionId_ ; + public boolean hasPetitionId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPetitionId() { + return petitionId_; + } + public Builder setPetitionId(int value) { + bitField0_ |= 0x00000002; + petitionId_ = value; + onChanged(); + return this; + } + public Builder clearPetitionId() { + bitField0_ = (bitField0_ & ~0x00000002); + petitionId_ = 0; + onChanged(); + return this; + } + + // required uint32 proposingPlayerId = 3; + private int proposingPlayerId_ ; + public boolean hasProposingPlayerId() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getProposingPlayerId() { + return proposingPlayerId_; + } + public Builder setProposingPlayerId(int value) { + bitField0_ |= 0x00000004; + proposingPlayerId_ = value; + onChanged(); + return this; + } + public Builder clearProposingPlayerId() { + bitField0_ = (bitField0_ & ~0x00000004); + proposingPlayerId_ = 0; + onChanged(); + return this; + } + + // required uint32 kickPlayerId = 4; + private int kickPlayerId_ ; + public boolean hasKickPlayerId() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getKickPlayerId() { + return kickPlayerId_; + } + public Builder setKickPlayerId(int value) { + bitField0_ |= 0x00000008; + kickPlayerId_ = value; + onChanged(); + return this; + } + public Builder clearKickPlayerId() { + bitField0_ = (bitField0_ & ~0x00000008); + kickPlayerId_ = 0; + onChanged(); + return this; + } + + // required uint32 kickTimeoutSec = 5; + private int kickTimeoutSec_ ; + public boolean hasKickTimeoutSec() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getKickTimeoutSec() { + return kickTimeoutSec_; + } + public Builder setKickTimeoutSec(int value) { + bitField0_ |= 0x00000010; + kickTimeoutSec_ = value; + onChanged(); + return this; + } + public Builder clearKickTimeoutSec() { + bitField0_ = (bitField0_ & ~0x00000010); + kickTimeoutSec_ = 0; + onChanged(); + return this; + } + + // required uint32 numVotesNeededToKick = 6; + private int numVotesNeededToKick_ ; + public boolean hasNumVotesNeededToKick() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public int getNumVotesNeededToKick() { + return numVotesNeededToKick_; + } + public Builder setNumVotesNeededToKick(int value) { + bitField0_ |= 0x00000020; + numVotesNeededToKick_ = value; + onChanged(); + return this; + } + public Builder clearNumVotesNeededToKick() { + bitField0_ = (bitField0_ & ~0x00000020); + numVotesNeededToKick_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:StartKickPetitionMessage) + } + + static { + defaultInstance = new StartKickPetitionMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:StartKickPetitionMessage) + } + + public interface VoteKickRequestMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 petitionId = 2; + boolean hasPetitionId(); + int getPetitionId(); + + // required bool voteKick = 3; + boolean hasVoteKick(); + boolean getVoteKick(); + } + public static final class VoteKickRequestMessage extends + com.google.protobuf.GeneratedMessage + implements VoteKickRequestMessageOrBuilder { + // Use VoteKickRequestMessage.newBuilder() to construct. + private VoteKickRequestMessage(Builder builder) { + super(builder); + } + private VoteKickRequestMessage(boolean noInit) {} + + private static final VoteKickRequestMessage defaultInstance; + public static VoteKickRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public VoteKickRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_VoteKickRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_VoteKickRequestMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 petitionId = 2; + public static final int PETITIONID_FIELD_NUMBER = 2; + private int petitionId_; + public boolean hasPetitionId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPetitionId() { + return petitionId_; + } + + // required bool voteKick = 3; + public static final int VOTEKICK_FIELD_NUMBER = 3; + private boolean voteKick_; + public boolean hasVoteKick() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public boolean getVoteKick() { + return voteKick_; + } + + private void initFields() { + gameId_ = 0; + petitionId_ = 0; + voteKick_ = false; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPetitionId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasVoteKick()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, petitionId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBool(3, voteKick_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, petitionId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, voteKick_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.VoteKickRequestMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_VoteKickRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_VoteKickRequestMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + petitionId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + voteKick_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage build() { + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage result = new de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.petitionId_ = petitionId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.voteKick_ = voteKick_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPetitionId()) { + setPetitionId(other.getPetitionId()); + } + if (other.hasVoteKick()) { + setVoteKick(other.getVoteKick()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPetitionId()) { + + return false; + } + if (!hasVoteKick()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + petitionId_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + voteKick_ = input.readBool(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 petitionId = 2; + private int petitionId_ ; + public boolean hasPetitionId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPetitionId() { + return petitionId_; + } + public Builder setPetitionId(int value) { + bitField0_ |= 0x00000002; + petitionId_ = value; + onChanged(); + return this; + } + public Builder clearPetitionId() { + bitField0_ = (bitField0_ & ~0x00000002); + petitionId_ = 0; + onChanged(); + return this; + } + + // required bool voteKick = 3; + private boolean voteKick_ ; + public boolean hasVoteKick() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public boolean getVoteKick() { + return voteKick_; + } + public Builder setVoteKick(boolean value) { + bitField0_ |= 0x00000004; + voteKick_ = value; + onChanged(); + return this; + } + public Builder clearVoteKick() { + bitField0_ = (bitField0_ & ~0x00000004); + voteKick_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:VoteKickRequestMessage) + } + + static { + defaultInstance = new VoteKickRequestMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:VoteKickRequestMessage) + } + + public interface VoteKickReplyMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 petitionId = 2; + boolean hasPetitionId(); + int getPetitionId(); + + // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; + boolean hasVoteKickReplyType(); + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType getVoteKickReplyType(); + } + public static final class VoteKickReplyMessage extends + com.google.protobuf.GeneratedMessage + implements VoteKickReplyMessageOrBuilder { + // Use VoteKickReplyMessage.newBuilder() to construct. + private VoteKickReplyMessage(Builder builder) { + super(builder); + } + private VoteKickReplyMessage(boolean noInit) {} + + private static final VoteKickReplyMessage defaultInstance; + public static VoteKickReplyMessage getDefaultInstance() { + return defaultInstance; + } + + public VoteKickReplyMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_VoteKickReplyMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_VoteKickReplyMessage_fieldAccessorTable; + } + + public enum VoteKickReplyType + implements com.google.protobuf.ProtocolMessageEnum { + voteKickAck(0, 0), + voteKickDeniedInvalid(1, 1), + voteKickDeniedAlreadyVoted(2, 2), + ; + + public static final int voteKickAck_VALUE = 0; + public static final int voteKickDeniedInvalid_VALUE = 1; + public static final int voteKickDeniedAlreadyVoted_VALUE = 2; + + + public final int getNumber() { return value; } + + public static VoteKickReplyType valueOf(int value) { + switch (value) { + case 0: return voteKickAck; + case 1: return voteKickDeniedInvalid; + case 2: return voteKickDeniedAlreadyVoted; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VoteKickReplyType findValueByNumber(int number) { + return VoteKickReplyType.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 de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final VoteKickReplyType[] VALUES = { + voteKickAck, voteKickDeniedInvalid, voteKickDeniedAlreadyVoted, + }; + + public static VoteKickReplyType 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 VoteKickReplyType(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:VoteKickReplyMessage.VoteKickReplyType) + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 petitionId = 2; + public static final int PETITIONID_FIELD_NUMBER = 2; + private int petitionId_; + public boolean hasPetitionId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPetitionId() { + return petitionId_; + } + + // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; + public static final int VOTEKICKREPLYTYPE_FIELD_NUMBER = 3; + private de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType voteKickReplyType_; + public boolean hasVoteKickReplyType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType getVoteKickReplyType() { + return voteKickReplyType_; + } + + private void initFields() { + gameId_ = 0; + petitionId_ = 0; + voteKickReplyType_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType.voteKickAck; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPetitionId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasVoteKickReplyType()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, petitionId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, voteKickReplyType_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, petitionId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, voteKickReplyType_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.VoteKickReplyMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_VoteKickReplyMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_VoteKickReplyMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + petitionId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + voteKickReplyType_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType.voteKickAck; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage build() { + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage result = new de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.petitionId_ = petitionId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.voteKickReplyType_ = voteKickReplyType_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPetitionId()) { + setPetitionId(other.getPetitionId()); + } + if (other.hasVoteKickReplyType()) { + setVoteKickReplyType(other.getVoteKickReplyType()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPetitionId()) { + + return false; + } + if (!hasVoteKickReplyType()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + petitionId_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType value = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(3, rawValue); + } else { + bitField0_ |= 0x00000004; + voteKickReplyType_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 petitionId = 2; + private int petitionId_ ; + public boolean hasPetitionId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPetitionId() { + return petitionId_; + } + public Builder setPetitionId(int value) { + bitField0_ |= 0x00000002; + petitionId_ = value; + onChanged(); + return this; + } + public Builder clearPetitionId() { + bitField0_ = (bitField0_ & ~0x00000002); + petitionId_ = 0; + onChanged(); + return this; + } + + // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; + private de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType voteKickReplyType_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType.voteKickAck; + public boolean hasVoteKickReplyType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType getVoteKickReplyType() { + return voteKickReplyType_; + } + public Builder setVoteKickReplyType(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + voteKickReplyType_ = value; + onChanged(); + return this; + } + public Builder clearVoteKickReplyType() { + bitField0_ = (bitField0_ & ~0x00000004); + voteKickReplyType_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType.voteKickAck; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:VoteKickReplyMessage) + } + + static { + defaultInstance = new VoteKickReplyMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:VoteKickReplyMessage) + } + + public interface KickPetitionUpdateMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 petitionId = 2; + boolean hasPetitionId(); + int getPetitionId(); + + // required uint32 numVotesAgainstKicking = 3; + boolean hasNumVotesAgainstKicking(); + int getNumVotesAgainstKicking(); + + // required uint32 numVotesInFavourOfKicking = 4; + boolean hasNumVotesInFavourOfKicking(); + int getNumVotesInFavourOfKicking(); + + // required uint32 numVotesNeededToKick = 5; + boolean hasNumVotesNeededToKick(); + int getNumVotesNeededToKick(); + } + public static final class KickPetitionUpdateMessage extends + com.google.protobuf.GeneratedMessage + implements KickPetitionUpdateMessageOrBuilder { + // Use KickPetitionUpdateMessage.newBuilder() to construct. + private KickPetitionUpdateMessage(Builder builder) { + super(builder); + } + private KickPetitionUpdateMessage(boolean noInit) {} + + private static final KickPetitionUpdateMessage defaultInstance; + public static KickPetitionUpdateMessage getDefaultInstance() { + return defaultInstance; + } + + public KickPetitionUpdateMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_KickPetitionUpdateMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_KickPetitionUpdateMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 petitionId = 2; + public static final int PETITIONID_FIELD_NUMBER = 2; + private int petitionId_; + public boolean hasPetitionId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPetitionId() { + return petitionId_; + } + + // required uint32 numVotesAgainstKicking = 3; + public static final int NUMVOTESAGAINSTKICKING_FIELD_NUMBER = 3; + private int numVotesAgainstKicking_; + public boolean hasNumVotesAgainstKicking() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getNumVotesAgainstKicking() { + return numVotesAgainstKicking_; + } + + // required uint32 numVotesInFavourOfKicking = 4; + public static final int NUMVOTESINFAVOUROFKICKING_FIELD_NUMBER = 4; + private int numVotesInFavourOfKicking_; + public boolean hasNumVotesInFavourOfKicking() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getNumVotesInFavourOfKicking() { + return numVotesInFavourOfKicking_; + } + + // required uint32 numVotesNeededToKick = 5; + public static final int NUMVOTESNEEDEDTOKICK_FIELD_NUMBER = 5; + private int numVotesNeededToKick_; + public boolean hasNumVotesNeededToKick() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getNumVotesNeededToKick() { + return numVotesNeededToKick_; + } + + private void initFields() { + gameId_ = 0; + petitionId_ = 0; + numVotesAgainstKicking_ = 0; + numVotesInFavourOfKicking_ = 0; + numVotesNeededToKick_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPetitionId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNumVotesAgainstKicking()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNumVotesInFavourOfKicking()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNumVotesNeededToKick()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, petitionId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, numVotesAgainstKicking_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(4, numVotesInFavourOfKicking_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt32(5, numVotesNeededToKick_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, petitionId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, numVotesAgainstKicking_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, numVotesInFavourOfKicking_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, numVotesNeededToKick_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_KickPetitionUpdateMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_KickPetitionUpdateMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + petitionId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + numVotesAgainstKicking_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + numVotesInFavourOfKicking_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + numVotesNeededToKick_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage build() { + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage result = new de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.petitionId_ = petitionId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.numVotesAgainstKicking_ = numVotesAgainstKicking_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.numVotesInFavourOfKicking_ = numVotesInFavourOfKicking_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.numVotesNeededToKick_ = numVotesNeededToKick_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPetitionId()) { + setPetitionId(other.getPetitionId()); + } + if (other.hasNumVotesAgainstKicking()) { + setNumVotesAgainstKicking(other.getNumVotesAgainstKicking()); + } + if (other.hasNumVotesInFavourOfKicking()) { + setNumVotesInFavourOfKicking(other.getNumVotesInFavourOfKicking()); + } + if (other.hasNumVotesNeededToKick()) { + setNumVotesNeededToKick(other.getNumVotesNeededToKick()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPetitionId()) { + + return false; + } + if (!hasNumVotesAgainstKicking()) { + + return false; + } + if (!hasNumVotesInFavourOfKicking()) { + + return false; + } + if (!hasNumVotesNeededToKick()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + petitionId_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + numVotesAgainstKicking_ = input.readUInt32(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + numVotesInFavourOfKicking_ = input.readUInt32(); + break; + } + case 40: { + bitField0_ |= 0x00000010; + numVotesNeededToKick_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 petitionId = 2; + private int petitionId_ ; + public boolean hasPetitionId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPetitionId() { + return petitionId_; + } + public Builder setPetitionId(int value) { + bitField0_ |= 0x00000002; + petitionId_ = value; + onChanged(); + return this; + } + public Builder clearPetitionId() { + bitField0_ = (bitField0_ & ~0x00000002); + petitionId_ = 0; + onChanged(); + return this; + } + + // required uint32 numVotesAgainstKicking = 3; + private int numVotesAgainstKicking_ ; + public boolean hasNumVotesAgainstKicking() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getNumVotesAgainstKicking() { + return numVotesAgainstKicking_; + } + public Builder setNumVotesAgainstKicking(int value) { + bitField0_ |= 0x00000004; + numVotesAgainstKicking_ = value; + onChanged(); + return this; + } + public Builder clearNumVotesAgainstKicking() { + bitField0_ = (bitField0_ & ~0x00000004); + numVotesAgainstKicking_ = 0; + onChanged(); + return this; + } + + // required uint32 numVotesInFavourOfKicking = 4; + private int numVotesInFavourOfKicking_ ; + public boolean hasNumVotesInFavourOfKicking() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getNumVotesInFavourOfKicking() { + return numVotesInFavourOfKicking_; + } + public Builder setNumVotesInFavourOfKicking(int value) { + bitField0_ |= 0x00000008; + numVotesInFavourOfKicking_ = value; + onChanged(); + return this; + } + public Builder clearNumVotesInFavourOfKicking() { + bitField0_ = (bitField0_ & ~0x00000008); + numVotesInFavourOfKicking_ = 0; + onChanged(); + return this; + } + + // required uint32 numVotesNeededToKick = 5; + private int numVotesNeededToKick_ ; + public boolean hasNumVotesNeededToKick() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getNumVotesNeededToKick() { + return numVotesNeededToKick_; + } + public Builder setNumVotesNeededToKick(int value) { + bitField0_ |= 0x00000010; + numVotesNeededToKick_ = value; + onChanged(); + return this; + } + public Builder clearNumVotesNeededToKick() { + bitField0_ = (bitField0_ & ~0x00000010); + numVotesNeededToKick_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:KickPetitionUpdateMessage) + } + + static { + defaultInstance = new KickPetitionUpdateMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:KickPetitionUpdateMessage) + } + + public interface EndKickPetitionMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // required uint32 petitionId = 2; + boolean hasPetitionId(); + int getPetitionId(); + + // required uint32 numVotesAgainstKicking = 3; + boolean hasNumVotesAgainstKicking(); + int getNumVotesAgainstKicking(); + + // required uint32 numVotesInFavourOfKicking = 4; + boolean hasNumVotesInFavourOfKicking(); + int getNumVotesInFavourOfKicking(); + + // required uint32 resultPlayerKicked = 5; + boolean hasResultPlayerKicked(); + int getResultPlayerKicked(); + + // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; + boolean hasPetitionEndReason(); + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason getPetitionEndReason(); + } + public static final class EndKickPetitionMessage extends + com.google.protobuf.GeneratedMessage + implements EndKickPetitionMessageOrBuilder { + // Use EndKickPetitionMessage.newBuilder() to construct. + private EndKickPetitionMessage(Builder builder) { + super(builder); + } + private EndKickPetitionMessage(boolean noInit) {} + + private static final EndKickPetitionMessage defaultInstance; + public static EndKickPetitionMessage getDefaultInstance() { + return defaultInstance; + } + + public EndKickPetitionMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_EndKickPetitionMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_EndKickPetitionMessage_fieldAccessorTable; + } + + public enum PetitionEndReason + implements com.google.protobuf.ProtocolMessageEnum { + petitionEndEnoughVotes(0, 0), + petitionEndTooFewPlayers(1, 1), + petitionEndPlayerLeft(2, 2), + petitionEndTimeout(3, 3), + ; + + public static final int petitionEndEnoughVotes_VALUE = 0; + public static final int petitionEndTooFewPlayers_VALUE = 1; + public static final int petitionEndPlayerLeft_VALUE = 2; + public static final int petitionEndTimeout_VALUE = 3; + + + public final int getNumber() { return value; } + + public static PetitionEndReason valueOf(int value) { + switch (value) { + case 0: return petitionEndEnoughVotes; + case 1: return petitionEndTooFewPlayers; + case 2: return petitionEndPlayerLeft; + case 3: return petitionEndTimeout; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PetitionEndReason findValueByNumber(int number) { + return PetitionEndReason.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 de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final PetitionEndReason[] VALUES = { + petitionEndEnoughVotes, petitionEndTooFewPlayers, petitionEndPlayerLeft, petitionEndTimeout, + }; + + public static PetitionEndReason 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 PetitionEndReason(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:EndKickPetitionMessage.PetitionEndReason) + } + + private int bitField0_; + // required uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // required uint32 petitionId = 2; + public static final int PETITIONID_FIELD_NUMBER = 2; + private int petitionId_; + public boolean hasPetitionId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPetitionId() { + return petitionId_; + } + + // required uint32 numVotesAgainstKicking = 3; + public static final int NUMVOTESAGAINSTKICKING_FIELD_NUMBER = 3; + private int numVotesAgainstKicking_; + public boolean hasNumVotesAgainstKicking() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getNumVotesAgainstKicking() { + return numVotesAgainstKicking_; + } + + // required uint32 numVotesInFavourOfKicking = 4; + public static final int NUMVOTESINFAVOUROFKICKING_FIELD_NUMBER = 4; + private int numVotesInFavourOfKicking_; + public boolean hasNumVotesInFavourOfKicking() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getNumVotesInFavourOfKicking() { + return numVotesInFavourOfKicking_; + } + + // required uint32 resultPlayerKicked = 5; + public static final int RESULTPLAYERKICKED_FIELD_NUMBER = 5; + private int resultPlayerKicked_; + public boolean hasResultPlayerKicked() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getResultPlayerKicked() { + return resultPlayerKicked_; + } + + // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; + public static final int PETITIONENDREASON_FIELD_NUMBER = 6; + private de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason petitionEndReason_; + public boolean hasPetitionEndReason() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason getPetitionEndReason() { + return petitionEndReason_; + } + + private void initFields() { + gameId_ = 0; + petitionId_ = 0; + numVotesAgainstKicking_ = 0; + numVotesInFavourOfKicking_ = 0; + resultPlayerKicked_ = 0; + petitionEndReason_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason.petitionEndEnoughVotes; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPetitionId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNumVotesAgainstKicking()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasNumVotesInFavourOfKicking()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasResultPlayerKicked()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPetitionEndReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, petitionId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, numVotesAgainstKicking_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(4, numVotesInFavourOfKicking_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt32(5, resultPlayerKicked_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeEnum(6, petitionEndReason_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, petitionId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, numVotesAgainstKicking_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, numVotesInFavourOfKicking_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, resultPlayerKicked_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, petitionEndReason_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.EndKickPetitionMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_EndKickPetitionMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_EndKickPetitionMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + petitionId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + numVotesAgainstKicking_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + numVotesInFavourOfKicking_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + resultPlayerKicked_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + petitionEndReason_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason.petitionEndEnoughVotes; + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage build() { + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage result = new de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.petitionId_ = petitionId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.numVotesAgainstKicking_ = numVotesAgainstKicking_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.numVotesInFavourOfKicking_ = numVotesInFavourOfKicking_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.resultPlayerKicked_ = resultPlayerKicked_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.petitionEndReason_ = petitionEndReason_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPetitionId()) { + setPetitionId(other.getPetitionId()); + } + if (other.hasNumVotesAgainstKicking()) { + setNumVotesAgainstKicking(other.getNumVotesAgainstKicking()); + } + if (other.hasNumVotesInFavourOfKicking()) { + setNumVotesInFavourOfKicking(other.getNumVotesInFavourOfKicking()); + } + if (other.hasResultPlayerKicked()) { + setResultPlayerKicked(other.getResultPlayerKicked()); + } + if (other.hasPetitionEndReason()) { + setPetitionEndReason(other.getPetitionEndReason()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasGameId()) { + + return false; + } + if (!hasPetitionId()) { + + return false; + } + if (!hasNumVotesAgainstKicking()) { + + return false; + } + if (!hasNumVotesInFavourOfKicking()) { + + return false; + } + if (!hasResultPlayerKicked()) { + + return false; + } + if (!hasPetitionEndReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + petitionId_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + numVotesAgainstKicking_ = input.readUInt32(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + numVotesInFavourOfKicking_ = input.readUInt32(); + break; + } + case 40: { + bitField0_ |= 0x00000010; + resultPlayerKicked_ = input.readUInt32(); + break; + } + case 48: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason value = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(6, rawValue); + } else { + bitField0_ |= 0x00000020; + petitionEndReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // required uint32 petitionId = 2; + private int petitionId_ ; + public boolean hasPetitionId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPetitionId() { + return petitionId_; + } + public Builder setPetitionId(int value) { + bitField0_ |= 0x00000002; + petitionId_ = value; + onChanged(); + return this; + } + public Builder clearPetitionId() { + bitField0_ = (bitField0_ & ~0x00000002); + petitionId_ = 0; + onChanged(); + return this; + } + + // required uint32 numVotesAgainstKicking = 3; + private int numVotesAgainstKicking_ ; + public boolean hasNumVotesAgainstKicking() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public int getNumVotesAgainstKicking() { + return numVotesAgainstKicking_; + } + public Builder setNumVotesAgainstKicking(int value) { + bitField0_ |= 0x00000004; + numVotesAgainstKicking_ = value; + onChanged(); + return this; + } + public Builder clearNumVotesAgainstKicking() { + bitField0_ = (bitField0_ & ~0x00000004); + numVotesAgainstKicking_ = 0; + onChanged(); + return this; + } + + // required uint32 numVotesInFavourOfKicking = 4; + private int numVotesInFavourOfKicking_ ; + public boolean hasNumVotesInFavourOfKicking() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public int getNumVotesInFavourOfKicking() { + return numVotesInFavourOfKicking_; + } + public Builder setNumVotesInFavourOfKicking(int value) { + bitField0_ |= 0x00000008; + numVotesInFavourOfKicking_ = value; + onChanged(); + return this; + } + public Builder clearNumVotesInFavourOfKicking() { + bitField0_ = (bitField0_ & ~0x00000008); + numVotesInFavourOfKicking_ = 0; + onChanged(); + return this; + } + + // required uint32 resultPlayerKicked = 5; + private int resultPlayerKicked_ ; + public boolean hasResultPlayerKicked() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public int getResultPlayerKicked() { + return resultPlayerKicked_; + } + public Builder setResultPlayerKicked(int value) { + bitField0_ |= 0x00000010; + resultPlayerKicked_ = value; + onChanged(); + return this; + } + public Builder clearResultPlayerKicked() { + bitField0_ = (bitField0_ & ~0x00000010); + resultPlayerKicked_ = 0; + onChanged(); + return this; + } + + // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; + private de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason petitionEndReason_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason.petitionEndEnoughVotes; + public boolean hasPetitionEndReason() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason getPetitionEndReason() { + return petitionEndReason_; + } + public Builder setPetitionEndReason(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + petitionEndReason_ = value; + onChanged(); + return this; + } + public Builder clearPetitionEndReason() { + bitField0_ = (bitField0_ & ~0x00000020); + petitionEndReason_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason.petitionEndEnoughVotes; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:EndKickPetitionMessage) + } + + static { + defaultInstance = new EndKickPetitionMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:EndKickPetitionMessage) + } + + public interface StatisticsMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // repeated .StatisticsMessage.StatisticsData statisticsData = 1; + java.util.List + getStatisticsDataList(); + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData getStatisticsData(int index); + int getStatisticsDataCount(); + java.util.List + getStatisticsDataOrBuilderList(); + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsDataOrBuilder getStatisticsDataOrBuilder( + int index); + } + public static final class StatisticsMessage extends + com.google.protobuf.GeneratedMessage + implements StatisticsMessageOrBuilder { + // Use StatisticsMessage.newBuilder() to construct. + private StatisticsMessage(Builder builder) { + super(builder); + } + private StatisticsMessage(boolean noInit) {} + + private static final StatisticsMessage defaultInstance; + public static StatisticsMessage getDefaultInstance() { + return defaultInstance; + } + + public StatisticsMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_StatisticsMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_StatisticsMessage_fieldAccessorTable; + } + + public interface StatisticsDataOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; + boolean hasStatisticsType(); + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType getStatisticsType(); + + // required uint32 statisticsValue = 2; + boolean hasStatisticsValue(); + int getStatisticsValue(); + } + public static final class StatisticsData extends + com.google.protobuf.GeneratedMessage + implements StatisticsDataOrBuilder { + // Use StatisticsData.newBuilder() to construct. + private StatisticsData(Builder builder) { + super(builder); + } + private StatisticsData(boolean noInit) {} + + private static final StatisticsData defaultInstance; + public static StatisticsData getDefaultInstance() { + return defaultInstance; + } + + public StatisticsData getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_StatisticsMessage_StatisticsData_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_StatisticsMessage_StatisticsData_fieldAccessorTable; + } + + public enum StatisticsType + implements com.google.protobuf.ProtocolMessageEnum { + statNumberOfPlayers(0, 1), + ; + + public static final int statNumberOfPlayers_VALUE = 1; + + + public final int getNumber() { return value; } + + public static StatisticsType valueOf(int value) { + switch (value) { + case 1: return statNumberOfPlayers; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StatisticsType findValueByNumber(int number) { + return StatisticsType.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 de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.getDescriptor().getEnumTypes().get(0); + } + + private static final StatisticsType[] VALUES = { + statNumberOfPlayers, + }; + + public static StatisticsType 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 StatisticsType(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:StatisticsMessage.StatisticsData.StatisticsType) + } + + private int bitField0_; + // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; + public static final int STATISTICSTYPE_FIELD_NUMBER = 1; + private de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType statisticsType_; + public boolean hasStatisticsType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType getStatisticsType() { + return statisticsType_; + } + + // required uint32 statisticsValue = 2; + public static final int STATISTICSVALUE_FIELD_NUMBER = 2; + private int statisticsValue_; + public boolean hasStatisticsValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getStatisticsValue() { + return statisticsValue_; + } + + private void initFields() { + statisticsType_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType.statNumberOfPlayers; + statisticsValue_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasStatisticsType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasStatisticsValue()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, statisticsType_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, statisticsValue_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, statisticsType_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, statisticsValue_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_StatisticsMessage_StatisticsData_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_StatisticsMessage_StatisticsData_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + statisticsType_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType.statNumberOfPlayers; + bitField0_ = (bitField0_ & ~0x00000001); + statisticsValue_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData build() { + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData buildPartial() { + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData result = new de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.statisticsType_ = statisticsType_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.statisticsValue_ = statisticsValue_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData other) { + if (other == de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.getDefaultInstance()) return this; + if (other.hasStatisticsType()) { + setStatisticsType(other.getStatisticsType()); + } + if (other.hasStatisticsValue()) { + setStatisticsValue(other.getStatisticsValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasStatisticsType()) { + + return false; + } + if (!hasStatisticsValue()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType value = de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + statisticsType_ = value; + } + break; + } + case 16: { + bitField0_ |= 0x00000002; + statisticsValue_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; + private de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType statisticsType_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType.statNumberOfPlayers; + public boolean hasStatisticsType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType getStatisticsType() { + return statisticsType_; + } + public Builder setStatisticsType(de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + statisticsType_ = value; + onChanged(); + return this; + } + public Builder clearStatisticsType() { + bitField0_ = (bitField0_ & ~0x00000001); + statisticsType_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType.statNumberOfPlayers; + onChanged(); + return this; + } + + // required uint32 statisticsValue = 2; + private int statisticsValue_ ; + public boolean hasStatisticsValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getStatisticsValue() { + return statisticsValue_; + } + public Builder setStatisticsValue(int value) { + bitField0_ |= 0x00000002; + statisticsValue_ = value; + onChanged(); + return this; + } + public Builder clearStatisticsValue() { + bitField0_ = (bitField0_ & ~0x00000002); + statisticsValue_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:StatisticsMessage.StatisticsData) + } + + static { + defaultInstance = new StatisticsData(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:StatisticsMessage.StatisticsData) + } + + // repeated .StatisticsMessage.StatisticsData statisticsData = 1; + public static final int STATISTICSDATA_FIELD_NUMBER = 1; + private java.util.List statisticsData_; + public java.util.List getStatisticsDataList() { + return statisticsData_; + } + public java.util.List + getStatisticsDataOrBuilderList() { + return statisticsData_; + } + public int getStatisticsDataCount() { + return statisticsData_.size(); + } + public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData getStatisticsData(int index) { + return statisticsData_.get(index); + } + public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsDataOrBuilder getStatisticsDataOrBuilder( + int index) { + return statisticsData_.get(index); + } + + private void initFields() { + statisticsData_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + for (int i = 0; i < getStatisticsDataCount(); i++) { + if (!getStatisticsData(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < statisticsData_.size(); i++) { + output.writeMessage(1, statisticsData_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < statisticsData_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, statisticsData_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.StatisticsMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.StatisticsMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_StatisticsMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_StatisticsMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.StatisticsMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getStatisticsDataFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (statisticsDataBuilder_ == null) { + statisticsData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + statisticsDataBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.StatisticsMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.StatisticsMessage build() { + de.pokerth.protocol.ProtoBuf.StatisticsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.StatisticsMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.StatisticsMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.StatisticsMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.StatisticsMessage result = new de.pokerth.protocol.ProtoBuf.StatisticsMessage(this); + int from_bitField0_ = bitField0_; + if (statisticsDataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + statisticsData_ = java.util.Collections.unmodifiableList(statisticsData_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.statisticsData_ = statisticsData_; + } else { + result.statisticsData_ = statisticsDataBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.StatisticsMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.StatisticsMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.StatisticsMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance()) return this; + if (statisticsDataBuilder_ == null) { + if (!other.statisticsData_.isEmpty()) { + if (statisticsData_.isEmpty()) { + statisticsData_ = other.statisticsData_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStatisticsDataIsMutable(); + statisticsData_.addAll(other.statisticsData_); + } + onChanged(); + } + } else { + if (!other.statisticsData_.isEmpty()) { + if (statisticsDataBuilder_.isEmpty()) { + statisticsDataBuilder_.dispose(); + statisticsDataBuilder_ = null; + statisticsData_ = other.statisticsData_; + bitField0_ = (bitField0_ & ~0x00000001); + statisticsDataBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getStatisticsDataFieldBuilder() : null; + } else { + statisticsDataBuilder_.addAllMessages(other.statisticsData_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + for (int i = 0; i < getStatisticsDataCount(); i++) { + if (!getStatisticsData(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 10: { + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder subBuilder = de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.newBuilder(); + input.readMessage(subBuilder, extensionRegistry); + addStatisticsData(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + + // repeated .StatisticsMessage.StatisticsData statisticsData = 1; + private java.util.List statisticsData_ = + java.util.Collections.emptyList(); + private void ensureStatisticsDataIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + statisticsData_ = new java.util.ArrayList(statisticsData_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsDataOrBuilder> statisticsDataBuilder_; + + public java.util.List getStatisticsDataList() { + if (statisticsDataBuilder_ == null) { + return java.util.Collections.unmodifiableList(statisticsData_); + } else { + return statisticsDataBuilder_.getMessageList(); + } + } + public int getStatisticsDataCount() { + if (statisticsDataBuilder_ == null) { + return statisticsData_.size(); + } else { + return statisticsDataBuilder_.getCount(); + } + } + public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData getStatisticsData(int index) { + if (statisticsDataBuilder_ == null) { + return statisticsData_.get(index); + } else { + return statisticsDataBuilder_.getMessage(index); + } + } + public Builder setStatisticsData( + int index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData value) { + if (statisticsDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatisticsDataIsMutable(); + statisticsData_.set(index, value); + onChanged(); + } else { + statisticsDataBuilder_.setMessage(index, value); + } + return this; + } + public Builder setStatisticsData( + int index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder builderForValue) { + if (statisticsDataBuilder_ == null) { + ensureStatisticsDataIsMutable(); + statisticsData_.set(index, builderForValue.build()); + onChanged(); + } else { + statisticsDataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + public Builder addStatisticsData(de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData value) { + if (statisticsDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatisticsDataIsMutable(); + statisticsData_.add(value); + onChanged(); + } else { + statisticsDataBuilder_.addMessage(value); + } + return this; + } + public Builder addStatisticsData( + int index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData value) { + if (statisticsDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStatisticsDataIsMutable(); + statisticsData_.add(index, value); + onChanged(); + } else { + statisticsDataBuilder_.addMessage(index, value); + } + return this; + } + public Builder addStatisticsData( + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder builderForValue) { + if (statisticsDataBuilder_ == null) { + ensureStatisticsDataIsMutable(); + statisticsData_.add(builderForValue.build()); + onChanged(); + } else { + statisticsDataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + public Builder addStatisticsData( + int index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder builderForValue) { + if (statisticsDataBuilder_ == null) { + ensureStatisticsDataIsMutable(); + statisticsData_.add(index, builderForValue.build()); + onChanged(); + } else { + statisticsDataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + public Builder addAllStatisticsData( + java.lang.Iterable values) { + if (statisticsDataBuilder_ == null) { + ensureStatisticsDataIsMutable(); + super.addAll(values, statisticsData_); + onChanged(); + } else { + statisticsDataBuilder_.addAllMessages(values); + } + return this; + } + public Builder clearStatisticsData() { + if (statisticsDataBuilder_ == null) { + statisticsData_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + statisticsDataBuilder_.clear(); + } + return this; + } + public Builder removeStatisticsData(int index) { + if (statisticsDataBuilder_ == null) { + ensureStatisticsDataIsMutable(); + statisticsData_.remove(index); + onChanged(); + } else { + statisticsDataBuilder_.remove(index); + } + return this; + } + public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder getStatisticsDataBuilder( + int index) { + return getStatisticsDataFieldBuilder().getBuilder(index); + } + public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsDataOrBuilder getStatisticsDataOrBuilder( + int index) { + if (statisticsDataBuilder_ == null) { + return statisticsData_.get(index); } else { + return statisticsDataBuilder_.getMessageOrBuilder(index); + } + } + public java.util.List + getStatisticsDataOrBuilderList() { + if (statisticsDataBuilder_ != null) { + return statisticsDataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(statisticsData_); + } + } + public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder addStatisticsDataBuilder() { + return getStatisticsDataFieldBuilder().addBuilder( + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.getDefaultInstance()); + } + public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder addStatisticsDataBuilder( + int index) { + return getStatisticsDataFieldBuilder().addBuilder( + index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.getDefaultInstance()); + } + public java.util.List + getStatisticsDataBuilderList() { + return getStatisticsDataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsDataOrBuilder> + getStatisticsDataFieldBuilder() { + if (statisticsDataBuilder_ == null) { + statisticsDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsDataOrBuilder>( + statisticsData_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + statisticsData_ = null; + } + return statisticsDataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:StatisticsMessage) + } + + static { + defaultInstance = new StatisticsMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:StatisticsMessage) + } + + public interface ChatRequestMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional uint32 targetGameId = 1; + boolean hasTargetGameId(); + int getTargetGameId(); + + // optional uint32 targetPlayerId = 2; + boolean hasTargetPlayerId(); + int getTargetPlayerId(); + + // required string chatText = 3; + boolean hasChatText(); + String getChatText(); + } + public static final class ChatRequestMessage extends + com.google.protobuf.GeneratedMessage + implements ChatRequestMessageOrBuilder { + // Use ChatRequestMessage.newBuilder() to construct. + private ChatRequestMessage(Builder builder) { + super(builder); + } + private ChatRequestMessage(boolean noInit) {} + + private static final ChatRequestMessage defaultInstance; + public static ChatRequestMessage getDefaultInstance() { + return defaultInstance; + } + + public ChatRequestMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ChatRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ChatRequestMessage_fieldAccessorTable; + } + + private int bitField0_; + // optional uint32 targetGameId = 1; + public static final int TARGETGAMEID_FIELD_NUMBER = 1; + private int targetGameId_; + public boolean hasTargetGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getTargetGameId() { + return targetGameId_; + } + + // optional uint32 targetPlayerId = 2; + public static final int TARGETPLAYERID_FIELD_NUMBER = 2; + private int targetPlayerId_; + public boolean hasTargetPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getTargetPlayerId() { + return targetPlayerId_; + } + + // required string chatText = 3; + public static final int CHATTEXT_FIELD_NUMBER = 3; + private java.lang.Object chatText_; + public boolean hasChatText() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public String getChatText() { + java.lang.Object ref = chatText_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + chatText_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getChatTextBytes() { + java.lang.Object ref = chatText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + chatText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + targetGameId_ = 0; + targetPlayerId_ = 0; + chatText_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasChatText()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, targetGameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, targetPlayerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getChatTextBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, targetGameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, targetPlayerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getChatTextBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ChatRequestMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.ChatRequestMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ChatRequestMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ChatRequestMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.ChatRequestMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + targetGameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + targetPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + chatText_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.ChatRequestMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ChatRequestMessage build() { + de.pokerth.protocol.ProtoBuf.ChatRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ChatRequestMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ChatRequestMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ChatRequestMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ChatRequestMessage result = new de.pokerth.protocol.ProtoBuf.ChatRequestMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.targetGameId_ = targetGameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.targetPlayerId_ = targetPlayerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.chatText_ = chatText_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.ChatRequestMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.ChatRequestMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ChatRequestMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance()) return this; + if (other.hasTargetGameId()) { + setTargetGameId(other.getTargetGameId()); + } + if (other.hasTargetPlayerId()) { + setTargetPlayerId(other.getTargetPlayerId()); + } + if (other.hasChatText()) { + setChatText(other.getChatText()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasChatText()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + targetGameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + targetPlayerId_ = input.readUInt32(); + break; + } + case 26: { + bitField0_ |= 0x00000004; + chatText_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // optional uint32 targetGameId = 1; + private int targetGameId_ ; + public boolean hasTargetGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getTargetGameId() { + return targetGameId_; + } + public Builder setTargetGameId(int value) { + bitField0_ |= 0x00000001; + targetGameId_ = value; + onChanged(); + return this; + } + public Builder clearTargetGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + targetGameId_ = 0; + onChanged(); + return this; + } + + // optional uint32 targetPlayerId = 2; + private int targetPlayerId_ ; + public boolean hasTargetPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getTargetPlayerId() { + return targetPlayerId_; + } + public Builder setTargetPlayerId(int value) { + bitField0_ |= 0x00000002; + targetPlayerId_ = value; + onChanged(); + return this; + } + public Builder clearTargetPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + targetPlayerId_ = 0; + onChanged(); + return this; + } + + // required string chatText = 3; + private java.lang.Object chatText_ = ""; + public boolean hasChatText() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public String getChatText() { + java.lang.Object ref = chatText_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + chatText_ = s; + return s; + } else { + return (String) ref; + } + } + public Builder setChatText(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + chatText_ = value; + onChanged(); + return this; + } + public Builder clearChatText() { + bitField0_ = (bitField0_ & ~0x00000004); + chatText_ = getDefaultInstance().getChatText(); + onChanged(); + return this; + } + void setChatText(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000004; + chatText_ = value; + onChanged(); + } + + // @@protoc_insertion_point(builder_scope:ChatRequestMessage) + } + + static { + defaultInstance = new ChatRequestMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:ChatRequestMessage) + } + + public interface ChatMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional uint32 gameId = 1; + boolean hasGameId(); + int getGameId(); + + // optional uint32 playerId = 2; + boolean hasPlayerId(); + int getPlayerId(); + + // required .ChatMessage.ChatType chatType = 3; + boolean hasChatType(); + de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType getChatType(); + + // required string chatText = 4; + boolean hasChatText(); + String getChatText(); + } + public static final class ChatMessage extends + com.google.protobuf.GeneratedMessage + implements ChatMessageOrBuilder { + // Use ChatMessage.newBuilder() to construct. + private ChatMessage(Builder builder) { + super(builder); + } + private ChatMessage(boolean noInit) {} + + private static final ChatMessage defaultInstance; + public static ChatMessage getDefaultInstance() { + return defaultInstance; + } + + public ChatMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ChatMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ChatMessage_fieldAccessorTable; + } + + public enum ChatType + implements com.google.protobuf.ProtocolMessageEnum { + chatTypeLobby(0, 0), + chatTypeGame(1, 1), + chatTypeBot(2, 2), + chatTypeBroadcast(3, 3), + chatTypePrivate(4, 4), + ; + + public static final int chatTypeLobby_VALUE = 0; + public static final int chatTypeGame_VALUE = 1; + public static final int chatTypeBot_VALUE = 2; + public static final int chatTypeBroadcast_VALUE = 3; + public static final int chatTypePrivate_VALUE = 4; + + + public final int getNumber() { return value; } + + public static ChatType valueOf(int value) { + switch (value) { + case 0: return chatTypeLobby; + case 1: return chatTypeGame; + case 2: return chatTypeBot; + case 3: return chatTypeBroadcast; + case 4: return chatTypePrivate; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ChatType findValueByNumber(int number) { + return ChatType.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 de.pokerth.protocol.ProtoBuf.ChatMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final ChatType[] VALUES = { + chatTypeLobby, chatTypeGame, chatTypeBot, chatTypeBroadcast, chatTypePrivate, + }; + + public static ChatType 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 ChatType(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:ChatMessage.ChatType) + } + + private int bitField0_; + // optional uint32 gameId = 1; + public static final int GAMEID_FIELD_NUMBER = 1; + private int gameId_; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + + // optional uint32 playerId = 2; + public static final int PLAYERID_FIELD_NUMBER = 2; + private int playerId_; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + + // required .ChatMessage.ChatType chatType = 3; + public static final int CHATTYPE_FIELD_NUMBER = 3; + private de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType chatType_; + public boolean hasChatType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType getChatType() { + return chatType_; + } + + // required string chatText = 4; + public static final int CHATTEXT_FIELD_NUMBER = 4; + private java.lang.Object chatText_; + public boolean hasChatText() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public String getChatText() { + java.lang.Object ref = chatText_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + chatText_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getChatTextBytes() { + java.lang.Object ref = chatText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + chatText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + gameId_ = 0; + playerId_ = 0; + chatType_ = de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType.chatTypeLobby; + chatText_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasChatType()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasChatText()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, playerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, chatType_.getNumber()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(4, getChatTextBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, gameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, playerId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, chatType_.getNumber()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, getChatTextBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ChatMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ChatMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.ChatMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ChatMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ChatMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.ChatMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + gameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + playerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + chatType_ = de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType.chatTypeLobby; + bitField0_ = (bitField0_ & ~0x00000004); + chatText_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.ChatMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.ChatMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ChatMessage build() { + de.pokerth.protocol.ProtoBuf.ChatMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ChatMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ChatMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ChatMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ChatMessage result = new de.pokerth.protocol.ProtoBuf.ChatMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.gameId_ = gameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.playerId_ = playerId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.chatType_ = chatType_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.chatText_ = chatText_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.ChatMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.ChatMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ChatMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance()) return this; + if (other.hasGameId()) { + setGameId(other.getGameId()); + } + if (other.hasPlayerId()) { + setPlayerId(other.getPlayerId()); + } + if (other.hasChatType()) { + setChatType(other.getChatType()); + } + if (other.hasChatText()) { + setChatText(other.getChatText()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasChatType()) { + + return false; + } + if (!hasChatText()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + gameId_ = input.readUInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + playerId_ = input.readUInt32(); + break; + } + case 24: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType value = de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(3, rawValue); + } else { + bitField0_ |= 0x00000004; + chatType_ = value; + } + break; + } + case 34: { + bitField0_ |= 0x00000008; + chatText_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // optional uint32 gameId = 1; + private int gameId_ ; + public boolean hasGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getGameId() { + return gameId_; + } + public Builder setGameId(int value) { + bitField0_ |= 0x00000001; + gameId_ = value; + onChanged(); + return this; + } + public Builder clearGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + gameId_ = 0; + onChanged(); + return this; + } + + // optional uint32 playerId = 2; + private int playerId_ ; + public boolean hasPlayerId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getPlayerId() { + return playerId_; + } + public Builder setPlayerId(int value) { + bitField0_ |= 0x00000002; + playerId_ = value; + onChanged(); + return this; + } + public Builder clearPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); + playerId_ = 0; + onChanged(); + return this; + } + + // required .ChatMessage.ChatType chatType = 3; + private de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType chatType_ = de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType.chatTypeLobby; + public boolean hasChatType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType getChatType() { + return chatType_; + } + public Builder setChatType(de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + chatType_ = value; + onChanged(); + return this; + } + public Builder clearChatType() { + bitField0_ = (bitField0_ & ~0x00000004); + chatType_ = de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType.chatTypeLobby; + onChanged(); + return this; + } + + // required string chatText = 4; + private java.lang.Object chatText_ = ""; + public boolean hasChatText() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public String getChatText() { + java.lang.Object ref = chatText_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + chatText_ = s; + return s; + } else { + return (String) ref; + } + } + public Builder setChatText(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + chatText_ = value; + onChanged(); + return this; + } + public Builder clearChatText() { + bitField0_ = (bitField0_ & ~0x00000008); + chatText_ = getDefaultInstance().getChatText(); + onChanged(); + return this; + } + void setChatText(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000008; + chatText_ = value; + onChanged(); + } + + // @@protoc_insertion_point(builder_scope:ChatMessage) + } + + static { + defaultInstance = new ChatMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:ChatMessage) + } + + public interface ChatRejectMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string chatText = 1; + boolean hasChatText(); + String getChatText(); + } + public static final class ChatRejectMessage extends + com.google.protobuf.GeneratedMessage + implements ChatRejectMessageOrBuilder { + // Use ChatRejectMessage.newBuilder() to construct. + private ChatRejectMessage(Builder builder) { + super(builder); + } + private ChatRejectMessage(boolean noInit) {} + + private static final ChatRejectMessage defaultInstance; + public static ChatRejectMessage getDefaultInstance() { + return defaultInstance; + } + + public ChatRejectMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ChatRejectMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ChatRejectMessage_fieldAccessorTable; + } + + private int bitField0_; + // required string chatText = 1; + public static final int CHATTEXT_FIELD_NUMBER = 1; + private java.lang.Object chatText_; + public boolean hasChatText() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getChatText() { + java.lang.Object ref = chatText_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + chatText_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getChatTextBytes() { + java.lang.Object ref = chatText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + chatText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + chatText_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasChatText()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getChatTextBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getChatTextBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ChatRejectMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.ChatRejectMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ChatRejectMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ChatRejectMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.ChatRejectMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + chatText_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.ChatRejectMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ChatRejectMessage build() { + de.pokerth.protocol.ProtoBuf.ChatRejectMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ChatRejectMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ChatRejectMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ChatRejectMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ChatRejectMessage result = new de.pokerth.protocol.ProtoBuf.ChatRejectMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.chatText_ = chatText_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.ChatRejectMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.ChatRejectMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ChatRejectMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance()) return this; + if (other.hasChatText()) { + setChatText(other.getChatText()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasChatText()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + chatText_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required string chatText = 1; + private java.lang.Object chatText_ = ""; + public boolean hasChatText() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getChatText() { + java.lang.Object ref = chatText_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + chatText_ = s; + return s; + } else { + return (String) ref; + } + } + public Builder setChatText(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + chatText_ = value; + onChanged(); + return this; + } + public Builder clearChatText() { + bitField0_ = (bitField0_ & ~0x00000001); + chatText_ = getDefaultInstance().getChatText(); + onChanged(); + return this; + } + void setChatText(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + chatText_ = value; + onChanged(); + } + + // @@protoc_insertion_point(builder_scope:ChatRejectMessage) + } + + static { + defaultInstance = new ChatRejectMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:ChatRejectMessage) + } + + public interface DialogMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required string notificationText = 1; + boolean hasNotificationText(); + String getNotificationText(); + } + public static final class DialogMessage extends + com.google.protobuf.GeneratedMessage + implements DialogMessageOrBuilder { + // Use DialogMessage.newBuilder() to construct. + private DialogMessage(Builder builder) { + super(builder); + } + private DialogMessage(boolean noInit) {} + + private static final DialogMessage defaultInstance; + public static DialogMessage getDefaultInstance() { + return defaultInstance; + } + + public DialogMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_DialogMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_DialogMessage_fieldAccessorTable; + } + + private int bitField0_; + // required string notificationText = 1; + public static final int NOTIFICATIONTEXT_FIELD_NUMBER = 1; + private java.lang.Object notificationText_; + public boolean hasNotificationText() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getNotificationText() { + java.lang.Object ref = notificationText_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (com.google.protobuf.Internal.isValidUtf8(bs)) { + notificationText_ = s; + } + return s; + } + } + private com.google.protobuf.ByteString getNotificationTextBytes() { + java.lang.Object ref = notificationText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((String) ref); + notificationText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + notificationText_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasNotificationText()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNotificationTextBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getNotificationTextBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DialogMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.DialogMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.DialogMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.DialogMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_DialogMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_DialogMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.DialogMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + notificationText_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.DialogMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.DialogMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.DialogMessage build() { + de.pokerth.protocol.ProtoBuf.DialogMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.DialogMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.DialogMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.DialogMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.DialogMessage result = new de.pokerth.protocol.ProtoBuf.DialogMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.notificationText_ = notificationText_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.DialogMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.DialogMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.DialogMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance()) return this; + if (other.hasNotificationText()) { + setNotificationText(other.getNotificationText()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasNotificationText()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + notificationText_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required string notificationText = 1; + private java.lang.Object notificationText_ = ""; + public boolean hasNotificationText() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public String getNotificationText() { + java.lang.Object ref = notificationText_; + if (!(ref instanceof String)) { + String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); + notificationText_ = s; + return s; + } else { + return (String) ref; + } + } + public Builder setNotificationText(String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + notificationText_ = value; + onChanged(); + return this; + } + public Builder clearNotificationText() { + bitField0_ = (bitField0_ & ~0x00000001); + notificationText_ = getDefaultInstance().getNotificationText(); + onChanged(); + return this; + } + void setNotificationText(com.google.protobuf.ByteString value) { + bitField0_ |= 0x00000001; + notificationText_ = value; + onChanged(); + } + + // @@protoc_insertion_point(builder_scope:DialogMessage) + } + + static { + defaultInstance = new DialogMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:DialogMessage) + } + + public interface TimeoutWarningMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; + boolean hasTimeoutReason(); + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason getTimeoutReason(); + + // required uint32 remainingSeconds = 2; + boolean hasRemainingSeconds(); + int getRemainingSeconds(); + } + public static final class TimeoutWarningMessage extends + com.google.protobuf.GeneratedMessage + implements TimeoutWarningMessageOrBuilder { + // Use TimeoutWarningMessage.newBuilder() to construct. + private TimeoutWarningMessage(Builder builder) { + super(builder); + } + private TimeoutWarningMessage(boolean noInit) {} + + private static final TimeoutWarningMessage defaultInstance; + public static TimeoutWarningMessage getDefaultInstance() { + return defaultInstance; + } + + public TimeoutWarningMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_TimeoutWarningMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_TimeoutWarningMessage_fieldAccessorTable; + } + + public enum TimeoutReason + implements com.google.protobuf.ProtocolMessageEnum { + timeoutNoDataReceived(0, 0), + timeoutInactiveGame(1, 1), + timeoutKickAfterAutofold(2, 2), + ; + + public static final int timeoutNoDataReceived_VALUE = 0; + public static final int timeoutInactiveGame_VALUE = 1; + public static final int timeoutKickAfterAutofold_VALUE = 2; + + + public final int getNumber() { return value; } + + public static TimeoutReason valueOf(int value) { + switch (value) { + case 0: return timeoutNoDataReceived; + case 1: return timeoutInactiveGame; + case 2: return timeoutKickAfterAutofold; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TimeoutReason findValueByNumber(int number) { + return TimeoutReason.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 de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final TimeoutReason[] VALUES = { + timeoutNoDataReceived, timeoutInactiveGame, timeoutKickAfterAutofold, + }; + + public static TimeoutReason 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 TimeoutReason(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:TimeoutWarningMessage.TimeoutReason) + } + + private int bitField0_; + // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; + public static final int TIMEOUTREASON_FIELD_NUMBER = 1; + private de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason timeoutReason_; + public boolean hasTimeoutReason() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason getTimeoutReason() { + return timeoutReason_; + } + + // required uint32 remainingSeconds = 2; + public static final int REMAININGSECONDS_FIELD_NUMBER = 2; + private int remainingSeconds_; + public boolean hasRemainingSeconds() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getRemainingSeconds() { + return remainingSeconds_; + } + + private void initFields() { + timeoutReason_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason.timeoutNoDataReceived; + remainingSeconds_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasTimeoutReason()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasRemainingSeconds()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, timeoutReason_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, remainingSeconds_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, timeoutReason_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, remainingSeconds_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.TimeoutWarningMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_TimeoutWarningMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_TimeoutWarningMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + timeoutReason_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason.timeoutNoDataReceived; + bitField0_ = (bitField0_ & ~0x00000001); + remainingSeconds_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage build() { + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage result = new de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.timeoutReason_ = timeoutReason_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.remainingSeconds_ = remainingSeconds_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance()) return this; + if (other.hasTimeoutReason()) { + setTimeoutReason(other.getTimeoutReason()); + } + if (other.hasRemainingSeconds()) { + setRemainingSeconds(other.getRemainingSeconds()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasTimeoutReason()) { + + return false; + } + if (!hasRemainingSeconds()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason value = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + timeoutReason_ = value; + } + break; + } + case 16: { + bitField0_ |= 0x00000002; + remainingSeconds_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; + private de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason timeoutReason_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason.timeoutNoDataReceived; + public boolean hasTimeoutReason() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason getTimeoutReason() { + return timeoutReason_; + } + public Builder setTimeoutReason(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + timeoutReason_ = value; + onChanged(); + return this; + } + public Builder clearTimeoutReason() { + bitField0_ = (bitField0_ & ~0x00000001); + timeoutReason_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason.timeoutNoDataReceived; + onChanged(); + return this; + } + + // required uint32 remainingSeconds = 2; + private int remainingSeconds_ ; + public boolean hasRemainingSeconds() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public int getRemainingSeconds() { + return remainingSeconds_; + } + public Builder setRemainingSeconds(int value) { + bitField0_ |= 0x00000002; + remainingSeconds_ = value; + onChanged(); + return this; + } + public Builder clearRemainingSeconds() { + bitField0_ = (bitField0_ & ~0x00000002); + remainingSeconds_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:TimeoutWarningMessage) + } + + static { + defaultInstance = new TimeoutWarningMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:TimeoutWarningMessage) + } + + public interface ResetTimeoutMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + } + public static final class ResetTimeoutMessage extends + com.google.protobuf.GeneratedMessage + implements ResetTimeoutMessageOrBuilder { + // Use ResetTimeoutMessage.newBuilder() to construct. + private ResetTimeoutMessage(Builder builder) { + super(builder); + } + private ResetTimeoutMessage(boolean noInit) {} + + private static final ResetTimeoutMessage defaultInstance; + public static ResetTimeoutMessage getDefaultInstance() { + return defaultInstance; + } + + public ResetTimeoutMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ResetTimeoutMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ResetTimeoutMessage_fieldAccessorTable; + } + + private void initFields() { + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.ResetTimeoutMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ResetTimeoutMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ResetTimeoutMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage build() { + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage result = new de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage(this); + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + } + } + } + + + // @@protoc_insertion_point(builder_scope:ResetTimeoutMessage) + } + + static { + defaultInstance = new ResetTimeoutMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:ResetTimeoutMessage) + } + + public interface ReportAvatarMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 reportedPlayerId = 1; + boolean hasReportedPlayerId(); + int getReportedPlayerId(); + + // required bytes reportedAvatarHash = 2; + boolean hasReportedAvatarHash(); + com.google.protobuf.ByteString getReportedAvatarHash(); + } + public static final class ReportAvatarMessage extends + com.google.protobuf.GeneratedMessage + implements ReportAvatarMessageOrBuilder { + // Use ReportAvatarMessage.newBuilder() to construct. + private ReportAvatarMessage(Builder builder) { + super(builder); + } + private ReportAvatarMessage(boolean noInit) {} + + private static final ReportAvatarMessage defaultInstance; + public static ReportAvatarMessage getDefaultInstance() { + return defaultInstance; + } + + public ReportAvatarMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ReportAvatarMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ReportAvatarMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 reportedPlayerId = 1; + public static final int REPORTEDPLAYERID_FIELD_NUMBER = 1; + private int reportedPlayerId_; + public boolean hasReportedPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getReportedPlayerId() { + return reportedPlayerId_; + } + + // required bytes reportedAvatarHash = 2; + public static final int REPORTEDAVATARHASH_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString reportedAvatarHash_; + public boolean hasReportedAvatarHash() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public com.google.protobuf.ByteString getReportedAvatarHash() { + return reportedAvatarHash_; + } + + private void initFields() { + reportedPlayerId_ = 0; + reportedAvatarHash_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasReportedPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasReportedAvatarHash()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, reportedPlayerId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, reportedAvatarHash_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, reportedPlayerId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, reportedAvatarHash_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ReportAvatarMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.ReportAvatarMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ReportAvatarMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ReportAvatarMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + reportedPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + reportedAvatarHash_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.ReportAvatarMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ReportAvatarMessage build() { + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ReportAvatarMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ReportAvatarMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage result = new de.pokerth.protocol.ProtoBuf.ReportAvatarMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.reportedPlayerId_ = reportedPlayerId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.reportedAvatarHash_ = reportedAvatarHash_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.ReportAvatarMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.ReportAvatarMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ReportAvatarMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance()) return this; + if (other.hasReportedPlayerId()) { + setReportedPlayerId(other.getReportedPlayerId()); + } + if (other.hasReportedAvatarHash()) { + setReportedAvatarHash(other.getReportedAvatarHash()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasReportedPlayerId()) { + + return false; + } + if (!hasReportedAvatarHash()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + reportedPlayerId_ = input.readUInt32(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + reportedAvatarHash_ = input.readBytes(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 reportedPlayerId = 1; + private int reportedPlayerId_ ; + public boolean hasReportedPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getReportedPlayerId() { + return reportedPlayerId_; + } + public Builder setReportedPlayerId(int value) { + bitField0_ |= 0x00000001; + reportedPlayerId_ = value; + onChanged(); + return this; + } + public Builder clearReportedPlayerId() { + bitField0_ = (bitField0_ & ~0x00000001); + reportedPlayerId_ = 0; + onChanged(); + return this; + } + + // required bytes reportedAvatarHash = 2; + private com.google.protobuf.ByteString reportedAvatarHash_ = com.google.protobuf.ByteString.EMPTY; + public boolean hasReportedAvatarHash() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public com.google.protobuf.ByteString getReportedAvatarHash() { + return reportedAvatarHash_; + } + public Builder setReportedAvatarHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + reportedAvatarHash_ = value; + onChanged(); + return this; + } + public Builder clearReportedAvatarHash() { + bitField0_ = (bitField0_ & ~0x00000002); + reportedAvatarHash_ = getDefaultInstance().getReportedAvatarHash(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ReportAvatarMessage) + } + + static { + defaultInstance = new ReportAvatarMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:ReportAvatarMessage) + } + + public interface ReportAvatarAckMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 reportedPlayerId = 1; + boolean hasReportedPlayerId(); + int getReportedPlayerId(); + + // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; + boolean hasReportAvatarResult(); + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult getReportAvatarResult(); + } + public static final class ReportAvatarAckMessage extends + com.google.protobuf.GeneratedMessage + implements ReportAvatarAckMessageOrBuilder { + // Use ReportAvatarAckMessage.newBuilder() to construct. + private ReportAvatarAckMessage(Builder builder) { + super(builder); + } + private ReportAvatarAckMessage(boolean noInit) {} + + private static final ReportAvatarAckMessage defaultInstance; + public static ReportAvatarAckMessage getDefaultInstance() { + return defaultInstance; + } + + public ReportAvatarAckMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ReportAvatarAckMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ReportAvatarAckMessage_fieldAccessorTable; + } + + public enum ReportAvatarResult + implements com.google.protobuf.ProtocolMessageEnum { + avatarReportAccepted(0, 0), + avatarReportDuplicate(1, 1), + avatarReportInvalid(2, 2), + ; + + public static final int avatarReportAccepted_VALUE = 0; + public static final int avatarReportDuplicate_VALUE = 1; + public static final int avatarReportInvalid_VALUE = 2; + + + public final int getNumber() { return value; } + + public static ReportAvatarResult valueOf(int value) { + switch (value) { + case 0: return avatarReportAccepted; + case 1: return avatarReportDuplicate; + case 2: return avatarReportInvalid; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ReportAvatarResult findValueByNumber(int number) { + return ReportAvatarResult.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 de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final ReportAvatarResult[] VALUES = { + avatarReportAccepted, avatarReportDuplicate, avatarReportInvalid, + }; + + public static ReportAvatarResult 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 ReportAvatarResult(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:ReportAvatarAckMessage.ReportAvatarResult) + } + + private int bitField0_; + // required uint32 reportedPlayerId = 1; + public static final int REPORTEDPLAYERID_FIELD_NUMBER = 1; + private int reportedPlayerId_; + public boolean hasReportedPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getReportedPlayerId() { + return reportedPlayerId_; + } + + // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; + public static final int REPORTAVATARRESULT_FIELD_NUMBER = 2; + private de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult_; + public boolean hasReportAvatarResult() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult getReportAvatarResult() { + return reportAvatarResult_; + } + + private void initFields() { + reportedPlayerId_ = 0; + reportAvatarResult_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult.avatarReportAccepted; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasReportedPlayerId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasReportAvatarResult()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, reportedPlayerId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, reportAvatarResult_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, reportedPlayerId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, reportAvatarResult_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ReportAvatarAckMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ReportAvatarAckMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + reportedPlayerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + reportAvatarResult_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult.avatarReportAccepted; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage build() { + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage result = new de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.reportedPlayerId_ = reportedPlayerId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.reportAvatarResult_ = reportAvatarResult_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance()) return this; + if (other.hasReportedPlayerId()) { + setReportedPlayerId(other.getReportedPlayerId()); + } + if (other.hasReportAvatarResult()) { + setReportAvatarResult(other.getReportAvatarResult()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasReportedPlayerId()) { + + return false; + } + if (!hasReportAvatarResult()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + reportedPlayerId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult value = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + reportAvatarResult_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 reportedPlayerId = 1; + private int reportedPlayerId_ ; + public boolean hasReportedPlayerId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getReportedPlayerId() { + return reportedPlayerId_; + } + public Builder setReportedPlayerId(int value) { + bitField0_ |= 0x00000001; + reportedPlayerId_ = value; + onChanged(); + return this; + } + public Builder clearReportedPlayerId() { + bitField0_ = (bitField0_ & ~0x00000001); + reportedPlayerId_ = 0; + onChanged(); + return this; + } + + // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; + private de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult.avatarReportAccepted; + public boolean hasReportAvatarResult() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult getReportAvatarResult() { + return reportAvatarResult_; + } + public Builder setReportAvatarResult(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + reportAvatarResult_ = value; + onChanged(); + return this; + } + public Builder clearReportAvatarResult() { + bitField0_ = (bitField0_ & ~0x00000002); + reportAvatarResult_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult.avatarReportAccepted; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ReportAvatarAckMessage) + } + + static { + defaultInstance = new ReportAvatarAckMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:ReportAvatarAckMessage) + } + + public interface ReportGameMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 reportedGameId = 1; + boolean hasReportedGameId(); + int getReportedGameId(); + } + public static final class ReportGameMessage extends + com.google.protobuf.GeneratedMessage + implements ReportGameMessageOrBuilder { + // Use ReportGameMessage.newBuilder() to construct. + private ReportGameMessage(Builder builder) { + super(builder); + } + private ReportGameMessage(boolean noInit) {} + + private static final ReportGameMessage defaultInstance; + public static ReportGameMessage getDefaultInstance() { + return defaultInstance; + } + + public ReportGameMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ReportGameMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ReportGameMessage_fieldAccessorTable; + } + + private int bitField0_; + // required uint32 reportedGameId = 1; + public static final int REPORTEDGAMEID_FIELD_NUMBER = 1; + private int reportedGameId_; + public boolean hasReportedGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getReportedGameId() { + return reportedGameId_; + } + + private void initFields() { + reportedGameId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasReportedGameId()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, reportedGameId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, reportedGameId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ReportGameMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.ReportGameMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ReportGameMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ReportGameMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.ReportGameMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + reportedGameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.ReportGameMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ReportGameMessage build() { + de.pokerth.protocol.ProtoBuf.ReportGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ReportGameMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ReportGameMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ReportGameMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ReportGameMessage result = new de.pokerth.protocol.ProtoBuf.ReportGameMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.reportedGameId_ = reportedGameId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.ReportGameMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.ReportGameMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ReportGameMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance()) return this; + if (other.hasReportedGameId()) { + setReportedGameId(other.getReportedGameId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasReportedGameId()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + reportedGameId_ = input.readUInt32(); + break; + } + } + } + } + + private int bitField0_; + + // required uint32 reportedGameId = 1; + private int reportedGameId_ ; + public boolean hasReportedGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getReportedGameId() { + return reportedGameId_; + } + public Builder setReportedGameId(int value) { + bitField0_ |= 0x00000001; + reportedGameId_ = value; + onChanged(); + return this; + } + public Builder clearReportedGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + reportedGameId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ReportGameMessage) + } + + static { + defaultInstance = new ReportGameMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:ReportGameMessage) + } + + public interface ReportGameAckMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required uint32 reportedGameId = 1; + boolean hasReportedGameId(); + int getReportedGameId(); + + // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; + boolean hasReportGameResult(); + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult getReportGameResult(); + } + public static final class ReportGameAckMessage extends + com.google.protobuf.GeneratedMessage + implements ReportGameAckMessageOrBuilder { + // Use ReportGameAckMessage.newBuilder() to construct. + private ReportGameAckMessage(Builder builder) { + super(builder); + } + private ReportGameAckMessage(boolean noInit) {} + + private static final ReportGameAckMessage defaultInstance; + public static ReportGameAckMessage getDefaultInstance() { + return defaultInstance; + } + + public ReportGameAckMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ReportGameAckMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ReportGameAckMessage_fieldAccessorTable; + } + + public enum ReportGameResult + implements com.google.protobuf.ProtocolMessageEnum { + gameReportAccepted(0, 0), + gameReportDuplicate(1, 1), + gameReportInvalid(2, 2), + ; + + public static final int gameReportAccepted_VALUE = 0; + public static final int gameReportDuplicate_VALUE = 1; + public static final int gameReportInvalid_VALUE = 2; + + + public final int getNumber() { return value; } + + public static ReportGameResult valueOf(int value) { + switch (value) { + case 0: return gameReportAccepted; + case 1: return gameReportDuplicate; + case 2: return gameReportInvalid; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ReportGameResult findValueByNumber(int number) { + return ReportGameResult.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 de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final ReportGameResult[] VALUES = { + gameReportAccepted, gameReportDuplicate, gameReportInvalid, + }; + + public static ReportGameResult 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 ReportGameResult(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:ReportGameAckMessage.ReportGameResult) + } + + private int bitField0_; + // required uint32 reportedGameId = 1; + public static final int REPORTEDGAMEID_FIELD_NUMBER = 1; + private int reportedGameId_; + public boolean hasReportedGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getReportedGameId() { + return reportedGameId_; + } + + // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; + public static final int REPORTGAMERESULT_FIELD_NUMBER = 2; + private de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult reportGameResult_; + public boolean hasReportGameResult() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult getReportGameResult() { + return reportGameResult_; + } + + private void initFields() { + reportedGameId_ = 0; + reportGameResult_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult.gameReportAccepted; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasReportedGameId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasReportGameResult()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt32(1, reportedGameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, reportGameResult_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, reportedGameId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, reportGameResult_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.ReportGameAckMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ReportGameAckMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ReportGameAckMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + reportedGameId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + reportGameResult_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult.gameReportAccepted; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage build() { + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ReportGameAckMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage result = new de.pokerth.protocol.ProtoBuf.ReportGameAckMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.reportedGameId_ = reportedGameId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.reportGameResult_ = reportGameResult_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.ReportGameAckMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.ReportGameAckMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance()) return this; + if (other.hasReportedGameId()) { + setReportedGameId(other.getReportedGameId()); + } + if (other.hasReportGameResult()) { + setReportGameResult(other.getReportGameResult()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasReportedGameId()) { + + return false; + } + if (!hasReportGameResult()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + reportedGameId_ = input.readUInt32(); + break; + } + case 16: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult value = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + reportGameResult_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required uint32 reportedGameId = 1; + private int reportedGameId_ ; + public boolean hasReportedGameId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public int getReportedGameId() { + return reportedGameId_; + } + public Builder setReportedGameId(int value) { + bitField0_ |= 0x00000001; + reportedGameId_ = value; + onChanged(); + return this; + } + public Builder clearReportedGameId() { + bitField0_ = (bitField0_ & ~0x00000001); + reportedGameId_ = 0; + onChanged(); + return this; + } + + // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; + private de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult reportGameResult_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult.gameReportAccepted; + public boolean hasReportGameResult() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult getReportGameResult() { + return reportGameResult_; + } + public Builder setReportGameResult(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + reportGameResult_ = value; + onChanged(); + return this; + } + public Builder clearReportGameResult() { + bitField0_ = (bitField0_ & ~0x00000002); + reportGameResult_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult.gameReportAccepted; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ReportGameAckMessage) + } + + static { + defaultInstance = new ReportGameAckMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:ReportGameAckMessage) + } + + public interface ErrorMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required .ErrorMessage.ErrorReason errorReason = 1; + boolean hasErrorReason(); + de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason getErrorReason(); + } + public static final class ErrorMessage extends + com.google.protobuf.GeneratedMessage + implements ErrorMessageOrBuilder { + // Use ErrorMessage.newBuilder() to construct. + private ErrorMessage(Builder builder) { + super(builder); + } + private ErrorMessage(boolean noInit) {} + + private static final ErrorMessage defaultInstance; + public static ErrorMessage getDefaultInstance() { + return defaultInstance; + } + + public ErrorMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ErrorMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ErrorMessage_fieldAccessorTable; + } + + public enum ErrorReason + implements com.google.protobuf.ProtocolMessageEnum { + reserved(0, 0), + initVersionNotSupported(1, 1), + initServerFull(2, 2), + initAuthFailure(3, 3), + initPlayerNameInUse(4, 4), + initInvalidPlayerName(5, 5), + initServerMaintenance(6, 6), + initBlocked(7, 7), + avatarTooLarge(8, 8), + invalidPacket(9, 9), + invalidState(10, 10), + kickedFromServer(11, 11), + bannedFromServer(12, 12), + blockedByServer(13, 13), + sessionTimeout(14, 14), + ; + + public static final int reserved_VALUE = 0; + public static final int initVersionNotSupported_VALUE = 1; + public static final int initServerFull_VALUE = 2; + public static final int initAuthFailure_VALUE = 3; + public static final int initPlayerNameInUse_VALUE = 4; + public static final int initInvalidPlayerName_VALUE = 5; + public static final int initServerMaintenance_VALUE = 6; + public static final int initBlocked_VALUE = 7; + public static final int avatarTooLarge_VALUE = 8; + public static final int invalidPacket_VALUE = 9; + public static final int invalidState_VALUE = 10; + public static final int kickedFromServer_VALUE = 11; + public static final int bannedFromServer_VALUE = 12; + public static final int blockedByServer_VALUE = 13; + public static final int sessionTimeout_VALUE = 14; + + + public final int getNumber() { return value; } + + public static ErrorReason valueOf(int value) { + switch (value) { + case 0: return reserved; + case 1: return initVersionNotSupported; + case 2: return initServerFull; + case 3: return initAuthFailure; + case 4: return initPlayerNameInUse; + case 5: return initInvalidPlayerName; + case 6: return initServerMaintenance; + case 7: return initBlocked; + case 8: return avatarTooLarge; + case 9: return invalidPacket; + case 10: return invalidState; + case 11: return kickedFromServer; + case 12: return bannedFromServer; + case 13: return blockedByServer; + case 14: return sessionTimeout; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ErrorReason findValueByNumber(int number) { + return ErrorReason.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 de.pokerth.protocol.ProtoBuf.ErrorMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final ErrorReason[] VALUES = { + reserved, initVersionNotSupported, initServerFull, initAuthFailure, initPlayerNameInUse, initInvalidPlayerName, initServerMaintenance, initBlocked, avatarTooLarge, invalidPacket, invalidState, kickedFromServer, bannedFromServer, blockedByServer, sessionTimeout, + }; + + public static ErrorReason 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 ErrorReason(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:ErrorMessage.ErrorReason) + } + + private int bitField0_; + // required .ErrorMessage.ErrorReason errorReason = 1; + public static final int ERRORREASON_FIELD_NUMBER = 1; + private de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason errorReason_; + public boolean hasErrorReason() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason getErrorReason() { + return errorReason_; + } + + private void initFields() { + errorReason_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason.reserved; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasErrorReason()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, errorReason_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, errorReason_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ErrorMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.ErrorMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_ErrorMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_ErrorMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.ErrorMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + errorReason_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason.reserved; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.ErrorMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.ErrorMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.ErrorMessage build() { + de.pokerth.protocol.ProtoBuf.ErrorMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.ErrorMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.ErrorMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.ErrorMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.ErrorMessage result = new de.pokerth.protocol.ProtoBuf.ErrorMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.errorReason_ = errorReason_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.ErrorMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.ErrorMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.ErrorMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance()) return this; + if (other.hasErrorReason()) { + setErrorReason(other.getErrorReason()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasErrorReason()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason value = de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + errorReason_ = value; + } + break; + } + } + } + } + + private int bitField0_; + + // required .ErrorMessage.ErrorReason errorReason = 1; + private de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason errorReason_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason.reserved; + public boolean hasErrorReason() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason getErrorReason() { + return errorReason_; + } + public Builder setErrorReason(de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + errorReason_ = value; + onChanged(); + return this; + } + public Builder clearErrorReason() { + bitField0_ = (bitField0_ & ~0x00000001); + errorReason_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason.reserved; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:ErrorMessage) + } + + static { + defaultInstance = new ErrorMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:ErrorMessage) + } + + public interface PokerTHMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required .PokerTHMessage.PokerTHMessageType messageType = 1; + boolean hasMessageType(); + de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType getMessageType(); + + // optional .AnnounceMessage announceMessage = 2; + boolean hasAnnounceMessage(); + de.pokerth.protocol.ProtoBuf.AnnounceMessage getAnnounceMessage(); + de.pokerth.protocol.ProtoBuf.AnnounceMessageOrBuilder getAnnounceMessageOrBuilder(); + + // optional .InitMessage initMessage = 3; + boolean hasInitMessage(); + de.pokerth.protocol.ProtoBuf.InitMessage getInitMessage(); + de.pokerth.protocol.ProtoBuf.InitMessageOrBuilder getInitMessageOrBuilder(); + + // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; + boolean hasAuthServerChallengeMessage(); + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage getAuthServerChallengeMessage(); + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessageOrBuilder getAuthServerChallengeMessageOrBuilder(); + + // optional .AuthClientResponseMessage authClientResponseMessage = 5; + boolean hasAuthClientResponseMessage(); + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage getAuthClientResponseMessage(); + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessageOrBuilder getAuthClientResponseMessageOrBuilder(); + + // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; + boolean hasAuthServerVerificationMessage(); + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage getAuthServerVerificationMessage(); + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessageOrBuilder getAuthServerVerificationMessageOrBuilder(); + + // optional .InitAckMessage initAckMessage = 7; + boolean hasInitAckMessage(); + de.pokerth.protocol.ProtoBuf.InitAckMessage getInitAckMessage(); + de.pokerth.protocol.ProtoBuf.InitAckMessageOrBuilder getInitAckMessageOrBuilder(); + + // optional .AvatarRequestMessage avatarRequestMessage = 8; + boolean hasAvatarRequestMessage(); + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage getAvatarRequestMessage(); + de.pokerth.protocol.ProtoBuf.AvatarRequestMessageOrBuilder getAvatarRequestMessageOrBuilder(); + + // optional .AvatarHeaderMessage avatarHeaderMessage = 9; + boolean hasAvatarHeaderMessage(); + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage getAvatarHeaderMessage(); + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessageOrBuilder getAvatarHeaderMessageOrBuilder(); + + // optional .AvatarDataMessage avatarDataMessage = 10; + boolean hasAvatarDataMessage(); + de.pokerth.protocol.ProtoBuf.AvatarDataMessage getAvatarDataMessage(); + de.pokerth.protocol.ProtoBuf.AvatarDataMessageOrBuilder getAvatarDataMessageOrBuilder(); + + // optional .AvatarEndMessage avatarEndMessage = 11; + boolean hasAvatarEndMessage(); + de.pokerth.protocol.ProtoBuf.AvatarEndMessage getAvatarEndMessage(); + de.pokerth.protocol.ProtoBuf.AvatarEndMessageOrBuilder getAvatarEndMessageOrBuilder(); + + // optional .UnknownAvatarMessage unknownAvatarMessage = 12; + boolean hasUnknownAvatarMessage(); + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage getUnknownAvatarMessage(); + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessageOrBuilder getUnknownAvatarMessageOrBuilder(); + + // optional .PlayerListMessage playerListMessage = 13; + boolean hasPlayerListMessage(); + de.pokerth.protocol.ProtoBuf.PlayerListMessage getPlayerListMessage(); + de.pokerth.protocol.ProtoBuf.PlayerListMessageOrBuilder getPlayerListMessageOrBuilder(); + + // optional .GameListNewMessage gameListNewMessage = 14; + boolean hasGameListNewMessage(); + de.pokerth.protocol.ProtoBuf.GameListNewMessage getGameListNewMessage(); + de.pokerth.protocol.ProtoBuf.GameListNewMessageOrBuilder getGameListNewMessageOrBuilder(); + + // optional .GameListUpdateMessage gameListUpdateMessage = 15; + boolean hasGameListUpdateMessage(); + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage getGameListUpdateMessage(); + de.pokerth.protocol.ProtoBuf.GameListUpdateMessageOrBuilder getGameListUpdateMessageOrBuilder(); + + // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; + boolean hasGameListPlayerJoinedMessage(); + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage getGameListPlayerJoinedMessage(); + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessageOrBuilder getGameListPlayerJoinedMessageOrBuilder(); + + // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; + boolean hasGameListPlayerLeftMessage(); + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage getGameListPlayerLeftMessage(); + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessageOrBuilder getGameListPlayerLeftMessageOrBuilder(); + + // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; + boolean hasGameListAdminChangedMessage(); + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage getGameListAdminChangedMessage(); + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessageOrBuilder getGameListAdminChangedMessageOrBuilder(); + + // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; + boolean hasPlayerInfoRequestMessage(); + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage getPlayerInfoRequestMessage(); + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessageOrBuilder getPlayerInfoRequestMessageOrBuilder(); + + // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; + boolean hasPlayerInfoReplyMessage(); + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage getPlayerInfoReplyMessage(); + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessageOrBuilder getPlayerInfoReplyMessageOrBuilder(); + + // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; + boolean hasSubscriptionRequestMessage(); + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage getSubscriptionRequestMessage(); + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessageOrBuilder getSubscriptionRequestMessageOrBuilder(); + + // optional .JoinExistingGameMessage joinExistingGameMessage = 22; + boolean hasJoinExistingGameMessage(); + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage getJoinExistingGameMessage(); + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessageOrBuilder getJoinExistingGameMessageOrBuilder(); + + // optional .JoinNewGameMessage joinNewGameMessage = 23; + boolean hasJoinNewGameMessage(); + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage getJoinNewGameMessage(); + de.pokerth.protocol.ProtoBuf.JoinNewGameMessageOrBuilder getJoinNewGameMessageOrBuilder(); + + // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; + boolean hasRejoinExistingGameMessage(); + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage getRejoinExistingGameMessage(); + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessageOrBuilder getRejoinExistingGameMessageOrBuilder(); + + // optional .JoinGameAckMessage joinGameAckMessage = 25; + boolean hasJoinGameAckMessage(); + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage getJoinGameAckMessage(); + de.pokerth.protocol.ProtoBuf.JoinGameAckMessageOrBuilder getJoinGameAckMessageOrBuilder(); + + // optional .JoinGameFailedMessage joinGameFailedMessage = 26; + boolean hasJoinGameFailedMessage(); + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage getJoinGameFailedMessage(); + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessageOrBuilder getJoinGameFailedMessageOrBuilder(); + + // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; + boolean hasGamePlayerJoinedMessage(); + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage getGamePlayerJoinedMessage(); + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessageOrBuilder getGamePlayerJoinedMessageOrBuilder(); + + // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; + boolean hasGamePlayerLeftMessage(); + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage getGamePlayerLeftMessage(); + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessageOrBuilder getGamePlayerLeftMessageOrBuilder(); + + // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; + boolean hasGameAdminChangedMessage(); + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage getGameAdminChangedMessage(); + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessageOrBuilder getGameAdminChangedMessageOrBuilder(); + + // optional .RemovedFromGameMessage removedFromGameMessage = 30; + boolean hasRemovedFromGameMessage(); + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage getRemovedFromGameMessage(); + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessageOrBuilder getRemovedFromGameMessageOrBuilder(); + + // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; + boolean hasKickPlayerRequestMessage(); + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage getKickPlayerRequestMessage(); + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessageOrBuilder getKickPlayerRequestMessageOrBuilder(); + + // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; + boolean hasLeaveGameRequestMessage(); + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage getLeaveGameRequestMessage(); + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessageOrBuilder getLeaveGameRequestMessageOrBuilder(); + + // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; + boolean hasInvitePlayerToGameMessage(); + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage getInvitePlayerToGameMessage(); + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessageOrBuilder getInvitePlayerToGameMessageOrBuilder(); + + // optional .InviteNotifyMessage inviteNotifyMessage = 34; + boolean hasInviteNotifyMessage(); + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage getInviteNotifyMessage(); + de.pokerth.protocol.ProtoBuf.InviteNotifyMessageOrBuilder getInviteNotifyMessageOrBuilder(); + + // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; + boolean hasRejectGameInvitationMessage(); + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage getRejectGameInvitationMessage(); + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessageOrBuilder getRejectGameInvitationMessageOrBuilder(); + + // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; + boolean hasRejectInvNotifyMessage(); + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage getRejectInvNotifyMessage(); + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessageOrBuilder getRejectInvNotifyMessageOrBuilder(); + + // optional .StartEventMessage startEventMessage = 37; + boolean hasStartEventMessage(); + de.pokerth.protocol.ProtoBuf.StartEventMessage getStartEventMessage(); + de.pokerth.protocol.ProtoBuf.StartEventMessageOrBuilder getStartEventMessageOrBuilder(); + + // optional .StartEventAckMessage startEventAckMessage = 38; + boolean hasStartEventAckMessage(); + de.pokerth.protocol.ProtoBuf.StartEventAckMessage getStartEventAckMessage(); + de.pokerth.protocol.ProtoBuf.StartEventAckMessageOrBuilder getStartEventAckMessageOrBuilder(); + + // optional .GameStartInitialMessage gameStartInitialMessage = 39; + boolean hasGameStartInitialMessage(); + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage getGameStartInitialMessage(); + de.pokerth.protocol.ProtoBuf.GameStartInitialMessageOrBuilder getGameStartInitialMessageOrBuilder(); + + // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; + boolean hasGameStartRejoinMessage(); + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage getGameStartRejoinMessage(); + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessageOrBuilder getGameStartRejoinMessageOrBuilder(); + + // optional .HandStartMessage handStartMessage = 41; + boolean hasHandStartMessage(); + de.pokerth.protocol.ProtoBuf.HandStartMessage getHandStartMessage(); + de.pokerth.protocol.ProtoBuf.HandStartMessageOrBuilder getHandStartMessageOrBuilder(); + + // optional .PlayersTurnMessage playersTurnMessage = 42; + boolean hasPlayersTurnMessage(); + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage getPlayersTurnMessage(); + de.pokerth.protocol.ProtoBuf.PlayersTurnMessageOrBuilder getPlayersTurnMessageOrBuilder(); + + // optional .MyActionRequestMessage myActionRequestMessage = 43; + boolean hasMyActionRequestMessage(); + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage getMyActionRequestMessage(); + de.pokerth.protocol.ProtoBuf.MyActionRequestMessageOrBuilder getMyActionRequestMessageOrBuilder(); + + // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; + boolean hasYourActionRejectedMessage(); + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage getYourActionRejectedMessage(); + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessageOrBuilder getYourActionRejectedMessageOrBuilder(); + + // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; + boolean hasPlayersActionDoneMessage(); + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage getPlayersActionDoneMessage(); + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessageOrBuilder getPlayersActionDoneMessageOrBuilder(); + + // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; + boolean hasDealFlopCardsMessage(); + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage getDealFlopCardsMessage(); + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessageOrBuilder getDealFlopCardsMessageOrBuilder(); + + // optional .DealTurnCardMessage dealTurnCardMessage = 47; + boolean hasDealTurnCardMessage(); + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage getDealTurnCardMessage(); + de.pokerth.protocol.ProtoBuf.DealTurnCardMessageOrBuilder getDealTurnCardMessageOrBuilder(); + + // optional .DealRiverCardMessage dealRiverCardMessage = 48; + boolean hasDealRiverCardMessage(); + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage getDealRiverCardMessage(); + de.pokerth.protocol.ProtoBuf.DealRiverCardMessageOrBuilder getDealRiverCardMessageOrBuilder(); + + // optional .AllInShowCardsMessage allInShowCardsMessage = 49; + boolean hasAllInShowCardsMessage(); + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage getAllInShowCardsMessage(); + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessageOrBuilder getAllInShowCardsMessageOrBuilder(); + + // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; + boolean hasEndOfHandShowCardsMessage(); + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage getEndOfHandShowCardsMessage(); + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessageOrBuilder getEndOfHandShowCardsMessageOrBuilder(); + + // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; + boolean hasEndOfHandHideCardsMessage(); + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage getEndOfHandHideCardsMessage(); + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessageOrBuilder getEndOfHandHideCardsMessageOrBuilder(); + + // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; + boolean hasShowMyCardsRequestMessage(); + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage getShowMyCardsRequestMessage(); + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessageOrBuilder getShowMyCardsRequestMessageOrBuilder(); + + // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; + boolean hasAfterHandShowCardsMessage(); + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage getAfterHandShowCardsMessage(); + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessageOrBuilder getAfterHandShowCardsMessageOrBuilder(); + + // optional .EndOfGameMessage endOfGameMessage = 54; + boolean hasEndOfGameMessage(); + de.pokerth.protocol.ProtoBuf.EndOfGameMessage getEndOfGameMessage(); + de.pokerth.protocol.ProtoBuf.EndOfGameMessageOrBuilder getEndOfGameMessageOrBuilder(); + + // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; + boolean hasPlayerIdChangedMessage(); + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage getPlayerIdChangedMessage(); + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessageOrBuilder getPlayerIdChangedMessageOrBuilder(); + + // optional .AskKickPlayerMessage askKickPlayerMessage = 56; + boolean hasAskKickPlayerMessage(); + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage getAskKickPlayerMessage(); + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessageOrBuilder getAskKickPlayerMessageOrBuilder(); + + // optional .AskKickDeniedMessage askKickDeniedMessage = 57; + boolean hasAskKickDeniedMessage(); + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage getAskKickDeniedMessage(); + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessageOrBuilder getAskKickDeniedMessageOrBuilder(); + + // optional .StartKickPetitionMessage startKickPetitionMessage = 58; + boolean hasStartKickPetitionMessage(); + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage getStartKickPetitionMessage(); + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessageOrBuilder getStartKickPetitionMessageOrBuilder(); + + // optional .VoteKickRequestMessage voteKickRequestMessage = 59; + boolean hasVoteKickRequestMessage(); + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage getVoteKickRequestMessage(); + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessageOrBuilder getVoteKickRequestMessageOrBuilder(); + + // optional .VoteKickReplyMessage voteKickReplyMessage = 60; + boolean hasVoteKickReplyMessage(); + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage getVoteKickReplyMessage(); + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessageOrBuilder getVoteKickReplyMessageOrBuilder(); + + // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; + boolean hasKickPetitionUpdateMessage(); + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage getKickPetitionUpdateMessage(); + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessageOrBuilder getKickPetitionUpdateMessageOrBuilder(); + + // optional .EndKickPetitionMessage endKickPetitionMessage = 62; + boolean hasEndKickPetitionMessage(); + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage getEndKickPetitionMessage(); + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessageOrBuilder getEndKickPetitionMessageOrBuilder(); + + // optional .StatisticsMessage statisticsMessage = 63; + boolean hasStatisticsMessage(); + de.pokerth.protocol.ProtoBuf.StatisticsMessage getStatisticsMessage(); + de.pokerth.protocol.ProtoBuf.StatisticsMessageOrBuilder getStatisticsMessageOrBuilder(); + + // optional .ChatRequestMessage chatRequestMessage = 64; + boolean hasChatRequestMessage(); + de.pokerth.protocol.ProtoBuf.ChatRequestMessage getChatRequestMessage(); + de.pokerth.protocol.ProtoBuf.ChatRequestMessageOrBuilder getChatRequestMessageOrBuilder(); + + // optional .ChatMessage chatMessage = 65; + boolean hasChatMessage(); + de.pokerth.protocol.ProtoBuf.ChatMessage getChatMessage(); + de.pokerth.protocol.ProtoBuf.ChatMessageOrBuilder getChatMessageOrBuilder(); + + // optional .ChatRejectMessage chatRejectMessage = 66; + boolean hasChatRejectMessage(); + de.pokerth.protocol.ProtoBuf.ChatRejectMessage getChatRejectMessage(); + de.pokerth.protocol.ProtoBuf.ChatRejectMessageOrBuilder getChatRejectMessageOrBuilder(); + + // optional .DialogMessage dialogMessage = 67; + boolean hasDialogMessage(); + de.pokerth.protocol.ProtoBuf.DialogMessage getDialogMessage(); + de.pokerth.protocol.ProtoBuf.DialogMessageOrBuilder getDialogMessageOrBuilder(); + + // optional .TimeoutWarningMessage timeoutWarningMessage = 68; + boolean hasTimeoutWarningMessage(); + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage getTimeoutWarningMessage(); + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessageOrBuilder getTimeoutWarningMessageOrBuilder(); + + // optional .ResetTimeoutMessage resetTimeoutMessage = 69; + boolean hasResetTimeoutMessage(); + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage getResetTimeoutMessage(); + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessageOrBuilder getResetTimeoutMessageOrBuilder(); + + // optional .ReportAvatarMessage reportAvatarMessage = 70; + boolean hasReportAvatarMessage(); + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage getReportAvatarMessage(); + de.pokerth.protocol.ProtoBuf.ReportAvatarMessageOrBuilder getReportAvatarMessageOrBuilder(); + + // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; + boolean hasReportAvatarAckMessage(); + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage getReportAvatarAckMessage(); + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessageOrBuilder getReportAvatarAckMessageOrBuilder(); + + // optional .ReportGameMessage reportGameMessage = 72; + boolean hasReportGameMessage(); + de.pokerth.protocol.ProtoBuf.ReportGameMessage getReportGameMessage(); + de.pokerth.protocol.ProtoBuf.ReportGameMessageOrBuilder getReportGameMessageOrBuilder(); + + // optional .ReportGameAckMessage reportGameAckMessage = 73; + boolean hasReportGameAckMessage(); + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage getReportGameAckMessage(); + de.pokerth.protocol.ProtoBuf.ReportGameAckMessageOrBuilder getReportGameAckMessageOrBuilder(); + + // optional .ErrorMessage errorMessage = 74; + boolean hasErrorMessage(); + de.pokerth.protocol.ProtoBuf.ErrorMessage getErrorMessage(); + de.pokerth.protocol.ProtoBuf.ErrorMessageOrBuilder getErrorMessageOrBuilder(); + } + public static final class PokerTHMessage extends + com.google.protobuf.GeneratedMessage + implements PokerTHMessageOrBuilder { + // Use PokerTHMessage.newBuilder() to construct. + private PokerTHMessage(Builder builder) { + super(builder); + } + private PokerTHMessage(boolean noInit) {} + + private static final PokerTHMessage defaultInstance; + public static PokerTHMessage getDefaultInstance() { + return defaultInstance; + } + + public PokerTHMessage getDefaultInstanceForType() { + return defaultInstance; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PokerTHMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PokerTHMessage_fieldAccessorTable; + } + + public enum PokerTHMessageType + implements com.google.protobuf.ProtocolMessageEnum { + Type_AnnounceMessage(0, 1), + Type_InitMessage(1, 2), + Type_AuthServerChallengeMessage(2, 3), + Type_AuthClientResponseMessage(3, 4), + Type_AuthServerVerificationMessage(4, 5), + Type_InitAckMessage(5, 6), + Type_AvatarRequestMessage(6, 7), + Type_AvatarHeaderMessage(7, 8), + Type_AvatarDataMessage(8, 9), + Type_AvatarEndMessage(9, 10), + Type_UnknownAvatarMessage(10, 11), + Type_PlayerListMessage(11, 12), + Type_GameListNewMessage(12, 13), + Type_GameListUpdateMessage(13, 14), + Type_GameListPlayerJoinedMessage(14, 15), + Type_GameListPlayerLeftMessage(15, 16), + Type_GameListAdminChangedMessage(16, 17), + Type_PlayerInfoRequestMessage(17, 18), + Type_PlayerInfoReplyMessage(18, 19), + Type_SubscriptionRequestMessage(19, 20), + Type_JoinExistingGameMessage(20, 21), + Type_JoinNewGameMessage(21, 22), + Type_RejoinExistingGameMessage(22, 23), + Type_JoinGameAckMessage(23, 24), + Type_JoinGameFailedMessage(24, 25), + Type_GamePlayerJoinedMessage(25, 26), + Type_GamePlayerLeftMessage(26, 27), + Type_GameAdminChangedMessage(27, 28), + Type_RemovedFromGameMessage(28, 29), + Type_KickPlayerRequestMessage(29, 30), + Type_LeaveGameRequestMessage(30, 31), + Type_InvitePlayerToGameMessage(31, 32), + Type_InviteNotifyMessage(32, 33), + Type_RejectGameInvitationMessage(33, 34), + Type_RejectInvNotifyMessage(34, 35), + Type_StartEventMessage(35, 36), + Type_StartEventAckMessage(36, 37), + Type_GameStartInitialMessage(37, 38), + Type_GameStartRejoinMessage(38, 39), + Type_HandStartMessage(39, 40), + Type_PlayersTurnMessage(40, 41), + Type_MyActionRequestMessage(41, 42), + Type_YourActionRejectedMessage(42, 43), + Type_PlayersActionDoneMessage(43, 44), + Type_DealFlopCardsMessage(44, 45), + Type_DealTurnCardMessage(45, 46), + Type_DealRiverCardMessage(46, 47), + Type_AllInShowCardsMessage(47, 48), + Type_EndOfHandShowCardsMessage(48, 49), + Type_EndOfHandHideCardsMessage(49, 50), + Type_ShowMyCardsRequestMessage(50, 51), + Type_AfterHandShowCardsMessage(51, 52), + Type_EndOfGameMessage(52, 53), + Type_PlayerIdChangedMessage(53, 54), + Type_AskKickPlayerMessage(54, 55), + Type_AskKickDeniedMessage(55, 56), + Type_StartKickPetitionMessage(56, 57), + Type_VoteKickRequestMessage(57, 58), + Type_VoteKickReplyMessage(58, 59), + Type_KickPetitionUpdateMessage(59, 60), + Type_EndKickPetitionMessage(60, 61), + Type_StatisticsMessage(61, 62), + Type_ChatRequestMessage(62, 63), + Type_ChatMessage(63, 64), + Type_ChatRejectMessage(64, 65), + Type_DialogMessage(65, 66), + Type_TimeoutWarningMessage(66, 67), + Type_ResetTimeoutMessage(67, 68), + Type_ReportAvatarMessage(68, 69), + Type_ReportAvatarAckMessage(69, 70), + Type_ReportGameMessage(70, 71), + Type_ReportGameAckMessage(71, 72), + Type_ErrorMessage(72, 73), + ; + + public static final int Type_AnnounceMessage_VALUE = 1; + public static final int Type_InitMessage_VALUE = 2; + public static final int Type_AuthServerChallengeMessage_VALUE = 3; + public static final int Type_AuthClientResponseMessage_VALUE = 4; + public static final int Type_AuthServerVerificationMessage_VALUE = 5; + public static final int Type_InitAckMessage_VALUE = 6; + public static final int Type_AvatarRequestMessage_VALUE = 7; + public static final int Type_AvatarHeaderMessage_VALUE = 8; + public static final int Type_AvatarDataMessage_VALUE = 9; + public static final int Type_AvatarEndMessage_VALUE = 10; + public static final int Type_UnknownAvatarMessage_VALUE = 11; + public static final int Type_PlayerListMessage_VALUE = 12; + public static final int Type_GameListNewMessage_VALUE = 13; + public static final int Type_GameListUpdateMessage_VALUE = 14; + public static final int Type_GameListPlayerJoinedMessage_VALUE = 15; + public static final int Type_GameListPlayerLeftMessage_VALUE = 16; + public static final int Type_GameListAdminChangedMessage_VALUE = 17; + public static final int Type_PlayerInfoRequestMessage_VALUE = 18; + public static final int Type_PlayerInfoReplyMessage_VALUE = 19; + public static final int Type_SubscriptionRequestMessage_VALUE = 20; + public static final int Type_JoinExistingGameMessage_VALUE = 21; + public static final int Type_JoinNewGameMessage_VALUE = 22; + public static final int Type_RejoinExistingGameMessage_VALUE = 23; + public static final int Type_JoinGameAckMessage_VALUE = 24; + public static final int Type_JoinGameFailedMessage_VALUE = 25; + public static final int Type_GamePlayerJoinedMessage_VALUE = 26; + public static final int Type_GamePlayerLeftMessage_VALUE = 27; + public static final int Type_GameAdminChangedMessage_VALUE = 28; + public static final int Type_RemovedFromGameMessage_VALUE = 29; + public static final int Type_KickPlayerRequestMessage_VALUE = 30; + public static final int Type_LeaveGameRequestMessage_VALUE = 31; + public static final int Type_InvitePlayerToGameMessage_VALUE = 32; + public static final int Type_InviteNotifyMessage_VALUE = 33; + public static final int Type_RejectGameInvitationMessage_VALUE = 34; + public static final int Type_RejectInvNotifyMessage_VALUE = 35; + public static final int Type_StartEventMessage_VALUE = 36; + public static final int Type_StartEventAckMessage_VALUE = 37; + public static final int Type_GameStartInitialMessage_VALUE = 38; + public static final int Type_GameStartRejoinMessage_VALUE = 39; + public static final int Type_HandStartMessage_VALUE = 40; + public static final int Type_PlayersTurnMessage_VALUE = 41; + public static final int Type_MyActionRequestMessage_VALUE = 42; + public static final int Type_YourActionRejectedMessage_VALUE = 43; + public static final int Type_PlayersActionDoneMessage_VALUE = 44; + public static final int Type_DealFlopCardsMessage_VALUE = 45; + public static final int Type_DealTurnCardMessage_VALUE = 46; + public static final int Type_DealRiverCardMessage_VALUE = 47; + public static final int Type_AllInShowCardsMessage_VALUE = 48; + public static final int Type_EndOfHandShowCardsMessage_VALUE = 49; + public static final int Type_EndOfHandHideCardsMessage_VALUE = 50; + public static final int Type_ShowMyCardsRequestMessage_VALUE = 51; + public static final int Type_AfterHandShowCardsMessage_VALUE = 52; + public static final int Type_EndOfGameMessage_VALUE = 53; + public static final int Type_PlayerIdChangedMessage_VALUE = 54; + public static final int Type_AskKickPlayerMessage_VALUE = 55; + public static final int Type_AskKickDeniedMessage_VALUE = 56; + public static final int Type_StartKickPetitionMessage_VALUE = 57; + public static final int Type_VoteKickRequestMessage_VALUE = 58; + public static final int Type_VoteKickReplyMessage_VALUE = 59; + public static final int Type_KickPetitionUpdateMessage_VALUE = 60; + public static final int Type_EndKickPetitionMessage_VALUE = 61; + public static final int Type_StatisticsMessage_VALUE = 62; + public static final int Type_ChatRequestMessage_VALUE = 63; + public static final int Type_ChatMessage_VALUE = 64; + public static final int Type_ChatRejectMessage_VALUE = 65; + public static final int Type_DialogMessage_VALUE = 66; + public static final int Type_TimeoutWarningMessage_VALUE = 67; + public static final int Type_ResetTimeoutMessage_VALUE = 68; + public static final int Type_ReportAvatarMessage_VALUE = 69; + public static final int Type_ReportAvatarAckMessage_VALUE = 70; + public static final int Type_ReportGameMessage_VALUE = 71; + public static final int Type_ReportGameAckMessage_VALUE = 72; + public static final int Type_ErrorMessage_VALUE = 73; + + + public final int getNumber() { return value; } + + public static PokerTHMessageType valueOf(int value) { + switch (value) { + case 1: return Type_AnnounceMessage; + case 2: return Type_InitMessage; + case 3: return Type_AuthServerChallengeMessage; + case 4: return Type_AuthClientResponseMessage; + case 5: return Type_AuthServerVerificationMessage; + case 6: return Type_InitAckMessage; + case 7: return Type_AvatarRequestMessage; + case 8: return Type_AvatarHeaderMessage; + case 9: return Type_AvatarDataMessage; + case 10: return Type_AvatarEndMessage; + case 11: return Type_UnknownAvatarMessage; + case 12: return Type_PlayerListMessage; + case 13: return Type_GameListNewMessage; + case 14: return Type_GameListUpdateMessage; + case 15: return Type_GameListPlayerJoinedMessage; + case 16: return Type_GameListPlayerLeftMessage; + case 17: return Type_GameListAdminChangedMessage; + case 18: return Type_PlayerInfoRequestMessage; + case 19: return Type_PlayerInfoReplyMessage; + case 20: return Type_SubscriptionRequestMessage; + case 21: return Type_JoinExistingGameMessage; + case 22: return Type_JoinNewGameMessage; + case 23: return Type_RejoinExistingGameMessage; + case 24: return Type_JoinGameAckMessage; + case 25: return Type_JoinGameFailedMessage; + case 26: return Type_GamePlayerJoinedMessage; + case 27: return Type_GamePlayerLeftMessage; + case 28: return Type_GameAdminChangedMessage; + case 29: return Type_RemovedFromGameMessage; + case 30: return Type_KickPlayerRequestMessage; + case 31: return Type_LeaveGameRequestMessage; + case 32: return Type_InvitePlayerToGameMessage; + case 33: return Type_InviteNotifyMessage; + case 34: return Type_RejectGameInvitationMessage; + case 35: return Type_RejectInvNotifyMessage; + case 36: return Type_StartEventMessage; + case 37: return Type_StartEventAckMessage; + case 38: return Type_GameStartInitialMessage; + case 39: return Type_GameStartRejoinMessage; + case 40: return Type_HandStartMessage; + case 41: return Type_PlayersTurnMessage; + case 42: return Type_MyActionRequestMessage; + case 43: return Type_YourActionRejectedMessage; + case 44: return Type_PlayersActionDoneMessage; + case 45: return Type_DealFlopCardsMessage; + case 46: return Type_DealTurnCardMessage; + case 47: return Type_DealRiverCardMessage; + case 48: return Type_AllInShowCardsMessage; + case 49: return Type_EndOfHandShowCardsMessage; + case 50: return Type_EndOfHandHideCardsMessage; + case 51: return Type_ShowMyCardsRequestMessage; + case 52: return Type_AfterHandShowCardsMessage; + case 53: return Type_EndOfGameMessage; + case 54: return Type_PlayerIdChangedMessage; + case 55: return Type_AskKickPlayerMessage; + case 56: return Type_AskKickDeniedMessage; + case 57: return Type_StartKickPetitionMessage; + case 58: return Type_VoteKickRequestMessage; + case 59: return Type_VoteKickReplyMessage; + case 60: return Type_KickPetitionUpdateMessage; + case 61: return Type_EndKickPetitionMessage; + case 62: return Type_StatisticsMessage; + case 63: return Type_ChatRequestMessage; + case 64: return Type_ChatMessage; + case 65: return Type_ChatRejectMessage; + case 66: return Type_DialogMessage; + case 67: return Type_TimeoutWarningMessage; + case 68: return Type_ResetTimeoutMessage; + case 69: return Type_ReportAvatarMessage; + case 70: return Type_ReportAvatarAckMessage; + case 71: return Type_ReportGameMessage; + case 72: return Type_ReportGameAckMessage; + case 73: return Type_ErrorMessage; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PokerTHMessageType findValueByNumber(int number) { + return PokerTHMessageType.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 de.pokerth.protocol.ProtoBuf.PokerTHMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final PokerTHMessageType[] VALUES = { + Type_AnnounceMessage, Type_InitMessage, Type_AuthServerChallengeMessage, Type_AuthClientResponseMessage, Type_AuthServerVerificationMessage, Type_InitAckMessage, Type_AvatarRequestMessage, Type_AvatarHeaderMessage, Type_AvatarDataMessage, Type_AvatarEndMessage, Type_UnknownAvatarMessage, Type_PlayerListMessage, Type_GameListNewMessage, Type_GameListUpdateMessage, Type_GameListPlayerJoinedMessage, Type_GameListPlayerLeftMessage, Type_GameListAdminChangedMessage, Type_PlayerInfoRequestMessage, Type_PlayerInfoReplyMessage, Type_SubscriptionRequestMessage, Type_JoinExistingGameMessage, Type_JoinNewGameMessage, Type_RejoinExistingGameMessage, Type_JoinGameAckMessage, Type_JoinGameFailedMessage, Type_GamePlayerJoinedMessage, Type_GamePlayerLeftMessage, Type_GameAdminChangedMessage, Type_RemovedFromGameMessage, Type_KickPlayerRequestMessage, Type_LeaveGameRequestMessage, Type_InvitePlayerToGameMessage, Type_InviteNotifyMessage, Type_RejectGameInvitationMessage, Type_RejectInvNotifyMessage, Type_StartEventMessage, Type_StartEventAckMessage, Type_GameStartInitialMessage, Type_GameStartRejoinMessage, Type_HandStartMessage, Type_PlayersTurnMessage, Type_MyActionRequestMessage, Type_YourActionRejectedMessage, Type_PlayersActionDoneMessage, Type_DealFlopCardsMessage, Type_DealTurnCardMessage, Type_DealRiverCardMessage, Type_AllInShowCardsMessage, Type_EndOfHandShowCardsMessage, Type_EndOfHandHideCardsMessage, Type_ShowMyCardsRequestMessage, Type_AfterHandShowCardsMessage, Type_EndOfGameMessage, Type_PlayerIdChangedMessage, Type_AskKickPlayerMessage, Type_AskKickDeniedMessage, Type_StartKickPetitionMessage, Type_VoteKickRequestMessage, Type_VoteKickReplyMessage, Type_KickPetitionUpdateMessage, Type_EndKickPetitionMessage, Type_StatisticsMessage, Type_ChatRequestMessage, Type_ChatMessage, Type_ChatRejectMessage, Type_DialogMessage, Type_TimeoutWarningMessage, Type_ResetTimeoutMessage, Type_ReportAvatarMessage, Type_ReportAvatarAckMessage, Type_ReportGameMessage, Type_ReportGameAckMessage, Type_ErrorMessage, + }; + + public static PokerTHMessageType 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 PokerTHMessageType(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:PokerTHMessage.PokerTHMessageType) + } + + private int bitField0_; + private int bitField1_; + private int bitField2_; + // required .PokerTHMessage.PokerTHMessageType messageType = 1; + public static final int MESSAGETYPE_FIELD_NUMBER = 1; + private de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType messageType_; + public boolean hasMessageType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType getMessageType() { + return messageType_; + } + + // optional .AnnounceMessage announceMessage = 2; + public static final int ANNOUNCEMESSAGE_FIELD_NUMBER = 2; + private de.pokerth.protocol.ProtoBuf.AnnounceMessage announceMessage_; + public boolean hasAnnounceMessage() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage getAnnounceMessage() { + return announceMessage_; + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessageOrBuilder getAnnounceMessageOrBuilder() { + return announceMessage_; + } + + // optional .InitMessage initMessage = 3; + public static final int INITMESSAGE_FIELD_NUMBER = 3; + private de.pokerth.protocol.ProtoBuf.InitMessage initMessage_; + public boolean hasInitMessage() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.InitMessage getInitMessage() { + return initMessage_; + } + public de.pokerth.protocol.ProtoBuf.InitMessageOrBuilder getInitMessageOrBuilder() { + return initMessage_; + } + + // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; + public static final int AUTHSERVERCHALLENGEMESSAGE_FIELD_NUMBER = 4; + private de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage authServerChallengeMessage_; + public boolean hasAuthServerChallengeMessage() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage getAuthServerChallengeMessage() { + return authServerChallengeMessage_; + } + public de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessageOrBuilder getAuthServerChallengeMessageOrBuilder() { + return authServerChallengeMessage_; + } + + // optional .AuthClientResponseMessage authClientResponseMessage = 5; + public static final int AUTHCLIENTRESPONSEMESSAGE_FIELD_NUMBER = 5; + private de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage authClientResponseMessage_; + public boolean hasAuthClientResponseMessage() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage getAuthClientResponseMessage() { + return authClientResponseMessage_; + } + public de.pokerth.protocol.ProtoBuf.AuthClientResponseMessageOrBuilder getAuthClientResponseMessageOrBuilder() { + return authClientResponseMessage_; + } + + // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; + public static final int AUTHSERVERVERIFICATIONMESSAGE_FIELD_NUMBER = 6; + private de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage authServerVerificationMessage_; + public boolean hasAuthServerVerificationMessage() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage getAuthServerVerificationMessage() { + return authServerVerificationMessage_; + } + public de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessageOrBuilder getAuthServerVerificationMessageOrBuilder() { + return authServerVerificationMessage_; + } + + // optional .InitAckMessage initAckMessage = 7; + public static final int INITACKMESSAGE_FIELD_NUMBER = 7; + private de.pokerth.protocol.ProtoBuf.InitAckMessage initAckMessage_; + public boolean hasInitAckMessage() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + public de.pokerth.protocol.ProtoBuf.InitAckMessage getInitAckMessage() { + return initAckMessage_; + } + public de.pokerth.protocol.ProtoBuf.InitAckMessageOrBuilder getInitAckMessageOrBuilder() { + return initAckMessage_; + } + + // optional .AvatarRequestMessage avatarRequestMessage = 8; + public static final int AVATARREQUESTMESSAGE_FIELD_NUMBER = 8; + private de.pokerth.protocol.ProtoBuf.AvatarRequestMessage avatarRequestMessage_; + public boolean hasAvatarRequestMessage() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + public de.pokerth.protocol.ProtoBuf.AvatarRequestMessage getAvatarRequestMessage() { + return avatarRequestMessage_; + } + public de.pokerth.protocol.ProtoBuf.AvatarRequestMessageOrBuilder getAvatarRequestMessageOrBuilder() { + return avatarRequestMessage_; + } + + // optional .AvatarHeaderMessage avatarHeaderMessage = 9; + public static final int AVATARHEADERMESSAGE_FIELD_NUMBER = 9; + private de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage avatarHeaderMessage_; + public boolean hasAvatarHeaderMessage() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + public de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage getAvatarHeaderMessage() { + return avatarHeaderMessage_; + } + public de.pokerth.protocol.ProtoBuf.AvatarHeaderMessageOrBuilder getAvatarHeaderMessageOrBuilder() { + return avatarHeaderMessage_; + } + + // optional .AvatarDataMessage avatarDataMessage = 10; + public static final int AVATARDATAMESSAGE_FIELD_NUMBER = 10; + private de.pokerth.protocol.ProtoBuf.AvatarDataMessage avatarDataMessage_; + public boolean hasAvatarDataMessage() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + public de.pokerth.protocol.ProtoBuf.AvatarDataMessage getAvatarDataMessage() { + return avatarDataMessage_; + } + public de.pokerth.protocol.ProtoBuf.AvatarDataMessageOrBuilder getAvatarDataMessageOrBuilder() { + return avatarDataMessage_; + } + + // optional .AvatarEndMessage avatarEndMessage = 11; + public static final int AVATARENDMESSAGE_FIELD_NUMBER = 11; + private de.pokerth.protocol.ProtoBuf.AvatarEndMessage avatarEndMessage_; + public boolean hasAvatarEndMessage() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + public de.pokerth.protocol.ProtoBuf.AvatarEndMessage getAvatarEndMessage() { + return avatarEndMessage_; + } + public de.pokerth.protocol.ProtoBuf.AvatarEndMessageOrBuilder getAvatarEndMessageOrBuilder() { + return avatarEndMessage_; + } + + // optional .UnknownAvatarMessage unknownAvatarMessage = 12; + public static final int UNKNOWNAVATARMESSAGE_FIELD_NUMBER = 12; + private de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage unknownAvatarMessage_; + public boolean hasUnknownAvatarMessage() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + public de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage getUnknownAvatarMessage() { + return unknownAvatarMessage_; + } + public de.pokerth.protocol.ProtoBuf.UnknownAvatarMessageOrBuilder getUnknownAvatarMessageOrBuilder() { + return unknownAvatarMessage_; + } + + // optional .PlayerListMessage playerListMessage = 13; + public static final int PLAYERLISTMESSAGE_FIELD_NUMBER = 13; + private de.pokerth.protocol.ProtoBuf.PlayerListMessage playerListMessage_; + public boolean hasPlayerListMessage() { + return ((bitField0_ & 0x00001000) == 0x00001000); + } + public de.pokerth.protocol.ProtoBuf.PlayerListMessage getPlayerListMessage() { + return playerListMessage_; + } + public de.pokerth.protocol.ProtoBuf.PlayerListMessageOrBuilder getPlayerListMessageOrBuilder() { + return playerListMessage_; + } + + // optional .GameListNewMessage gameListNewMessage = 14; + public static final int GAMELISTNEWMESSAGE_FIELD_NUMBER = 14; + private de.pokerth.protocol.ProtoBuf.GameListNewMessage gameListNewMessage_; + public boolean hasGameListNewMessage() { + return ((bitField0_ & 0x00002000) == 0x00002000); + } + public de.pokerth.protocol.ProtoBuf.GameListNewMessage getGameListNewMessage() { + return gameListNewMessage_; + } + public de.pokerth.protocol.ProtoBuf.GameListNewMessageOrBuilder getGameListNewMessageOrBuilder() { + return gameListNewMessage_; + } + + // optional .GameListUpdateMessage gameListUpdateMessage = 15; + public static final int GAMELISTUPDATEMESSAGE_FIELD_NUMBER = 15; + private de.pokerth.protocol.ProtoBuf.GameListUpdateMessage gameListUpdateMessage_; + public boolean hasGameListUpdateMessage() { + return ((bitField0_ & 0x00004000) == 0x00004000); + } + public de.pokerth.protocol.ProtoBuf.GameListUpdateMessage getGameListUpdateMessage() { + return gameListUpdateMessage_; + } + public de.pokerth.protocol.ProtoBuf.GameListUpdateMessageOrBuilder getGameListUpdateMessageOrBuilder() { + return gameListUpdateMessage_; + } + + // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; + public static final int GAMELISTPLAYERJOINEDMESSAGE_FIELD_NUMBER = 16; + private de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage gameListPlayerJoinedMessage_; + public boolean hasGameListPlayerJoinedMessage() { + return ((bitField0_ & 0x00008000) == 0x00008000); + } + public de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage getGameListPlayerJoinedMessage() { + return gameListPlayerJoinedMessage_; + } + public de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessageOrBuilder getGameListPlayerJoinedMessageOrBuilder() { + return gameListPlayerJoinedMessage_; + } + + // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; + public static final int GAMELISTPLAYERLEFTMESSAGE_FIELD_NUMBER = 17; + private de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage gameListPlayerLeftMessage_; + public boolean hasGameListPlayerLeftMessage() { + return ((bitField0_ & 0x00010000) == 0x00010000); + } + public de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage getGameListPlayerLeftMessage() { + return gameListPlayerLeftMessage_; + } + public de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessageOrBuilder getGameListPlayerLeftMessageOrBuilder() { + return gameListPlayerLeftMessage_; + } + + // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; + public static final int GAMELISTADMINCHANGEDMESSAGE_FIELD_NUMBER = 18; + private de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage gameListAdminChangedMessage_; + public boolean hasGameListAdminChangedMessage() { + return ((bitField0_ & 0x00020000) == 0x00020000); + } + public de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage getGameListAdminChangedMessage() { + return gameListAdminChangedMessage_; + } + public de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessageOrBuilder getGameListAdminChangedMessageOrBuilder() { + return gameListAdminChangedMessage_; + } + + // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; + public static final int PLAYERINFOREQUESTMESSAGE_FIELD_NUMBER = 19; + private de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage playerInfoRequestMessage_; + public boolean hasPlayerInfoRequestMessage() { + return ((bitField0_ & 0x00040000) == 0x00040000); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage getPlayerInfoRequestMessage() { + return playerInfoRequestMessage_; + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessageOrBuilder getPlayerInfoRequestMessageOrBuilder() { + return playerInfoRequestMessage_; + } + + // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; + public static final int PLAYERINFOREPLYMESSAGE_FIELD_NUMBER = 20; + private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage playerInfoReplyMessage_; + public boolean hasPlayerInfoReplyMessage() { + return ((bitField0_ & 0x00080000) == 0x00080000); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage getPlayerInfoReplyMessage() { + return playerInfoReplyMessage_; + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessageOrBuilder getPlayerInfoReplyMessageOrBuilder() { + return playerInfoReplyMessage_; + } + + // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; + public static final int SUBSCRIPTIONREQUESTMESSAGE_FIELD_NUMBER = 21; + private de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage subscriptionRequestMessage_; + public boolean hasSubscriptionRequestMessage() { + return ((bitField0_ & 0x00100000) == 0x00100000); + } + public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage getSubscriptionRequestMessage() { + return subscriptionRequestMessage_; + } + public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessageOrBuilder getSubscriptionRequestMessageOrBuilder() { + return subscriptionRequestMessage_; + } + + // optional .JoinExistingGameMessage joinExistingGameMessage = 22; + public static final int JOINEXISTINGGAMEMESSAGE_FIELD_NUMBER = 22; + private de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage joinExistingGameMessage_; + public boolean hasJoinExistingGameMessage() { + return ((bitField0_ & 0x00200000) == 0x00200000); + } + public de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage getJoinExistingGameMessage() { + return joinExistingGameMessage_; + } + public de.pokerth.protocol.ProtoBuf.JoinExistingGameMessageOrBuilder getJoinExistingGameMessageOrBuilder() { + return joinExistingGameMessage_; + } + + // optional .JoinNewGameMessage joinNewGameMessage = 23; + public static final int JOINNEWGAMEMESSAGE_FIELD_NUMBER = 23; + private de.pokerth.protocol.ProtoBuf.JoinNewGameMessage joinNewGameMessage_; + public boolean hasJoinNewGameMessage() { + return ((bitField0_ & 0x00400000) == 0x00400000); + } + public de.pokerth.protocol.ProtoBuf.JoinNewGameMessage getJoinNewGameMessage() { + return joinNewGameMessage_; + } + public de.pokerth.protocol.ProtoBuf.JoinNewGameMessageOrBuilder getJoinNewGameMessageOrBuilder() { + return joinNewGameMessage_; + } + + // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; + public static final int REJOINEXISTINGGAMEMESSAGE_FIELD_NUMBER = 24; + private de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage rejoinExistingGameMessage_; + public boolean hasRejoinExistingGameMessage() { + return ((bitField0_ & 0x00800000) == 0x00800000); + } + public de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage getRejoinExistingGameMessage() { + return rejoinExistingGameMessage_; + } + public de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessageOrBuilder getRejoinExistingGameMessageOrBuilder() { + return rejoinExistingGameMessage_; + } + + // optional .JoinGameAckMessage joinGameAckMessage = 25; + public static final int JOINGAMEACKMESSAGE_FIELD_NUMBER = 25; + private de.pokerth.protocol.ProtoBuf.JoinGameAckMessage joinGameAckMessage_; + public boolean hasJoinGameAckMessage() { + return ((bitField0_ & 0x01000000) == 0x01000000); + } + public de.pokerth.protocol.ProtoBuf.JoinGameAckMessage getJoinGameAckMessage() { + return joinGameAckMessage_; + } + public de.pokerth.protocol.ProtoBuf.JoinGameAckMessageOrBuilder getJoinGameAckMessageOrBuilder() { + return joinGameAckMessage_; + } + + // optional .JoinGameFailedMessage joinGameFailedMessage = 26; + public static final int JOINGAMEFAILEDMESSAGE_FIELD_NUMBER = 26; + private de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage joinGameFailedMessage_; + public boolean hasJoinGameFailedMessage() { + return ((bitField0_ & 0x02000000) == 0x02000000); + } + public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage getJoinGameFailedMessage() { + return joinGameFailedMessage_; + } + public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessageOrBuilder getJoinGameFailedMessageOrBuilder() { + return joinGameFailedMessage_; + } + + // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; + public static final int GAMEPLAYERJOINEDMESSAGE_FIELD_NUMBER = 27; + private de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage gamePlayerJoinedMessage_; + public boolean hasGamePlayerJoinedMessage() { + return ((bitField0_ & 0x04000000) == 0x04000000); + } + public de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage getGamePlayerJoinedMessage() { + return gamePlayerJoinedMessage_; + } + public de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessageOrBuilder getGamePlayerJoinedMessageOrBuilder() { + return gamePlayerJoinedMessage_; + } + + // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; + public static final int GAMEPLAYERLEFTMESSAGE_FIELD_NUMBER = 28; + private de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage gamePlayerLeftMessage_; + public boolean hasGamePlayerLeftMessage() { + return ((bitField0_ & 0x08000000) == 0x08000000); + } + public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage getGamePlayerLeftMessage() { + return gamePlayerLeftMessage_; + } + public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessageOrBuilder getGamePlayerLeftMessageOrBuilder() { + return gamePlayerLeftMessage_; + } + + // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; + public static final int GAMEADMINCHANGEDMESSAGE_FIELD_NUMBER = 29; + private de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage gameAdminChangedMessage_; + public boolean hasGameAdminChangedMessage() { + return ((bitField0_ & 0x10000000) == 0x10000000); + } + public de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage getGameAdminChangedMessage() { + return gameAdminChangedMessage_; + } + public de.pokerth.protocol.ProtoBuf.GameAdminChangedMessageOrBuilder getGameAdminChangedMessageOrBuilder() { + return gameAdminChangedMessage_; + } + + // optional .RemovedFromGameMessage removedFromGameMessage = 30; + public static final int REMOVEDFROMGAMEMESSAGE_FIELD_NUMBER = 30; + private de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage removedFromGameMessage_; + public boolean hasRemovedFromGameMessage() { + return ((bitField0_ & 0x20000000) == 0x20000000); + } + public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage getRemovedFromGameMessage() { + return removedFromGameMessage_; + } + public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessageOrBuilder getRemovedFromGameMessageOrBuilder() { + return removedFromGameMessage_; + } + + // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; + public static final int KICKPLAYERREQUESTMESSAGE_FIELD_NUMBER = 31; + private de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage kickPlayerRequestMessage_; + public boolean hasKickPlayerRequestMessage() { + return ((bitField0_ & 0x40000000) == 0x40000000); + } + public de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage getKickPlayerRequestMessage() { + return kickPlayerRequestMessage_; + } + public de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessageOrBuilder getKickPlayerRequestMessageOrBuilder() { + return kickPlayerRequestMessage_; + } + + // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; + public static final int LEAVEGAMEREQUESTMESSAGE_FIELD_NUMBER = 32; + private de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage leaveGameRequestMessage_; + public boolean hasLeaveGameRequestMessage() { + return ((bitField0_ & 0x80000000) == 0x80000000); + } + public de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage getLeaveGameRequestMessage() { + return leaveGameRequestMessage_; + } + public de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessageOrBuilder getLeaveGameRequestMessageOrBuilder() { + return leaveGameRequestMessage_; + } + + // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; + public static final int INVITEPLAYERTOGAMEMESSAGE_FIELD_NUMBER = 33; + private de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage invitePlayerToGameMessage_; + public boolean hasInvitePlayerToGameMessage() { + return ((bitField1_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage getInvitePlayerToGameMessage() { + return invitePlayerToGameMessage_; + } + public de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessageOrBuilder getInvitePlayerToGameMessageOrBuilder() { + return invitePlayerToGameMessage_; + } + + // optional .InviteNotifyMessage inviteNotifyMessage = 34; + public static final int INVITENOTIFYMESSAGE_FIELD_NUMBER = 34; + private de.pokerth.protocol.ProtoBuf.InviteNotifyMessage inviteNotifyMessage_; + public boolean hasInviteNotifyMessage() { + return ((bitField1_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.InviteNotifyMessage getInviteNotifyMessage() { + return inviteNotifyMessage_; + } + public de.pokerth.protocol.ProtoBuf.InviteNotifyMessageOrBuilder getInviteNotifyMessageOrBuilder() { + return inviteNotifyMessage_; + } + + // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; + public static final int REJECTGAMEINVITATIONMESSAGE_FIELD_NUMBER = 35; + private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage rejectGameInvitationMessage_; + public boolean hasRejectGameInvitationMessage() { + return ((bitField1_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage getRejectGameInvitationMessage() { + return rejectGameInvitationMessage_; + } + public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessageOrBuilder getRejectGameInvitationMessageOrBuilder() { + return rejectGameInvitationMessage_; + } + + // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; + public static final int REJECTINVNOTIFYMESSAGE_FIELD_NUMBER = 36; + private de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage rejectInvNotifyMessage_; + public boolean hasRejectInvNotifyMessage() { + return ((bitField1_ & 0x00000008) == 0x00000008); + } + public de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage getRejectInvNotifyMessage() { + return rejectInvNotifyMessage_; + } + public de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessageOrBuilder getRejectInvNotifyMessageOrBuilder() { + return rejectInvNotifyMessage_; + } + + // optional .StartEventMessage startEventMessage = 37; + public static final int STARTEVENTMESSAGE_FIELD_NUMBER = 37; + private de.pokerth.protocol.ProtoBuf.StartEventMessage startEventMessage_; + public boolean hasStartEventMessage() { + return ((bitField1_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.StartEventMessage getStartEventMessage() { + return startEventMessage_; + } + public de.pokerth.protocol.ProtoBuf.StartEventMessageOrBuilder getStartEventMessageOrBuilder() { + return startEventMessage_; + } + + // optional .StartEventAckMessage startEventAckMessage = 38; + public static final int STARTEVENTACKMESSAGE_FIELD_NUMBER = 38; + private de.pokerth.protocol.ProtoBuf.StartEventAckMessage startEventAckMessage_; + public boolean hasStartEventAckMessage() { + return ((bitField1_ & 0x00000020) == 0x00000020); + } + public de.pokerth.protocol.ProtoBuf.StartEventAckMessage getStartEventAckMessage() { + return startEventAckMessage_; + } + public de.pokerth.protocol.ProtoBuf.StartEventAckMessageOrBuilder getStartEventAckMessageOrBuilder() { + return startEventAckMessage_; + } + + // optional .GameStartInitialMessage gameStartInitialMessage = 39; + public static final int GAMESTARTINITIALMESSAGE_FIELD_NUMBER = 39; + private de.pokerth.protocol.ProtoBuf.GameStartInitialMessage gameStartInitialMessage_; + public boolean hasGameStartInitialMessage() { + return ((bitField1_ & 0x00000040) == 0x00000040); + } + public de.pokerth.protocol.ProtoBuf.GameStartInitialMessage getGameStartInitialMessage() { + return gameStartInitialMessage_; + } + public de.pokerth.protocol.ProtoBuf.GameStartInitialMessageOrBuilder getGameStartInitialMessageOrBuilder() { + return gameStartInitialMessage_; + } + + // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; + public static final int GAMESTARTREJOINMESSAGE_FIELD_NUMBER = 40; + private de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage gameStartRejoinMessage_; + public boolean hasGameStartRejoinMessage() { + return ((bitField1_ & 0x00000080) == 0x00000080); + } + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage getGameStartRejoinMessage() { + return gameStartRejoinMessage_; + } + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessageOrBuilder getGameStartRejoinMessageOrBuilder() { + return gameStartRejoinMessage_; + } + + // optional .HandStartMessage handStartMessage = 41; + public static final int HANDSTARTMESSAGE_FIELD_NUMBER = 41; + private de.pokerth.protocol.ProtoBuf.HandStartMessage handStartMessage_; + public boolean hasHandStartMessage() { + return ((bitField1_ & 0x00000100) == 0x00000100); + } + public de.pokerth.protocol.ProtoBuf.HandStartMessage getHandStartMessage() { + return handStartMessage_; + } + public de.pokerth.protocol.ProtoBuf.HandStartMessageOrBuilder getHandStartMessageOrBuilder() { + return handStartMessage_; + } + + // optional .PlayersTurnMessage playersTurnMessage = 42; + public static final int PLAYERSTURNMESSAGE_FIELD_NUMBER = 42; + private de.pokerth.protocol.ProtoBuf.PlayersTurnMessage playersTurnMessage_; + public boolean hasPlayersTurnMessage() { + return ((bitField1_ & 0x00000200) == 0x00000200); + } + public de.pokerth.protocol.ProtoBuf.PlayersTurnMessage getPlayersTurnMessage() { + return playersTurnMessage_; + } + public de.pokerth.protocol.ProtoBuf.PlayersTurnMessageOrBuilder getPlayersTurnMessageOrBuilder() { + return playersTurnMessage_; + } + + // optional .MyActionRequestMessage myActionRequestMessage = 43; + public static final int MYACTIONREQUESTMESSAGE_FIELD_NUMBER = 43; + private de.pokerth.protocol.ProtoBuf.MyActionRequestMessage myActionRequestMessage_; + public boolean hasMyActionRequestMessage() { + return ((bitField1_ & 0x00000400) == 0x00000400); + } + public de.pokerth.protocol.ProtoBuf.MyActionRequestMessage getMyActionRequestMessage() { + return myActionRequestMessage_; + } + public de.pokerth.protocol.ProtoBuf.MyActionRequestMessageOrBuilder getMyActionRequestMessageOrBuilder() { + return myActionRequestMessage_; + } + + // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; + public static final int YOURACTIONREJECTEDMESSAGE_FIELD_NUMBER = 44; + private de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage yourActionRejectedMessage_; + public boolean hasYourActionRejectedMessage() { + return ((bitField1_ & 0x00000800) == 0x00000800); + } + public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage getYourActionRejectedMessage() { + return yourActionRejectedMessage_; + } + public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessageOrBuilder getYourActionRejectedMessageOrBuilder() { + return yourActionRejectedMessage_; + } + + // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; + public static final int PLAYERSACTIONDONEMESSAGE_FIELD_NUMBER = 45; + private de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage playersActionDoneMessage_; + public boolean hasPlayersActionDoneMessage() { + return ((bitField1_ & 0x00001000) == 0x00001000); + } + public de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage getPlayersActionDoneMessage() { + return playersActionDoneMessage_; + } + public de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessageOrBuilder getPlayersActionDoneMessageOrBuilder() { + return playersActionDoneMessage_; + } + + // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; + public static final int DEALFLOPCARDSMESSAGE_FIELD_NUMBER = 46; + private de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage dealFlopCardsMessage_; + public boolean hasDealFlopCardsMessage() { + return ((bitField1_ & 0x00002000) == 0x00002000); + } + public de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage getDealFlopCardsMessage() { + return dealFlopCardsMessage_; + } + public de.pokerth.protocol.ProtoBuf.DealFlopCardsMessageOrBuilder getDealFlopCardsMessageOrBuilder() { + return dealFlopCardsMessage_; + } + + // optional .DealTurnCardMessage dealTurnCardMessage = 47; + public static final int DEALTURNCARDMESSAGE_FIELD_NUMBER = 47; + private de.pokerth.protocol.ProtoBuf.DealTurnCardMessage dealTurnCardMessage_; + public boolean hasDealTurnCardMessage() { + return ((bitField1_ & 0x00004000) == 0x00004000); + } + public de.pokerth.protocol.ProtoBuf.DealTurnCardMessage getDealTurnCardMessage() { + return dealTurnCardMessage_; + } + public de.pokerth.protocol.ProtoBuf.DealTurnCardMessageOrBuilder getDealTurnCardMessageOrBuilder() { + return dealTurnCardMessage_; + } + + // optional .DealRiverCardMessage dealRiverCardMessage = 48; + public static final int DEALRIVERCARDMESSAGE_FIELD_NUMBER = 48; + private de.pokerth.protocol.ProtoBuf.DealRiverCardMessage dealRiverCardMessage_; + public boolean hasDealRiverCardMessage() { + return ((bitField1_ & 0x00008000) == 0x00008000); + } + public de.pokerth.protocol.ProtoBuf.DealRiverCardMessage getDealRiverCardMessage() { + return dealRiverCardMessage_; + } + public de.pokerth.protocol.ProtoBuf.DealRiverCardMessageOrBuilder getDealRiverCardMessageOrBuilder() { + return dealRiverCardMessage_; + } + + // optional .AllInShowCardsMessage allInShowCardsMessage = 49; + public static final int ALLINSHOWCARDSMESSAGE_FIELD_NUMBER = 49; + private de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage allInShowCardsMessage_; + public boolean hasAllInShowCardsMessage() { + return ((bitField1_ & 0x00010000) == 0x00010000); + } + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage getAllInShowCardsMessage() { + return allInShowCardsMessage_; + } + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessageOrBuilder getAllInShowCardsMessageOrBuilder() { + return allInShowCardsMessage_; + } + + // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; + public static final int ENDOFHANDSHOWCARDSMESSAGE_FIELD_NUMBER = 50; + private de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage endOfHandShowCardsMessage_; + public boolean hasEndOfHandShowCardsMessage() { + return ((bitField1_ & 0x00020000) == 0x00020000); + } + public de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage getEndOfHandShowCardsMessage() { + return endOfHandShowCardsMessage_; + } + public de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessageOrBuilder getEndOfHandShowCardsMessageOrBuilder() { + return endOfHandShowCardsMessage_; + } + + // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; + public static final int ENDOFHANDHIDECARDSMESSAGE_FIELD_NUMBER = 51; + private de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage endOfHandHideCardsMessage_; + public boolean hasEndOfHandHideCardsMessage() { + return ((bitField1_ & 0x00040000) == 0x00040000); + } + public de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage getEndOfHandHideCardsMessage() { + return endOfHandHideCardsMessage_; + } + public de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessageOrBuilder getEndOfHandHideCardsMessageOrBuilder() { + return endOfHandHideCardsMessage_; + } + + // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; + public static final int SHOWMYCARDSREQUESTMESSAGE_FIELD_NUMBER = 52; + private de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage showMyCardsRequestMessage_; + public boolean hasShowMyCardsRequestMessage() { + return ((bitField1_ & 0x00080000) == 0x00080000); + } + public de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage getShowMyCardsRequestMessage() { + return showMyCardsRequestMessage_; + } + public de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessageOrBuilder getShowMyCardsRequestMessageOrBuilder() { + return showMyCardsRequestMessage_; + } + + // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; + public static final int AFTERHANDSHOWCARDSMESSAGE_FIELD_NUMBER = 53; + private de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage afterHandShowCardsMessage_; + public boolean hasAfterHandShowCardsMessage() { + return ((bitField1_ & 0x00100000) == 0x00100000); + } + public de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage getAfterHandShowCardsMessage() { + return afterHandShowCardsMessage_; + } + public de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessageOrBuilder getAfterHandShowCardsMessageOrBuilder() { + return afterHandShowCardsMessage_; + } + + // optional .EndOfGameMessage endOfGameMessage = 54; + public static final int ENDOFGAMEMESSAGE_FIELD_NUMBER = 54; + private de.pokerth.protocol.ProtoBuf.EndOfGameMessage endOfGameMessage_; + public boolean hasEndOfGameMessage() { + return ((bitField1_ & 0x00200000) == 0x00200000); + } + public de.pokerth.protocol.ProtoBuf.EndOfGameMessage getEndOfGameMessage() { + return endOfGameMessage_; + } + public de.pokerth.protocol.ProtoBuf.EndOfGameMessageOrBuilder getEndOfGameMessageOrBuilder() { + return endOfGameMessage_; + } + + // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; + public static final int PLAYERIDCHANGEDMESSAGE_FIELD_NUMBER = 55; + private de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage playerIdChangedMessage_; + public boolean hasPlayerIdChangedMessage() { + return ((bitField1_ & 0x00400000) == 0x00400000); + } + public de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage getPlayerIdChangedMessage() { + return playerIdChangedMessage_; + } + public de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessageOrBuilder getPlayerIdChangedMessageOrBuilder() { + return playerIdChangedMessage_; + } + + // optional .AskKickPlayerMessage askKickPlayerMessage = 56; + public static final int ASKKICKPLAYERMESSAGE_FIELD_NUMBER = 56; + private de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage askKickPlayerMessage_; + public boolean hasAskKickPlayerMessage() { + return ((bitField1_ & 0x00800000) == 0x00800000); + } + public de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage getAskKickPlayerMessage() { + return askKickPlayerMessage_; + } + public de.pokerth.protocol.ProtoBuf.AskKickPlayerMessageOrBuilder getAskKickPlayerMessageOrBuilder() { + return askKickPlayerMessage_; + } + + // optional .AskKickDeniedMessage askKickDeniedMessage = 57; + public static final int ASKKICKDENIEDMESSAGE_FIELD_NUMBER = 57; + private de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage askKickDeniedMessage_; + public boolean hasAskKickDeniedMessage() { + return ((bitField1_ & 0x01000000) == 0x01000000); + } + public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage getAskKickDeniedMessage() { + return askKickDeniedMessage_; + } + public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessageOrBuilder getAskKickDeniedMessageOrBuilder() { + return askKickDeniedMessage_; + } + + // optional .StartKickPetitionMessage startKickPetitionMessage = 58; + public static final int STARTKICKPETITIONMESSAGE_FIELD_NUMBER = 58; + private de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage startKickPetitionMessage_; + public boolean hasStartKickPetitionMessage() { + return ((bitField1_ & 0x02000000) == 0x02000000); + } + public de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage getStartKickPetitionMessage() { + return startKickPetitionMessage_; + } + public de.pokerth.protocol.ProtoBuf.StartKickPetitionMessageOrBuilder getStartKickPetitionMessageOrBuilder() { + return startKickPetitionMessage_; + } + + // optional .VoteKickRequestMessage voteKickRequestMessage = 59; + public static final int VOTEKICKREQUESTMESSAGE_FIELD_NUMBER = 59; + private de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage voteKickRequestMessage_; + public boolean hasVoteKickRequestMessage() { + return ((bitField1_ & 0x04000000) == 0x04000000); + } + public de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage getVoteKickRequestMessage() { + return voteKickRequestMessage_; + } + public de.pokerth.protocol.ProtoBuf.VoteKickRequestMessageOrBuilder getVoteKickRequestMessageOrBuilder() { + return voteKickRequestMessage_; + } + + // optional .VoteKickReplyMessage voteKickReplyMessage = 60; + public static final int VOTEKICKREPLYMESSAGE_FIELD_NUMBER = 60; + private de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage voteKickReplyMessage_; + public boolean hasVoteKickReplyMessage() { + return ((bitField1_ & 0x08000000) == 0x08000000); + } + public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage getVoteKickReplyMessage() { + return voteKickReplyMessage_; + } + public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessageOrBuilder getVoteKickReplyMessageOrBuilder() { + return voteKickReplyMessage_; + } + + // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; + public static final int KICKPETITIONUPDATEMESSAGE_FIELD_NUMBER = 61; + private de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage kickPetitionUpdateMessage_; + public boolean hasKickPetitionUpdateMessage() { + return ((bitField1_ & 0x10000000) == 0x10000000); + } + public de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage getKickPetitionUpdateMessage() { + return kickPetitionUpdateMessage_; + } + public de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessageOrBuilder getKickPetitionUpdateMessageOrBuilder() { + return kickPetitionUpdateMessage_; + } + + // optional .EndKickPetitionMessage endKickPetitionMessage = 62; + public static final int ENDKICKPETITIONMESSAGE_FIELD_NUMBER = 62; + private de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage endKickPetitionMessage_; + public boolean hasEndKickPetitionMessage() { + return ((bitField1_ & 0x20000000) == 0x20000000); + } + public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage getEndKickPetitionMessage() { + return endKickPetitionMessage_; + } + public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessageOrBuilder getEndKickPetitionMessageOrBuilder() { + return endKickPetitionMessage_; + } + + // optional .StatisticsMessage statisticsMessage = 63; + public static final int STATISTICSMESSAGE_FIELD_NUMBER = 63; + private de.pokerth.protocol.ProtoBuf.StatisticsMessage statisticsMessage_; + public boolean hasStatisticsMessage() { + return ((bitField1_ & 0x40000000) == 0x40000000); + } + public de.pokerth.protocol.ProtoBuf.StatisticsMessage getStatisticsMessage() { + return statisticsMessage_; + } + public de.pokerth.protocol.ProtoBuf.StatisticsMessageOrBuilder getStatisticsMessageOrBuilder() { + return statisticsMessage_; + } + + // optional .ChatRequestMessage chatRequestMessage = 64; + public static final int CHATREQUESTMESSAGE_FIELD_NUMBER = 64; + private de.pokerth.protocol.ProtoBuf.ChatRequestMessage chatRequestMessage_; + public boolean hasChatRequestMessage() { + return ((bitField1_ & 0x80000000) == 0x80000000); + } + public de.pokerth.protocol.ProtoBuf.ChatRequestMessage getChatRequestMessage() { + return chatRequestMessage_; + } + public de.pokerth.protocol.ProtoBuf.ChatRequestMessageOrBuilder getChatRequestMessageOrBuilder() { + return chatRequestMessage_; + } + + // optional .ChatMessage chatMessage = 65; + public static final int CHATMESSAGE_FIELD_NUMBER = 65; + private de.pokerth.protocol.ProtoBuf.ChatMessage chatMessage_; + public boolean hasChatMessage() { + return ((bitField2_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.ChatMessage getChatMessage() { + return chatMessage_; + } + public de.pokerth.protocol.ProtoBuf.ChatMessageOrBuilder getChatMessageOrBuilder() { + return chatMessage_; + } + + // optional .ChatRejectMessage chatRejectMessage = 66; + public static final int CHATREJECTMESSAGE_FIELD_NUMBER = 66; + private de.pokerth.protocol.ProtoBuf.ChatRejectMessage chatRejectMessage_; + public boolean hasChatRejectMessage() { + return ((bitField2_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.ChatRejectMessage getChatRejectMessage() { + return chatRejectMessage_; + } + public de.pokerth.protocol.ProtoBuf.ChatRejectMessageOrBuilder getChatRejectMessageOrBuilder() { + return chatRejectMessage_; + } + + // optional .DialogMessage dialogMessage = 67; + public static final int DIALOGMESSAGE_FIELD_NUMBER = 67; + private de.pokerth.protocol.ProtoBuf.DialogMessage dialogMessage_; + public boolean hasDialogMessage() { + return ((bitField2_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.DialogMessage getDialogMessage() { + return dialogMessage_; + } + public de.pokerth.protocol.ProtoBuf.DialogMessageOrBuilder getDialogMessageOrBuilder() { + return dialogMessage_; + } + + // optional .TimeoutWarningMessage timeoutWarningMessage = 68; + public static final int TIMEOUTWARNINGMESSAGE_FIELD_NUMBER = 68; + private de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage timeoutWarningMessage_; + public boolean hasTimeoutWarningMessage() { + return ((bitField2_ & 0x00000008) == 0x00000008); + } + public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage getTimeoutWarningMessage() { + return timeoutWarningMessage_; + } + public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessageOrBuilder getTimeoutWarningMessageOrBuilder() { + return timeoutWarningMessage_; + } + + // optional .ResetTimeoutMessage resetTimeoutMessage = 69; + public static final int RESETTIMEOUTMESSAGE_FIELD_NUMBER = 69; + private de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage resetTimeoutMessage_; + public boolean hasResetTimeoutMessage() { + return ((bitField2_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage getResetTimeoutMessage() { + return resetTimeoutMessage_; + } + public de.pokerth.protocol.ProtoBuf.ResetTimeoutMessageOrBuilder getResetTimeoutMessageOrBuilder() { + return resetTimeoutMessage_; + } + + // optional .ReportAvatarMessage reportAvatarMessage = 70; + public static final int REPORTAVATARMESSAGE_FIELD_NUMBER = 70; + private de.pokerth.protocol.ProtoBuf.ReportAvatarMessage reportAvatarMessage_; + public boolean hasReportAvatarMessage() { + return ((bitField2_ & 0x00000020) == 0x00000020); + } + public de.pokerth.protocol.ProtoBuf.ReportAvatarMessage getReportAvatarMessage() { + return reportAvatarMessage_; + } + public de.pokerth.protocol.ProtoBuf.ReportAvatarMessageOrBuilder getReportAvatarMessageOrBuilder() { + return reportAvatarMessage_; + } + + // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; + public static final int REPORTAVATARACKMESSAGE_FIELD_NUMBER = 71; + private de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage reportAvatarAckMessage_; + public boolean hasReportAvatarAckMessage() { + return ((bitField2_ & 0x00000040) == 0x00000040); + } + public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage getReportAvatarAckMessage() { + return reportAvatarAckMessage_; + } + public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessageOrBuilder getReportAvatarAckMessageOrBuilder() { + return reportAvatarAckMessage_; + } + + // optional .ReportGameMessage reportGameMessage = 72; + public static final int REPORTGAMEMESSAGE_FIELD_NUMBER = 72; + private de.pokerth.protocol.ProtoBuf.ReportGameMessage reportGameMessage_; + public boolean hasReportGameMessage() { + return ((bitField2_ & 0x00000080) == 0x00000080); + } + public de.pokerth.protocol.ProtoBuf.ReportGameMessage getReportGameMessage() { + return reportGameMessage_; + } + public de.pokerth.protocol.ProtoBuf.ReportGameMessageOrBuilder getReportGameMessageOrBuilder() { + return reportGameMessage_; + } + + // optional .ReportGameAckMessage reportGameAckMessage = 73; + public static final int REPORTGAMEACKMESSAGE_FIELD_NUMBER = 73; + private de.pokerth.protocol.ProtoBuf.ReportGameAckMessage reportGameAckMessage_; + public boolean hasReportGameAckMessage() { + return ((bitField2_ & 0x00000100) == 0x00000100); + } + public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage getReportGameAckMessage() { + return reportGameAckMessage_; + } + public de.pokerth.protocol.ProtoBuf.ReportGameAckMessageOrBuilder getReportGameAckMessageOrBuilder() { + return reportGameAckMessage_; + } + + // optional .ErrorMessage errorMessage = 74; + public static final int ERRORMESSAGE_FIELD_NUMBER = 74; + private de.pokerth.protocol.ProtoBuf.ErrorMessage errorMessage_; + public boolean hasErrorMessage() { + return ((bitField2_ & 0x00000200) == 0x00000200); + } + public de.pokerth.protocol.ProtoBuf.ErrorMessage getErrorMessage() { + return errorMessage_; + } + public de.pokerth.protocol.ProtoBuf.ErrorMessageOrBuilder getErrorMessageOrBuilder() { + return errorMessage_; + } + + private void initFields() { + messageType_ = de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType.Type_AnnounceMessage; + announceMessage_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance(); + initMessage_ = de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance(); + authServerChallengeMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance(); + authClientResponseMessage_ = de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance(); + authServerVerificationMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance(); + initAckMessage_ = de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance(); + avatarRequestMessage_ = de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance(); + avatarHeaderMessage_ = de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance(); + avatarDataMessage_ = de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance(); + avatarEndMessage_ = de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance(); + unknownAvatarMessage_ = de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance(); + playerListMessage_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance(); + gameListNewMessage_ = de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance(); + gameListUpdateMessage_ = de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance(); + gameListPlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance(); + gameListPlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance(); + gameListAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance(); + playerInfoRequestMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance(); + playerInfoReplyMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance(); + subscriptionRequestMessage_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance(); + joinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance(); + joinNewGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance(); + rejoinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance(); + joinGameAckMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance(); + joinGameFailedMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance(); + gamePlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance(); + gamePlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance(); + gameAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance(); + removedFromGameMessage_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance(); + kickPlayerRequestMessage_ = de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance(); + leaveGameRequestMessage_ = de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance(); + invitePlayerToGameMessage_ = de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance(); + inviteNotifyMessage_ = de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance(); + rejectGameInvitationMessage_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance(); + rejectInvNotifyMessage_ = de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance(); + startEventMessage_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance(); + startEventAckMessage_ = de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance(); + gameStartInitialMessage_ = de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance(); + gameStartRejoinMessage_ = de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance(); + handStartMessage_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance(); + playersTurnMessage_ = de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance(); + myActionRequestMessage_ = de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance(); + yourActionRejectedMessage_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance(); + playersActionDoneMessage_ = de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance(); + dealFlopCardsMessage_ = de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance(); + dealTurnCardMessage_ = de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance(); + dealRiverCardMessage_ = de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance(); + allInShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance(); + endOfHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance(); + endOfHandHideCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance(); + showMyCardsRequestMessage_ = de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance(); + afterHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance(); + endOfGameMessage_ = de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance(); + playerIdChangedMessage_ = de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance(); + askKickPlayerMessage_ = de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance(); + askKickDeniedMessage_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance(); + startKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance(); + voteKickRequestMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance(); + voteKickReplyMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance(); + kickPetitionUpdateMessage_ = de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance(); + endKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance(); + statisticsMessage_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance(); + chatRequestMessage_ = de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance(); + chatMessage_ = de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance(); + chatRejectMessage_ = de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance(); + dialogMessage_ = de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance(); + timeoutWarningMessage_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance(); + resetTimeoutMessage_ = de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance(); + reportAvatarMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance(); + reportAvatarAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance(); + reportGameMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance(); + reportGameAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance(); + errorMessage_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasMessageType()) { + memoizedIsInitialized = 0; + return false; + } + if (hasAnnounceMessage()) { + if (!getAnnounceMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasInitMessage()) { + if (!getInitMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAuthServerChallengeMessage()) { + if (!getAuthServerChallengeMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAuthClientResponseMessage()) { + if (!getAuthClientResponseMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAuthServerVerificationMessage()) { + if (!getAuthServerVerificationMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasInitAckMessage()) { + if (!getInitAckMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAvatarRequestMessage()) { + if (!getAvatarRequestMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAvatarHeaderMessage()) { + if (!getAvatarHeaderMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAvatarDataMessage()) { + if (!getAvatarDataMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAvatarEndMessage()) { + if (!getAvatarEndMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasUnknownAvatarMessage()) { + if (!getUnknownAvatarMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasPlayerListMessage()) { + if (!getPlayerListMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameListNewMessage()) { + if (!getGameListNewMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameListUpdateMessage()) { + if (!getGameListUpdateMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameListPlayerJoinedMessage()) { + if (!getGameListPlayerJoinedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameListPlayerLeftMessage()) { + if (!getGameListPlayerLeftMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameListAdminChangedMessage()) { + if (!getGameListAdminChangedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasPlayerInfoRequestMessage()) { + if (!getPlayerInfoRequestMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasPlayerInfoReplyMessage()) { + if (!getPlayerInfoReplyMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSubscriptionRequestMessage()) { + if (!getSubscriptionRequestMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasJoinExistingGameMessage()) { + if (!getJoinExistingGameMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasJoinNewGameMessage()) { + if (!getJoinNewGameMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasRejoinExistingGameMessage()) { + if (!getRejoinExistingGameMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasJoinGameAckMessage()) { + if (!getJoinGameAckMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasJoinGameFailedMessage()) { + if (!getJoinGameFailedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGamePlayerJoinedMessage()) { + if (!getGamePlayerJoinedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGamePlayerLeftMessage()) { + if (!getGamePlayerLeftMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameAdminChangedMessage()) { + if (!getGameAdminChangedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasRemovedFromGameMessage()) { + if (!getRemovedFromGameMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasKickPlayerRequestMessage()) { + if (!getKickPlayerRequestMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasLeaveGameRequestMessage()) { + if (!getLeaveGameRequestMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasInvitePlayerToGameMessage()) { + if (!getInvitePlayerToGameMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasInviteNotifyMessage()) { + if (!getInviteNotifyMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasRejectGameInvitationMessage()) { + if (!getRejectGameInvitationMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasRejectInvNotifyMessage()) { + if (!getRejectInvNotifyMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasStartEventMessage()) { + if (!getStartEventMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasStartEventAckMessage()) { + if (!getStartEventAckMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameStartInitialMessage()) { + if (!getGameStartInitialMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasGameStartRejoinMessage()) { + if (!getGameStartRejoinMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasHandStartMessage()) { + if (!getHandStartMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasPlayersTurnMessage()) { + if (!getPlayersTurnMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasMyActionRequestMessage()) { + if (!getMyActionRequestMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasYourActionRejectedMessage()) { + if (!getYourActionRejectedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasPlayersActionDoneMessage()) { + if (!getPlayersActionDoneMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasDealFlopCardsMessage()) { + if (!getDealFlopCardsMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasDealTurnCardMessage()) { + if (!getDealTurnCardMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasDealRiverCardMessage()) { + if (!getDealRiverCardMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAllInShowCardsMessage()) { + if (!getAllInShowCardsMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasEndOfHandShowCardsMessage()) { + if (!getEndOfHandShowCardsMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasEndOfHandHideCardsMessage()) { + if (!getEndOfHandHideCardsMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAfterHandShowCardsMessage()) { + if (!getAfterHandShowCardsMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasEndOfGameMessage()) { + if (!getEndOfGameMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasPlayerIdChangedMessage()) { + if (!getPlayerIdChangedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAskKickPlayerMessage()) { + if (!getAskKickPlayerMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasAskKickDeniedMessage()) { + if (!getAskKickDeniedMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasStartKickPetitionMessage()) { + if (!getStartKickPetitionMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasVoteKickRequestMessage()) { + if (!getVoteKickRequestMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasVoteKickReplyMessage()) { + if (!getVoteKickReplyMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasKickPetitionUpdateMessage()) { + if (!getKickPetitionUpdateMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasEndKickPetitionMessage()) { + if (!getEndKickPetitionMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasStatisticsMessage()) { + if (!getStatisticsMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasChatRequestMessage()) { + if (!getChatRequestMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasChatMessage()) { + if (!getChatMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasChatRejectMessage()) { + if (!getChatRejectMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasDialogMessage()) { + if (!getDialogMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasTimeoutWarningMessage()) { + if (!getTimeoutWarningMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasReportAvatarMessage()) { + if (!getReportAvatarMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasReportAvatarAckMessage()) { + if (!getReportAvatarAckMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasReportGameMessage()) { + if (!getReportGameMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasReportGameAckMessage()) { + if (!getReportGameAckMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasErrorMessage()) { + if (!getErrorMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, messageType_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, announceMessage_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, initMessage_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(4, authServerChallengeMessage_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(5, authClientResponseMessage_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeMessage(6, authServerVerificationMessage_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeMessage(7, initAckMessage_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeMessage(8, avatarRequestMessage_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeMessage(9, avatarHeaderMessage_); + } + if (((bitField0_ & 0x00000200) == 0x00000200)) { + output.writeMessage(10, avatarDataMessage_); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + output.writeMessage(11, avatarEndMessage_); + } + if (((bitField0_ & 0x00000800) == 0x00000800)) { + output.writeMessage(12, unknownAvatarMessage_); + } + if (((bitField0_ & 0x00001000) == 0x00001000)) { + output.writeMessage(13, playerListMessage_); + } + if (((bitField0_ & 0x00002000) == 0x00002000)) { + output.writeMessage(14, gameListNewMessage_); + } + if (((bitField0_ & 0x00004000) == 0x00004000)) { + output.writeMessage(15, gameListUpdateMessage_); + } + if (((bitField0_ & 0x00008000) == 0x00008000)) { + output.writeMessage(16, gameListPlayerJoinedMessage_); + } + if (((bitField0_ & 0x00010000) == 0x00010000)) { + output.writeMessage(17, gameListPlayerLeftMessage_); + } + if (((bitField0_ & 0x00020000) == 0x00020000)) { + output.writeMessage(18, gameListAdminChangedMessage_); + } + if (((bitField0_ & 0x00040000) == 0x00040000)) { + output.writeMessage(19, playerInfoRequestMessage_); + } + if (((bitField0_ & 0x00080000) == 0x00080000)) { + output.writeMessage(20, playerInfoReplyMessage_); + } + if (((bitField0_ & 0x00100000) == 0x00100000)) { + output.writeMessage(21, subscriptionRequestMessage_); + } + if (((bitField0_ & 0x00200000) == 0x00200000)) { + output.writeMessage(22, joinExistingGameMessage_); + } + if (((bitField0_ & 0x00400000) == 0x00400000)) { + output.writeMessage(23, joinNewGameMessage_); + } + if (((bitField0_ & 0x00800000) == 0x00800000)) { + output.writeMessage(24, rejoinExistingGameMessage_); + } + if (((bitField0_ & 0x01000000) == 0x01000000)) { + output.writeMessage(25, joinGameAckMessage_); + } + if (((bitField0_ & 0x02000000) == 0x02000000)) { + output.writeMessage(26, joinGameFailedMessage_); + } + if (((bitField0_ & 0x04000000) == 0x04000000)) { + output.writeMessage(27, gamePlayerJoinedMessage_); + } + if (((bitField0_ & 0x08000000) == 0x08000000)) { + output.writeMessage(28, gamePlayerLeftMessage_); + } + if (((bitField0_ & 0x10000000) == 0x10000000)) { + output.writeMessage(29, gameAdminChangedMessage_); + } + if (((bitField0_ & 0x20000000) == 0x20000000)) { + output.writeMessage(30, removedFromGameMessage_); + } + if (((bitField0_ & 0x40000000) == 0x40000000)) { + output.writeMessage(31, kickPlayerRequestMessage_); + } + if (((bitField0_ & 0x80000000) == 0x80000000)) { + output.writeMessage(32, leaveGameRequestMessage_); + } + if (((bitField1_ & 0x00000001) == 0x00000001)) { + output.writeMessage(33, invitePlayerToGameMessage_); + } + if (((bitField1_ & 0x00000002) == 0x00000002)) { + output.writeMessage(34, inviteNotifyMessage_); + } + if (((bitField1_ & 0x00000004) == 0x00000004)) { + output.writeMessage(35, rejectGameInvitationMessage_); + } + if (((bitField1_ & 0x00000008) == 0x00000008)) { + output.writeMessage(36, rejectInvNotifyMessage_); + } + if (((bitField1_ & 0x00000010) == 0x00000010)) { + output.writeMessage(37, startEventMessage_); + } + if (((bitField1_ & 0x00000020) == 0x00000020)) { + output.writeMessage(38, startEventAckMessage_); + } + if (((bitField1_ & 0x00000040) == 0x00000040)) { + output.writeMessage(39, gameStartInitialMessage_); + } + if (((bitField1_ & 0x00000080) == 0x00000080)) { + output.writeMessage(40, gameStartRejoinMessage_); + } + if (((bitField1_ & 0x00000100) == 0x00000100)) { + output.writeMessage(41, handStartMessage_); + } + if (((bitField1_ & 0x00000200) == 0x00000200)) { + output.writeMessage(42, playersTurnMessage_); + } + if (((bitField1_ & 0x00000400) == 0x00000400)) { + output.writeMessage(43, myActionRequestMessage_); + } + if (((bitField1_ & 0x00000800) == 0x00000800)) { + output.writeMessage(44, yourActionRejectedMessage_); + } + if (((bitField1_ & 0x00001000) == 0x00001000)) { + output.writeMessage(45, playersActionDoneMessage_); + } + if (((bitField1_ & 0x00002000) == 0x00002000)) { + output.writeMessage(46, dealFlopCardsMessage_); + } + if (((bitField1_ & 0x00004000) == 0x00004000)) { + output.writeMessage(47, dealTurnCardMessage_); + } + if (((bitField1_ & 0x00008000) == 0x00008000)) { + output.writeMessage(48, dealRiverCardMessage_); + } + if (((bitField1_ & 0x00010000) == 0x00010000)) { + output.writeMessage(49, allInShowCardsMessage_); + } + if (((bitField1_ & 0x00020000) == 0x00020000)) { + output.writeMessage(50, endOfHandShowCardsMessage_); + } + if (((bitField1_ & 0x00040000) == 0x00040000)) { + output.writeMessage(51, endOfHandHideCardsMessage_); + } + if (((bitField1_ & 0x00080000) == 0x00080000)) { + output.writeMessage(52, showMyCardsRequestMessage_); + } + if (((bitField1_ & 0x00100000) == 0x00100000)) { + output.writeMessage(53, afterHandShowCardsMessage_); + } + if (((bitField1_ & 0x00200000) == 0x00200000)) { + output.writeMessage(54, endOfGameMessage_); + } + if (((bitField1_ & 0x00400000) == 0x00400000)) { + output.writeMessage(55, playerIdChangedMessage_); + } + if (((bitField1_ & 0x00800000) == 0x00800000)) { + output.writeMessage(56, askKickPlayerMessage_); + } + if (((bitField1_ & 0x01000000) == 0x01000000)) { + output.writeMessage(57, askKickDeniedMessage_); + } + if (((bitField1_ & 0x02000000) == 0x02000000)) { + output.writeMessage(58, startKickPetitionMessage_); + } + if (((bitField1_ & 0x04000000) == 0x04000000)) { + output.writeMessage(59, voteKickRequestMessage_); + } + if (((bitField1_ & 0x08000000) == 0x08000000)) { + output.writeMessage(60, voteKickReplyMessage_); + } + if (((bitField1_ & 0x10000000) == 0x10000000)) { + output.writeMessage(61, kickPetitionUpdateMessage_); + } + if (((bitField1_ & 0x20000000) == 0x20000000)) { + output.writeMessage(62, endKickPetitionMessage_); + } + if (((bitField1_ & 0x40000000) == 0x40000000)) { + output.writeMessage(63, statisticsMessage_); + } + if (((bitField1_ & 0x80000000) == 0x80000000)) { + output.writeMessage(64, chatRequestMessage_); + } + if (((bitField2_ & 0x00000001) == 0x00000001)) { + output.writeMessage(65, chatMessage_); + } + if (((bitField2_ & 0x00000002) == 0x00000002)) { + output.writeMessage(66, chatRejectMessage_); + } + if (((bitField2_ & 0x00000004) == 0x00000004)) { + output.writeMessage(67, dialogMessage_); + } + if (((bitField2_ & 0x00000008) == 0x00000008)) { + output.writeMessage(68, timeoutWarningMessage_); + } + if (((bitField2_ & 0x00000010) == 0x00000010)) { + output.writeMessage(69, resetTimeoutMessage_); + } + if (((bitField2_ & 0x00000020) == 0x00000020)) { + output.writeMessage(70, reportAvatarMessage_); + } + if (((bitField2_ & 0x00000040) == 0x00000040)) { + output.writeMessage(71, reportAvatarAckMessage_); + } + if (((bitField2_ & 0x00000080) == 0x00000080)) { + output.writeMessage(72, reportGameMessage_); + } + if (((bitField2_ & 0x00000100) == 0x00000100)) { + output.writeMessage(73, reportGameAckMessage_); + } + if (((bitField2_ & 0x00000200) == 0x00000200)) { + output.writeMessage(74, errorMessage_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, messageType_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, announceMessage_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, initMessage_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, authServerChallengeMessage_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, authClientResponseMessage_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, authServerVerificationMessage_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, initAckMessage_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, avatarRequestMessage_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, avatarHeaderMessage_); + } + if (((bitField0_ & 0x00000200) == 0x00000200)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, avatarDataMessage_); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, avatarEndMessage_); + } + if (((bitField0_ & 0x00000800) == 0x00000800)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, unknownAvatarMessage_); + } + if (((bitField0_ & 0x00001000) == 0x00001000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, playerListMessage_); + } + if (((bitField0_ & 0x00002000) == 0x00002000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, gameListNewMessage_); + } + if (((bitField0_ & 0x00004000) == 0x00004000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, gameListUpdateMessage_); + } + if (((bitField0_ & 0x00008000) == 0x00008000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, gameListPlayerJoinedMessage_); + } + if (((bitField0_ & 0x00010000) == 0x00010000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, gameListPlayerLeftMessage_); + } + if (((bitField0_ & 0x00020000) == 0x00020000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, gameListAdminChangedMessage_); + } + if (((bitField0_ & 0x00040000) == 0x00040000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, playerInfoRequestMessage_); + } + if (((bitField0_ & 0x00080000) == 0x00080000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, playerInfoReplyMessage_); + } + if (((bitField0_ & 0x00100000) == 0x00100000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, subscriptionRequestMessage_); + } + if (((bitField0_ & 0x00200000) == 0x00200000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, joinExistingGameMessage_); + } + if (((bitField0_ & 0x00400000) == 0x00400000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, joinNewGameMessage_); + } + if (((bitField0_ & 0x00800000) == 0x00800000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, rejoinExistingGameMessage_); + } + if (((bitField0_ & 0x01000000) == 0x01000000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, joinGameAckMessage_); + } + if (((bitField0_ & 0x02000000) == 0x02000000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(26, joinGameFailedMessage_); + } + if (((bitField0_ & 0x04000000) == 0x04000000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(27, gamePlayerJoinedMessage_); + } + if (((bitField0_ & 0x08000000) == 0x08000000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(28, gamePlayerLeftMessage_); + } + if (((bitField0_ & 0x10000000) == 0x10000000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(29, gameAdminChangedMessage_); + } + if (((bitField0_ & 0x20000000) == 0x20000000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(30, removedFromGameMessage_); + } + if (((bitField0_ & 0x40000000) == 0x40000000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, kickPlayerRequestMessage_); + } + if (((bitField0_ & 0x80000000) == 0x80000000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(32, leaveGameRequestMessage_); + } + if (((bitField1_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(33, invitePlayerToGameMessage_); + } + if (((bitField1_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(34, inviteNotifyMessage_); + } + if (((bitField1_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(35, rejectGameInvitationMessage_); + } + if (((bitField1_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(36, rejectInvNotifyMessage_); + } + if (((bitField1_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(37, startEventMessage_); + } + if (((bitField1_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(38, startEventAckMessage_); + } + if (((bitField1_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(39, gameStartInitialMessage_); + } + if (((bitField1_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(40, gameStartRejoinMessage_); + } + if (((bitField1_ & 0x00000100) == 0x00000100)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(41, handStartMessage_); + } + if (((bitField1_ & 0x00000200) == 0x00000200)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(42, playersTurnMessage_); + } + if (((bitField1_ & 0x00000400) == 0x00000400)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(43, myActionRequestMessage_); + } + if (((bitField1_ & 0x00000800) == 0x00000800)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(44, yourActionRejectedMessage_); + } + if (((bitField1_ & 0x00001000) == 0x00001000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(45, playersActionDoneMessage_); + } + if (((bitField1_ & 0x00002000) == 0x00002000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(46, dealFlopCardsMessage_); + } + if (((bitField1_ & 0x00004000) == 0x00004000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(47, dealTurnCardMessage_); + } + if (((bitField1_ & 0x00008000) == 0x00008000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(48, dealRiverCardMessage_); + } + if (((bitField1_ & 0x00010000) == 0x00010000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(49, allInShowCardsMessage_); + } + if (((bitField1_ & 0x00020000) == 0x00020000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(50, endOfHandShowCardsMessage_); + } + if (((bitField1_ & 0x00040000) == 0x00040000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(51, endOfHandHideCardsMessage_); + } + if (((bitField1_ & 0x00080000) == 0x00080000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(52, showMyCardsRequestMessage_); + } + if (((bitField1_ & 0x00100000) == 0x00100000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(53, afterHandShowCardsMessage_); + } + if (((bitField1_ & 0x00200000) == 0x00200000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(54, endOfGameMessage_); + } + if (((bitField1_ & 0x00400000) == 0x00400000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(55, playerIdChangedMessage_); + } + if (((bitField1_ & 0x00800000) == 0x00800000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(56, askKickPlayerMessage_); + } + if (((bitField1_ & 0x01000000) == 0x01000000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(57, askKickDeniedMessage_); + } + if (((bitField1_ & 0x02000000) == 0x02000000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(58, startKickPetitionMessage_); + } + if (((bitField1_ & 0x04000000) == 0x04000000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(59, voteKickRequestMessage_); + } + if (((bitField1_ & 0x08000000) == 0x08000000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(60, voteKickReplyMessage_); + } + if (((bitField1_ & 0x10000000) == 0x10000000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(61, kickPetitionUpdateMessage_); + } + if (((bitField1_ & 0x20000000) == 0x20000000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(62, endKickPetitionMessage_); + } + if (((bitField1_ & 0x40000000) == 0x40000000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(63, statisticsMessage_); + } + if (((bitField1_ & 0x80000000) == 0x80000000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(64, chatRequestMessage_); + } + if (((bitField2_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(65, chatMessage_); + } + if (((bitField2_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(66, chatRejectMessage_); + } + if (((bitField2_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(67, dialogMessage_); + } + if (((bitField2_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(68, timeoutWarningMessage_); + } + if (((bitField2_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(69, resetTimeoutMessage_); + } + if (((bitField2_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(70, reportAvatarMessage_); + } + if (((bitField2_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(71, reportAvatarAckMessage_); + } + if (((bitField2_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(72, reportGameMessage_); + } + if (((bitField2_ & 0x00000100) == 0x00000100)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(73, reportGameAckMessage_); + } + if (((bitField2_ & 0x00000200) == 0x00000200)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(74, errorMessage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return newBuilder().mergeFrom(data, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Builder builder = newBuilder(); + if (builder.mergeDelimitedFrom(input, extensionRegistry)) { + return builder.buildParsed(); + } else { + return null; + } + } + public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return newBuilder().mergeFrom(input).buildParsed(); + } + public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return newBuilder().mergeFrom(input, extensionRegistry) + .buildParsed(); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PokerTHMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements de.pokerth.protocol.ProtoBuf.PokerTHMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return de.pokerth.protocol.ProtoBuf.internal_static_PokerTHMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return de.pokerth.protocol.ProtoBuf.internal_static_PokerTHMessage_fieldAccessorTable; + } + + // Construct using de.pokerth.protocol.ProtoBuf.PokerTHMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getAnnounceMessageFieldBuilder(); + getInitMessageFieldBuilder(); + getAuthServerChallengeMessageFieldBuilder(); + getAuthClientResponseMessageFieldBuilder(); + getAuthServerVerificationMessageFieldBuilder(); + getInitAckMessageFieldBuilder(); + getAvatarRequestMessageFieldBuilder(); + getAvatarHeaderMessageFieldBuilder(); + getAvatarDataMessageFieldBuilder(); + getAvatarEndMessageFieldBuilder(); + getUnknownAvatarMessageFieldBuilder(); + getPlayerListMessageFieldBuilder(); + getGameListNewMessageFieldBuilder(); + getGameListUpdateMessageFieldBuilder(); + getGameListPlayerJoinedMessageFieldBuilder(); + getGameListPlayerLeftMessageFieldBuilder(); + getGameListAdminChangedMessageFieldBuilder(); + getPlayerInfoRequestMessageFieldBuilder(); + getPlayerInfoReplyMessageFieldBuilder(); + getSubscriptionRequestMessageFieldBuilder(); + getJoinExistingGameMessageFieldBuilder(); + getJoinNewGameMessageFieldBuilder(); + getRejoinExistingGameMessageFieldBuilder(); + getJoinGameAckMessageFieldBuilder(); + getJoinGameFailedMessageFieldBuilder(); + getGamePlayerJoinedMessageFieldBuilder(); + getGamePlayerLeftMessageFieldBuilder(); + getGameAdminChangedMessageFieldBuilder(); + getRemovedFromGameMessageFieldBuilder(); + getKickPlayerRequestMessageFieldBuilder(); + getLeaveGameRequestMessageFieldBuilder(); + getInvitePlayerToGameMessageFieldBuilder(); + getInviteNotifyMessageFieldBuilder(); + getRejectGameInvitationMessageFieldBuilder(); + getRejectInvNotifyMessageFieldBuilder(); + getStartEventMessageFieldBuilder(); + getStartEventAckMessageFieldBuilder(); + getGameStartInitialMessageFieldBuilder(); + getGameStartRejoinMessageFieldBuilder(); + getHandStartMessageFieldBuilder(); + getPlayersTurnMessageFieldBuilder(); + getMyActionRequestMessageFieldBuilder(); + getYourActionRejectedMessageFieldBuilder(); + getPlayersActionDoneMessageFieldBuilder(); + getDealFlopCardsMessageFieldBuilder(); + getDealTurnCardMessageFieldBuilder(); + getDealRiverCardMessageFieldBuilder(); + getAllInShowCardsMessageFieldBuilder(); + getEndOfHandShowCardsMessageFieldBuilder(); + getEndOfHandHideCardsMessageFieldBuilder(); + getShowMyCardsRequestMessageFieldBuilder(); + getAfterHandShowCardsMessageFieldBuilder(); + getEndOfGameMessageFieldBuilder(); + getPlayerIdChangedMessageFieldBuilder(); + getAskKickPlayerMessageFieldBuilder(); + getAskKickDeniedMessageFieldBuilder(); + getStartKickPetitionMessageFieldBuilder(); + getVoteKickRequestMessageFieldBuilder(); + getVoteKickReplyMessageFieldBuilder(); + getKickPetitionUpdateMessageFieldBuilder(); + getEndKickPetitionMessageFieldBuilder(); + getStatisticsMessageFieldBuilder(); + getChatRequestMessageFieldBuilder(); + getChatMessageFieldBuilder(); + getChatRejectMessageFieldBuilder(); + getDialogMessageFieldBuilder(); + getTimeoutWarningMessageFieldBuilder(); + getResetTimeoutMessageFieldBuilder(); + getReportAvatarMessageFieldBuilder(); + getReportAvatarAckMessageFieldBuilder(); + getReportGameMessageFieldBuilder(); + getReportGameAckMessageFieldBuilder(); + getErrorMessageFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + messageType_ = de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType.Type_AnnounceMessage; + bitField0_ = (bitField0_ & ~0x00000001); + if (announceMessageBuilder_ == null) { + announceMessage_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance(); + } else { + announceMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (initMessageBuilder_ == null) { + initMessage_ = de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance(); + } else { + initMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (authServerChallengeMessageBuilder_ == null) { + authServerChallengeMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance(); + } else { + authServerChallengeMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (authClientResponseMessageBuilder_ == null) { + authClientResponseMessage_ = de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance(); + } else { + authClientResponseMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (authServerVerificationMessageBuilder_ == null) { + authServerVerificationMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance(); + } else { + authServerVerificationMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (initAckMessageBuilder_ == null) { + initAckMessage_ = de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance(); + } else { + initAckMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (avatarRequestMessageBuilder_ == null) { + avatarRequestMessage_ = de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance(); + } else { + avatarRequestMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + if (avatarHeaderMessageBuilder_ == null) { + avatarHeaderMessage_ = de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance(); + } else { + avatarHeaderMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + if (avatarDataMessageBuilder_ == null) { + avatarDataMessage_ = de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance(); + } else { + avatarDataMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + if (avatarEndMessageBuilder_ == null) { + avatarEndMessage_ = de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance(); + } else { + avatarEndMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + if (unknownAvatarMessageBuilder_ == null) { + unknownAvatarMessage_ = de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance(); + } else { + unknownAvatarMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + if (playerListMessageBuilder_ == null) { + playerListMessage_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance(); + } else { + playerListMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + if (gameListNewMessageBuilder_ == null) { + gameListNewMessage_ = de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance(); + } else { + gameListNewMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + if (gameListUpdateMessageBuilder_ == null) { + gameListUpdateMessage_ = de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance(); + } else { + gameListUpdateMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); + if (gameListPlayerJoinedMessageBuilder_ == null) { + gameListPlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance(); + } else { + gameListPlayerJoinedMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00008000); + if (gameListPlayerLeftMessageBuilder_ == null) { + gameListPlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance(); + } else { + gameListPlayerLeftMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00010000); + if (gameListAdminChangedMessageBuilder_ == null) { + gameListAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance(); + } else { + gameListAdminChangedMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00020000); + if (playerInfoRequestMessageBuilder_ == null) { + playerInfoRequestMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance(); + } else { + playerInfoRequestMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00040000); + if (playerInfoReplyMessageBuilder_ == null) { + playerInfoReplyMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance(); + } else { + playerInfoReplyMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00080000); + if (subscriptionRequestMessageBuilder_ == null) { + subscriptionRequestMessage_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance(); + } else { + subscriptionRequestMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00100000); + if (joinExistingGameMessageBuilder_ == null) { + joinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance(); + } else { + joinExistingGameMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00200000); + if (joinNewGameMessageBuilder_ == null) { + joinNewGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance(); + } else { + joinNewGameMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00400000); + if (rejoinExistingGameMessageBuilder_ == null) { + rejoinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance(); + } else { + rejoinExistingGameMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00800000); + if (joinGameAckMessageBuilder_ == null) { + joinGameAckMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance(); + } else { + joinGameAckMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x01000000); + if (joinGameFailedMessageBuilder_ == null) { + joinGameFailedMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance(); + } else { + joinGameFailedMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x02000000); + if (gamePlayerJoinedMessageBuilder_ == null) { + gamePlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance(); + } else { + gamePlayerJoinedMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x04000000); + if (gamePlayerLeftMessageBuilder_ == null) { + gamePlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance(); + } else { + gamePlayerLeftMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x08000000); + if (gameAdminChangedMessageBuilder_ == null) { + gameAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance(); + } else { + gameAdminChangedMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x10000000); + if (removedFromGameMessageBuilder_ == null) { + removedFromGameMessage_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance(); + } else { + removedFromGameMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x20000000); + if (kickPlayerRequestMessageBuilder_ == null) { + kickPlayerRequestMessage_ = de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance(); + } else { + kickPlayerRequestMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x40000000); + if (leaveGameRequestMessageBuilder_ == null) { + leaveGameRequestMessage_ = de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance(); + } else { + leaveGameRequestMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x80000000); + if (invitePlayerToGameMessageBuilder_ == null) { + invitePlayerToGameMessage_ = de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance(); + } else { + invitePlayerToGameMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000001); + if (inviteNotifyMessageBuilder_ == null) { + inviteNotifyMessage_ = de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance(); + } else { + inviteNotifyMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000002); + if (rejectGameInvitationMessageBuilder_ == null) { + rejectGameInvitationMessage_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance(); + } else { + rejectGameInvitationMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000004); + if (rejectInvNotifyMessageBuilder_ == null) { + rejectInvNotifyMessage_ = de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance(); + } else { + rejectInvNotifyMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000008); + if (startEventMessageBuilder_ == null) { + startEventMessage_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance(); + } else { + startEventMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000010); + if (startEventAckMessageBuilder_ == null) { + startEventAckMessage_ = de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance(); + } else { + startEventAckMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000020); + if (gameStartInitialMessageBuilder_ == null) { + gameStartInitialMessage_ = de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance(); + } else { + gameStartInitialMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000040); + if (gameStartRejoinMessageBuilder_ == null) { + gameStartRejoinMessage_ = de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance(); + } else { + gameStartRejoinMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000080); + if (handStartMessageBuilder_ == null) { + handStartMessage_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance(); + } else { + handStartMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000100); + if (playersTurnMessageBuilder_ == null) { + playersTurnMessage_ = de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance(); + } else { + playersTurnMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000200); + if (myActionRequestMessageBuilder_ == null) { + myActionRequestMessage_ = de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance(); + } else { + myActionRequestMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000400); + if (yourActionRejectedMessageBuilder_ == null) { + yourActionRejectedMessage_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance(); + } else { + yourActionRejectedMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000800); + if (playersActionDoneMessageBuilder_ == null) { + playersActionDoneMessage_ = de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance(); + } else { + playersActionDoneMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00001000); + if (dealFlopCardsMessageBuilder_ == null) { + dealFlopCardsMessage_ = de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance(); + } else { + dealFlopCardsMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00002000); + if (dealTurnCardMessageBuilder_ == null) { + dealTurnCardMessage_ = de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance(); + } else { + dealTurnCardMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00004000); + if (dealRiverCardMessageBuilder_ == null) { + dealRiverCardMessage_ = de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance(); + } else { + dealRiverCardMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00008000); + if (allInShowCardsMessageBuilder_ == null) { + allInShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance(); + } else { + allInShowCardsMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00010000); + if (endOfHandShowCardsMessageBuilder_ == null) { + endOfHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance(); + } else { + endOfHandShowCardsMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00020000); + if (endOfHandHideCardsMessageBuilder_ == null) { + endOfHandHideCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance(); + } else { + endOfHandHideCardsMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00040000); + if (showMyCardsRequestMessageBuilder_ == null) { + showMyCardsRequestMessage_ = de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance(); + } else { + showMyCardsRequestMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00080000); + if (afterHandShowCardsMessageBuilder_ == null) { + afterHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance(); + } else { + afterHandShowCardsMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00100000); + if (endOfGameMessageBuilder_ == null) { + endOfGameMessage_ = de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance(); + } else { + endOfGameMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00200000); + if (playerIdChangedMessageBuilder_ == null) { + playerIdChangedMessage_ = de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance(); + } else { + playerIdChangedMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00400000); + if (askKickPlayerMessageBuilder_ == null) { + askKickPlayerMessage_ = de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance(); + } else { + askKickPlayerMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00800000); + if (askKickDeniedMessageBuilder_ == null) { + askKickDeniedMessage_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance(); + } else { + askKickDeniedMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x01000000); + if (startKickPetitionMessageBuilder_ == null) { + startKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance(); + } else { + startKickPetitionMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x02000000); + if (voteKickRequestMessageBuilder_ == null) { + voteKickRequestMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance(); + } else { + voteKickRequestMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x04000000); + if (voteKickReplyMessageBuilder_ == null) { + voteKickReplyMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance(); + } else { + voteKickReplyMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x08000000); + if (kickPetitionUpdateMessageBuilder_ == null) { + kickPetitionUpdateMessage_ = de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance(); + } else { + kickPetitionUpdateMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x10000000); + if (endKickPetitionMessageBuilder_ == null) { + endKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance(); + } else { + endKickPetitionMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x20000000); + if (statisticsMessageBuilder_ == null) { + statisticsMessage_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance(); + } else { + statisticsMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x40000000); + if (chatRequestMessageBuilder_ == null) { + chatRequestMessage_ = de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance(); + } else { + chatRequestMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x80000000); + if (chatMessageBuilder_ == null) { + chatMessage_ = de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance(); + } else { + chatMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000001); + if (chatRejectMessageBuilder_ == null) { + chatRejectMessage_ = de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance(); + } else { + chatRejectMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000002); + if (dialogMessageBuilder_ == null) { + dialogMessage_ = de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance(); + } else { + dialogMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000004); + if (timeoutWarningMessageBuilder_ == null) { + timeoutWarningMessage_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance(); + } else { + timeoutWarningMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000008); + if (resetTimeoutMessageBuilder_ == null) { + resetTimeoutMessage_ = de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance(); + } else { + resetTimeoutMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000010); + if (reportAvatarMessageBuilder_ == null) { + reportAvatarMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance(); + } else { + reportAvatarMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000020); + if (reportAvatarAckMessageBuilder_ == null) { + reportAvatarAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance(); + } else { + reportAvatarAckMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000040); + if (reportGameMessageBuilder_ == null) { + reportGameMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance(); + } else { + reportGameMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000080); + if (reportGameAckMessageBuilder_ == null) { + reportGameAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance(); + } else { + reportGameAckMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000100); + if (errorMessageBuilder_ == null) { + errorMessage_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance(); + } else { + errorMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000200); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return de.pokerth.protocol.ProtoBuf.PokerTHMessage.getDescriptor(); + } + + public de.pokerth.protocol.ProtoBuf.PokerTHMessage getDefaultInstanceForType() { + return de.pokerth.protocol.ProtoBuf.PokerTHMessage.getDefaultInstance(); + } + + public de.pokerth.protocol.ProtoBuf.PokerTHMessage build() { + de.pokerth.protocol.ProtoBuf.PokerTHMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + private de.pokerth.protocol.ProtoBuf.PokerTHMessage buildParsed() + throws com.google.protobuf.InvalidProtocolBufferException { + de.pokerth.protocol.ProtoBuf.PokerTHMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException( + result).asInvalidProtocolBufferException(); + } + return result; + } + + public de.pokerth.protocol.ProtoBuf.PokerTHMessage buildPartial() { + de.pokerth.protocol.ProtoBuf.PokerTHMessage result = new de.pokerth.protocol.ProtoBuf.PokerTHMessage(this); + int from_bitField0_ = bitField0_; + int from_bitField1_ = bitField1_; + int from_bitField2_ = bitField2_; + int to_bitField0_ = 0; + int to_bitField1_ = 0; + int to_bitField2_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.messageType_ = messageType_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (announceMessageBuilder_ == null) { + result.announceMessage_ = announceMessage_; + } else { + result.announceMessage_ = announceMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (initMessageBuilder_ == null) { + result.initMessage_ = initMessage_; + } else { + result.initMessage_ = initMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + if (authServerChallengeMessageBuilder_ == null) { + result.authServerChallengeMessage_ = authServerChallengeMessage_; + } else { + result.authServerChallengeMessage_ = authServerChallengeMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + if (authClientResponseMessageBuilder_ == null) { + result.authClientResponseMessage_ = authClientResponseMessage_; + } else { + result.authClientResponseMessage_ = authClientResponseMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + if (authServerVerificationMessageBuilder_ == null) { + result.authServerVerificationMessage_ = authServerVerificationMessage_; + } else { + result.authServerVerificationMessage_ = authServerVerificationMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + if (initAckMessageBuilder_ == null) { + result.initAckMessage_ = initAckMessage_; + } else { + result.initAckMessage_ = initAckMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; + } + if (avatarRequestMessageBuilder_ == null) { + result.avatarRequestMessage_ = avatarRequestMessage_; + } else { + result.avatarRequestMessage_ = avatarRequestMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000100; + } + if (avatarHeaderMessageBuilder_ == null) { + result.avatarHeaderMessage_ = avatarHeaderMessage_; + } else { + result.avatarHeaderMessage_ = avatarHeaderMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + to_bitField0_ |= 0x00000200; + } + if (avatarDataMessageBuilder_ == null) { + result.avatarDataMessage_ = avatarDataMessage_; + } else { + result.avatarDataMessage_ = avatarDataMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000400; + } + if (avatarEndMessageBuilder_ == null) { + result.avatarEndMessage_ = avatarEndMessage_; + } else { + result.avatarEndMessage_ = avatarEndMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + to_bitField0_ |= 0x00000800; + } + if (unknownAvatarMessageBuilder_ == null) { + result.unknownAvatarMessage_ = unknownAvatarMessage_; + } else { + result.unknownAvatarMessage_ = unknownAvatarMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + to_bitField0_ |= 0x00001000; + } + if (playerListMessageBuilder_ == null) { + result.playerListMessage_ = playerListMessage_; + } else { + result.playerListMessage_ = playerListMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + to_bitField0_ |= 0x00002000; + } + if (gameListNewMessageBuilder_ == null) { + result.gameListNewMessage_ = gameListNewMessage_; + } else { + result.gameListNewMessage_ = gameListNewMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00004000) == 0x00004000)) { + to_bitField0_ |= 0x00004000; + } + if (gameListUpdateMessageBuilder_ == null) { + result.gameListUpdateMessage_ = gameListUpdateMessage_; + } else { + result.gameListUpdateMessage_ = gameListUpdateMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00008000) == 0x00008000)) { + to_bitField0_ |= 0x00008000; + } + if (gameListPlayerJoinedMessageBuilder_ == null) { + result.gameListPlayerJoinedMessage_ = gameListPlayerJoinedMessage_; + } else { + result.gameListPlayerJoinedMessage_ = gameListPlayerJoinedMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00010000) == 0x00010000)) { + to_bitField0_ |= 0x00010000; + } + if (gameListPlayerLeftMessageBuilder_ == null) { + result.gameListPlayerLeftMessage_ = gameListPlayerLeftMessage_; + } else { + result.gameListPlayerLeftMessage_ = gameListPlayerLeftMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00020000) == 0x00020000)) { + to_bitField0_ |= 0x00020000; + } + if (gameListAdminChangedMessageBuilder_ == null) { + result.gameListAdminChangedMessage_ = gameListAdminChangedMessage_; + } else { + result.gameListAdminChangedMessage_ = gameListAdminChangedMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00040000) == 0x00040000)) { + to_bitField0_ |= 0x00040000; + } + if (playerInfoRequestMessageBuilder_ == null) { + result.playerInfoRequestMessage_ = playerInfoRequestMessage_; + } else { + result.playerInfoRequestMessage_ = playerInfoRequestMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00080000) == 0x00080000)) { + to_bitField0_ |= 0x00080000; + } + if (playerInfoReplyMessageBuilder_ == null) { + result.playerInfoReplyMessage_ = playerInfoReplyMessage_; + } else { + result.playerInfoReplyMessage_ = playerInfoReplyMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00100000) == 0x00100000)) { + to_bitField0_ |= 0x00100000; + } + if (subscriptionRequestMessageBuilder_ == null) { + result.subscriptionRequestMessage_ = subscriptionRequestMessage_; + } else { + result.subscriptionRequestMessage_ = subscriptionRequestMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00200000) == 0x00200000)) { + to_bitField0_ |= 0x00200000; + } + if (joinExistingGameMessageBuilder_ == null) { + result.joinExistingGameMessage_ = joinExistingGameMessage_; + } else { + result.joinExistingGameMessage_ = joinExistingGameMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00400000) == 0x00400000)) { + to_bitField0_ |= 0x00400000; + } + if (joinNewGameMessageBuilder_ == null) { + result.joinNewGameMessage_ = joinNewGameMessage_; + } else { + result.joinNewGameMessage_ = joinNewGameMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x00800000) == 0x00800000)) { + to_bitField0_ |= 0x00800000; + } + if (rejoinExistingGameMessageBuilder_ == null) { + result.rejoinExistingGameMessage_ = rejoinExistingGameMessage_; + } else { + result.rejoinExistingGameMessage_ = rejoinExistingGameMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x01000000) == 0x01000000)) { + to_bitField0_ |= 0x01000000; + } + if (joinGameAckMessageBuilder_ == null) { + result.joinGameAckMessage_ = joinGameAckMessage_; + } else { + result.joinGameAckMessage_ = joinGameAckMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x02000000) == 0x02000000)) { + to_bitField0_ |= 0x02000000; + } + if (joinGameFailedMessageBuilder_ == null) { + result.joinGameFailedMessage_ = joinGameFailedMessage_; + } else { + result.joinGameFailedMessage_ = joinGameFailedMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x04000000) == 0x04000000)) { + to_bitField0_ |= 0x04000000; + } + if (gamePlayerJoinedMessageBuilder_ == null) { + result.gamePlayerJoinedMessage_ = gamePlayerJoinedMessage_; + } else { + result.gamePlayerJoinedMessage_ = gamePlayerJoinedMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x08000000) == 0x08000000)) { + to_bitField0_ |= 0x08000000; + } + if (gamePlayerLeftMessageBuilder_ == null) { + result.gamePlayerLeftMessage_ = gamePlayerLeftMessage_; + } else { + result.gamePlayerLeftMessage_ = gamePlayerLeftMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x10000000) == 0x10000000)) { + to_bitField0_ |= 0x10000000; + } + if (gameAdminChangedMessageBuilder_ == null) { + result.gameAdminChangedMessage_ = gameAdminChangedMessage_; + } else { + result.gameAdminChangedMessage_ = gameAdminChangedMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x20000000) == 0x20000000)) { + to_bitField0_ |= 0x20000000; + } + if (removedFromGameMessageBuilder_ == null) { + result.removedFromGameMessage_ = removedFromGameMessage_; + } else { + result.removedFromGameMessage_ = removedFromGameMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x40000000) == 0x40000000)) { + to_bitField0_ |= 0x40000000; + } + if (kickPlayerRequestMessageBuilder_ == null) { + result.kickPlayerRequestMessage_ = kickPlayerRequestMessage_; + } else { + result.kickPlayerRequestMessage_ = kickPlayerRequestMessageBuilder_.build(); + } + if (((from_bitField0_ & 0x80000000) == 0x80000000)) { + to_bitField0_ |= 0x80000000; + } + if (leaveGameRequestMessageBuilder_ == null) { + result.leaveGameRequestMessage_ = leaveGameRequestMessage_; + } else { + result.leaveGameRequestMessage_ = leaveGameRequestMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00000001) == 0x00000001)) { + to_bitField1_ |= 0x00000001; + } + if (invitePlayerToGameMessageBuilder_ == null) { + result.invitePlayerToGameMessage_ = invitePlayerToGameMessage_; + } else { + result.invitePlayerToGameMessage_ = invitePlayerToGameMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00000002) == 0x00000002)) { + to_bitField1_ |= 0x00000002; + } + if (inviteNotifyMessageBuilder_ == null) { + result.inviteNotifyMessage_ = inviteNotifyMessage_; + } else { + result.inviteNotifyMessage_ = inviteNotifyMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00000004) == 0x00000004)) { + to_bitField1_ |= 0x00000004; + } + if (rejectGameInvitationMessageBuilder_ == null) { + result.rejectGameInvitationMessage_ = rejectGameInvitationMessage_; + } else { + result.rejectGameInvitationMessage_ = rejectGameInvitationMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00000008) == 0x00000008)) { + to_bitField1_ |= 0x00000008; + } + if (rejectInvNotifyMessageBuilder_ == null) { + result.rejectInvNotifyMessage_ = rejectInvNotifyMessage_; + } else { + result.rejectInvNotifyMessage_ = rejectInvNotifyMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00000010) == 0x00000010)) { + to_bitField1_ |= 0x00000010; + } + if (startEventMessageBuilder_ == null) { + result.startEventMessage_ = startEventMessage_; + } else { + result.startEventMessage_ = startEventMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00000020) == 0x00000020)) { + to_bitField1_ |= 0x00000020; + } + if (startEventAckMessageBuilder_ == null) { + result.startEventAckMessage_ = startEventAckMessage_; + } else { + result.startEventAckMessage_ = startEventAckMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00000040) == 0x00000040)) { + to_bitField1_ |= 0x00000040; + } + if (gameStartInitialMessageBuilder_ == null) { + result.gameStartInitialMessage_ = gameStartInitialMessage_; + } else { + result.gameStartInitialMessage_ = gameStartInitialMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00000080) == 0x00000080)) { + to_bitField1_ |= 0x00000080; + } + if (gameStartRejoinMessageBuilder_ == null) { + result.gameStartRejoinMessage_ = gameStartRejoinMessage_; + } else { + result.gameStartRejoinMessage_ = gameStartRejoinMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00000100) == 0x00000100)) { + to_bitField1_ |= 0x00000100; + } + if (handStartMessageBuilder_ == null) { + result.handStartMessage_ = handStartMessage_; + } else { + result.handStartMessage_ = handStartMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00000200) == 0x00000200)) { + to_bitField1_ |= 0x00000200; + } + if (playersTurnMessageBuilder_ == null) { + result.playersTurnMessage_ = playersTurnMessage_; + } else { + result.playersTurnMessage_ = playersTurnMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00000400) == 0x00000400)) { + to_bitField1_ |= 0x00000400; + } + if (myActionRequestMessageBuilder_ == null) { + result.myActionRequestMessage_ = myActionRequestMessage_; + } else { + result.myActionRequestMessage_ = myActionRequestMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00000800) == 0x00000800)) { + to_bitField1_ |= 0x00000800; + } + if (yourActionRejectedMessageBuilder_ == null) { + result.yourActionRejectedMessage_ = yourActionRejectedMessage_; + } else { + result.yourActionRejectedMessage_ = yourActionRejectedMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00001000) == 0x00001000)) { + to_bitField1_ |= 0x00001000; + } + if (playersActionDoneMessageBuilder_ == null) { + result.playersActionDoneMessage_ = playersActionDoneMessage_; + } else { + result.playersActionDoneMessage_ = playersActionDoneMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00002000) == 0x00002000)) { + to_bitField1_ |= 0x00002000; + } + if (dealFlopCardsMessageBuilder_ == null) { + result.dealFlopCardsMessage_ = dealFlopCardsMessage_; + } else { + result.dealFlopCardsMessage_ = dealFlopCardsMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00004000) == 0x00004000)) { + to_bitField1_ |= 0x00004000; + } + if (dealTurnCardMessageBuilder_ == null) { + result.dealTurnCardMessage_ = dealTurnCardMessage_; + } else { + result.dealTurnCardMessage_ = dealTurnCardMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00008000) == 0x00008000)) { + to_bitField1_ |= 0x00008000; + } + if (dealRiverCardMessageBuilder_ == null) { + result.dealRiverCardMessage_ = dealRiverCardMessage_; + } else { + result.dealRiverCardMessage_ = dealRiverCardMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00010000) == 0x00010000)) { + to_bitField1_ |= 0x00010000; + } + if (allInShowCardsMessageBuilder_ == null) { + result.allInShowCardsMessage_ = allInShowCardsMessage_; + } else { + result.allInShowCardsMessage_ = allInShowCardsMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00020000) == 0x00020000)) { + to_bitField1_ |= 0x00020000; + } + if (endOfHandShowCardsMessageBuilder_ == null) { + result.endOfHandShowCardsMessage_ = endOfHandShowCardsMessage_; + } else { + result.endOfHandShowCardsMessage_ = endOfHandShowCardsMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00040000) == 0x00040000)) { + to_bitField1_ |= 0x00040000; + } + if (endOfHandHideCardsMessageBuilder_ == null) { + result.endOfHandHideCardsMessage_ = endOfHandHideCardsMessage_; + } else { + result.endOfHandHideCardsMessage_ = endOfHandHideCardsMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00080000) == 0x00080000)) { + to_bitField1_ |= 0x00080000; + } + if (showMyCardsRequestMessageBuilder_ == null) { + result.showMyCardsRequestMessage_ = showMyCardsRequestMessage_; + } else { + result.showMyCardsRequestMessage_ = showMyCardsRequestMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00100000) == 0x00100000)) { + to_bitField1_ |= 0x00100000; + } + if (afterHandShowCardsMessageBuilder_ == null) { + result.afterHandShowCardsMessage_ = afterHandShowCardsMessage_; + } else { + result.afterHandShowCardsMessage_ = afterHandShowCardsMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00200000) == 0x00200000)) { + to_bitField1_ |= 0x00200000; + } + if (endOfGameMessageBuilder_ == null) { + result.endOfGameMessage_ = endOfGameMessage_; + } else { + result.endOfGameMessage_ = endOfGameMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00400000) == 0x00400000)) { + to_bitField1_ |= 0x00400000; + } + if (playerIdChangedMessageBuilder_ == null) { + result.playerIdChangedMessage_ = playerIdChangedMessage_; + } else { + result.playerIdChangedMessage_ = playerIdChangedMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x00800000) == 0x00800000)) { + to_bitField1_ |= 0x00800000; + } + if (askKickPlayerMessageBuilder_ == null) { + result.askKickPlayerMessage_ = askKickPlayerMessage_; + } else { + result.askKickPlayerMessage_ = askKickPlayerMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x01000000) == 0x01000000)) { + to_bitField1_ |= 0x01000000; + } + if (askKickDeniedMessageBuilder_ == null) { + result.askKickDeniedMessage_ = askKickDeniedMessage_; + } else { + result.askKickDeniedMessage_ = askKickDeniedMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x02000000) == 0x02000000)) { + to_bitField1_ |= 0x02000000; + } + if (startKickPetitionMessageBuilder_ == null) { + result.startKickPetitionMessage_ = startKickPetitionMessage_; + } else { + result.startKickPetitionMessage_ = startKickPetitionMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x04000000) == 0x04000000)) { + to_bitField1_ |= 0x04000000; + } + if (voteKickRequestMessageBuilder_ == null) { + result.voteKickRequestMessage_ = voteKickRequestMessage_; + } else { + result.voteKickRequestMessage_ = voteKickRequestMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x08000000) == 0x08000000)) { + to_bitField1_ |= 0x08000000; + } + if (voteKickReplyMessageBuilder_ == null) { + result.voteKickReplyMessage_ = voteKickReplyMessage_; + } else { + result.voteKickReplyMessage_ = voteKickReplyMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x10000000) == 0x10000000)) { + to_bitField1_ |= 0x10000000; + } + if (kickPetitionUpdateMessageBuilder_ == null) { + result.kickPetitionUpdateMessage_ = kickPetitionUpdateMessage_; + } else { + result.kickPetitionUpdateMessage_ = kickPetitionUpdateMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x20000000) == 0x20000000)) { + to_bitField1_ |= 0x20000000; + } + if (endKickPetitionMessageBuilder_ == null) { + result.endKickPetitionMessage_ = endKickPetitionMessage_; + } else { + result.endKickPetitionMessage_ = endKickPetitionMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x40000000) == 0x40000000)) { + to_bitField1_ |= 0x40000000; + } + if (statisticsMessageBuilder_ == null) { + result.statisticsMessage_ = statisticsMessage_; + } else { + result.statisticsMessage_ = statisticsMessageBuilder_.build(); + } + if (((from_bitField1_ & 0x80000000) == 0x80000000)) { + to_bitField1_ |= 0x80000000; + } + if (chatRequestMessageBuilder_ == null) { + result.chatRequestMessage_ = chatRequestMessage_; + } else { + result.chatRequestMessage_ = chatRequestMessageBuilder_.build(); + } + if (((from_bitField2_ & 0x00000001) == 0x00000001)) { + to_bitField2_ |= 0x00000001; + } + if (chatMessageBuilder_ == null) { + result.chatMessage_ = chatMessage_; + } else { + result.chatMessage_ = chatMessageBuilder_.build(); + } + if (((from_bitField2_ & 0x00000002) == 0x00000002)) { + to_bitField2_ |= 0x00000002; + } + if (chatRejectMessageBuilder_ == null) { + result.chatRejectMessage_ = chatRejectMessage_; + } else { + result.chatRejectMessage_ = chatRejectMessageBuilder_.build(); + } + if (((from_bitField2_ & 0x00000004) == 0x00000004)) { + to_bitField2_ |= 0x00000004; + } + if (dialogMessageBuilder_ == null) { + result.dialogMessage_ = dialogMessage_; + } else { + result.dialogMessage_ = dialogMessageBuilder_.build(); + } + if (((from_bitField2_ & 0x00000008) == 0x00000008)) { + to_bitField2_ |= 0x00000008; + } + if (timeoutWarningMessageBuilder_ == null) { + result.timeoutWarningMessage_ = timeoutWarningMessage_; + } else { + result.timeoutWarningMessage_ = timeoutWarningMessageBuilder_.build(); + } + if (((from_bitField2_ & 0x00000010) == 0x00000010)) { + to_bitField2_ |= 0x00000010; + } + if (resetTimeoutMessageBuilder_ == null) { + result.resetTimeoutMessage_ = resetTimeoutMessage_; + } else { + result.resetTimeoutMessage_ = resetTimeoutMessageBuilder_.build(); + } + if (((from_bitField2_ & 0x00000020) == 0x00000020)) { + to_bitField2_ |= 0x00000020; + } + if (reportAvatarMessageBuilder_ == null) { + result.reportAvatarMessage_ = reportAvatarMessage_; + } else { + result.reportAvatarMessage_ = reportAvatarMessageBuilder_.build(); + } + if (((from_bitField2_ & 0x00000040) == 0x00000040)) { + to_bitField2_ |= 0x00000040; + } + if (reportAvatarAckMessageBuilder_ == null) { + result.reportAvatarAckMessage_ = reportAvatarAckMessage_; + } else { + result.reportAvatarAckMessage_ = reportAvatarAckMessageBuilder_.build(); + } + if (((from_bitField2_ & 0x00000080) == 0x00000080)) { + to_bitField2_ |= 0x00000080; + } + if (reportGameMessageBuilder_ == null) { + result.reportGameMessage_ = reportGameMessage_; + } else { + result.reportGameMessage_ = reportGameMessageBuilder_.build(); + } + if (((from_bitField2_ & 0x00000100) == 0x00000100)) { + to_bitField2_ |= 0x00000100; + } + if (reportGameAckMessageBuilder_ == null) { + result.reportGameAckMessage_ = reportGameAckMessage_; + } else { + result.reportGameAckMessage_ = reportGameAckMessageBuilder_.build(); + } + if (((from_bitField2_ & 0x00000200) == 0x00000200)) { + to_bitField2_ |= 0x00000200; + } + if (errorMessageBuilder_ == null) { + result.errorMessage_ = errorMessage_; + } else { + result.errorMessage_ = errorMessageBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + result.bitField1_ = to_bitField1_; + result.bitField2_ = to_bitField2_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof de.pokerth.protocol.ProtoBuf.PokerTHMessage) { + return mergeFrom((de.pokerth.protocol.ProtoBuf.PokerTHMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(de.pokerth.protocol.ProtoBuf.PokerTHMessage other) { + if (other == de.pokerth.protocol.ProtoBuf.PokerTHMessage.getDefaultInstance()) return this; + if (other.hasMessageType()) { + setMessageType(other.getMessageType()); + } + if (other.hasAnnounceMessage()) { + mergeAnnounceMessage(other.getAnnounceMessage()); + } + if (other.hasInitMessage()) { + mergeInitMessage(other.getInitMessage()); + } + if (other.hasAuthServerChallengeMessage()) { + mergeAuthServerChallengeMessage(other.getAuthServerChallengeMessage()); + } + if (other.hasAuthClientResponseMessage()) { + mergeAuthClientResponseMessage(other.getAuthClientResponseMessage()); + } + if (other.hasAuthServerVerificationMessage()) { + mergeAuthServerVerificationMessage(other.getAuthServerVerificationMessage()); + } + if (other.hasInitAckMessage()) { + mergeInitAckMessage(other.getInitAckMessage()); + } + if (other.hasAvatarRequestMessage()) { + mergeAvatarRequestMessage(other.getAvatarRequestMessage()); + } + if (other.hasAvatarHeaderMessage()) { + mergeAvatarHeaderMessage(other.getAvatarHeaderMessage()); + } + if (other.hasAvatarDataMessage()) { + mergeAvatarDataMessage(other.getAvatarDataMessage()); + } + if (other.hasAvatarEndMessage()) { + mergeAvatarEndMessage(other.getAvatarEndMessage()); + } + if (other.hasUnknownAvatarMessage()) { + mergeUnknownAvatarMessage(other.getUnknownAvatarMessage()); + } + if (other.hasPlayerListMessage()) { + mergePlayerListMessage(other.getPlayerListMessage()); + } + if (other.hasGameListNewMessage()) { + mergeGameListNewMessage(other.getGameListNewMessage()); + } + if (other.hasGameListUpdateMessage()) { + mergeGameListUpdateMessage(other.getGameListUpdateMessage()); + } + if (other.hasGameListPlayerJoinedMessage()) { + mergeGameListPlayerJoinedMessage(other.getGameListPlayerJoinedMessage()); + } + if (other.hasGameListPlayerLeftMessage()) { + mergeGameListPlayerLeftMessage(other.getGameListPlayerLeftMessage()); + } + if (other.hasGameListAdminChangedMessage()) { + mergeGameListAdminChangedMessage(other.getGameListAdminChangedMessage()); + } + if (other.hasPlayerInfoRequestMessage()) { + mergePlayerInfoRequestMessage(other.getPlayerInfoRequestMessage()); + } + if (other.hasPlayerInfoReplyMessage()) { + mergePlayerInfoReplyMessage(other.getPlayerInfoReplyMessage()); + } + if (other.hasSubscriptionRequestMessage()) { + mergeSubscriptionRequestMessage(other.getSubscriptionRequestMessage()); + } + if (other.hasJoinExistingGameMessage()) { + mergeJoinExistingGameMessage(other.getJoinExistingGameMessage()); + } + if (other.hasJoinNewGameMessage()) { + mergeJoinNewGameMessage(other.getJoinNewGameMessage()); + } + if (other.hasRejoinExistingGameMessage()) { + mergeRejoinExistingGameMessage(other.getRejoinExistingGameMessage()); + } + if (other.hasJoinGameAckMessage()) { + mergeJoinGameAckMessage(other.getJoinGameAckMessage()); + } + if (other.hasJoinGameFailedMessage()) { + mergeJoinGameFailedMessage(other.getJoinGameFailedMessage()); + } + if (other.hasGamePlayerJoinedMessage()) { + mergeGamePlayerJoinedMessage(other.getGamePlayerJoinedMessage()); + } + if (other.hasGamePlayerLeftMessage()) { + mergeGamePlayerLeftMessage(other.getGamePlayerLeftMessage()); + } + if (other.hasGameAdminChangedMessage()) { + mergeGameAdminChangedMessage(other.getGameAdminChangedMessage()); + } + if (other.hasRemovedFromGameMessage()) { + mergeRemovedFromGameMessage(other.getRemovedFromGameMessage()); + } + if (other.hasKickPlayerRequestMessage()) { + mergeKickPlayerRequestMessage(other.getKickPlayerRequestMessage()); + } + if (other.hasLeaveGameRequestMessage()) { + mergeLeaveGameRequestMessage(other.getLeaveGameRequestMessage()); + } + if (other.hasInvitePlayerToGameMessage()) { + mergeInvitePlayerToGameMessage(other.getInvitePlayerToGameMessage()); + } + if (other.hasInviteNotifyMessage()) { + mergeInviteNotifyMessage(other.getInviteNotifyMessage()); + } + if (other.hasRejectGameInvitationMessage()) { + mergeRejectGameInvitationMessage(other.getRejectGameInvitationMessage()); + } + if (other.hasRejectInvNotifyMessage()) { + mergeRejectInvNotifyMessage(other.getRejectInvNotifyMessage()); + } + if (other.hasStartEventMessage()) { + mergeStartEventMessage(other.getStartEventMessage()); + } + if (other.hasStartEventAckMessage()) { + mergeStartEventAckMessage(other.getStartEventAckMessage()); + } + if (other.hasGameStartInitialMessage()) { + mergeGameStartInitialMessage(other.getGameStartInitialMessage()); + } + if (other.hasGameStartRejoinMessage()) { + mergeGameStartRejoinMessage(other.getGameStartRejoinMessage()); + } + if (other.hasHandStartMessage()) { + mergeHandStartMessage(other.getHandStartMessage()); + } + if (other.hasPlayersTurnMessage()) { + mergePlayersTurnMessage(other.getPlayersTurnMessage()); + } + if (other.hasMyActionRequestMessage()) { + mergeMyActionRequestMessage(other.getMyActionRequestMessage()); + } + if (other.hasYourActionRejectedMessage()) { + mergeYourActionRejectedMessage(other.getYourActionRejectedMessage()); + } + if (other.hasPlayersActionDoneMessage()) { + mergePlayersActionDoneMessage(other.getPlayersActionDoneMessage()); + } + if (other.hasDealFlopCardsMessage()) { + mergeDealFlopCardsMessage(other.getDealFlopCardsMessage()); + } + if (other.hasDealTurnCardMessage()) { + mergeDealTurnCardMessage(other.getDealTurnCardMessage()); + } + if (other.hasDealRiverCardMessage()) { + mergeDealRiverCardMessage(other.getDealRiverCardMessage()); + } + if (other.hasAllInShowCardsMessage()) { + mergeAllInShowCardsMessage(other.getAllInShowCardsMessage()); + } + if (other.hasEndOfHandShowCardsMessage()) { + mergeEndOfHandShowCardsMessage(other.getEndOfHandShowCardsMessage()); + } + if (other.hasEndOfHandHideCardsMessage()) { + mergeEndOfHandHideCardsMessage(other.getEndOfHandHideCardsMessage()); + } + if (other.hasShowMyCardsRequestMessage()) { + mergeShowMyCardsRequestMessage(other.getShowMyCardsRequestMessage()); + } + if (other.hasAfterHandShowCardsMessage()) { + mergeAfterHandShowCardsMessage(other.getAfterHandShowCardsMessage()); + } + if (other.hasEndOfGameMessage()) { + mergeEndOfGameMessage(other.getEndOfGameMessage()); + } + if (other.hasPlayerIdChangedMessage()) { + mergePlayerIdChangedMessage(other.getPlayerIdChangedMessage()); + } + if (other.hasAskKickPlayerMessage()) { + mergeAskKickPlayerMessage(other.getAskKickPlayerMessage()); + } + if (other.hasAskKickDeniedMessage()) { + mergeAskKickDeniedMessage(other.getAskKickDeniedMessage()); + } + if (other.hasStartKickPetitionMessage()) { + mergeStartKickPetitionMessage(other.getStartKickPetitionMessage()); + } + if (other.hasVoteKickRequestMessage()) { + mergeVoteKickRequestMessage(other.getVoteKickRequestMessage()); + } + if (other.hasVoteKickReplyMessage()) { + mergeVoteKickReplyMessage(other.getVoteKickReplyMessage()); + } + if (other.hasKickPetitionUpdateMessage()) { + mergeKickPetitionUpdateMessage(other.getKickPetitionUpdateMessage()); + } + if (other.hasEndKickPetitionMessage()) { + mergeEndKickPetitionMessage(other.getEndKickPetitionMessage()); + } + if (other.hasStatisticsMessage()) { + mergeStatisticsMessage(other.getStatisticsMessage()); + } + if (other.hasChatRequestMessage()) { + mergeChatRequestMessage(other.getChatRequestMessage()); + } + if (other.hasChatMessage()) { + mergeChatMessage(other.getChatMessage()); + } + if (other.hasChatRejectMessage()) { + mergeChatRejectMessage(other.getChatRejectMessage()); + } + if (other.hasDialogMessage()) { + mergeDialogMessage(other.getDialogMessage()); + } + if (other.hasTimeoutWarningMessage()) { + mergeTimeoutWarningMessage(other.getTimeoutWarningMessage()); + } + if (other.hasResetTimeoutMessage()) { + mergeResetTimeoutMessage(other.getResetTimeoutMessage()); + } + if (other.hasReportAvatarMessage()) { + mergeReportAvatarMessage(other.getReportAvatarMessage()); + } + if (other.hasReportAvatarAckMessage()) { + mergeReportAvatarAckMessage(other.getReportAvatarAckMessage()); + } + if (other.hasReportGameMessage()) { + mergeReportGameMessage(other.getReportGameMessage()); + } + if (other.hasReportGameAckMessage()) { + mergeReportGameAckMessage(other.getReportGameAckMessage()); + } + if (other.hasErrorMessage()) { + mergeErrorMessage(other.getErrorMessage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasMessageType()) { + + return false; + } + if (hasAnnounceMessage()) { + if (!getAnnounceMessage().isInitialized()) { + + return false; + } + } + if (hasInitMessage()) { + if (!getInitMessage().isInitialized()) { + + return false; + } + } + if (hasAuthServerChallengeMessage()) { + if (!getAuthServerChallengeMessage().isInitialized()) { + + return false; + } + } + if (hasAuthClientResponseMessage()) { + if (!getAuthClientResponseMessage().isInitialized()) { + + return false; + } + } + if (hasAuthServerVerificationMessage()) { + if (!getAuthServerVerificationMessage().isInitialized()) { + + return false; + } + } + if (hasInitAckMessage()) { + if (!getInitAckMessage().isInitialized()) { + + return false; + } + } + if (hasAvatarRequestMessage()) { + if (!getAvatarRequestMessage().isInitialized()) { + + return false; + } + } + if (hasAvatarHeaderMessage()) { + if (!getAvatarHeaderMessage().isInitialized()) { + + return false; + } + } + if (hasAvatarDataMessage()) { + if (!getAvatarDataMessage().isInitialized()) { + + return false; + } + } + if (hasAvatarEndMessage()) { + if (!getAvatarEndMessage().isInitialized()) { + + return false; + } + } + if (hasUnknownAvatarMessage()) { + if (!getUnknownAvatarMessage().isInitialized()) { + + return false; + } + } + if (hasPlayerListMessage()) { + if (!getPlayerListMessage().isInitialized()) { + + return false; + } + } + if (hasGameListNewMessage()) { + if (!getGameListNewMessage().isInitialized()) { + + return false; + } + } + if (hasGameListUpdateMessage()) { + if (!getGameListUpdateMessage().isInitialized()) { + + return false; + } + } + if (hasGameListPlayerJoinedMessage()) { + if (!getGameListPlayerJoinedMessage().isInitialized()) { + + return false; + } + } + if (hasGameListPlayerLeftMessage()) { + if (!getGameListPlayerLeftMessage().isInitialized()) { + + return false; + } + } + if (hasGameListAdminChangedMessage()) { + if (!getGameListAdminChangedMessage().isInitialized()) { + + return false; + } + } + if (hasPlayerInfoRequestMessage()) { + if (!getPlayerInfoRequestMessage().isInitialized()) { + + return false; + } + } + if (hasPlayerInfoReplyMessage()) { + if (!getPlayerInfoReplyMessage().isInitialized()) { + + return false; + } + } + if (hasSubscriptionRequestMessage()) { + if (!getSubscriptionRequestMessage().isInitialized()) { + + return false; + } + } + if (hasJoinExistingGameMessage()) { + if (!getJoinExistingGameMessage().isInitialized()) { + + return false; + } + } + if (hasJoinNewGameMessage()) { + if (!getJoinNewGameMessage().isInitialized()) { + + return false; + } + } + if (hasRejoinExistingGameMessage()) { + if (!getRejoinExistingGameMessage().isInitialized()) { + + return false; + } + } + if (hasJoinGameAckMessage()) { + if (!getJoinGameAckMessage().isInitialized()) { + + return false; + } + } + if (hasJoinGameFailedMessage()) { + if (!getJoinGameFailedMessage().isInitialized()) { + + return false; + } + } + if (hasGamePlayerJoinedMessage()) { + if (!getGamePlayerJoinedMessage().isInitialized()) { + + return false; + } + } + if (hasGamePlayerLeftMessage()) { + if (!getGamePlayerLeftMessage().isInitialized()) { + + return false; + } + } + if (hasGameAdminChangedMessage()) { + if (!getGameAdminChangedMessage().isInitialized()) { + + return false; + } + } + if (hasRemovedFromGameMessage()) { + if (!getRemovedFromGameMessage().isInitialized()) { + + return false; + } + } + if (hasKickPlayerRequestMessage()) { + if (!getKickPlayerRequestMessage().isInitialized()) { + + return false; + } + } + if (hasLeaveGameRequestMessage()) { + if (!getLeaveGameRequestMessage().isInitialized()) { + + return false; + } + } + if (hasInvitePlayerToGameMessage()) { + if (!getInvitePlayerToGameMessage().isInitialized()) { + + return false; + } + } + if (hasInviteNotifyMessage()) { + if (!getInviteNotifyMessage().isInitialized()) { + + return false; + } + } + if (hasRejectGameInvitationMessage()) { + if (!getRejectGameInvitationMessage().isInitialized()) { + + return false; + } + } + if (hasRejectInvNotifyMessage()) { + if (!getRejectInvNotifyMessage().isInitialized()) { + + return false; + } + } + if (hasStartEventMessage()) { + if (!getStartEventMessage().isInitialized()) { + + return false; + } + } + if (hasStartEventAckMessage()) { + if (!getStartEventAckMessage().isInitialized()) { + + return false; + } + } + if (hasGameStartInitialMessage()) { + if (!getGameStartInitialMessage().isInitialized()) { + + return false; + } + } + if (hasGameStartRejoinMessage()) { + if (!getGameStartRejoinMessage().isInitialized()) { + + return false; + } + } + if (hasHandStartMessage()) { + if (!getHandStartMessage().isInitialized()) { + + return false; + } + } + if (hasPlayersTurnMessage()) { + if (!getPlayersTurnMessage().isInitialized()) { + + return false; + } + } + if (hasMyActionRequestMessage()) { + if (!getMyActionRequestMessage().isInitialized()) { + + return false; + } + } + if (hasYourActionRejectedMessage()) { + if (!getYourActionRejectedMessage().isInitialized()) { + + return false; + } + } + if (hasPlayersActionDoneMessage()) { + if (!getPlayersActionDoneMessage().isInitialized()) { + + return false; + } + } + if (hasDealFlopCardsMessage()) { + if (!getDealFlopCardsMessage().isInitialized()) { + + return false; + } + } + if (hasDealTurnCardMessage()) { + if (!getDealTurnCardMessage().isInitialized()) { + + return false; + } + } + if (hasDealRiverCardMessage()) { + if (!getDealRiverCardMessage().isInitialized()) { + + return false; + } + } + if (hasAllInShowCardsMessage()) { + if (!getAllInShowCardsMessage().isInitialized()) { + + return false; + } + } + if (hasEndOfHandShowCardsMessage()) { + if (!getEndOfHandShowCardsMessage().isInitialized()) { + + return false; + } + } + if (hasEndOfHandHideCardsMessage()) { + if (!getEndOfHandHideCardsMessage().isInitialized()) { + + return false; + } + } + if (hasAfterHandShowCardsMessage()) { + if (!getAfterHandShowCardsMessage().isInitialized()) { + + return false; + } + } + if (hasEndOfGameMessage()) { + if (!getEndOfGameMessage().isInitialized()) { + + return false; + } + } + if (hasPlayerIdChangedMessage()) { + if (!getPlayerIdChangedMessage().isInitialized()) { + + return false; + } + } + if (hasAskKickPlayerMessage()) { + if (!getAskKickPlayerMessage().isInitialized()) { + + return false; + } + } + if (hasAskKickDeniedMessage()) { + if (!getAskKickDeniedMessage().isInitialized()) { + + return false; + } + } + if (hasStartKickPetitionMessage()) { + if (!getStartKickPetitionMessage().isInitialized()) { + + return false; + } + } + if (hasVoteKickRequestMessage()) { + if (!getVoteKickRequestMessage().isInitialized()) { + + return false; + } + } + if (hasVoteKickReplyMessage()) { + if (!getVoteKickReplyMessage().isInitialized()) { + + return false; + } + } + if (hasKickPetitionUpdateMessage()) { + if (!getKickPetitionUpdateMessage().isInitialized()) { + + return false; + } + } + if (hasEndKickPetitionMessage()) { + if (!getEndKickPetitionMessage().isInitialized()) { + + return false; + } + } + if (hasStatisticsMessage()) { + if (!getStatisticsMessage().isInitialized()) { + + return false; + } + } + if (hasChatRequestMessage()) { + if (!getChatRequestMessage().isInitialized()) { + + return false; + } + } + if (hasChatMessage()) { + if (!getChatMessage().isInitialized()) { + + return false; + } + } + if (hasChatRejectMessage()) { + if (!getChatRejectMessage().isInitialized()) { + + return false; + } + } + if (hasDialogMessage()) { + if (!getDialogMessage().isInitialized()) { + + return false; + } + } + if (hasTimeoutWarningMessage()) { + if (!getTimeoutWarningMessage().isInitialized()) { + + return false; + } + } + if (hasReportAvatarMessage()) { + if (!getReportAvatarMessage().isInitialized()) { + + return false; + } + } + if (hasReportAvatarAckMessage()) { + if (!getReportAvatarAckMessage().isInitialized()) { + + return false; + } + } + if (hasReportGameMessage()) { + if (!getReportGameMessage().isInitialized()) { + + return false; + } + } + if (hasReportGameAckMessage()) { + if (!getReportGameAckMessage().isInitialized()) { + + return false; + } + } + if (hasErrorMessage()) { + if (!getErrorMessage().isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder( + this.getUnknownFields()); + while (true) { + int tag = input.readTag(); + switch (tag) { + case 0: + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + this.setUnknownFields(unknownFields.build()); + onChanged(); + return this; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType value = de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + messageType_ = value; + } + break; + } + case 18: { + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AnnounceMessage.newBuilder(); + if (hasAnnounceMessage()) { + subBuilder.mergeFrom(getAnnounceMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAnnounceMessage(subBuilder.buildPartial()); + break; + } + case 26: { + de.pokerth.protocol.ProtoBuf.InitMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.InitMessage.newBuilder(); + if (hasInitMessage()) { + subBuilder.mergeFrom(getInitMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setInitMessage(subBuilder.buildPartial()); + break; + } + case 34: { + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.newBuilder(); + if (hasAuthServerChallengeMessage()) { + subBuilder.mergeFrom(getAuthServerChallengeMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAuthServerChallengeMessage(subBuilder.buildPartial()); + break; + } + case 42: { + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.newBuilder(); + if (hasAuthClientResponseMessage()) { + subBuilder.mergeFrom(getAuthClientResponseMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAuthClientResponseMessage(subBuilder.buildPartial()); + break; + } + case 50: { + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.newBuilder(); + if (hasAuthServerVerificationMessage()) { + subBuilder.mergeFrom(getAuthServerVerificationMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAuthServerVerificationMessage(subBuilder.buildPartial()); + break; + } + case 58: { + de.pokerth.protocol.ProtoBuf.InitAckMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.InitAckMessage.newBuilder(); + if (hasInitAckMessage()) { + subBuilder.mergeFrom(getInitAckMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setInitAckMessage(subBuilder.buildPartial()); + break; + } + case 66: { + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.newBuilder(); + if (hasAvatarRequestMessage()) { + subBuilder.mergeFrom(getAvatarRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAvatarRequestMessage(subBuilder.buildPartial()); + break; + } + case 74: { + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.newBuilder(); + if (hasAvatarHeaderMessage()) { + subBuilder.mergeFrom(getAvatarHeaderMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAvatarHeaderMessage(subBuilder.buildPartial()); + break; + } + case 82: { + de.pokerth.protocol.ProtoBuf.AvatarDataMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AvatarDataMessage.newBuilder(); + if (hasAvatarDataMessage()) { + subBuilder.mergeFrom(getAvatarDataMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAvatarDataMessage(subBuilder.buildPartial()); + break; + } + case 90: { + de.pokerth.protocol.ProtoBuf.AvatarEndMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AvatarEndMessage.newBuilder(); + if (hasAvatarEndMessage()) { + subBuilder.mergeFrom(getAvatarEndMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAvatarEndMessage(subBuilder.buildPartial()); + break; + } + case 98: { + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.newBuilder(); + if (hasUnknownAvatarMessage()) { + subBuilder.mergeFrom(getUnknownAvatarMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setUnknownAvatarMessage(subBuilder.buildPartial()); + break; + } + case 106: { + de.pokerth.protocol.ProtoBuf.PlayerListMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayerListMessage.newBuilder(); + if (hasPlayerListMessage()) { + subBuilder.mergeFrom(getPlayerListMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlayerListMessage(subBuilder.buildPartial()); + break; + } + case 114: { + de.pokerth.protocol.ProtoBuf.GameListNewMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameListNewMessage.newBuilder(); + if (hasGameListNewMessage()) { + subBuilder.mergeFrom(getGameListNewMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameListNewMessage(subBuilder.buildPartial()); + break; + } + case 122: { + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.newBuilder(); + if (hasGameListUpdateMessage()) { + subBuilder.mergeFrom(getGameListUpdateMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameListUpdateMessage(subBuilder.buildPartial()); + break; + } + case 130: { + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.newBuilder(); + if (hasGameListPlayerJoinedMessage()) { + subBuilder.mergeFrom(getGameListPlayerJoinedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameListPlayerJoinedMessage(subBuilder.buildPartial()); + break; + } + case 138: { + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.newBuilder(); + if (hasGameListPlayerLeftMessage()) { + subBuilder.mergeFrom(getGameListPlayerLeftMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameListPlayerLeftMessage(subBuilder.buildPartial()); + break; + } + case 146: { + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.newBuilder(); + if (hasGameListAdminChangedMessage()) { + subBuilder.mergeFrom(getGameListAdminChangedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameListAdminChangedMessage(subBuilder.buildPartial()); + break; + } + case 154: { + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.newBuilder(); + if (hasPlayerInfoRequestMessage()) { + subBuilder.mergeFrom(getPlayerInfoRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlayerInfoRequestMessage(subBuilder.buildPartial()); + break; + } + case 162: { + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.newBuilder(); + if (hasPlayerInfoReplyMessage()) { + subBuilder.mergeFrom(getPlayerInfoReplyMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlayerInfoReplyMessage(subBuilder.buildPartial()); + break; + } + case 170: { + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.newBuilder(); + if (hasSubscriptionRequestMessage()) { + subBuilder.mergeFrom(getSubscriptionRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setSubscriptionRequestMessage(subBuilder.buildPartial()); + break; + } + case 178: { + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.newBuilder(); + if (hasJoinExistingGameMessage()) { + subBuilder.mergeFrom(getJoinExistingGameMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setJoinExistingGameMessage(subBuilder.buildPartial()); + break; + } + case 186: { + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.newBuilder(); + if (hasJoinNewGameMessage()) { + subBuilder.mergeFrom(getJoinNewGameMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setJoinNewGameMessage(subBuilder.buildPartial()); + break; + } + case 194: { + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.newBuilder(); + if (hasRejoinExistingGameMessage()) { + subBuilder.mergeFrom(getRejoinExistingGameMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setRejoinExistingGameMessage(subBuilder.buildPartial()); + break; + } + case 202: { + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.newBuilder(); + if (hasJoinGameAckMessage()) { + subBuilder.mergeFrom(getJoinGameAckMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setJoinGameAckMessage(subBuilder.buildPartial()); + break; + } + case 210: { + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.newBuilder(); + if (hasJoinGameFailedMessage()) { + subBuilder.mergeFrom(getJoinGameFailedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setJoinGameFailedMessage(subBuilder.buildPartial()); + break; + } + case 218: { + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.newBuilder(); + if (hasGamePlayerJoinedMessage()) { + subBuilder.mergeFrom(getGamePlayerJoinedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGamePlayerJoinedMessage(subBuilder.buildPartial()); + break; + } + case 226: { + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.newBuilder(); + if (hasGamePlayerLeftMessage()) { + subBuilder.mergeFrom(getGamePlayerLeftMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGamePlayerLeftMessage(subBuilder.buildPartial()); + break; + } + case 234: { + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.newBuilder(); + if (hasGameAdminChangedMessage()) { + subBuilder.mergeFrom(getGameAdminChangedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameAdminChangedMessage(subBuilder.buildPartial()); + break; + } + case 242: { + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.newBuilder(); + if (hasRemovedFromGameMessage()) { + subBuilder.mergeFrom(getRemovedFromGameMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setRemovedFromGameMessage(subBuilder.buildPartial()); + break; + } + case 250: { + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.newBuilder(); + if (hasKickPlayerRequestMessage()) { + subBuilder.mergeFrom(getKickPlayerRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setKickPlayerRequestMessage(subBuilder.buildPartial()); + break; + } + case 258: { + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.newBuilder(); + if (hasLeaveGameRequestMessage()) { + subBuilder.mergeFrom(getLeaveGameRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setLeaveGameRequestMessage(subBuilder.buildPartial()); + break; + } + case 266: { + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.newBuilder(); + if (hasInvitePlayerToGameMessage()) { + subBuilder.mergeFrom(getInvitePlayerToGameMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setInvitePlayerToGameMessage(subBuilder.buildPartial()); + break; + } + case 274: { + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.newBuilder(); + if (hasInviteNotifyMessage()) { + subBuilder.mergeFrom(getInviteNotifyMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setInviteNotifyMessage(subBuilder.buildPartial()); + break; + } + case 282: { + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.newBuilder(); + if (hasRejectGameInvitationMessage()) { + subBuilder.mergeFrom(getRejectGameInvitationMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setRejectGameInvitationMessage(subBuilder.buildPartial()); + break; + } + case 290: { + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.newBuilder(); + if (hasRejectInvNotifyMessage()) { + subBuilder.mergeFrom(getRejectInvNotifyMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setRejectInvNotifyMessage(subBuilder.buildPartial()); + break; + } + case 298: { + de.pokerth.protocol.ProtoBuf.StartEventMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.StartEventMessage.newBuilder(); + if (hasStartEventMessage()) { + subBuilder.mergeFrom(getStartEventMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setStartEventMessage(subBuilder.buildPartial()); + break; + } + case 306: { + de.pokerth.protocol.ProtoBuf.StartEventAckMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.StartEventAckMessage.newBuilder(); + if (hasStartEventAckMessage()) { + subBuilder.mergeFrom(getStartEventAckMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setStartEventAckMessage(subBuilder.buildPartial()); + break; + } + case 314: { + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.newBuilder(); + if (hasGameStartInitialMessage()) { + subBuilder.mergeFrom(getGameStartInitialMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameStartInitialMessage(subBuilder.buildPartial()); + break; + } + case 322: { + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.newBuilder(); + if (hasGameStartRejoinMessage()) { + subBuilder.mergeFrom(getGameStartRejoinMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setGameStartRejoinMessage(subBuilder.buildPartial()); + break; + } + case 330: { + de.pokerth.protocol.ProtoBuf.HandStartMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.HandStartMessage.newBuilder(); + if (hasHandStartMessage()) { + subBuilder.mergeFrom(getHandStartMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setHandStartMessage(subBuilder.buildPartial()); + break; + } + case 338: { + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.newBuilder(); + if (hasPlayersTurnMessage()) { + subBuilder.mergeFrom(getPlayersTurnMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlayersTurnMessage(subBuilder.buildPartial()); + break; + } + case 346: { + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.newBuilder(); + if (hasMyActionRequestMessage()) { + subBuilder.mergeFrom(getMyActionRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setMyActionRequestMessage(subBuilder.buildPartial()); + break; + } + case 354: { + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.newBuilder(); + if (hasYourActionRejectedMessage()) { + subBuilder.mergeFrom(getYourActionRejectedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setYourActionRejectedMessage(subBuilder.buildPartial()); + break; + } + case 362: { + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.newBuilder(); + if (hasPlayersActionDoneMessage()) { + subBuilder.mergeFrom(getPlayersActionDoneMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlayersActionDoneMessage(subBuilder.buildPartial()); + break; + } + case 370: { + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.newBuilder(); + if (hasDealFlopCardsMessage()) { + subBuilder.mergeFrom(getDealFlopCardsMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setDealFlopCardsMessage(subBuilder.buildPartial()); + break; + } + case 378: { + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.newBuilder(); + if (hasDealTurnCardMessage()) { + subBuilder.mergeFrom(getDealTurnCardMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setDealTurnCardMessage(subBuilder.buildPartial()); + break; + } + case 386: { + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.newBuilder(); + if (hasDealRiverCardMessage()) { + subBuilder.mergeFrom(getDealRiverCardMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setDealRiverCardMessage(subBuilder.buildPartial()); + break; + } + case 394: { + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.newBuilder(); + if (hasAllInShowCardsMessage()) { + subBuilder.mergeFrom(getAllInShowCardsMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAllInShowCardsMessage(subBuilder.buildPartial()); + break; + } + case 402: { + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.newBuilder(); + if (hasEndOfHandShowCardsMessage()) { + subBuilder.mergeFrom(getEndOfHandShowCardsMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setEndOfHandShowCardsMessage(subBuilder.buildPartial()); + break; + } + case 410: { + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.newBuilder(); + if (hasEndOfHandHideCardsMessage()) { + subBuilder.mergeFrom(getEndOfHandHideCardsMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setEndOfHandHideCardsMessage(subBuilder.buildPartial()); + break; + } + case 418: { + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.newBuilder(); + if (hasShowMyCardsRequestMessage()) { + subBuilder.mergeFrom(getShowMyCardsRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setShowMyCardsRequestMessage(subBuilder.buildPartial()); + break; + } + case 426: { + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.newBuilder(); + if (hasAfterHandShowCardsMessage()) { + subBuilder.mergeFrom(getAfterHandShowCardsMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAfterHandShowCardsMessage(subBuilder.buildPartial()); + break; + } + case 434: { + de.pokerth.protocol.ProtoBuf.EndOfGameMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.EndOfGameMessage.newBuilder(); + if (hasEndOfGameMessage()) { + subBuilder.mergeFrom(getEndOfGameMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setEndOfGameMessage(subBuilder.buildPartial()); + break; + } + case 442: { + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.newBuilder(); + if (hasPlayerIdChangedMessage()) { + subBuilder.mergeFrom(getPlayerIdChangedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setPlayerIdChangedMessage(subBuilder.buildPartial()); + break; + } + case 450: { + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.newBuilder(); + if (hasAskKickPlayerMessage()) { + subBuilder.mergeFrom(getAskKickPlayerMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAskKickPlayerMessage(subBuilder.buildPartial()); + break; + } + case 458: { + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.newBuilder(); + if (hasAskKickDeniedMessage()) { + subBuilder.mergeFrom(getAskKickDeniedMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setAskKickDeniedMessage(subBuilder.buildPartial()); + break; + } + case 466: { + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.newBuilder(); + if (hasStartKickPetitionMessage()) { + subBuilder.mergeFrom(getStartKickPetitionMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setStartKickPetitionMessage(subBuilder.buildPartial()); + break; + } + case 474: { + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.newBuilder(); + if (hasVoteKickRequestMessage()) { + subBuilder.mergeFrom(getVoteKickRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setVoteKickRequestMessage(subBuilder.buildPartial()); + break; + } + case 482: { + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.newBuilder(); + if (hasVoteKickReplyMessage()) { + subBuilder.mergeFrom(getVoteKickReplyMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setVoteKickReplyMessage(subBuilder.buildPartial()); + break; + } + case 490: { + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.newBuilder(); + if (hasKickPetitionUpdateMessage()) { + subBuilder.mergeFrom(getKickPetitionUpdateMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setKickPetitionUpdateMessage(subBuilder.buildPartial()); + break; + } + case 498: { + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.newBuilder(); + if (hasEndKickPetitionMessage()) { + subBuilder.mergeFrom(getEndKickPetitionMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setEndKickPetitionMessage(subBuilder.buildPartial()); + break; + } + case 506: { + de.pokerth.protocol.ProtoBuf.StatisticsMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.StatisticsMessage.newBuilder(); + if (hasStatisticsMessage()) { + subBuilder.mergeFrom(getStatisticsMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setStatisticsMessage(subBuilder.buildPartial()); + break; + } + case 514: { + de.pokerth.protocol.ProtoBuf.ChatRequestMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ChatRequestMessage.newBuilder(); + if (hasChatRequestMessage()) { + subBuilder.mergeFrom(getChatRequestMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setChatRequestMessage(subBuilder.buildPartial()); + break; + } + case 522: { + de.pokerth.protocol.ProtoBuf.ChatMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ChatMessage.newBuilder(); + if (hasChatMessage()) { + subBuilder.mergeFrom(getChatMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setChatMessage(subBuilder.buildPartial()); + break; + } + case 530: { + de.pokerth.protocol.ProtoBuf.ChatRejectMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ChatRejectMessage.newBuilder(); + if (hasChatRejectMessage()) { + subBuilder.mergeFrom(getChatRejectMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setChatRejectMessage(subBuilder.buildPartial()); + break; + } + case 538: { + de.pokerth.protocol.ProtoBuf.DialogMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.DialogMessage.newBuilder(); + if (hasDialogMessage()) { + subBuilder.mergeFrom(getDialogMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setDialogMessage(subBuilder.buildPartial()); + break; + } + case 546: { + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.newBuilder(); + if (hasTimeoutWarningMessage()) { + subBuilder.mergeFrom(getTimeoutWarningMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setTimeoutWarningMessage(subBuilder.buildPartial()); + break; + } + case 554: { + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.newBuilder(); + if (hasResetTimeoutMessage()) { + subBuilder.mergeFrom(getResetTimeoutMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setResetTimeoutMessage(subBuilder.buildPartial()); + break; + } + case 562: { + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.newBuilder(); + if (hasReportAvatarMessage()) { + subBuilder.mergeFrom(getReportAvatarMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setReportAvatarMessage(subBuilder.buildPartial()); + break; + } + case 570: { + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.newBuilder(); + if (hasReportAvatarAckMessage()) { + subBuilder.mergeFrom(getReportAvatarAckMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setReportAvatarAckMessage(subBuilder.buildPartial()); + break; + } + case 578: { + de.pokerth.protocol.ProtoBuf.ReportGameMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ReportGameMessage.newBuilder(); + if (hasReportGameMessage()) { + subBuilder.mergeFrom(getReportGameMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setReportGameMessage(subBuilder.buildPartial()); + break; + } + case 586: { + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.newBuilder(); + if (hasReportGameAckMessage()) { + subBuilder.mergeFrom(getReportGameAckMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setReportGameAckMessage(subBuilder.buildPartial()); + break; + } + case 594: { + de.pokerth.protocol.ProtoBuf.ErrorMessage.Builder subBuilder = de.pokerth.protocol.ProtoBuf.ErrorMessage.newBuilder(); + if (hasErrorMessage()) { + subBuilder.mergeFrom(getErrorMessage()); + } + input.readMessage(subBuilder, extensionRegistry); + setErrorMessage(subBuilder.buildPartial()); + break; + } + } + } + } + + private int bitField0_; + private int bitField1_; + private int bitField2_; + + // required .PokerTHMessage.PokerTHMessageType messageType = 1; + private de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType messageType_ = de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType.Type_AnnounceMessage; + public boolean hasMessageType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType getMessageType() { + return messageType_; + } + public Builder setMessageType(de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + messageType_ = value; + onChanged(); + return this; + } + public Builder clearMessageType() { + bitField0_ = (bitField0_ & ~0x00000001); + messageType_ = de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType.Type_AnnounceMessage; + onChanged(); + return this; + } + + // optional .AnnounceMessage announceMessage = 2; + private de.pokerth.protocol.ProtoBuf.AnnounceMessage announceMessage_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AnnounceMessage, de.pokerth.protocol.ProtoBuf.AnnounceMessage.Builder, de.pokerth.protocol.ProtoBuf.AnnounceMessageOrBuilder> announceMessageBuilder_; + public boolean hasAnnounceMessage() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage getAnnounceMessage() { + if (announceMessageBuilder_ == null) { + return announceMessage_; + } else { + return announceMessageBuilder_.getMessage(); + } + } + public Builder setAnnounceMessage(de.pokerth.protocol.ProtoBuf.AnnounceMessage value) { + if (announceMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + announceMessage_ = value; + onChanged(); + } else { + announceMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + public Builder setAnnounceMessage( + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Builder builderForValue) { + if (announceMessageBuilder_ == null) { + announceMessage_ = builderForValue.build(); + onChanged(); + } else { + announceMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + public Builder mergeAnnounceMessage(de.pokerth.protocol.ProtoBuf.AnnounceMessage value) { + if (announceMessageBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + announceMessage_ != de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance()) { + announceMessage_ = + de.pokerth.protocol.ProtoBuf.AnnounceMessage.newBuilder(announceMessage_).mergeFrom(value).buildPartial(); + } else { + announceMessage_ = value; + } + onChanged(); + } else { + announceMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + public Builder clearAnnounceMessage() { + if (announceMessageBuilder_ == null) { + announceMessage_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance(); + onChanged(); + } else { + announceMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Builder getAnnounceMessageBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAnnounceMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.AnnounceMessageOrBuilder getAnnounceMessageOrBuilder() { + if (announceMessageBuilder_ != null) { + return announceMessageBuilder_.getMessageOrBuilder(); + } else { + return announceMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AnnounceMessage, de.pokerth.protocol.ProtoBuf.AnnounceMessage.Builder, de.pokerth.protocol.ProtoBuf.AnnounceMessageOrBuilder> + getAnnounceMessageFieldBuilder() { + if (announceMessageBuilder_ == null) { + announceMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AnnounceMessage, de.pokerth.protocol.ProtoBuf.AnnounceMessage.Builder, de.pokerth.protocol.ProtoBuf.AnnounceMessageOrBuilder>( + announceMessage_, + getParentForChildren(), + isClean()); + announceMessage_ = null; + } + return announceMessageBuilder_; + } + + // optional .InitMessage initMessage = 3; + private de.pokerth.protocol.ProtoBuf.InitMessage initMessage_ = de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.InitMessage, de.pokerth.protocol.ProtoBuf.InitMessage.Builder, de.pokerth.protocol.ProtoBuf.InitMessageOrBuilder> initMessageBuilder_; + public boolean hasInitMessage() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.InitMessage getInitMessage() { + if (initMessageBuilder_ == null) { + return initMessage_; + } else { + return initMessageBuilder_.getMessage(); + } + } + public Builder setInitMessage(de.pokerth.protocol.ProtoBuf.InitMessage value) { + if (initMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + initMessage_ = value; + onChanged(); + } else { + initMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + public Builder setInitMessage( + de.pokerth.protocol.ProtoBuf.InitMessage.Builder builderForValue) { + if (initMessageBuilder_ == null) { + initMessage_ = builderForValue.build(); + onChanged(); + } else { + initMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + public Builder mergeInitMessage(de.pokerth.protocol.ProtoBuf.InitMessage value) { + if (initMessageBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + initMessage_ != de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance()) { + initMessage_ = + de.pokerth.protocol.ProtoBuf.InitMessage.newBuilder(initMessage_).mergeFrom(value).buildPartial(); + } else { + initMessage_ = value; + } + onChanged(); + } else { + initMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + public Builder clearInitMessage() { + if (initMessageBuilder_ == null) { + initMessage_ = de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance(); + onChanged(); + } else { + initMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + public de.pokerth.protocol.ProtoBuf.InitMessage.Builder getInitMessageBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getInitMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.InitMessageOrBuilder getInitMessageOrBuilder() { + if (initMessageBuilder_ != null) { + return initMessageBuilder_.getMessageOrBuilder(); + } else { + return initMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.InitMessage, de.pokerth.protocol.ProtoBuf.InitMessage.Builder, de.pokerth.protocol.ProtoBuf.InitMessageOrBuilder> + getInitMessageFieldBuilder() { + if (initMessageBuilder_ == null) { + initMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.InitMessage, de.pokerth.protocol.ProtoBuf.InitMessage.Builder, de.pokerth.protocol.ProtoBuf.InitMessageOrBuilder>( + initMessage_, + getParentForChildren(), + isClean()); + initMessage_ = null; + } + return initMessageBuilder_; + } + + // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; + private de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage authServerChallengeMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage, de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.Builder, de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessageOrBuilder> authServerChallengeMessageBuilder_; + public boolean hasAuthServerChallengeMessage() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + public de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage getAuthServerChallengeMessage() { + if (authServerChallengeMessageBuilder_ == null) { + return authServerChallengeMessage_; + } else { + return authServerChallengeMessageBuilder_.getMessage(); + } + } + public Builder setAuthServerChallengeMessage(de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage value) { + if (authServerChallengeMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authServerChallengeMessage_ = value; + onChanged(); + } else { + authServerChallengeMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + return this; + } + public Builder setAuthServerChallengeMessage( + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.Builder builderForValue) { + if (authServerChallengeMessageBuilder_ == null) { + authServerChallengeMessage_ = builderForValue.build(); + onChanged(); + } else { + authServerChallengeMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + return this; + } + public Builder mergeAuthServerChallengeMessage(de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage value) { + if (authServerChallengeMessageBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + authServerChallengeMessage_ != de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance()) { + authServerChallengeMessage_ = + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.newBuilder(authServerChallengeMessage_).mergeFrom(value).buildPartial(); + } else { + authServerChallengeMessage_ = value; + } + onChanged(); + } else { + authServerChallengeMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + return this; + } + public Builder clearAuthServerChallengeMessage() { + if (authServerChallengeMessageBuilder_ == null) { + authServerChallengeMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance(); + onChanged(); + } else { + authServerChallengeMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + public de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.Builder getAuthServerChallengeMessageBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getAuthServerChallengeMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessageOrBuilder getAuthServerChallengeMessageOrBuilder() { + if (authServerChallengeMessageBuilder_ != null) { + return authServerChallengeMessageBuilder_.getMessageOrBuilder(); + } else { + return authServerChallengeMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage, de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.Builder, de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessageOrBuilder> + getAuthServerChallengeMessageFieldBuilder() { + if (authServerChallengeMessageBuilder_ == null) { + authServerChallengeMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage, de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.Builder, de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessageOrBuilder>( + authServerChallengeMessage_, + getParentForChildren(), + isClean()); + authServerChallengeMessage_ = null; + } + return authServerChallengeMessageBuilder_; + } + + // optional .AuthClientResponseMessage authClientResponseMessage = 5; + private de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage authClientResponseMessage_ = de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage, de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.Builder, de.pokerth.protocol.ProtoBuf.AuthClientResponseMessageOrBuilder> authClientResponseMessageBuilder_; + public boolean hasAuthClientResponseMessage() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage getAuthClientResponseMessage() { + if (authClientResponseMessageBuilder_ == null) { + return authClientResponseMessage_; + } else { + return authClientResponseMessageBuilder_.getMessage(); + } + } + public Builder setAuthClientResponseMessage(de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage value) { + if (authClientResponseMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authClientResponseMessage_ = value; + onChanged(); + } else { + authClientResponseMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + return this; + } + public Builder setAuthClientResponseMessage( + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.Builder builderForValue) { + if (authClientResponseMessageBuilder_ == null) { + authClientResponseMessage_ = builderForValue.build(); + onChanged(); + } else { + authClientResponseMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + return this; + } + public Builder mergeAuthClientResponseMessage(de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage value) { + if (authClientResponseMessageBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + authClientResponseMessage_ != de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance()) { + authClientResponseMessage_ = + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.newBuilder(authClientResponseMessage_).mergeFrom(value).buildPartial(); + } else { + authClientResponseMessage_ = value; + } + onChanged(); + } else { + authClientResponseMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + return this; + } + public Builder clearAuthClientResponseMessage() { + if (authClientResponseMessageBuilder_ == null) { + authClientResponseMessage_ = de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance(); + onChanged(); + } else { + authClientResponseMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + public de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.Builder getAuthClientResponseMessageBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getAuthClientResponseMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.AuthClientResponseMessageOrBuilder getAuthClientResponseMessageOrBuilder() { + if (authClientResponseMessageBuilder_ != null) { + return authClientResponseMessageBuilder_.getMessageOrBuilder(); + } else { + return authClientResponseMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage, de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.Builder, de.pokerth.protocol.ProtoBuf.AuthClientResponseMessageOrBuilder> + getAuthClientResponseMessageFieldBuilder() { + if (authClientResponseMessageBuilder_ == null) { + authClientResponseMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage, de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.Builder, de.pokerth.protocol.ProtoBuf.AuthClientResponseMessageOrBuilder>( + authClientResponseMessage_, + getParentForChildren(), + isClean()); + authClientResponseMessage_ = null; + } + return authClientResponseMessageBuilder_; + } + + // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; + private de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage authServerVerificationMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage, de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.Builder, de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessageOrBuilder> authServerVerificationMessageBuilder_; + public boolean hasAuthServerVerificationMessage() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + public de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage getAuthServerVerificationMessage() { + if (authServerVerificationMessageBuilder_ == null) { + return authServerVerificationMessage_; + } else { + return authServerVerificationMessageBuilder_.getMessage(); + } + } + public Builder setAuthServerVerificationMessage(de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage value) { + if (authServerVerificationMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authServerVerificationMessage_ = value; + onChanged(); + } else { + authServerVerificationMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + return this; + } + public Builder setAuthServerVerificationMessage( + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.Builder builderForValue) { + if (authServerVerificationMessageBuilder_ == null) { + authServerVerificationMessage_ = builderForValue.build(); + onChanged(); + } else { + authServerVerificationMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + return this; + } + public Builder mergeAuthServerVerificationMessage(de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage value) { + if (authServerVerificationMessageBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020) && + authServerVerificationMessage_ != de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance()) { + authServerVerificationMessage_ = + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.newBuilder(authServerVerificationMessage_).mergeFrom(value).buildPartial(); + } else { + authServerVerificationMessage_ = value; + } + onChanged(); + } else { + authServerVerificationMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + return this; + } + public Builder clearAuthServerVerificationMessage() { + if (authServerVerificationMessageBuilder_ == null) { + authServerVerificationMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance(); + onChanged(); + } else { + authServerVerificationMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + public de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.Builder getAuthServerVerificationMessageBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getAuthServerVerificationMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessageOrBuilder getAuthServerVerificationMessageOrBuilder() { + if (authServerVerificationMessageBuilder_ != null) { + return authServerVerificationMessageBuilder_.getMessageOrBuilder(); + } else { + return authServerVerificationMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage, de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.Builder, de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessageOrBuilder> + getAuthServerVerificationMessageFieldBuilder() { + if (authServerVerificationMessageBuilder_ == null) { + authServerVerificationMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage, de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.Builder, de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessageOrBuilder>( + authServerVerificationMessage_, + getParentForChildren(), + isClean()); + authServerVerificationMessage_ = null; + } + return authServerVerificationMessageBuilder_; + } + + // optional .InitAckMessage initAckMessage = 7; + private de.pokerth.protocol.ProtoBuf.InitAckMessage initAckMessage_ = de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.InitAckMessage, de.pokerth.protocol.ProtoBuf.InitAckMessage.Builder, de.pokerth.protocol.ProtoBuf.InitAckMessageOrBuilder> initAckMessageBuilder_; + public boolean hasInitAckMessage() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + public de.pokerth.protocol.ProtoBuf.InitAckMessage getInitAckMessage() { + if (initAckMessageBuilder_ == null) { + return initAckMessage_; + } else { + return initAckMessageBuilder_.getMessage(); + } + } + public Builder setInitAckMessage(de.pokerth.protocol.ProtoBuf.InitAckMessage value) { + if (initAckMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + initAckMessage_ = value; + onChanged(); + } else { + initAckMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + return this; + } + public Builder setInitAckMessage( + de.pokerth.protocol.ProtoBuf.InitAckMessage.Builder builderForValue) { + if (initAckMessageBuilder_ == null) { + initAckMessage_ = builderForValue.build(); + onChanged(); + } else { + initAckMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + return this; + } + public Builder mergeInitAckMessage(de.pokerth.protocol.ProtoBuf.InitAckMessage value) { + if (initAckMessageBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040) && + initAckMessage_ != de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance()) { + initAckMessage_ = + de.pokerth.protocol.ProtoBuf.InitAckMessage.newBuilder(initAckMessage_).mergeFrom(value).buildPartial(); + } else { + initAckMessage_ = value; + } + onChanged(); + } else { + initAckMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + return this; + } + public Builder clearInitAckMessage() { + if (initAckMessageBuilder_ == null) { + initAckMessage_ = de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance(); + onChanged(); + } else { + initAckMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + public de.pokerth.protocol.ProtoBuf.InitAckMessage.Builder getInitAckMessageBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getInitAckMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.InitAckMessageOrBuilder getInitAckMessageOrBuilder() { + if (initAckMessageBuilder_ != null) { + return initAckMessageBuilder_.getMessageOrBuilder(); + } else { + return initAckMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.InitAckMessage, de.pokerth.protocol.ProtoBuf.InitAckMessage.Builder, de.pokerth.protocol.ProtoBuf.InitAckMessageOrBuilder> + getInitAckMessageFieldBuilder() { + if (initAckMessageBuilder_ == null) { + initAckMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.InitAckMessage, de.pokerth.protocol.ProtoBuf.InitAckMessage.Builder, de.pokerth.protocol.ProtoBuf.InitAckMessageOrBuilder>( + initAckMessage_, + getParentForChildren(), + isClean()); + initAckMessage_ = null; + } + return initAckMessageBuilder_; + } + + // optional .AvatarRequestMessage avatarRequestMessage = 8; + private de.pokerth.protocol.ProtoBuf.AvatarRequestMessage avatarRequestMessage_ = de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage, de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.AvatarRequestMessageOrBuilder> avatarRequestMessageBuilder_; + public boolean hasAvatarRequestMessage() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + public de.pokerth.protocol.ProtoBuf.AvatarRequestMessage getAvatarRequestMessage() { + if (avatarRequestMessageBuilder_ == null) { + return avatarRequestMessage_; + } else { + return avatarRequestMessageBuilder_.getMessage(); + } + } + public Builder setAvatarRequestMessage(de.pokerth.protocol.ProtoBuf.AvatarRequestMessage value) { + if (avatarRequestMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + avatarRequestMessage_ = value; + onChanged(); + } else { + avatarRequestMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + return this; + } + public Builder setAvatarRequestMessage( + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.Builder builderForValue) { + if (avatarRequestMessageBuilder_ == null) { + avatarRequestMessage_ = builderForValue.build(); + onChanged(); + } else { + avatarRequestMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + return this; + } + public Builder mergeAvatarRequestMessage(de.pokerth.protocol.ProtoBuf.AvatarRequestMessage value) { + if (avatarRequestMessageBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080) && + avatarRequestMessage_ != de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance()) { + avatarRequestMessage_ = + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.newBuilder(avatarRequestMessage_).mergeFrom(value).buildPartial(); + } else { + avatarRequestMessage_ = value; + } + onChanged(); + } else { + avatarRequestMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + return this; + } + public Builder clearAvatarRequestMessage() { + if (avatarRequestMessageBuilder_ == null) { + avatarRequestMessage_ = de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance(); + onChanged(); + } else { + avatarRequestMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + public de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.Builder getAvatarRequestMessageBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getAvatarRequestMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.AvatarRequestMessageOrBuilder getAvatarRequestMessageOrBuilder() { + if (avatarRequestMessageBuilder_ != null) { + return avatarRequestMessageBuilder_.getMessageOrBuilder(); + } else { + return avatarRequestMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage, de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.AvatarRequestMessageOrBuilder> + getAvatarRequestMessageFieldBuilder() { + if (avatarRequestMessageBuilder_ == null) { + avatarRequestMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage, de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.AvatarRequestMessageOrBuilder>( + avatarRequestMessage_, + getParentForChildren(), + isClean()); + avatarRequestMessage_ = null; + } + return avatarRequestMessageBuilder_; + } + + // optional .AvatarHeaderMessage avatarHeaderMessage = 9; + private de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage avatarHeaderMessage_ = de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage, de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.Builder, de.pokerth.protocol.ProtoBuf.AvatarHeaderMessageOrBuilder> avatarHeaderMessageBuilder_; + public boolean hasAvatarHeaderMessage() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + public de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage getAvatarHeaderMessage() { + if (avatarHeaderMessageBuilder_ == null) { + return avatarHeaderMessage_; + } else { + return avatarHeaderMessageBuilder_.getMessage(); + } + } + public Builder setAvatarHeaderMessage(de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage value) { + if (avatarHeaderMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + avatarHeaderMessage_ = value; + onChanged(); + } else { + avatarHeaderMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + return this; + } + public Builder setAvatarHeaderMessage( + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.Builder builderForValue) { + if (avatarHeaderMessageBuilder_ == null) { + avatarHeaderMessage_ = builderForValue.build(); + onChanged(); + } else { + avatarHeaderMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + return this; + } + public Builder mergeAvatarHeaderMessage(de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage value) { + if (avatarHeaderMessageBuilder_ == null) { + if (((bitField0_ & 0x00000100) == 0x00000100) && + avatarHeaderMessage_ != de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance()) { + avatarHeaderMessage_ = + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.newBuilder(avatarHeaderMessage_).mergeFrom(value).buildPartial(); + } else { + avatarHeaderMessage_ = value; + } + onChanged(); + } else { + avatarHeaderMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + return this; + } + public Builder clearAvatarHeaderMessage() { + if (avatarHeaderMessageBuilder_ == null) { + avatarHeaderMessage_ = de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance(); + onChanged(); + } else { + avatarHeaderMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + return this; + } + public de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.Builder getAvatarHeaderMessageBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getAvatarHeaderMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.AvatarHeaderMessageOrBuilder getAvatarHeaderMessageOrBuilder() { + if (avatarHeaderMessageBuilder_ != null) { + return avatarHeaderMessageBuilder_.getMessageOrBuilder(); + } else { + return avatarHeaderMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage, de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.Builder, de.pokerth.protocol.ProtoBuf.AvatarHeaderMessageOrBuilder> + getAvatarHeaderMessageFieldBuilder() { + if (avatarHeaderMessageBuilder_ == null) { + avatarHeaderMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage, de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.Builder, de.pokerth.protocol.ProtoBuf.AvatarHeaderMessageOrBuilder>( + avatarHeaderMessage_, + getParentForChildren(), + isClean()); + avatarHeaderMessage_ = null; + } + return avatarHeaderMessageBuilder_; + } + + // optional .AvatarDataMessage avatarDataMessage = 10; + private de.pokerth.protocol.ProtoBuf.AvatarDataMessage avatarDataMessage_ = de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AvatarDataMessage, de.pokerth.protocol.ProtoBuf.AvatarDataMessage.Builder, de.pokerth.protocol.ProtoBuf.AvatarDataMessageOrBuilder> avatarDataMessageBuilder_; + public boolean hasAvatarDataMessage() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + public de.pokerth.protocol.ProtoBuf.AvatarDataMessage getAvatarDataMessage() { + if (avatarDataMessageBuilder_ == null) { + return avatarDataMessage_; + } else { + return avatarDataMessageBuilder_.getMessage(); + } + } + public Builder setAvatarDataMessage(de.pokerth.protocol.ProtoBuf.AvatarDataMessage value) { + if (avatarDataMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + avatarDataMessage_ = value; + onChanged(); + } else { + avatarDataMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + return this; + } + public Builder setAvatarDataMessage( + de.pokerth.protocol.ProtoBuf.AvatarDataMessage.Builder builderForValue) { + if (avatarDataMessageBuilder_ == null) { + avatarDataMessage_ = builderForValue.build(); + onChanged(); + } else { + avatarDataMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + return this; + } + public Builder mergeAvatarDataMessage(de.pokerth.protocol.ProtoBuf.AvatarDataMessage value) { + if (avatarDataMessageBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200) && + avatarDataMessage_ != de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance()) { + avatarDataMessage_ = + de.pokerth.protocol.ProtoBuf.AvatarDataMessage.newBuilder(avatarDataMessage_).mergeFrom(value).buildPartial(); + } else { + avatarDataMessage_ = value; + } + onChanged(); + } else { + avatarDataMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000200; + return this; + } + public Builder clearAvatarDataMessage() { + if (avatarDataMessageBuilder_ == null) { + avatarDataMessage_ = de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance(); + onChanged(); + } else { + avatarDataMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + return this; + } + public de.pokerth.protocol.ProtoBuf.AvatarDataMessage.Builder getAvatarDataMessageBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getAvatarDataMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.AvatarDataMessageOrBuilder getAvatarDataMessageOrBuilder() { + if (avatarDataMessageBuilder_ != null) { + return avatarDataMessageBuilder_.getMessageOrBuilder(); + } else { + return avatarDataMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AvatarDataMessage, de.pokerth.protocol.ProtoBuf.AvatarDataMessage.Builder, de.pokerth.protocol.ProtoBuf.AvatarDataMessageOrBuilder> + getAvatarDataMessageFieldBuilder() { + if (avatarDataMessageBuilder_ == null) { + avatarDataMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AvatarDataMessage, de.pokerth.protocol.ProtoBuf.AvatarDataMessage.Builder, de.pokerth.protocol.ProtoBuf.AvatarDataMessageOrBuilder>( + avatarDataMessage_, + getParentForChildren(), + isClean()); + avatarDataMessage_ = null; + } + return avatarDataMessageBuilder_; + } + + // optional .AvatarEndMessage avatarEndMessage = 11; + private de.pokerth.protocol.ProtoBuf.AvatarEndMessage avatarEndMessage_ = de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AvatarEndMessage, de.pokerth.protocol.ProtoBuf.AvatarEndMessage.Builder, de.pokerth.protocol.ProtoBuf.AvatarEndMessageOrBuilder> avatarEndMessageBuilder_; + public boolean hasAvatarEndMessage() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + public de.pokerth.protocol.ProtoBuf.AvatarEndMessage getAvatarEndMessage() { + if (avatarEndMessageBuilder_ == null) { + return avatarEndMessage_; + } else { + return avatarEndMessageBuilder_.getMessage(); + } + } + public Builder setAvatarEndMessage(de.pokerth.protocol.ProtoBuf.AvatarEndMessage value) { + if (avatarEndMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + avatarEndMessage_ = value; + onChanged(); + } else { + avatarEndMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + return this; + } + public Builder setAvatarEndMessage( + de.pokerth.protocol.ProtoBuf.AvatarEndMessage.Builder builderForValue) { + if (avatarEndMessageBuilder_ == null) { + avatarEndMessage_ = builderForValue.build(); + onChanged(); + } else { + avatarEndMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + return this; + } + public Builder mergeAvatarEndMessage(de.pokerth.protocol.ProtoBuf.AvatarEndMessage value) { + if (avatarEndMessageBuilder_ == null) { + if (((bitField0_ & 0x00000400) == 0x00000400) && + avatarEndMessage_ != de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance()) { + avatarEndMessage_ = + de.pokerth.protocol.ProtoBuf.AvatarEndMessage.newBuilder(avatarEndMessage_).mergeFrom(value).buildPartial(); + } else { + avatarEndMessage_ = value; + } + onChanged(); + } else { + avatarEndMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000400; + return this; + } + public Builder clearAvatarEndMessage() { + if (avatarEndMessageBuilder_ == null) { + avatarEndMessage_ = de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance(); + onChanged(); + } else { + avatarEndMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + return this; + } + public de.pokerth.protocol.ProtoBuf.AvatarEndMessage.Builder getAvatarEndMessageBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getAvatarEndMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.AvatarEndMessageOrBuilder getAvatarEndMessageOrBuilder() { + if (avatarEndMessageBuilder_ != null) { + return avatarEndMessageBuilder_.getMessageOrBuilder(); + } else { + return avatarEndMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AvatarEndMessage, de.pokerth.protocol.ProtoBuf.AvatarEndMessage.Builder, de.pokerth.protocol.ProtoBuf.AvatarEndMessageOrBuilder> + getAvatarEndMessageFieldBuilder() { + if (avatarEndMessageBuilder_ == null) { + avatarEndMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AvatarEndMessage, de.pokerth.protocol.ProtoBuf.AvatarEndMessage.Builder, de.pokerth.protocol.ProtoBuf.AvatarEndMessageOrBuilder>( + avatarEndMessage_, + getParentForChildren(), + isClean()); + avatarEndMessage_ = null; + } + return avatarEndMessageBuilder_; + } + + // optional .UnknownAvatarMessage unknownAvatarMessage = 12; + private de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage unknownAvatarMessage_ = de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage, de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.Builder, de.pokerth.protocol.ProtoBuf.UnknownAvatarMessageOrBuilder> unknownAvatarMessageBuilder_; + public boolean hasUnknownAvatarMessage() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + public de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage getUnknownAvatarMessage() { + if (unknownAvatarMessageBuilder_ == null) { + return unknownAvatarMessage_; + } else { + return unknownAvatarMessageBuilder_.getMessage(); + } + } + public Builder setUnknownAvatarMessage(de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage value) { + if (unknownAvatarMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + unknownAvatarMessage_ = value; + onChanged(); + } else { + unknownAvatarMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + return this; + } + public Builder setUnknownAvatarMessage( + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.Builder builderForValue) { + if (unknownAvatarMessageBuilder_ == null) { + unknownAvatarMessage_ = builderForValue.build(); + onChanged(); + } else { + unknownAvatarMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + return this; + } + public Builder mergeUnknownAvatarMessage(de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage value) { + if (unknownAvatarMessageBuilder_ == null) { + if (((bitField0_ & 0x00000800) == 0x00000800) && + unknownAvatarMessage_ != de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance()) { + unknownAvatarMessage_ = + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.newBuilder(unknownAvatarMessage_).mergeFrom(value).buildPartial(); + } else { + unknownAvatarMessage_ = value; + } + onChanged(); + } else { + unknownAvatarMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000800; + return this; + } + public Builder clearUnknownAvatarMessage() { + if (unknownAvatarMessageBuilder_ == null) { + unknownAvatarMessage_ = de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance(); + onChanged(); + } else { + unknownAvatarMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + return this; + } + public de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.Builder getUnknownAvatarMessageBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getUnknownAvatarMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.UnknownAvatarMessageOrBuilder getUnknownAvatarMessageOrBuilder() { + if (unknownAvatarMessageBuilder_ != null) { + return unknownAvatarMessageBuilder_.getMessageOrBuilder(); + } else { + return unknownAvatarMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage, de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.Builder, de.pokerth.protocol.ProtoBuf.UnknownAvatarMessageOrBuilder> + getUnknownAvatarMessageFieldBuilder() { + if (unknownAvatarMessageBuilder_ == null) { + unknownAvatarMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage, de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.Builder, de.pokerth.protocol.ProtoBuf.UnknownAvatarMessageOrBuilder>( + unknownAvatarMessage_, + getParentForChildren(), + isClean()); + unknownAvatarMessage_ = null; + } + return unknownAvatarMessageBuilder_; + } + + // optional .PlayerListMessage playerListMessage = 13; + private de.pokerth.protocol.ProtoBuf.PlayerListMessage playerListMessage_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerListMessage, de.pokerth.protocol.ProtoBuf.PlayerListMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayerListMessageOrBuilder> playerListMessageBuilder_; + public boolean hasPlayerListMessage() { + return ((bitField0_ & 0x00001000) == 0x00001000); + } + public de.pokerth.protocol.ProtoBuf.PlayerListMessage getPlayerListMessage() { + if (playerListMessageBuilder_ == null) { + return playerListMessage_; + } else { + return playerListMessageBuilder_.getMessage(); + } + } + public Builder setPlayerListMessage(de.pokerth.protocol.ProtoBuf.PlayerListMessage value) { + if (playerListMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + playerListMessage_ = value; + onChanged(); + } else { + playerListMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + return this; + } + public Builder setPlayerListMessage( + de.pokerth.protocol.ProtoBuf.PlayerListMessage.Builder builderForValue) { + if (playerListMessageBuilder_ == null) { + playerListMessage_ = builderForValue.build(); + onChanged(); + } else { + playerListMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + return this; + } + public Builder mergePlayerListMessage(de.pokerth.protocol.ProtoBuf.PlayerListMessage value) { + if (playerListMessageBuilder_ == null) { + if (((bitField0_ & 0x00001000) == 0x00001000) && + playerListMessage_ != de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance()) { + playerListMessage_ = + de.pokerth.protocol.ProtoBuf.PlayerListMessage.newBuilder(playerListMessage_).mergeFrom(value).buildPartial(); + } else { + playerListMessage_ = value; + } + onChanged(); + } else { + playerListMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00001000; + return this; + } + public Builder clearPlayerListMessage() { + if (playerListMessageBuilder_ == null) { + playerListMessage_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance(); + onChanged(); + } else { + playerListMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + return this; + } + public de.pokerth.protocol.ProtoBuf.PlayerListMessage.Builder getPlayerListMessageBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getPlayerListMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.PlayerListMessageOrBuilder getPlayerListMessageOrBuilder() { + if (playerListMessageBuilder_ != null) { + return playerListMessageBuilder_.getMessageOrBuilder(); + } else { + return playerListMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerListMessage, de.pokerth.protocol.ProtoBuf.PlayerListMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayerListMessageOrBuilder> + getPlayerListMessageFieldBuilder() { + if (playerListMessageBuilder_ == null) { + playerListMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerListMessage, de.pokerth.protocol.ProtoBuf.PlayerListMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayerListMessageOrBuilder>( + playerListMessage_, + getParentForChildren(), + isClean()); + playerListMessage_ = null; + } + return playerListMessageBuilder_; + } + + // optional .GameListNewMessage gameListNewMessage = 14; + private de.pokerth.protocol.ProtoBuf.GameListNewMessage gameListNewMessage_ = de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameListNewMessage, de.pokerth.protocol.ProtoBuf.GameListNewMessage.Builder, de.pokerth.protocol.ProtoBuf.GameListNewMessageOrBuilder> gameListNewMessageBuilder_; + public boolean hasGameListNewMessage() { + return ((bitField0_ & 0x00002000) == 0x00002000); + } + public de.pokerth.protocol.ProtoBuf.GameListNewMessage getGameListNewMessage() { + if (gameListNewMessageBuilder_ == null) { + return gameListNewMessage_; + } else { + return gameListNewMessageBuilder_.getMessage(); + } + } + public Builder setGameListNewMessage(de.pokerth.protocol.ProtoBuf.GameListNewMessage value) { + if (gameListNewMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gameListNewMessage_ = value; + onChanged(); + } else { + gameListNewMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + return this; + } + public Builder setGameListNewMessage( + de.pokerth.protocol.ProtoBuf.GameListNewMessage.Builder builderForValue) { + if (gameListNewMessageBuilder_ == null) { + gameListNewMessage_ = builderForValue.build(); + onChanged(); + } else { + gameListNewMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + return this; + } + public Builder mergeGameListNewMessage(de.pokerth.protocol.ProtoBuf.GameListNewMessage value) { + if (gameListNewMessageBuilder_ == null) { + if (((bitField0_ & 0x00002000) == 0x00002000) && + gameListNewMessage_ != de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance()) { + gameListNewMessage_ = + de.pokerth.protocol.ProtoBuf.GameListNewMessage.newBuilder(gameListNewMessage_).mergeFrom(value).buildPartial(); + } else { + gameListNewMessage_ = value; + } + onChanged(); + } else { + gameListNewMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00002000; + return this; + } + public Builder clearGameListNewMessage() { + if (gameListNewMessageBuilder_ == null) { + gameListNewMessage_ = de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance(); + onChanged(); + } else { + gameListNewMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + return this; + } + public de.pokerth.protocol.ProtoBuf.GameListNewMessage.Builder getGameListNewMessageBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getGameListNewMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.GameListNewMessageOrBuilder getGameListNewMessageOrBuilder() { + if (gameListNewMessageBuilder_ != null) { + return gameListNewMessageBuilder_.getMessageOrBuilder(); + } else { + return gameListNewMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameListNewMessage, de.pokerth.protocol.ProtoBuf.GameListNewMessage.Builder, de.pokerth.protocol.ProtoBuf.GameListNewMessageOrBuilder> + getGameListNewMessageFieldBuilder() { + if (gameListNewMessageBuilder_ == null) { + gameListNewMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameListNewMessage, de.pokerth.protocol.ProtoBuf.GameListNewMessage.Builder, de.pokerth.protocol.ProtoBuf.GameListNewMessageOrBuilder>( + gameListNewMessage_, + getParentForChildren(), + isClean()); + gameListNewMessage_ = null; + } + return gameListNewMessageBuilder_; + } + + // optional .GameListUpdateMessage gameListUpdateMessage = 15; + private de.pokerth.protocol.ProtoBuf.GameListUpdateMessage gameListUpdateMessage_ = de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage, de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.Builder, de.pokerth.protocol.ProtoBuf.GameListUpdateMessageOrBuilder> gameListUpdateMessageBuilder_; + public boolean hasGameListUpdateMessage() { + return ((bitField0_ & 0x00004000) == 0x00004000); + } + public de.pokerth.protocol.ProtoBuf.GameListUpdateMessage getGameListUpdateMessage() { + if (gameListUpdateMessageBuilder_ == null) { + return gameListUpdateMessage_; + } else { + return gameListUpdateMessageBuilder_.getMessage(); + } + } + public Builder setGameListUpdateMessage(de.pokerth.protocol.ProtoBuf.GameListUpdateMessage value) { + if (gameListUpdateMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gameListUpdateMessage_ = value; + onChanged(); + } else { + gameListUpdateMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + return this; + } + public Builder setGameListUpdateMessage( + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.Builder builderForValue) { + if (gameListUpdateMessageBuilder_ == null) { + gameListUpdateMessage_ = builderForValue.build(); + onChanged(); + } else { + gameListUpdateMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + return this; + } + public Builder mergeGameListUpdateMessage(de.pokerth.protocol.ProtoBuf.GameListUpdateMessage value) { + if (gameListUpdateMessageBuilder_ == null) { + if (((bitField0_ & 0x00004000) == 0x00004000) && + gameListUpdateMessage_ != de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance()) { + gameListUpdateMessage_ = + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.newBuilder(gameListUpdateMessage_).mergeFrom(value).buildPartial(); + } else { + gameListUpdateMessage_ = value; + } + onChanged(); + } else { + gameListUpdateMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00004000; + return this; + } + public Builder clearGameListUpdateMessage() { + if (gameListUpdateMessageBuilder_ == null) { + gameListUpdateMessage_ = de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance(); + onChanged(); + } else { + gameListUpdateMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); + return this; + } + public de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.Builder getGameListUpdateMessageBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getGameListUpdateMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.GameListUpdateMessageOrBuilder getGameListUpdateMessageOrBuilder() { + if (gameListUpdateMessageBuilder_ != null) { + return gameListUpdateMessageBuilder_.getMessageOrBuilder(); + } else { + return gameListUpdateMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage, de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.Builder, de.pokerth.protocol.ProtoBuf.GameListUpdateMessageOrBuilder> + getGameListUpdateMessageFieldBuilder() { + if (gameListUpdateMessageBuilder_ == null) { + gameListUpdateMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage, de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.Builder, de.pokerth.protocol.ProtoBuf.GameListUpdateMessageOrBuilder>( + gameListUpdateMessage_, + getParentForChildren(), + isClean()); + gameListUpdateMessage_ = null; + } + return gameListUpdateMessageBuilder_; + } + + // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; + private de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage gameListPlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage, de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.Builder, de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessageOrBuilder> gameListPlayerJoinedMessageBuilder_; + public boolean hasGameListPlayerJoinedMessage() { + return ((bitField0_ & 0x00008000) == 0x00008000); + } + public de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage getGameListPlayerJoinedMessage() { + if (gameListPlayerJoinedMessageBuilder_ == null) { + return gameListPlayerJoinedMessage_; + } else { + return gameListPlayerJoinedMessageBuilder_.getMessage(); + } + } + public Builder setGameListPlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage value) { + if (gameListPlayerJoinedMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gameListPlayerJoinedMessage_ = value; + onChanged(); + } else { + gameListPlayerJoinedMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + return this; + } + public Builder setGameListPlayerJoinedMessage( + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.Builder builderForValue) { + if (gameListPlayerJoinedMessageBuilder_ == null) { + gameListPlayerJoinedMessage_ = builderForValue.build(); + onChanged(); + } else { + gameListPlayerJoinedMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + return this; + } + public Builder mergeGameListPlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage value) { + if (gameListPlayerJoinedMessageBuilder_ == null) { + if (((bitField0_ & 0x00008000) == 0x00008000) && + gameListPlayerJoinedMessage_ != de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance()) { + gameListPlayerJoinedMessage_ = + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.newBuilder(gameListPlayerJoinedMessage_).mergeFrom(value).buildPartial(); + } else { + gameListPlayerJoinedMessage_ = value; + } + onChanged(); + } else { + gameListPlayerJoinedMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00008000; + return this; + } + public Builder clearGameListPlayerJoinedMessage() { + if (gameListPlayerJoinedMessageBuilder_ == null) { + gameListPlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance(); + onChanged(); + } else { + gameListPlayerJoinedMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00008000); + return this; + } + public de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.Builder getGameListPlayerJoinedMessageBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getGameListPlayerJoinedMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessageOrBuilder getGameListPlayerJoinedMessageOrBuilder() { + if (gameListPlayerJoinedMessageBuilder_ != null) { + return gameListPlayerJoinedMessageBuilder_.getMessageOrBuilder(); + } else { + return gameListPlayerJoinedMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage, de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.Builder, de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessageOrBuilder> + getGameListPlayerJoinedMessageFieldBuilder() { + if (gameListPlayerJoinedMessageBuilder_ == null) { + gameListPlayerJoinedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage, de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.Builder, de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessageOrBuilder>( + gameListPlayerJoinedMessage_, + getParentForChildren(), + isClean()); + gameListPlayerJoinedMessage_ = null; + } + return gameListPlayerJoinedMessageBuilder_; + } + + // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; + private de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage gameListPlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage, de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.Builder, de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessageOrBuilder> gameListPlayerLeftMessageBuilder_; + public boolean hasGameListPlayerLeftMessage() { + return ((bitField0_ & 0x00010000) == 0x00010000); + } + public de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage getGameListPlayerLeftMessage() { + if (gameListPlayerLeftMessageBuilder_ == null) { + return gameListPlayerLeftMessage_; + } else { + return gameListPlayerLeftMessageBuilder_.getMessage(); + } + } + public Builder setGameListPlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage value) { + if (gameListPlayerLeftMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gameListPlayerLeftMessage_ = value; + onChanged(); + } else { + gameListPlayerLeftMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + return this; + } + public Builder setGameListPlayerLeftMessage( + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.Builder builderForValue) { + if (gameListPlayerLeftMessageBuilder_ == null) { + gameListPlayerLeftMessage_ = builderForValue.build(); + onChanged(); + } else { + gameListPlayerLeftMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + return this; + } + public Builder mergeGameListPlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage value) { + if (gameListPlayerLeftMessageBuilder_ == null) { + if (((bitField0_ & 0x00010000) == 0x00010000) && + gameListPlayerLeftMessage_ != de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance()) { + gameListPlayerLeftMessage_ = + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.newBuilder(gameListPlayerLeftMessage_).mergeFrom(value).buildPartial(); + } else { + gameListPlayerLeftMessage_ = value; + } + onChanged(); + } else { + gameListPlayerLeftMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00010000; + return this; + } + public Builder clearGameListPlayerLeftMessage() { + if (gameListPlayerLeftMessageBuilder_ == null) { + gameListPlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance(); + onChanged(); + } else { + gameListPlayerLeftMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00010000); + return this; + } + public de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.Builder getGameListPlayerLeftMessageBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getGameListPlayerLeftMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessageOrBuilder getGameListPlayerLeftMessageOrBuilder() { + if (gameListPlayerLeftMessageBuilder_ != null) { + return gameListPlayerLeftMessageBuilder_.getMessageOrBuilder(); + } else { + return gameListPlayerLeftMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage, de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.Builder, de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessageOrBuilder> + getGameListPlayerLeftMessageFieldBuilder() { + if (gameListPlayerLeftMessageBuilder_ == null) { + gameListPlayerLeftMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage, de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.Builder, de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessageOrBuilder>( + gameListPlayerLeftMessage_, + getParentForChildren(), + isClean()); + gameListPlayerLeftMessage_ = null; + } + return gameListPlayerLeftMessageBuilder_; + } + + // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; + private de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage gameListAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage, de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.Builder, de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessageOrBuilder> gameListAdminChangedMessageBuilder_; + public boolean hasGameListAdminChangedMessage() { + return ((bitField0_ & 0x00020000) == 0x00020000); + } + public de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage getGameListAdminChangedMessage() { + if (gameListAdminChangedMessageBuilder_ == null) { + return gameListAdminChangedMessage_; + } else { + return gameListAdminChangedMessageBuilder_.getMessage(); + } + } + public Builder setGameListAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage value) { + if (gameListAdminChangedMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gameListAdminChangedMessage_ = value; + onChanged(); + } else { + gameListAdminChangedMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + return this; + } + public Builder setGameListAdminChangedMessage( + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.Builder builderForValue) { + if (gameListAdminChangedMessageBuilder_ == null) { + gameListAdminChangedMessage_ = builderForValue.build(); + onChanged(); + } else { + gameListAdminChangedMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + return this; + } + public Builder mergeGameListAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage value) { + if (gameListAdminChangedMessageBuilder_ == null) { + if (((bitField0_ & 0x00020000) == 0x00020000) && + gameListAdminChangedMessage_ != de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance()) { + gameListAdminChangedMessage_ = + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.newBuilder(gameListAdminChangedMessage_).mergeFrom(value).buildPartial(); + } else { + gameListAdminChangedMessage_ = value; + } + onChanged(); + } else { + gameListAdminChangedMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00020000; + return this; + } + public Builder clearGameListAdminChangedMessage() { + if (gameListAdminChangedMessageBuilder_ == null) { + gameListAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance(); + onChanged(); + } else { + gameListAdminChangedMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00020000); + return this; + } + public de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.Builder getGameListAdminChangedMessageBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getGameListAdminChangedMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessageOrBuilder getGameListAdminChangedMessageOrBuilder() { + if (gameListAdminChangedMessageBuilder_ != null) { + return gameListAdminChangedMessageBuilder_.getMessageOrBuilder(); + } else { + return gameListAdminChangedMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage, de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.Builder, de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessageOrBuilder> + getGameListAdminChangedMessageFieldBuilder() { + if (gameListAdminChangedMessageBuilder_ == null) { + gameListAdminChangedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage, de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.Builder, de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessageOrBuilder>( + gameListAdminChangedMessage_, + getParentForChildren(), + isClean()); + gameListAdminChangedMessage_ = null; + } + return gameListAdminChangedMessageBuilder_; + } + + // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; + private de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage playerInfoRequestMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage, de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessageOrBuilder> playerInfoRequestMessageBuilder_; + public boolean hasPlayerInfoRequestMessage() { + return ((bitField0_ & 0x00040000) == 0x00040000); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage getPlayerInfoRequestMessage() { + if (playerInfoRequestMessageBuilder_ == null) { + return playerInfoRequestMessage_; + } else { + return playerInfoRequestMessageBuilder_.getMessage(); + } + } + public Builder setPlayerInfoRequestMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage value) { + if (playerInfoRequestMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + playerInfoRequestMessage_ = value; + onChanged(); + } else { + playerInfoRequestMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + return this; + } + public Builder setPlayerInfoRequestMessage( + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.Builder builderForValue) { + if (playerInfoRequestMessageBuilder_ == null) { + playerInfoRequestMessage_ = builderForValue.build(); + onChanged(); + } else { + playerInfoRequestMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + return this; + } + public Builder mergePlayerInfoRequestMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage value) { + if (playerInfoRequestMessageBuilder_ == null) { + if (((bitField0_ & 0x00040000) == 0x00040000) && + playerInfoRequestMessage_ != de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance()) { + playerInfoRequestMessage_ = + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.newBuilder(playerInfoRequestMessage_).mergeFrom(value).buildPartial(); + } else { + playerInfoRequestMessage_ = value; + } + onChanged(); + } else { + playerInfoRequestMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00040000; + return this; + } + public Builder clearPlayerInfoRequestMessage() { + if (playerInfoRequestMessageBuilder_ == null) { + playerInfoRequestMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance(); + onChanged(); + } else { + playerInfoRequestMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00040000); + return this; + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.Builder getPlayerInfoRequestMessageBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getPlayerInfoRequestMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessageOrBuilder getPlayerInfoRequestMessageOrBuilder() { + if (playerInfoRequestMessageBuilder_ != null) { + return playerInfoRequestMessageBuilder_.getMessageOrBuilder(); + } else { + return playerInfoRequestMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage, de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessageOrBuilder> + getPlayerInfoRequestMessageFieldBuilder() { + if (playerInfoRequestMessageBuilder_ == null) { + playerInfoRequestMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage, de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessageOrBuilder>( + playerInfoRequestMessage_, + getParentForChildren(), + isClean()); + playerInfoRequestMessage_ = null; + } + return playerInfoRequestMessageBuilder_; + } + + // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; + private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage playerInfoReplyMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessageOrBuilder> playerInfoReplyMessageBuilder_; + public boolean hasPlayerInfoReplyMessage() { + return ((bitField0_ & 0x00080000) == 0x00080000); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage getPlayerInfoReplyMessage() { + if (playerInfoReplyMessageBuilder_ == null) { + return playerInfoReplyMessage_; + } else { + return playerInfoReplyMessageBuilder_.getMessage(); + } + } + public Builder setPlayerInfoReplyMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage value) { + if (playerInfoReplyMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + playerInfoReplyMessage_ = value; + onChanged(); + } else { + playerInfoReplyMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + return this; + } + public Builder setPlayerInfoReplyMessage( + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.Builder builderForValue) { + if (playerInfoReplyMessageBuilder_ == null) { + playerInfoReplyMessage_ = builderForValue.build(); + onChanged(); + } else { + playerInfoReplyMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + return this; + } + public Builder mergePlayerInfoReplyMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage value) { + if (playerInfoReplyMessageBuilder_ == null) { + if (((bitField0_ & 0x00080000) == 0x00080000) && + playerInfoReplyMessage_ != de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance()) { + playerInfoReplyMessage_ = + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.newBuilder(playerInfoReplyMessage_).mergeFrom(value).buildPartial(); + } else { + playerInfoReplyMessage_ = value; + } + onChanged(); + } else { + playerInfoReplyMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00080000; + return this; + } + public Builder clearPlayerInfoReplyMessage() { + if (playerInfoReplyMessageBuilder_ == null) { + playerInfoReplyMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance(); + onChanged(); + } else { + playerInfoReplyMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00080000); + return this; + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.Builder getPlayerInfoReplyMessageBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getPlayerInfoReplyMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessageOrBuilder getPlayerInfoReplyMessageOrBuilder() { + if (playerInfoReplyMessageBuilder_ != null) { + return playerInfoReplyMessageBuilder_.getMessageOrBuilder(); + } else { + return playerInfoReplyMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessageOrBuilder> + getPlayerInfoReplyMessageFieldBuilder() { + if (playerInfoReplyMessageBuilder_ == null) { + playerInfoReplyMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessageOrBuilder>( + playerInfoReplyMessage_, + getParentForChildren(), + isClean()); + playerInfoReplyMessage_ = null; + } + return playerInfoReplyMessageBuilder_; + } + + // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; + private de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage subscriptionRequestMessage_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage, de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessageOrBuilder> subscriptionRequestMessageBuilder_; + public boolean hasSubscriptionRequestMessage() { + return ((bitField0_ & 0x00100000) == 0x00100000); + } + public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage getSubscriptionRequestMessage() { + if (subscriptionRequestMessageBuilder_ == null) { + return subscriptionRequestMessage_; + } else { + return subscriptionRequestMessageBuilder_.getMessage(); + } + } + public Builder setSubscriptionRequestMessage(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage value) { + if (subscriptionRequestMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subscriptionRequestMessage_ = value; + onChanged(); + } else { + subscriptionRequestMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00100000; + return this; + } + public Builder setSubscriptionRequestMessage( + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.Builder builderForValue) { + if (subscriptionRequestMessageBuilder_ == null) { + subscriptionRequestMessage_ = builderForValue.build(); + onChanged(); + } else { + subscriptionRequestMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00100000; + return this; + } + public Builder mergeSubscriptionRequestMessage(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage value) { + if (subscriptionRequestMessageBuilder_ == null) { + if (((bitField0_ & 0x00100000) == 0x00100000) && + subscriptionRequestMessage_ != de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance()) { + subscriptionRequestMessage_ = + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.newBuilder(subscriptionRequestMessage_).mergeFrom(value).buildPartial(); + } else { + subscriptionRequestMessage_ = value; + } + onChanged(); + } else { + subscriptionRequestMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00100000; + return this; + } + public Builder clearSubscriptionRequestMessage() { + if (subscriptionRequestMessageBuilder_ == null) { + subscriptionRequestMessage_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance(); + onChanged(); + } else { + subscriptionRequestMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00100000); + return this; + } + public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.Builder getSubscriptionRequestMessageBuilder() { + bitField0_ |= 0x00100000; + onChanged(); + return getSubscriptionRequestMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessageOrBuilder getSubscriptionRequestMessageOrBuilder() { + if (subscriptionRequestMessageBuilder_ != null) { + return subscriptionRequestMessageBuilder_.getMessageOrBuilder(); + } else { + return subscriptionRequestMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage, de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessageOrBuilder> + getSubscriptionRequestMessageFieldBuilder() { + if (subscriptionRequestMessageBuilder_ == null) { + subscriptionRequestMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage, de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessageOrBuilder>( + subscriptionRequestMessage_, + getParentForChildren(), + isClean()); + subscriptionRequestMessage_ = null; + } + return subscriptionRequestMessageBuilder_; + } + + // optional .JoinExistingGameMessage joinExistingGameMessage = 22; + private de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage joinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage, de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.Builder, de.pokerth.protocol.ProtoBuf.JoinExistingGameMessageOrBuilder> joinExistingGameMessageBuilder_; + public boolean hasJoinExistingGameMessage() { + return ((bitField0_ & 0x00200000) == 0x00200000); + } + public de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage getJoinExistingGameMessage() { + if (joinExistingGameMessageBuilder_ == null) { + return joinExistingGameMessage_; + } else { + return joinExistingGameMessageBuilder_.getMessage(); + } + } + public Builder setJoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage value) { + if (joinExistingGameMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + joinExistingGameMessage_ = value; + onChanged(); + } else { + joinExistingGameMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00200000; + return this; + } + public Builder setJoinExistingGameMessage( + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.Builder builderForValue) { + if (joinExistingGameMessageBuilder_ == null) { + joinExistingGameMessage_ = builderForValue.build(); + onChanged(); + } else { + joinExistingGameMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00200000; + return this; + } + public Builder mergeJoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage value) { + if (joinExistingGameMessageBuilder_ == null) { + if (((bitField0_ & 0x00200000) == 0x00200000) && + joinExistingGameMessage_ != de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance()) { + joinExistingGameMessage_ = + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.newBuilder(joinExistingGameMessage_).mergeFrom(value).buildPartial(); + } else { + joinExistingGameMessage_ = value; + } + onChanged(); + } else { + joinExistingGameMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00200000; + return this; + } + public Builder clearJoinExistingGameMessage() { + if (joinExistingGameMessageBuilder_ == null) { + joinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance(); + onChanged(); + } else { + joinExistingGameMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00200000); + return this; + } + public de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.Builder getJoinExistingGameMessageBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return getJoinExistingGameMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.JoinExistingGameMessageOrBuilder getJoinExistingGameMessageOrBuilder() { + if (joinExistingGameMessageBuilder_ != null) { + return joinExistingGameMessageBuilder_.getMessageOrBuilder(); + } else { + return joinExistingGameMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage, de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.Builder, de.pokerth.protocol.ProtoBuf.JoinExistingGameMessageOrBuilder> + getJoinExistingGameMessageFieldBuilder() { + if (joinExistingGameMessageBuilder_ == null) { + joinExistingGameMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage, de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.Builder, de.pokerth.protocol.ProtoBuf.JoinExistingGameMessageOrBuilder>( + joinExistingGameMessage_, + getParentForChildren(), + isClean()); + joinExistingGameMessage_ = null; + } + return joinExistingGameMessageBuilder_; + } + + // optional .JoinNewGameMessage joinNewGameMessage = 23; + private de.pokerth.protocol.ProtoBuf.JoinNewGameMessage joinNewGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage, de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.Builder, de.pokerth.protocol.ProtoBuf.JoinNewGameMessageOrBuilder> joinNewGameMessageBuilder_; + public boolean hasJoinNewGameMessage() { + return ((bitField0_ & 0x00400000) == 0x00400000); + } + public de.pokerth.protocol.ProtoBuf.JoinNewGameMessage getJoinNewGameMessage() { + if (joinNewGameMessageBuilder_ == null) { + return joinNewGameMessage_; + } else { + return joinNewGameMessageBuilder_.getMessage(); + } + } + public Builder setJoinNewGameMessage(de.pokerth.protocol.ProtoBuf.JoinNewGameMessage value) { + if (joinNewGameMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + joinNewGameMessage_ = value; + onChanged(); + } else { + joinNewGameMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + return this; + } + public Builder setJoinNewGameMessage( + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.Builder builderForValue) { + if (joinNewGameMessageBuilder_ == null) { + joinNewGameMessage_ = builderForValue.build(); + onChanged(); + } else { + joinNewGameMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00400000; + return this; + } + public Builder mergeJoinNewGameMessage(de.pokerth.protocol.ProtoBuf.JoinNewGameMessage value) { + if (joinNewGameMessageBuilder_ == null) { + if (((bitField0_ & 0x00400000) == 0x00400000) && + joinNewGameMessage_ != de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance()) { + joinNewGameMessage_ = + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.newBuilder(joinNewGameMessage_).mergeFrom(value).buildPartial(); + } else { + joinNewGameMessage_ = value; + } + onChanged(); + } else { + joinNewGameMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00400000; + return this; + } + public Builder clearJoinNewGameMessage() { + if (joinNewGameMessageBuilder_ == null) { + joinNewGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance(); + onChanged(); + } else { + joinNewGameMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00400000); + return this; + } + public de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.Builder getJoinNewGameMessageBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return getJoinNewGameMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.JoinNewGameMessageOrBuilder getJoinNewGameMessageOrBuilder() { + if (joinNewGameMessageBuilder_ != null) { + return joinNewGameMessageBuilder_.getMessageOrBuilder(); + } else { + return joinNewGameMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage, de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.Builder, de.pokerth.protocol.ProtoBuf.JoinNewGameMessageOrBuilder> + getJoinNewGameMessageFieldBuilder() { + if (joinNewGameMessageBuilder_ == null) { + joinNewGameMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage, de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.Builder, de.pokerth.protocol.ProtoBuf.JoinNewGameMessageOrBuilder>( + joinNewGameMessage_, + getParentForChildren(), + isClean()); + joinNewGameMessage_ = null; + } + return joinNewGameMessageBuilder_; + } + + // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; + private de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage rejoinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage, de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.Builder, de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessageOrBuilder> rejoinExistingGameMessageBuilder_; + public boolean hasRejoinExistingGameMessage() { + return ((bitField0_ & 0x00800000) == 0x00800000); + } + public de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage getRejoinExistingGameMessage() { + if (rejoinExistingGameMessageBuilder_ == null) { + return rejoinExistingGameMessage_; + } else { + return rejoinExistingGameMessageBuilder_.getMessage(); + } + } + public Builder setRejoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage value) { + if (rejoinExistingGameMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rejoinExistingGameMessage_ = value; + onChanged(); + } else { + rejoinExistingGameMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + return this; + } + public Builder setRejoinExistingGameMessage( + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.Builder builderForValue) { + if (rejoinExistingGameMessageBuilder_ == null) { + rejoinExistingGameMessage_ = builderForValue.build(); + onChanged(); + } else { + rejoinExistingGameMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + return this; + } + public Builder mergeRejoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage value) { + if (rejoinExistingGameMessageBuilder_ == null) { + if (((bitField0_ & 0x00800000) == 0x00800000) && + rejoinExistingGameMessage_ != de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance()) { + rejoinExistingGameMessage_ = + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.newBuilder(rejoinExistingGameMessage_).mergeFrom(value).buildPartial(); + } else { + rejoinExistingGameMessage_ = value; + } + onChanged(); + } else { + rejoinExistingGameMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00800000; + return this; + } + public Builder clearRejoinExistingGameMessage() { + if (rejoinExistingGameMessageBuilder_ == null) { + rejoinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance(); + onChanged(); + } else { + rejoinExistingGameMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00800000); + return this; + } + public de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.Builder getRejoinExistingGameMessageBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getRejoinExistingGameMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessageOrBuilder getRejoinExistingGameMessageOrBuilder() { + if (rejoinExistingGameMessageBuilder_ != null) { + return rejoinExistingGameMessageBuilder_.getMessageOrBuilder(); + } else { + return rejoinExistingGameMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage, de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.Builder, de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessageOrBuilder> + getRejoinExistingGameMessageFieldBuilder() { + if (rejoinExistingGameMessageBuilder_ == null) { + rejoinExistingGameMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage, de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.Builder, de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessageOrBuilder>( + rejoinExistingGameMessage_, + getParentForChildren(), + isClean()); + rejoinExistingGameMessage_ = null; + } + return rejoinExistingGameMessageBuilder_; + } + + // optional .JoinGameAckMessage joinGameAckMessage = 25; + private de.pokerth.protocol.ProtoBuf.JoinGameAckMessage joinGameAckMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage, de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.Builder, de.pokerth.protocol.ProtoBuf.JoinGameAckMessageOrBuilder> joinGameAckMessageBuilder_; + public boolean hasJoinGameAckMessage() { + return ((bitField0_ & 0x01000000) == 0x01000000); + } + public de.pokerth.protocol.ProtoBuf.JoinGameAckMessage getJoinGameAckMessage() { + if (joinGameAckMessageBuilder_ == null) { + return joinGameAckMessage_; + } else { + return joinGameAckMessageBuilder_.getMessage(); + } + } + public Builder setJoinGameAckMessage(de.pokerth.protocol.ProtoBuf.JoinGameAckMessage value) { + if (joinGameAckMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + joinGameAckMessage_ = value; + onChanged(); + } else { + joinGameAckMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x01000000; + return this; + } + public Builder setJoinGameAckMessage( + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.Builder builderForValue) { + if (joinGameAckMessageBuilder_ == null) { + joinGameAckMessage_ = builderForValue.build(); + onChanged(); + } else { + joinGameAckMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x01000000; + return this; + } + public Builder mergeJoinGameAckMessage(de.pokerth.protocol.ProtoBuf.JoinGameAckMessage value) { + if (joinGameAckMessageBuilder_ == null) { + if (((bitField0_ & 0x01000000) == 0x01000000) && + joinGameAckMessage_ != de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance()) { + joinGameAckMessage_ = + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.newBuilder(joinGameAckMessage_).mergeFrom(value).buildPartial(); + } else { + joinGameAckMessage_ = value; + } + onChanged(); + } else { + joinGameAckMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x01000000; + return this; + } + public Builder clearJoinGameAckMessage() { + if (joinGameAckMessageBuilder_ == null) { + joinGameAckMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance(); + onChanged(); + } else { + joinGameAckMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x01000000); + return this; + } + public de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.Builder getJoinGameAckMessageBuilder() { + bitField0_ |= 0x01000000; + onChanged(); + return getJoinGameAckMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.JoinGameAckMessageOrBuilder getJoinGameAckMessageOrBuilder() { + if (joinGameAckMessageBuilder_ != null) { + return joinGameAckMessageBuilder_.getMessageOrBuilder(); + } else { + return joinGameAckMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage, de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.Builder, de.pokerth.protocol.ProtoBuf.JoinGameAckMessageOrBuilder> + getJoinGameAckMessageFieldBuilder() { + if (joinGameAckMessageBuilder_ == null) { + joinGameAckMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage, de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.Builder, de.pokerth.protocol.ProtoBuf.JoinGameAckMessageOrBuilder>( + joinGameAckMessage_, + getParentForChildren(), + isClean()); + joinGameAckMessage_ = null; + } + return joinGameAckMessageBuilder_; + } + + // optional .JoinGameFailedMessage joinGameFailedMessage = 26; + private de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage joinGameFailedMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage, de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.Builder, de.pokerth.protocol.ProtoBuf.JoinGameFailedMessageOrBuilder> joinGameFailedMessageBuilder_; + public boolean hasJoinGameFailedMessage() { + return ((bitField0_ & 0x02000000) == 0x02000000); + } + public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage getJoinGameFailedMessage() { + if (joinGameFailedMessageBuilder_ == null) { + return joinGameFailedMessage_; + } else { + return joinGameFailedMessageBuilder_.getMessage(); + } + } + public Builder setJoinGameFailedMessage(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage value) { + if (joinGameFailedMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + joinGameFailedMessage_ = value; + onChanged(); + } else { + joinGameFailedMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x02000000; + return this; + } + public Builder setJoinGameFailedMessage( + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.Builder builderForValue) { + if (joinGameFailedMessageBuilder_ == null) { + joinGameFailedMessage_ = builderForValue.build(); + onChanged(); + } else { + joinGameFailedMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x02000000; + return this; + } + public Builder mergeJoinGameFailedMessage(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage value) { + if (joinGameFailedMessageBuilder_ == null) { + if (((bitField0_ & 0x02000000) == 0x02000000) && + joinGameFailedMessage_ != de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance()) { + joinGameFailedMessage_ = + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.newBuilder(joinGameFailedMessage_).mergeFrom(value).buildPartial(); + } else { + joinGameFailedMessage_ = value; + } + onChanged(); + } else { + joinGameFailedMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x02000000; + return this; + } + public Builder clearJoinGameFailedMessage() { + if (joinGameFailedMessageBuilder_ == null) { + joinGameFailedMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance(); + onChanged(); + } else { + joinGameFailedMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x02000000); + return this; + } + public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.Builder getJoinGameFailedMessageBuilder() { + bitField0_ |= 0x02000000; + onChanged(); + return getJoinGameFailedMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessageOrBuilder getJoinGameFailedMessageOrBuilder() { + if (joinGameFailedMessageBuilder_ != null) { + return joinGameFailedMessageBuilder_.getMessageOrBuilder(); + } else { + return joinGameFailedMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage, de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.Builder, de.pokerth.protocol.ProtoBuf.JoinGameFailedMessageOrBuilder> + getJoinGameFailedMessageFieldBuilder() { + if (joinGameFailedMessageBuilder_ == null) { + joinGameFailedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage, de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.Builder, de.pokerth.protocol.ProtoBuf.JoinGameFailedMessageOrBuilder>( + joinGameFailedMessage_, + getParentForChildren(), + isClean()); + joinGameFailedMessage_ = null; + } + return joinGameFailedMessageBuilder_; + } + + // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; + private de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage gamePlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage, de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.Builder, de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessageOrBuilder> gamePlayerJoinedMessageBuilder_; + public boolean hasGamePlayerJoinedMessage() { + return ((bitField0_ & 0x04000000) == 0x04000000); + } + public de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage getGamePlayerJoinedMessage() { + if (gamePlayerJoinedMessageBuilder_ == null) { + return gamePlayerJoinedMessage_; + } else { + return gamePlayerJoinedMessageBuilder_.getMessage(); + } + } + public Builder setGamePlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage value) { + if (gamePlayerJoinedMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gamePlayerJoinedMessage_ = value; + onChanged(); + } else { + gamePlayerJoinedMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x04000000; + return this; + } + public Builder setGamePlayerJoinedMessage( + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.Builder builderForValue) { + if (gamePlayerJoinedMessageBuilder_ == null) { + gamePlayerJoinedMessage_ = builderForValue.build(); + onChanged(); + } else { + gamePlayerJoinedMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x04000000; + return this; + } + public Builder mergeGamePlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage value) { + if (gamePlayerJoinedMessageBuilder_ == null) { + if (((bitField0_ & 0x04000000) == 0x04000000) && + gamePlayerJoinedMessage_ != de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance()) { + gamePlayerJoinedMessage_ = + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.newBuilder(gamePlayerJoinedMessage_).mergeFrom(value).buildPartial(); + } else { + gamePlayerJoinedMessage_ = value; + } + onChanged(); + } else { + gamePlayerJoinedMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x04000000; + return this; + } + public Builder clearGamePlayerJoinedMessage() { + if (gamePlayerJoinedMessageBuilder_ == null) { + gamePlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance(); + onChanged(); + } else { + gamePlayerJoinedMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x04000000); + return this; + } + public de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.Builder getGamePlayerJoinedMessageBuilder() { + bitField0_ |= 0x04000000; + onChanged(); + return getGamePlayerJoinedMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessageOrBuilder getGamePlayerJoinedMessageOrBuilder() { + if (gamePlayerJoinedMessageBuilder_ != null) { + return gamePlayerJoinedMessageBuilder_.getMessageOrBuilder(); + } else { + return gamePlayerJoinedMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage, de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.Builder, de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessageOrBuilder> + getGamePlayerJoinedMessageFieldBuilder() { + if (gamePlayerJoinedMessageBuilder_ == null) { + gamePlayerJoinedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage, de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.Builder, de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessageOrBuilder>( + gamePlayerJoinedMessage_, + getParentForChildren(), + isClean()); + gamePlayerJoinedMessage_ = null; + } + return gamePlayerJoinedMessageBuilder_; + } + + // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; + private de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage gamePlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage, de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.Builder, de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessageOrBuilder> gamePlayerLeftMessageBuilder_; + public boolean hasGamePlayerLeftMessage() { + return ((bitField0_ & 0x08000000) == 0x08000000); + } + public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage getGamePlayerLeftMessage() { + if (gamePlayerLeftMessageBuilder_ == null) { + return gamePlayerLeftMessage_; + } else { + return gamePlayerLeftMessageBuilder_.getMessage(); + } + } + public Builder setGamePlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage value) { + if (gamePlayerLeftMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gamePlayerLeftMessage_ = value; + onChanged(); + } else { + gamePlayerLeftMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x08000000; + return this; + } + public Builder setGamePlayerLeftMessage( + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.Builder builderForValue) { + if (gamePlayerLeftMessageBuilder_ == null) { + gamePlayerLeftMessage_ = builderForValue.build(); + onChanged(); + } else { + gamePlayerLeftMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x08000000; + return this; + } + public Builder mergeGamePlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage value) { + if (gamePlayerLeftMessageBuilder_ == null) { + if (((bitField0_ & 0x08000000) == 0x08000000) && + gamePlayerLeftMessage_ != de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance()) { + gamePlayerLeftMessage_ = + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.newBuilder(gamePlayerLeftMessage_).mergeFrom(value).buildPartial(); + } else { + gamePlayerLeftMessage_ = value; + } + onChanged(); + } else { + gamePlayerLeftMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x08000000; + return this; + } + public Builder clearGamePlayerLeftMessage() { + if (gamePlayerLeftMessageBuilder_ == null) { + gamePlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance(); + onChanged(); + } else { + gamePlayerLeftMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x08000000); + return this; + } + public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.Builder getGamePlayerLeftMessageBuilder() { + bitField0_ |= 0x08000000; + onChanged(); + return getGamePlayerLeftMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessageOrBuilder getGamePlayerLeftMessageOrBuilder() { + if (gamePlayerLeftMessageBuilder_ != null) { + return gamePlayerLeftMessageBuilder_.getMessageOrBuilder(); + } else { + return gamePlayerLeftMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage, de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.Builder, de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessageOrBuilder> + getGamePlayerLeftMessageFieldBuilder() { + if (gamePlayerLeftMessageBuilder_ == null) { + gamePlayerLeftMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage, de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.Builder, de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessageOrBuilder>( + gamePlayerLeftMessage_, + getParentForChildren(), + isClean()); + gamePlayerLeftMessage_ = null; + } + return gamePlayerLeftMessageBuilder_; + } + + // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; + private de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage gameAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage, de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.Builder, de.pokerth.protocol.ProtoBuf.GameAdminChangedMessageOrBuilder> gameAdminChangedMessageBuilder_; + public boolean hasGameAdminChangedMessage() { + return ((bitField0_ & 0x10000000) == 0x10000000); + } + public de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage getGameAdminChangedMessage() { + if (gameAdminChangedMessageBuilder_ == null) { + return gameAdminChangedMessage_; + } else { + return gameAdminChangedMessageBuilder_.getMessage(); + } + } + public Builder setGameAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage value) { + if (gameAdminChangedMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gameAdminChangedMessage_ = value; + onChanged(); + } else { + gameAdminChangedMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x10000000; + return this; + } + public Builder setGameAdminChangedMessage( + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.Builder builderForValue) { + if (gameAdminChangedMessageBuilder_ == null) { + gameAdminChangedMessage_ = builderForValue.build(); + onChanged(); + } else { + gameAdminChangedMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x10000000; + return this; + } + public Builder mergeGameAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage value) { + if (gameAdminChangedMessageBuilder_ == null) { + if (((bitField0_ & 0x10000000) == 0x10000000) && + gameAdminChangedMessage_ != de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance()) { + gameAdminChangedMessage_ = + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.newBuilder(gameAdminChangedMessage_).mergeFrom(value).buildPartial(); + } else { + gameAdminChangedMessage_ = value; + } + onChanged(); + } else { + gameAdminChangedMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x10000000; + return this; + } + public Builder clearGameAdminChangedMessage() { + if (gameAdminChangedMessageBuilder_ == null) { + gameAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance(); + onChanged(); + } else { + gameAdminChangedMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x10000000); + return this; + } + public de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.Builder getGameAdminChangedMessageBuilder() { + bitField0_ |= 0x10000000; + onChanged(); + return getGameAdminChangedMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.GameAdminChangedMessageOrBuilder getGameAdminChangedMessageOrBuilder() { + if (gameAdminChangedMessageBuilder_ != null) { + return gameAdminChangedMessageBuilder_.getMessageOrBuilder(); + } else { + return gameAdminChangedMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage, de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.Builder, de.pokerth.protocol.ProtoBuf.GameAdminChangedMessageOrBuilder> + getGameAdminChangedMessageFieldBuilder() { + if (gameAdminChangedMessageBuilder_ == null) { + gameAdminChangedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage, de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.Builder, de.pokerth.protocol.ProtoBuf.GameAdminChangedMessageOrBuilder>( + gameAdminChangedMessage_, + getParentForChildren(), + isClean()); + gameAdminChangedMessage_ = null; + } + return gameAdminChangedMessageBuilder_; + } + + // optional .RemovedFromGameMessage removedFromGameMessage = 30; + private de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage removedFromGameMessage_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage, de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.Builder, de.pokerth.protocol.ProtoBuf.RemovedFromGameMessageOrBuilder> removedFromGameMessageBuilder_; + public boolean hasRemovedFromGameMessage() { + return ((bitField0_ & 0x20000000) == 0x20000000); + } + public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage getRemovedFromGameMessage() { + if (removedFromGameMessageBuilder_ == null) { + return removedFromGameMessage_; + } else { + return removedFromGameMessageBuilder_.getMessage(); + } + } + public Builder setRemovedFromGameMessage(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage value) { + if (removedFromGameMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + removedFromGameMessage_ = value; + onChanged(); + } else { + removedFromGameMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x20000000; + return this; + } + public Builder setRemovedFromGameMessage( + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.Builder builderForValue) { + if (removedFromGameMessageBuilder_ == null) { + removedFromGameMessage_ = builderForValue.build(); + onChanged(); + } else { + removedFromGameMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x20000000; + return this; + } + public Builder mergeRemovedFromGameMessage(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage value) { + if (removedFromGameMessageBuilder_ == null) { + if (((bitField0_ & 0x20000000) == 0x20000000) && + removedFromGameMessage_ != de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance()) { + removedFromGameMessage_ = + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.newBuilder(removedFromGameMessage_).mergeFrom(value).buildPartial(); + } else { + removedFromGameMessage_ = value; + } + onChanged(); + } else { + removedFromGameMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x20000000; + return this; + } + public Builder clearRemovedFromGameMessage() { + if (removedFromGameMessageBuilder_ == null) { + removedFromGameMessage_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance(); + onChanged(); + } else { + removedFromGameMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x20000000); + return this; + } + public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.Builder getRemovedFromGameMessageBuilder() { + bitField0_ |= 0x20000000; + onChanged(); + return getRemovedFromGameMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessageOrBuilder getRemovedFromGameMessageOrBuilder() { + if (removedFromGameMessageBuilder_ != null) { + return removedFromGameMessageBuilder_.getMessageOrBuilder(); + } else { + return removedFromGameMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage, de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.Builder, de.pokerth.protocol.ProtoBuf.RemovedFromGameMessageOrBuilder> + getRemovedFromGameMessageFieldBuilder() { + if (removedFromGameMessageBuilder_ == null) { + removedFromGameMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage, de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.Builder, de.pokerth.protocol.ProtoBuf.RemovedFromGameMessageOrBuilder>( + removedFromGameMessage_, + getParentForChildren(), + isClean()); + removedFromGameMessage_ = null; + } + return removedFromGameMessageBuilder_; + } + + // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; + private de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage kickPlayerRequestMessage_ = de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage, de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessageOrBuilder> kickPlayerRequestMessageBuilder_; + public boolean hasKickPlayerRequestMessage() { + return ((bitField0_ & 0x40000000) == 0x40000000); + } + public de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage getKickPlayerRequestMessage() { + if (kickPlayerRequestMessageBuilder_ == null) { + return kickPlayerRequestMessage_; + } else { + return kickPlayerRequestMessageBuilder_.getMessage(); + } + } + public Builder setKickPlayerRequestMessage(de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage value) { + if (kickPlayerRequestMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kickPlayerRequestMessage_ = value; + onChanged(); + } else { + kickPlayerRequestMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x40000000; + return this; + } + public Builder setKickPlayerRequestMessage( + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.Builder builderForValue) { + if (kickPlayerRequestMessageBuilder_ == null) { + kickPlayerRequestMessage_ = builderForValue.build(); + onChanged(); + } else { + kickPlayerRequestMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x40000000; + return this; + } + public Builder mergeKickPlayerRequestMessage(de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage value) { + if (kickPlayerRequestMessageBuilder_ == null) { + if (((bitField0_ & 0x40000000) == 0x40000000) && + kickPlayerRequestMessage_ != de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance()) { + kickPlayerRequestMessage_ = + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.newBuilder(kickPlayerRequestMessage_).mergeFrom(value).buildPartial(); + } else { + kickPlayerRequestMessage_ = value; + } + onChanged(); + } else { + kickPlayerRequestMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x40000000; + return this; + } + public Builder clearKickPlayerRequestMessage() { + if (kickPlayerRequestMessageBuilder_ == null) { + kickPlayerRequestMessage_ = de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance(); + onChanged(); + } else { + kickPlayerRequestMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x40000000); + return this; + } + public de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.Builder getKickPlayerRequestMessageBuilder() { + bitField0_ |= 0x40000000; + onChanged(); + return getKickPlayerRequestMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessageOrBuilder getKickPlayerRequestMessageOrBuilder() { + if (kickPlayerRequestMessageBuilder_ != null) { + return kickPlayerRequestMessageBuilder_.getMessageOrBuilder(); + } else { + return kickPlayerRequestMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage, de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessageOrBuilder> + getKickPlayerRequestMessageFieldBuilder() { + if (kickPlayerRequestMessageBuilder_ == null) { + kickPlayerRequestMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage, de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessageOrBuilder>( + kickPlayerRequestMessage_, + getParentForChildren(), + isClean()); + kickPlayerRequestMessage_ = null; + } + return kickPlayerRequestMessageBuilder_; + } + + // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; + private de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage leaveGameRequestMessage_ = de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage, de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessageOrBuilder> leaveGameRequestMessageBuilder_; + public boolean hasLeaveGameRequestMessage() { + return ((bitField0_ & 0x80000000) == 0x80000000); + } + public de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage getLeaveGameRequestMessage() { + if (leaveGameRequestMessageBuilder_ == null) { + return leaveGameRequestMessage_; + } else { + return leaveGameRequestMessageBuilder_.getMessage(); + } + } + public Builder setLeaveGameRequestMessage(de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage value) { + if (leaveGameRequestMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + leaveGameRequestMessage_ = value; + onChanged(); + } else { + leaveGameRequestMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x80000000; + return this; + } + public Builder setLeaveGameRequestMessage( + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.Builder builderForValue) { + if (leaveGameRequestMessageBuilder_ == null) { + leaveGameRequestMessage_ = builderForValue.build(); + onChanged(); + } else { + leaveGameRequestMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x80000000; + return this; + } + public Builder mergeLeaveGameRequestMessage(de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage value) { + if (leaveGameRequestMessageBuilder_ == null) { + if (((bitField0_ & 0x80000000) == 0x80000000) && + leaveGameRequestMessage_ != de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance()) { + leaveGameRequestMessage_ = + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.newBuilder(leaveGameRequestMessage_).mergeFrom(value).buildPartial(); + } else { + leaveGameRequestMessage_ = value; + } + onChanged(); + } else { + leaveGameRequestMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x80000000; + return this; + } + public Builder clearLeaveGameRequestMessage() { + if (leaveGameRequestMessageBuilder_ == null) { + leaveGameRequestMessage_ = de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance(); + onChanged(); + } else { + leaveGameRequestMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x80000000); + return this; + } + public de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.Builder getLeaveGameRequestMessageBuilder() { + bitField0_ |= 0x80000000; + onChanged(); + return getLeaveGameRequestMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessageOrBuilder getLeaveGameRequestMessageOrBuilder() { + if (leaveGameRequestMessageBuilder_ != null) { + return leaveGameRequestMessageBuilder_.getMessageOrBuilder(); + } else { + return leaveGameRequestMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage, de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessageOrBuilder> + getLeaveGameRequestMessageFieldBuilder() { + if (leaveGameRequestMessageBuilder_ == null) { + leaveGameRequestMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage, de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessageOrBuilder>( + leaveGameRequestMessage_, + getParentForChildren(), + isClean()); + leaveGameRequestMessage_ = null; + } + return leaveGameRequestMessageBuilder_; + } + + // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; + private de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage invitePlayerToGameMessage_ = de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage, de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.Builder, de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessageOrBuilder> invitePlayerToGameMessageBuilder_; + public boolean hasInvitePlayerToGameMessage() { + return ((bitField1_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage getInvitePlayerToGameMessage() { + if (invitePlayerToGameMessageBuilder_ == null) { + return invitePlayerToGameMessage_; + } else { + return invitePlayerToGameMessageBuilder_.getMessage(); + } + } + public Builder setInvitePlayerToGameMessage(de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage value) { + if (invitePlayerToGameMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + invitePlayerToGameMessage_ = value; + onChanged(); + } else { + invitePlayerToGameMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00000001; + return this; + } + public Builder setInvitePlayerToGameMessage( + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.Builder builderForValue) { + if (invitePlayerToGameMessageBuilder_ == null) { + invitePlayerToGameMessage_ = builderForValue.build(); + onChanged(); + } else { + invitePlayerToGameMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000001; + return this; + } + public Builder mergeInvitePlayerToGameMessage(de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage value) { + if (invitePlayerToGameMessageBuilder_ == null) { + if (((bitField1_ & 0x00000001) == 0x00000001) && + invitePlayerToGameMessage_ != de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance()) { + invitePlayerToGameMessage_ = + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.newBuilder(invitePlayerToGameMessage_).mergeFrom(value).buildPartial(); + } else { + invitePlayerToGameMessage_ = value; + } + onChanged(); + } else { + invitePlayerToGameMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00000001; + return this; + } + public Builder clearInvitePlayerToGameMessage() { + if (invitePlayerToGameMessageBuilder_ == null) { + invitePlayerToGameMessage_ = de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance(); + onChanged(); + } else { + invitePlayerToGameMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000001); + return this; + } + public de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.Builder getInvitePlayerToGameMessageBuilder() { + bitField1_ |= 0x00000001; + onChanged(); + return getInvitePlayerToGameMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessageOrBuilder getInvitePlayerToGameMessageOrBuilder() { + if (invitePlayerToGameMessageBuilder_ != null) { + return invitePlayerToGameMessageBuilder_.getMessageOrBuilder(); + } else { + return invitePlayerToGameMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage, de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.Builder, de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessageOrBuilder> + getInvitePlayerToGameMessageFieldBuilder() { + if (invitePlayerToGameMessageBuilder_ == null) { + invitePlayerToGameMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage, de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.Builder, de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessageOrBuilder>( + invitePlayerToGameMessage_, + getParentForChildren(), + isClean()); + invitePlayerToGameMessage_ = null; + } + return invitePlayerToGameMessageBuilder_; + } + + // optional .InviteNotifyMessage inviteNotifyMessage = 34; + private de.pokerth.protocol.ProtoBuf.InviteNotifyMessage inviteNotifyMessage_ = de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage, de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.Builder, de.pokerth.protocol.ProtoBuf.InviteNotifyMessageOrBuilder> inviteNotifyMessageBuilder_; + public boolean hasInviteNotifyMessage() { + return ((bitField1_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.InviteNotifyMessage getInviteNotifyMessage() { + if (inviteNotifyMessageBuilder_ == null) { + return inviteNotifyMessage_; + } else { + return inviteNotifyMessageBuilder_.getMessage(); + } + } + public Builder setInviteNotifyMessage(de.pokerth.protocol.ProtoBuf.InviteNotifyMessage value) { + if (inviteNotifyMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inviteNotifyMessage_ = value; + onChanged(); + } else { + inviteNotifyMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00000002; + return this; + } + public Builder setInviteNotifyMessage( + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.Builder builderForValue) { + if (inviteNotifyMessageBuilder_ == null) { + inviteNotifyMessage_ = builderForValue.build(); + onChanged(); + } else { + inviteNotifyMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000002; + return this; + } + public Builder mergeInviteNotifyMessage(de.pokerth.protocol.ProtoBuf.InviteNotifyMessage value) { + if (inviteNotifyMessageBuilder_ == null) { + if (((bitField1_ & 0x00000002) == 0x00000002) && + inviteNotifyMessage_ != de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance()) { + inviteNotifyMessage_ = + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.newBuilder(inviteNotifyMessage_).mergeFrom(value).buildPartial(); + } else { + inviteNotifyMessage_ = value; + } + onChanged(); + } else { + inviteNotifyMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00000002; + return this; + } + public Builder clearInviteNotifyMessage() { + if (inviteNotifyMessageBuilder_ == null) { + inviteNotifyMessage_ = de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance(); + onChanged(); + } else { + inviteNotifyMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000002); + return this; + } + public de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.Builder getInviteNotifyMessageBuilder() { + bitField1_ |= 0x00000002; + onChanged(); + return getInviteNotifyMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.InviteNotifyMessageOrBuilder getInviteNotifyMessageOrBuilder() { + if (inviteNotifyMessageBuilder_ != null) { + return inviteNotifyMessageBuilder_.getMessageOrBuilder(); + } else { + return inviteNotifyMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage, de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.Builder, de.pokerth.protocol.ProtoBuf.InviteNotifyMessageOrBuilder> + getInviteNotifyMessageFieldBuilder() { + if (inviteNotifyMessageBuilder_ == null) { + inviteNotifyMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage, de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.Builder, de.pokerth.protocol.ProtoBuf.InviteNotifyMessageOrBuilder>( + inviteNotifyMessage_, + getParentForChildren(), + isClean()); + inviteNotifyMessage_ = null; + } + return inviteNotifyMessageBuilder_; + } + + // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; + private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage rejectGameInvitationMessage_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage, de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.Builder, de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessageOrBuilder> rejectGameInvitationMessageBuilder_; + public boolean hasRejectGameInvitationMessage() { + return ((bitField1_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage getRejectGameInvitationMessage() { + if (rejectGameInvitationMessageBuilder_ == null) { + return rejectGameInvitationMessage_; + } else { + return rejectGameInvitationMessageBuilder_.getMessage(); + } + } + public Builder setRejectGameInvitationMessage(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage value) { + if (rejectGameInvitationMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rejectGameInvitationMessage_ = value; + onChanged(); + } else { + rejectGameInvitationMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00000004; + return this; + } + public Builder setRejectGameInvitationMessage( + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.Builder builderForValue) { + if (rejectGameInvitationMessageBuilder_ == null) { + rejectGameInvitationMessage_ = builderForValue.build(); + onChanged(); + } else { + rejectGameInvitationMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000004; + return this; + } + public Builder mergeRejectGameInvitationMessage(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage value) { + if (rejectGameInvitationMessageBuilder_ == null) { + if (((bitField1_ & 0x00000004) == 0x00000004) && + rejectGameInvitationMessage_ != de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance()) { + rejectGameInvitationMessage_ = + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.newBuilder(rejectGameInvitationMessage_).mergeFrom(value).buildPartial(); + } else { + rejectGameInvitationMessage_ = value; + } + onChanged(); + } else { + rejectGameInvitationMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00000004; + return this; + } + public Builder clearRejectGameInvitationMessage() { + if (rejectGameInvitationMessageBuilder_ == null) { + rejectGameInvitationMessage_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance(); + onChanged(); + } else { + rejectGameInvitationMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000004); + return this; + } + public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.Builder getRejectGameInvitationMessageBuilder() { + bitField1_ |= 0x00000004; + onChanged(); + return getRejectGameInvitationMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessageOrBuilder getRejectGameInvitationMessageOrBuilder() { + if (rejectGameInvitationMessageBuilder_ != null) { + return rejectGameInvitationMessageBuilder_.getMessageOrBuilder(); + } else { + return rejectGameInvitationMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage, de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.Builder, de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessageOrBuilder> + getRejectGameInvitationMessageFieldBuilder() { + if (rejectGameInvitationMessageBuilder_ == null) { + rejectGameInvitationMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage, de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.Builder, de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessageOrBuilder>( + rejectGameInvitationMessage_, + getParentForChildren(), + isClean()); + rejectGameInvitationMessage_ = null; + } + return rejectGameInvitationMessageBuilder_; + } + + // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; + private de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage rejectInvNotifyMessage_ = de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage, de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.Builder, de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessageOrBuilder> rejectInvNotifyMessageBuilder_; + public boolean hasRejectInvNotifyMessage() { + return ((bitField1_ & 0x00000008) == 0x00000008); + } + public de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage getRejectInvNotifyMessage() { + if (rejectInvNotifyMessageBuilder_ == null) { + return rejectInvNotifyMessage_; + } else { + return rejectInvNotifyMessageBuilder_.getMessage(); + } + } + public Builder setRejectInvNotifyMessage(de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage value) { + if (rejectInvNotifyMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rejectInvNotifyMessage_ = value; + onChanged(); + } else { + rejectInvNotifyMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00000008; + return this; + } + public Builder setRejectInvNotifyMessage( + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.Builder builderForValue) { + if (rejectInvNotifyMessageBuilder_ == null) { + rejectInvNotifyMessage_ = builderForValue.build(); + onChanged(); + } else { + rejectInvNotifyMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000008; + return this; + } + public Builder mergeRejectInvNotifyMessage(de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage value) { + if (rejectInvNotifyMessageBuilder_ == null) { + if (((bitField1_ & 0x00000008) == 0x00000008) && + rejectInvNotifyMessage_ != de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance()) { + rejectInvNotifyMessage_ = + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.newBuilder(rejectInvNotifyMessage_).mergeFrom(value).buildPartial(); + } else { + rejectInvNotifyMessage_ = value; + } + onChanged(); + } else { + rejectInvNotifyMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00000008; + return this; + } + public Builder clearRejectInvNotifyMessage() { + if (rejectInvNotifyMessageBuilder_ == null) { + rejectInvNotifyMessage_ = de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance(); + onChanged(); + } else { + rejectInvNotifyMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000008); + return this; + } + public de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.Builder getRejectInvNotifyMessageBuilder() { + bitField1_ |= 0x00000008; + onChanged(); + return getRejectInvNotifyMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessageOrBuilder getRejectInvNotifyMessageOrBuilder() { + if (rejectInvNotifyMessageBuilder_ != null) { + return rejectInvNotifyMessageBuilder_.getMessageOrBuilder(); + } else { + return rejectInvNotifyMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage, de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.Builder, de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessageOrBuilder> + getRejectInvNotifyMessageFieldBuilder() { + if (rejectInvNotifyMessageBuilder_ == null) { + rejectInvNotifyMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage, de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.Builder, de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessageOrBuilder>( + rejectInvNotifyMessage_, + getParentForChildren(), + isClean()); + rejectInvNotifyMessage_ = null; + } + return rejectInvNotifyMessageBuilder_; + } + + // optional .StartEventMessage startEventMessage = 37; + private de.pokerth.protocol.ProtoBuf.StartEventMessage startEventMessage_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.StartEventMessage, de.pokerth.protocol.ProtoBuf.StartEventMessage.Builder, de.pokerth.protocol.ProtoBuf.StartEventMessageOrBuilder> startEventMessageBuilder_; + public boolean hasStartEventMessage() { + return ((bitField1_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.StartEventMessage getStartEventMessage() { + if (startEventMessageBuilder_ == null) { + return startEventMessage_; + } else { + return startEventMessageBuilder_.getMessage(); + } + } + public Builder setStartEventMessage(de.pokerth.protocol.ProtoBuf.StartEventMessage value) { + if (startEventMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startEventMessage_ = value; + onChanged(); + } else { + startEventMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00000010; + return this; + } + public Builder setStartEventMessage( + de.pokerth.protocol.ProtoBuf.StartEventMessage.Builder builderForValue) { + if (startEventMessageBuilder_ == null) { + startEventMessage_ = builderForValue.build(); + onChanged(); + } else { + startEventMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000010; + return this; + } + public Builder mergeStartEventMessage(de.pokerth.protocol.ProtoBuf.StartEventMessage value) { + if (startEventMessageBuilder_ == null) { + if (((bitField1_ & 0x00000010) == 0x00000010) && + startEventMessage_ != de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance()) { + startEventMessage_ = + de.pokerth.protocol.ProtoBuf.StartEventMessage.newBuilder(startEventMessage_).mergeFrom(value).buildPartial(); + } else { + startEventMessage_ = value; + } + onChanged(); + } else { + startEventMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00000010; + return this; + } + public Builder clearStartEventMessage() { + if (startEventMessageBuilder_ == null) { + startEventMessage_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance(); + onChanged(); + } else { + startEventMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000010); + return this; + } + public de.pokerth.protocol.ProtoBuf.StartEventMessage.Builder getStartEventMessageBuilder() { + bitField1_ |= 0x00000010; + onChanged(); + return getStartEventMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.StartEventMessageOrBuilder getStartEventMessageOrBuilder() { + if (startEventMessageBuilder_ != null) { + return startEventMessageBuilder_.getMessageOrBuilder(); + } else { + return startEventMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.StartEventMessage, de.pokerth.protocol.ProtoBuf.StartEventMessage.Builder, de.pokerth.protocol.ProtoBuf.StartEventMessageOrBuilder> + getStartEventMessageFieldBuilder() { + if (startEventMessageBuilder_ == null) { + startEventMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.StartEventMessage, de.pokerth.protocol.ProtoBuf.StartEventMessage.Builder, de.pokerth.protocol.ProtoBuf.StartEventMessageOrBuilder>( + startEventMessage_, + getParentForChildren(), + isClean()); + startEventMessage_ = null; + } + return startEventMessageBuilder_; + } + + // optional .StartEventAckMessage startEventAckMessage = 38; + private de.pokerth.protocol.ProtoBuf.StartEventAckMessage startEventAckMessage_ = de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.StartEventAckMessage, de.pokerth.protocol.ProtoBuf.StartEventAckMessage.Builder, de.pokerth.protocol.ProtoBuf.StartEventAckMessageOrBuilder> startEventAckMessageBuilder_; + public boolean hasStartEventAckMessage() { + return ((bitField1_ & 0x00000020) == 0x00000020); + } + public de.pokerth.protocol.ProtoBuf.StartEventAckMessage getStartEventAckMessage() { + if (startEventAckMessageBuilder_ == null) { + return startEventAckMessage_; + } else { + return startEventAckMessageBuilder_.getMessage(); + } + } + public Builder setStartEventAckMessage(de.pokerth.protocol.ProtoBuf.StartEventAckMessage value) { + if (startEventAckMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startEventAckMessage_ = value; + onChanged(); + } else { + startEventAckMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00000020; + return this; + } + public Builder setStartEventAckMessage( + de.pokerth.protocol.ProtoBuf.StartEventAckMessage.Builder builderForValue) { + if (startEventAckMessageBuilder_ == null) { + startEventAckMessage_ = builderForValue.build(); + onChanged(); + } else { + startEventAckMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000020; + return this; + } + public Builder mergeStartEventAckMessage(de.pokerth.protocol.ProtoBuf.StartEventAckMessage value) { + if (startEventAckMessageBuilder_ == null) { + if (((bitField1_ & 0x00000020) == 0x00000020) && + startEventAckMessage_ != de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance()) { + startEventAckMessage_ = + de.pokerth.protocol.ProtoBuf.StartEventAckMessage.newBuilder(startEventAckMessage_).mergeFrom(value).buildPartial(); + } else { + startEventAckMessage_ = value; + } + onChanged(); + } else { + startEventAckMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00000020; + return this; + } + public Builder clearStartEventAckMessage() { + if (startEventAckMessageBuilder_ == null) { + startEventAckMessage_ = de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance(); + onChanged(); + } else { + startEventAckMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000020); + return this; + } + public de.pokerth.protocol.ProtoBuf.StartEventAckMessage.Builder getStartEventAckMessageBuilder() { + bitField1_ |= 0x00000020; + onChanged(); + return getStartEventAckMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.StartEventAckMessageOrBuilder getStartEventAckMessageOrBuilder() { + if (startEventAckMessageBuilder_ != null) { + return startEventAckMessageBuilder_.getMessageOrBuilder(); + } else { + return startEventAckMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.StartEventAckMessage, de.pokerth.protocol.ProtoBuf.StartEventAckMessage.Builder, de.pokerth.protocol.ProtoBuf.StartEventAckMessageOrBuilder> + getStartEventAckMessageFieldBuilder() { + if (startEventAckMessageBuilder_ == null) { + startEventAckMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.StartEventAckMessage, de.pokerth.protocol.ProtoBuf.StartEventAckMessage.Builder, de.pokerth.protocol.ProtoBuf.StartEventAckMessageOrBuilder>( + startEventAckMessage_, + getParentForChildren(), + isClean()); + startEventAckMessage_ = null; + } + return startEventAckMessageBuilder_; + } + + // optional .GameStartInitialMessage gameStartInitialMessage = 39; + private de.pokerth.protocol.ProtoBuf.GameStartInitialMessage gameStartInitialMessage_ = de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage, de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.Builder, de.pokerth.protocol.ProtoBuf.GameStartInitialMessageOrBuilder> gameStartInitialMessageBuilder_; + public boolean hasGameStartInitialMessage() { + return ((bitField1_ & 0x00000040) == 0x00000040); + } + public de.pokerth.protocol.ProtoBuf.GameStartInitialMessage getGameStartInitialMessage() { + if (gameStartInitialMessageBuilder_ == null) { + return gameStartInitialMessage_; + } else { + return gameStartInitialMessageBuilder_.getMessage(); + } + } + public Builder setGameStartInitialMessage(de.pokerth.protocol.ProtoBuf.GameStartInitialMessage value) { + if (gameStartInitialMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gameStartInitialMessage_ = value; + onChanged(); + } else { + gameStartInitialMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00000040; + return this; + } + public Builder setGameStartInitialMessage( + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.Builder builderForValue) { + if (gameStartInitialMessageBuilder_ == null) { + gameStartInitialMessage_ = builderForValue.build(); + onChanged(); + } else { + gameStartInitialMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000040; + return this; + } + public Builder mergeGameStartInitialMessage(de.pokerth.protocol.ProtoBuf.GameStartInitialMessage value) { + if (gameStartInitialMessageBuilder_ == null) { + if (((bitField1_ & 0x00000040) == 0x00000040) && + gameStartInitialMessage_ != de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance()) { + gameStartInitialMessage_ = + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.newBuilder(gameStartInitialMessage_).mergeFrom(value).buildPartial(); + } else { + gameStartInitialMessage_ = value; + } + onChanged(); + } else { + gameStartInitialMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00000040; + return this; + } + public Builder clearGameStartInitialMessage() { + if (gameStartInitialMessageBuilder_ == null) { + gameStartInitialMessage_ = de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance(); + onChanged(); + } else { + gameStartInitialMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000040); + return this; + } + public de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.Builder getGameStartInitialMessageBuilder() { + bitField1_ |= 0x00000040; + onChanged(); + return getGameStartInitialMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.GameStartInitialMessageOrBuilder getGameStartInitialMessageOrBuilder() { + if (gameStartInitialMessageBuilder_ != null) { + return gameStartInitialMessageBuilder_.getMessageOrBuilder(); + } else { + return gameStartInitialMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage, de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.Builder, de.pokerth.protocol.ProtoBuf.GameStartInitialMessageOrBuilder> + getGameStartInitialMessageFieldBuilder() { + if (gameStartInitialMessageBuilder_ == null) { + gameStartInitialMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage, de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.Builder, de.pokerth.protocol.ProtoBuf.GameStartInitialMessageOrBuilder>( + gameStartInitialMessage_, + getParentForChildren(), + isClean()); + gameStartInitialMessage_ = null; + } + return gameStartInitialMessageBuilder_; + } + + // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; + private de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage gameStartRejoinMessage_ = de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.Builder, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessageOrBuilder> gameStartRejoinMessageBuilder_; + public boolean hasGameStartRejoinMessage() { + return ((bitField1_ & 0x00000080) == 0x00000080); + } + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage getGameStartRejoinMessage() { + if (gameStartRejoinMessageBuilder_ == null) { + return gameStartRejoinMessage_; + } else { + return gameStartRejoinMessageBuilder_.getMessage(); + } + } + public Builder setGameStartRejoinMessage(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage value) { + if (gameStartRejoinMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gameStartRejoinMessage_ = value; + onChanged(); + } else { + gameStartRejoinMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00000080; + return this; + } + public Builder setGameStartRejoinMessage( + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.Builder builderForValue) { + if (gameStartRejoinMessageBuilder_ == null) { + gameStartRejoinMessage_ = builderForValue.build(); + onChanged(); + } else { + gameStartRejoinMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000080; + return this; + } + public Builder mergeGameStartRejoinMessage(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage value) { + if (gameStartRejoinMessageBuilder_ == null) { + if (((bitField1_ & 0x00000080) == 0x00000080) && + gameStartRejoinMessage_ != de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance()) { + gameStartRejoinMessage_ = + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.newBuilder(gameStartRejoinMessage_).mergeFrom(value).buildPartial(); + } else { + gameStartRejoinMessage_ = value; + } + onChanged(); + } else { + gameStartRejoinMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00000080; + return this; + } + public Builder clearGameStartRejoinMessage() { + if (gameStartRejoinMessageBuilder_ == null) { + gameStartRejoinMessage_ = de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance(); + onChanged(); + } else { + gameStartRejoinMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000080); + return this; + } + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.Builder getGameStartRejoinMessageBuilder() { + bitField1_ |= 0x00000080; + onChanged(); + return getGameStartRejoinMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessageOrBuilder getGameStartRejoinMessageOrBuilder() { + if (gameStartRejoinMessageBuilder_ != null) { + return gameStartRejoinMessageBuilder_.getMessageOrBuilder(); + } else { + return gameStartRejoinMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.Builder, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessageOrBuilder> + getGameStartRejoinMessageFieldBuilder() { + if (gameStartRejoinMessageBuilder_ == null) { + gameStartRejoinMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.Builder, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessageOrBuilder>( + gameStartRejoinMessage_, + getParentForChildren(), + isClean()); + gameStartRejoinMessage_ = null; + } + return gameStartRejoinMessageBuilder_; + } + + // optional .HandStartMessage handStartMessage = 41; + private de.pokerth.protocol.ProtoBuf.HandStartMessage handStartMessage_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.HandStartMessage, de.pokerth.protocol.ProtoBuf.HandStartMessage.Builder, de.pokerth.protocol.ProtoBuf.HandStartMessageOrBuilder> handStartMessageBuilder_; + public boolean hasHandStartMessage() { + return ((bitField1_ & 0x00000100) == 0x00000100); + } + public de.pokerth.protocol.ProtoBuf.HandStartMessage getHandStartMessage() { + if (handStartMessageBuilder_ == null) { + return handStartMessage_; + } else { + return handStartMessageBuilder_.getMessage(); + } + } + public Builder setHandStartMessage(de.pokerth.protocol.ProtoBuf.HandStartMessage value) { + if (handStartMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + handStartMessage_ = value; + onChanged(); + } else { + handStartMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00000100; + return this; + } + public Builder setHandStartMessage( + de.pokerth.protocol.ProtoBuf.HandStartMessage.Builder builderForValue) { + if (handStartMessageBuilder_ == null) { + handStartMessage_ = builderForValue.build(); + onChanged(); + } else { + handStartMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000100; + return this; + } + public Builder mergeHandStartMessage(de.pokerth.protocol.ProtoBuf.HandStartMessage value) { + if (handStartMessageBuilder_ == null) { + if (((bitField1_ & 0x00000100) == 0x00000100) && + handStartMessage_ != de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance()) { + handStartMessage_ = + de.pokerth.protocol.ProtoBuf.HandStartMessage.newBuilder(handStartMessage_).mergeFrom(value).buildPartial(); + } else { + handStartMessage_ = value; + } + onChanged(); + } else { + handStartMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00000100; + return this; + } + public Builder clearHandStartMessage() { + if (handStartMessageBuilder_ == null) { + handStartMessage_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance(); + onChanged(); + } else { + handStartMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000100); + return this; + } + public de.pokerth.protocol.ProtoBuf.HandStartMessage.Builder getHandStartMessageBuilder() { + bitField1_ |= 0x00000100; + onChanged(); + return getHandStartMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.HandStartMessageOrBuilder getHandStartMessageOrBuilder() { + if (handStartMessageBuilder_ != null) { + return handStartMessageBuilder_.getMessageOrBuilder(); + } else { + return handStartMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.HandStartMessage, de.pokerth.protocol.ProtoBuf.HandStartMessage.Builder, de.pokerth.protocol.ProtoBuf.HandStartMessageOrBuilder> + getHandStartMessageFieldBuilder() { + if (handStartMessageBuilder_ == null) { + handStartMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.HandStartMessage, de.pokerth.protocol.ProtoBuf.HandStartMessage.Builder, de.pokerth.protocol.ProtoBuf.HandStartMessageOrBuilder>( + handStartMessage_, + getParentForChildren(), + isClean()); + handStartMessage_ = null; + } + return handStartMessageBuilder_; + } + + // optional .PlayersTurnMessage playersTurnMessage = 42; + private de.pokerth.protocol.ProtoBuf.PlayersTurnMessage playersTurnMessage_ = de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage, de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayersTurnMessageOrBuilder> playersTurnMessageBuilder_; + public boolean hasPlayersTurnMessage() { + return ((bitField1_ & 0x00000200) == 0x00000200); + } + public de.pokerth.protocol.ProtoBuf.PlayersTurnMessage getPlayersTurnMessage() { + if (playersTurnMessageBuilder_ == null) { + return playersTurnMessage_; + } else { + return playersTurnMessageBuilder_.getMessage(); + } + } + public Builder setPlayersTurnMessage(de.pokerth.protocol.ProtoBuf.PlayersTurnMessage value) { + if (playersTurnMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + playersTurnMessage_ = value; + onChanged(); + } else { + playersTurnMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00000200; + return this; + } + public Builder setPlayersTurnMessage( + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.Builder builderForValue) { + if (playersTurnMessageBuilder_ == null) { + playersTurnMessage_ = builderForValue.build(); + onChanged(); + } else { + playersTurnMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000200; + return this; + } + public Builder mergePlayersTurnMessage(de.pokerth.protocol.ProtoBuf.PlayersTurnMessage value) { + if (playersTurnMessageBuilder_ == null) { + if (((bitField1_ & 0x00000200) == 0x00000200) && + playersTurnMessage_ != de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance()) { + playersTurnMessage_ = + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.newBuilder(playersTurnMessage_).mergeFrom(value).buildPartial(); + } else { + playersTurnMessage_ = value; + } + onChanged(); + } else { + playersTurnMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00000200; + return this; + } + public Builder clearPlayersTurnMessage() { + if (playersTurnMessageBuilder_ == null) { + playersTurnMessage_ = de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance(); + onChanged(); + } else { + playersTurnMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000200); + return this; + } + public de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.Builder getPlayersTurnMessageBuilder() { + bitField1_ |= 0x00000200; + onChanged(); + return getPlayersTurnMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.PlayersTurnMessageOrBuilder getPlayersTurnMessageOrBuilder() { + if (playersTurnMessageBuilder_ != null) { + return playersTurnMessageBuilder_.getMessageOrBuilder(); + } else { + return playersTurnMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage, de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayersTurnMessageOrBuilder> + getPlayersTurnMessageFieldBuilder() { + if (playersTurnMessageBuilder_ == null) { + playersTurnMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage, de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayersTurnMessageOrBuilder>( + playersTurnMessage_, + getParentForChildren(), + isClean()); + playersTurnMessage_ = null; + } + return playersTurnMessageBuilder_; + } + + // optional .MyActionRequestMessage myActionRequestMessage = 43; + private de.pokerth.protocol.ProtoBuf.MyActionRequestMessage myActionRequestMessage_ = de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage, de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.MyActionRequestMessageOrBuilder> myActionRequestMessageBuilder_; + public boolean hasMyActionRequestMessage() { + return ((bitField1_ & 0x00000400) == 0x00000400); + } + public de.pokerth.protocol.ProtoBuf.MyActionRequestMessage getMyActionRequestMessage() { + if (myActionRequestMessageBuilder_ == null) { + return myActionRequestMessage_; + } else { + return myActionRequestMessageBuilder_.getMessage(); + } + } + public Builder setMyActionRequestMessage(de.pokerth.protocol.ProtoBuf.MyActionRequestMessage value) { + if (myActionRequestMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + myActionRequestMessage_ = value; + onChanged(); + } else { + myActionRequestMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00000400; + return this; + } + public Builder setMyActionRequestMessage( + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.Builder builderForValue) { + if (myActionRequestMessageBuilder_ == null) { + myActionRequestMessage_ = builderForValue.build(); + onChanged(); + } else { + myActionRequestMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000400; + return this; + } + public Builder mergeMyActionRequestMessage(de.pokerth.protocol.ProtoBuf.MyActionRequestMessage value) { + if (myActionRequestMessageBuilder_ == null) { + if (((bitField1_ & 0x00000400) == 0x00000400) && + myActionRequestMessage_ != de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance()) { + myActionRequestMessage_ = + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.newBuilder(myActionRequestMessage_).mergeFrom(value).buildPartial(); + } else { + myActionRequestMessage_ = value; + } + onChanged(); + } else { + myActionRequestMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00000400; + return this; + } + public Builder clearMyActionRequestMessage() { + if (myActionRequestMessageBuilder_ == null) { + myActionRequestMessage_ = de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance(); + onChanged(); + } else { + myActionRequestMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000400); + return this; + } + public de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.Builder getMyActionRequestMessageBuilder() { + bitField1_ |= 0x00000400; + onChanged(); + return getMyActionRequestMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.MyActionRequestMessageOrBuilder getMyActionRequestMessageOrBuilder() { + if (myActionRequestMessageBuilder_ != null) { + return myActionRequestMessageBuilder_.getMessageOrBuilder(); + } else { + return myActionRequestMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage, de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.MyActionRequestMessageOrBuilder> + getMyActionRequestMessageFieldBuilder() { + if (myActionRequestMessageBuilder_ == null) { + myActionRequestMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage, de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.MyActionRequestMessageOrBuilder>( + myActionRequestMessage_, + getParentForChildren(), + isClean()); + myActionRequestMessage_ = null; + } + return myActionRequestMessageBuilder_; + } + + // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; + private de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage yourActionRejectedMessage_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage, de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.Builder, de.pokerth.protocol.ProtoBuf.YourActionRejectedMessageOrBuilder> yourActionRejectedMessageBuilder_; + public boolean hasYourActionRejectedMessage() { + return ((bitField1_ & 0x00000800) == 0x00000800); + } + public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage getYourActionRejectedMessage() { + if (yourActionRejectedMessageBuilder_ == null) { + return yourActionRejectedMessage_; + } else { + return yourActionRejectedMessageBuilder_.getMessage(); + } + } + public Builder setYourActionRejectedMessage(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage value) { + if (yourActionRejectedMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + yourActionRejectedMessage_ = value; + onChanged(); + } else { + yourActionRejectedMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00000800; + return this; + } + public Builder setYourActionRejectedMessage( + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.Builder builderForValue) { + if (yourActionRejectedMessageBuilder_ == null) { + yourActionRejectedMessage_ = builderForValue.build(); + onChanged(); + } else { + yourActionRejectedMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000800; + return this; + } + public Builder mergeYourActionRejectedMessage(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage value) { + if (yourActionRejectedMessageBuilder_ == null) { + if (((bitField1_ & 0x00000800) == 0x00000800) && + yourActionRejectedMessage_ != de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance()) { + yourActionRejectedMessage_ = + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.newBuilder(yourActionRejectedMessage_).mergeFrom(value).buildPartial(); + } else { + yourActionRejectedMessage_ = value; + } + onChanged(); + } else { + yourActionRejectedMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00000800; + return this; + } + public Builder clearYourActionRejectedMessage() { + if (yourActionRejectedMessageBuilder_ == null) { + yourActionRejectedMessage_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance(); + onChanged(); + } else { + yourActionRejectedMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000800); + return this; + } + public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.Builder getYourActionRejectedMessageBuilder() { + bitField1_ |= 0x00000800; + onChanged(); + return getYourActionRejectedMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessageOrBuilder getYourActionRejectedMessageOrBuilder() { + if (yourActionRejectedMessageBuilder_ != null) { + return yourActionRejectedMessageBuilder_.getMessageOrBuilder(); + } else { + return yourActionRejectedMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage, de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.Builder, de.pokerth.protocol.ProtoBuf.YourActionRejectedMessageOrBuilder> + getYourActionRejectedMessageFieldBuilder() { + if (yourActionRejectedMessageBuilder_ == null) { + yourActionRejectedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage, de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.Builder, de.pokerth.protocol.ProtoBuf.YourActionRejectedMessageOrBuilder>( + yourActionRejectedMessage_, + getParentForChildren(), + isClean()); + yourActionRejectedMessage_ = null; + } + return yourActionRejectedMessageBuilder_; + } + + // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; + private de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage playersActionDoneMessage_ = de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage, de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessageOrBuilder> playersActionDoneMessageBuilder_; + public boolean hasPlayersActionDoneMessage() { + return ((bitField1_ & 0x00001000) == 0x00001000); + } + public de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage getPlayersActionDoneMessage() { + if (playersActionDoneMessageBuilder_ == null) { + return playersActionDoneMessage_; + } else { + return playersActionDoneMessageBuilder_.getMessage(); + } + } + public Builder setPlayersActionDoneMessage(de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage value) { + if (playersActionDoneMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + playersActionDoneMessage_ = value; + onChanged(); + } else { + playersActionDoneMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00001000; + return this; + } + public Builder setPlayersActionDoneMessage( + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.Builder builderForValue) { + if (playersActionDoneMessageBuilder_ == null) { + playersActionDoneMessage_ = builderForValue.build(); + onChanged(); + } else { + playersActionDoneMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00001000; + return this; + } + public Builder mergePlayersActionDoneMessage(de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage value) { + if (playersActionDoneMessageBuilder_ == null) { + if (((bitField1_ & 0x00001000) == 0x00001000) && + playersActionDoneMessage_ != de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance()) { + playersActionDoneMessage_ = + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.newBuilder(playersActionDoneMessage_).mergeFrom(value).buildPartial(); + } else { + playersActionDoneMessage_ = value; + } + onChanged(); + } else { + playersActionDoneMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00001000; + return this; + } + public Builder clearPlayersActionDoneMessage() { + if (playersActionDoneMessageBuilder_ == null) { + playersActionDoneMessage_ = de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance(); + onChanged(); + } else { + playersActionDoneMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00001000); + return this; + } + public de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.Builder getPlayersActionDoneMessageBuilder() { + bitField1_ |= 0x00001000; + onChanged(); + return getPlayersActionDoneMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessageOrBuilder getPlayersActionDoneMessageOrBuilder() { + if (playersActionDoneMessageBuilder_ != null) { + return playersActionDoneMessageBuilder_.getMessageOrBuilder(); + } else { + return playersActionDoneMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage, de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessageOrBuilder> + getPlayersActionDoneMessageFieldBuilder() { + if (playersActionDoneMessageBuilder_ == null) { + playersActionDoneMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage, de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessageOrBuilder>( + playersActionDoneMessage_, + getParentForChildren(), + isClean()); + playersActionDoneMessage_ = null; + } + return playersActionDoneMessageBuilder_; + } + + // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; + private de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage dealFlopCardsMessage_ = de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage, de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.Builder, de.pokerth.protocol.ProtoBuf.DealFlopCardsMessageOrBuilder> dealFlopCardsMessageBuilder_; + public boolean hasDealFlopCardsMessage() { + return ((bitField1_ & 0x00002000) == 0x00002000); + } + public de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage getDealFlopCardsMessage() { + if (dealFlopCardsMessageBuilder_ == null) { + return dealFlopCardsMessage_; + } else { + return dealFlopCardsMessageBuilder_.getMessage(); + } + } + public Builder setDealFlopCardsMessage(de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage value) { + if (dealFlopCardsMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dealFlopCardsMessage_ = value; + onChanged(); + } else { + dealFlopCardsMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00002000; + return this; + } + public Builder setDealFlopCardsMessage( + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.Builder builderForValue) { + if (dealFlopCardsMessageBuilder_ == null) { + dealFlopCardsMessage_ = builderForValue.build(); + onChanged(); + } else { + dealFlopCardsMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00002000; + return this; + } + public Builder mergeDealFlopCardsMessage(de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage value) { + if (dealFlopCardsMessageBuilder_ == null) { + if (((bitField1_ & 0x00002000) == 0x00002000) && + dealFlopCardsMessage_ != de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance()) { + dealFlopCardsMessage_ = + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.newBuilder(dealFlopCardsMessage_).mergeFrom(value).buildPartial(); + } else { + dealFlopCardsMessage_ = value; + } + onChanged(); + } else { + dealFlopCardsMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00002000; + return this; + } + public Builder clearDealFlopCardsMessage() { + if (dealFlopCardsMessageBuilder_ == null) { + dealFlopCardsMessage_ = de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance(); + onChanged(); + } else { + dealFlopCardsMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00002000); + return this; + } + public de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.Builder getDealFlopCardsMessageBuilder() { + bitField1_ |= 0x00002000; + onChanged(); + return getDealFlopCardsMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.DealFlopCardsMessageOrBuilder getDealFlopCardsMessageOrBuilder() { + if (dealFlopCardsMessageBuilder_ != null) { + return dealFlopCardsMessageBuilder_.getMessageOrBuilder(); + } else { + return dealFlopCardsMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage, de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.Builder, de.pokerth.protocol.ProtoBuf.DealFlopCardsMessageOrBuilder> + getDealFlopCardsMessageFieldBuilder() { + if (dealFlopCardsMessageBuilder_ == null) { + dealFlopCardsMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage, de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.Builder, de.pokerth.protocol.ProtoBuf.DealFlopCardsMessageOrBuilder>( + dealFlopCardsMessage_, + getParentForChildren(), + isClean()); + dealFlopCardsMessage_ = null; + } + return dealFlopCardsMessageBuilder_; + } + + // optional .DealTurnCardMessage dealTurnCardMessage = 47; + private de.pokerth.protocol.ProtoBuf.DealTurnCardMessage dealTurnCardMessage_ = de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage, de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.Builder, de.pokerth.protocol.ProtoBuf.DealTurnCardMessageOrBuilder> dealTurnCardMessageBuilder_; + public boolean hasDealTurnCardMessage() { + return ((bitField1_ & 0x00004000) == 0x00004000); + } + public de.pokerth.protocol.ProtoBuf.DealTurnCardMessage getDealTurnCardMessage() { + if (dealTurnCardMessageBuilder_ == null) { + return dealTurnCardMessage_; + } else { + return dealTurnCardMessageBuilder_.getMessage(); + } + } + public Builder setDealTurnCardMessage(de.pokerth.protocol.ProtoBuf.DealTurnCardMessage value) { + if (dealTurnCardMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dealTurnCardMessage_ = value; + onChanged(); + } else { + dealTurnCardMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00004000; + return this; + } + public Builder setDealTurnCardMessage( + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.Builder builderForValue) { + if (dealTurnCardMessageBuilder_ == null) { + dealTurnCardMessage_ = builderForValue.build(); + onChanged(); + } else { + dealTurnCardMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00004000; + return this; + } + public Builder mergeDealTurnCardMessage(de.pokerth.protocol.ProtoBuf.DealTurnCardMessage value) { + if (dealTurnCardMessageBuilder_ == null) { + if (((bitField1_ & 0x00004000) == 0x00004000) && + dealTurnCardMessage_ != de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance()) { + dealTurnCardMessage_ = + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.newBuilder(dealTurnCardMessage_).mergeFrom(value).buildPartial(); + } else { + dealTurnCardMessage_ = value; + } + onChanged(); + } else { + dealTurnCardMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00004000; + return this; + } + public Builder clearDealTurnCardMessage() { + if (dealTurnCardMessageBuilder_ == null) { + dealTurnCardMessage_ = de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance(); + onChanged(); + } else { + dealTurnCardMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00004000); + return this; + } + public de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.Builder getDealTurnCardMessageBuilder() { + bitField1_ |= 0x00004000; + onChanged(); + return getDealTurnCardMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.DealTurnCardMessageOrBuilder getDealTurnCardMessageOrBuilder() { + if (dealTurnCardMessageBuilder_ != null) { + return dealTurnCardMessageBuilder_.getMessageOrBuilder(); + } else { + return dealTurnCardMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage, de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.Builder, de.pokerth.protocol.ProtoBuf.DealTurnCardMessageOrBuilder> + getDealTurnCardMessageFieldBuilder() { + if (dealTurnCardMessageBuilder_ == null) { + dealTurnCardMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage, de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.Builder, de.pokerth.protocol.ProtoBuf.DealTurnCardMessageOrBuilder>( + dealTurnCardMessage_, + getParentForChildren(), + isClean()); + dealTurnCardMessage_ = null; + } + return dealTurnCardMessageBuilder_; + } + + // optional .DealRiverCardMessage dealRiverCardMessage = 48; + private de.pokerth.protocol.ProtoBuf.DealRiverCardMessage dealRiverCardMessage_ = de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage, de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.Builder, de.pokerth.protocol.ProtoBuf.DealRiverCardMessageOrBuilder> dealRiverCardMessageBuilder_; + public boolean hasDealRiverCardMessage() { + return ((bitField1_ & 0x00008000) == 0x00008000); + } + public de.pokerth.protocol.ProtoBuf.DealRiverCardMessage getDealRiverCardMessage() { + if (dealRiverCardMessageBuilder_ == null) { + return dealRiverCardMessage_; + } else { + return dealRiverCardMessageBuilder_.getMessage(); + } + } + public Builder setDealRiverCardMessage(de.pokerth.protocol.ProtoBuf.DealRiverCardMessage value) { + if (dealRiverCardMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dealRiverCardMessage_ = value; + onChanged(); + } else { + dealRiverCardMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00008000; + return this; + } + public Builder setDealRiverCardMessage( + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.Builder builderForValue) { + if (dealRiverCardMessageBuilder_ == null) { + dealRiverCardMessage_ = builderForValue.build(); + onChanged(); + } else { + dealRiverCardMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00008000; + return this; + } + public Builder mergeDealRiverCardMessage(de.pokerth.protocol.ProtoBuf.DealRiverCardMessage value) { + if (dealRiverCardMessageBuilder_ == null) { + if (((bitField1_ & 0x00008000) == 0x00008000) && + dealRiverCardMessage_ != de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance()) { + dealRiverCardMessage_ = + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.newBuilder(dealRiverCardMessage_).mergeFrom(value).buildPartial(); + } else { + dealRiverCardMessage_ = value; + } + onChanged(); + } else { + dealRiverCardMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00008000; + return this; + } + public Builder clearDealRiverCardMessage() { + if (dealRiverCardMessageBuilder_ == null) { + dealRiverCardMessage_ = de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance(); + onChanged(); + } else { + dealRiverCardMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00008000); + return this; + } + public de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.Builder getDealRiverCardMessageBuilder() { + bitField1_ |= 0x00008000; + onChanged(); + return getDealRiverCardMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.DealRiverCardMessageOrBuilder getDealRiverCardMessageOrBuilder() { + if (dealRiverCardMessageBuilder_ != null) { + return dealRiverCardMessageBuilder_.getMessageOrBuilder(); + } else { + return dealRiverCardMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage, de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.Builder, de.pokerth.protocol.ProtoBuf.DealRiverCardMessageOrBuilder> + getDealRiverCardMessageFieldBuilder() { + if (dealRiverCardMessageBuilder_ == null) { + dealRiverCardMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage, de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.Builder, de.pokerth.protocol.ProtoBuf.DealRiverCardMessageOrBuilder>( + dealRiverCardMessage_, + getParentForChildren(), + isClean()); + dealRiverCardMessage_ = null; + } + return dealRiverCardMessageBuilder_; + } + + // optional .AllInShowCardsMessage allInShowCardsMessage = 49; + private de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage allInShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.Builder, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessageOrBuilder> allInShowCardsMessageBuilder_; + public boolean hasAllInShowCardsMessage() { + return ((bitField1_ & 0x00010000) == 0x00010000); + } + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage getAllInShowCardsMessage() { + if (allInShowCardsMessageBuilder_ == null) { + return allInShowCardsMessage_; + } else { + return allInShowCardsMessageBuilder_.getMessage(); + } + } + public Builder setAllInShowCardsMessage(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage value) { + if (allInShowCardsMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + allInShowCardsMessage_ = value; + onChanged(); + } else { + allInShowCardsMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00010000; + return this; + } + public Builder setAllInShowCardsMessage( + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.Builder builderForValue) { + if (allInShowCardsMessageBuilder_ == null) { + allInShowCardsMessage_ = builderForValue.build(); + onChanged(); + } else { + allInShowCardsMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00010000; + return this; + } + public Builder mergeAllInShowCardsMessage(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage value) { + if (allInShowCardsMessageBuilder_ == null) { + if (((bitField1_ & 0x00010000) == 0x00010000) && + allInShowCardsMessage_ != de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance()) { + allInShowCardsMessage_ = + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.newBuilder(allInShowCardsMessage_).mergeFrom(value).buildPartial(); + } else { + allInShowCardsMessage_ = value; + } + onChanged(); + } else { + allInShowCardsMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00010000; + return this; + } + public Builder clearAllInShowCardsMessage() { + if (allInShowCardsMessageBuilder_ == null) { + allInShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance(); + onChanged(); + } else { + allInShowCardsMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00010000); + return this; + } + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.Builder getAllInShowCardsMessageBuilder() { + bitField1_ |= 0x00010000; + onChanged(); + return getAllInShowCardsMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessageOrBuilder getAllInShowCardsMessageOrBuilder() { + if (allInShowCardsMessageBuilder_ != null) { + return allInShowCardsMessageBuilder_.getMessageOrBuilder(); + } else { + return allInShowCardsMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.Builder, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessageOrBuilder> + getAllInShowCardsMessageFieldBuilder() { + if (allInShowCardsMessageBuilder_ == null) { + allInShowCardsMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.Builder, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessageOrBuilder>( + allInShowCardsMessage_, + getParentForChildren(), + isClean()); + allInShowCardsMessage_ = null; + } + return allInShowCardsMessageBuilder_; + } + + // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; + private de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage endOfHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage, de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.Builder, de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessageOrBuilder> endOfHandShowCardsMessageBuilder_; + public boolean hasEndOfHandShowCardsMessage() { + return ((bitField1_ & 0x00020000) == 0x00020000); + } + public de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage getEndOfHandShowCardsMessage() { + if (endOfHandShowCardsMessageBuilder_ == null) { + return endOfHandShowCardsMessage_; + } else { + return endOfHandShowCardsMessageBuilder_.getMessage(); + } + } + public Builder setEndOfHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage value) { + if (endOfHandShowCardsMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endOfHandShowCardsMessage_ = value; + onChanged(); + } else { + endOfHandShowCardsMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00020000; + return this; + } + public Builder setEndOfHandShowCardsMessage( + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.Builder builderForValue) { + if (endOfHandShowCardsMessageBuilder_ == null) { + endOfHandShowCardsMessage_ = builderForValue.build(); + onChanged(); + } else { + endOfHandShowCardsMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00020000; + return this; + } + public Builder mergeEndOfHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage value) { + if (endOfHandShowCardsMessageBuilder_ == null) { + if (((bitField1_ & 0x00020000) == 0x00020000) && + endOfHandShowCardsMessage_ != de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance()) { + endOfHandShowCardsMessage_ = + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.newBuilder(endOfHandShowCardsMessage_).mergeFrom(value).buildPartial(); + } else { + endOfHandShowCardsMessage_ = value; + } + onChanged(); + } else { + endOfHandShowCardsMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00020000; + return this; + } + public Builder clearEndOfHandShowCardsMessage() { + if (endOfHandShowCardsMessageBuilder_ == null) { + endOfHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance(); + onChanged(); + } else { + endOfHandShowCardsMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00020000); + return this; + } + public de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.Builder getEndOfHandShowCardsMessageBuilder() { + bitField1_ |= 0x00020000; + onChanged(); + return getEndOfHandShowCardsMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessageOrBuilder getEndOfHandShowCardsMessageOrBuilder() { + if (endOfHandShowCardsMessageBuilder_ != null) { + return endOfHandShowCardsMessageBuilder_.getMessageOrBuilder(); + } else { + return endOfHandShowCardsMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage, de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.Builder, de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessageOrBuilder> + getEndOfHandShowCardsMessageFieldBuilder() { + if (endOfHandShowCardsMessageBuilder_ == null) { + endOfHandShowCardsMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage, de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.Builder, de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessageOrBuilder>( + endOfHandShowCardsMessage_, + getParentForChildren(), + isClean()); + endOfHandShowCardsMessage_ = null; + } + return endOfHandShowCardsMessageBuilder_; + } + + // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; + private de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage endOfHandHideCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage, de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.Builder, de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessageOrBuilder> endOfHandHideCardsMessageBuilder_; + public boolean hasEndOfHandHideCardsMessage() { + return ((bitField1_ & 0x00040000) == 0x00040000); + } + public de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage getEndOfHandHideCardsMessage() { + if (endOfHandHideCardsMessageBuilder_ == null) { + return endOfHandHideCardsMessage_; + } else { + return endOfHandHideCardsMessageBuilder_.getMessage(); + } + } + public Builder setEndOfHandHideCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage value) { + if (endOfHandHideCardsMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endOfHandHideCardsMessage_ = value; + onChanged(); + } else { + endOfHandHideCardsMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00040000; + return this; + } + public Builder setEndOfHandHideCardsMessage( + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.Builder builderForValue) { + if (endOfHandHideCardsMessageBuilder_ == null) { + endOfHandHideCardsMessage_ = builderForValue.build(); + onChanged(); + } else { + endOfHandHideCardsMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00040000; + return this; + } + public Builder mergeEndOfHandHideCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage value) { + if (endOfHandHideCardsMessageBuilder_ == null) { + if (((bitField1_ & 0x00040000) == 0x00040000) && + endOfHandHideCardsMessage_ != de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance()) { + endOfHandHideCardsMessage_ = + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.newBuilder(endOfHandHideCardsMessage_).mergeFrom(value).buildPartial(); + } else { + endOfHandHideCardsMessage_ = value; + } + onChanged(); + } else { + endOfHandHideCardsMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00040000; + return this; + } + public Builder clearEndOfHandHideCardsMessage() { + if (endOfHandHideCardsMessageBuilder_ == null) { + endOfHandHideCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance(); + onChanged(); + } else { + endOfHandHideCardsMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00040000); + return this; + } + public de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.Builder getEndOfHandHideCardsMessageBuilder() { + bitField1_ |= 0x00040000; + onChanged(); + return getEndOfHandHideCardsMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessageOrBuilder getEndOfHandHideCardsMessageOrBuilder() { + if (endOfHandHideCardsMessageBuilder_ != null) { + return endOfHandHideCardsMessageBuilder_.getMessageOrBuilder(); + } else { + return endOfHandHideCardsMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage, de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.Builder, de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessageOrBuilder> + getEndOfHandHideCardsMessageFieldBuilder() { + if (endOfHandHideCardsMessageBuilder_ == null) { + endOfHandHideCardsMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage, de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.Builder, de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessageOrBuilder>( + endOfHandHideCardsMessage_, + getParentForChildren(), + isClean()); + endOfHandHideCardsMessage_ = null; + } + return endOfHandHideCardsMessageBuilder_; + } + + // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; + private de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage showMyCardsRequestMessage_ = de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage, de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessageOrBuilder> showMyCardsRequestMessageBuilder_; + public boolean hasShowMyCardsRequestMessage() { + return ((bitField1_ & 0x00080000) == 0x00080000); + } + public de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage getShowMyCardsRequestMessage() { + if (showMyCardsRequestMessageBuilder_ == null) { + return showMyCardsRequestMessage_; + } else { + return showMyCardsRequestMessageBuilder_.getMessage(); + } + } + public Builder setShowMyCardsRequestMessage(de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage value) { + if (showMyCardsRequestMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + showMyCardsRequestMessage_ = value; + onChanged(); + } else { + showMyCardsRequestMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00080000; + return this; + } + public Builder setShowMyCardsRequestMessage( + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.Builder builderForValue) { + if (showMyCardsRequestMessageBuilder_ == null) { + showMyCardsRequestMessage_ = builderForValue.build(); + onChanged(); + } else { + showMyCardsRequestMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00080000; + return this; + } + public Builder mergeShowMyCardsRequestMessage(de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage value) { + if (showMyCardsRequestMessageBuilder_ == null) { + if (((bitField1_ & 0x00080000) == 0x00080000) && + showMyCardsRequestMessage_ != de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance()) { + showMyCardsRequestMessage_ = + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.newBuilder(showMyCardsRequestMessage_).mergeFrom(value).buildPartial(); + } else { + showMyCardsRequestMessage_ = value; + } + onChanged(); + } else { + showMyCardsRequestMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00080000; + return this; + } + public Builder clearShowMyCardsRequestMessage() { + if (showMyCardsRequestMessageBuilder_ == null) { + showMyCardsRequestMessage_ = de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance(); + onChanged(); + } else { + showMyCardsRequestMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00080000); + return this; + } + public de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.Builder getShowMyCardsRequestMessageBuilder() { + bitField1_ |= 0x00080000; + onChanged(); + return getShowMyCardsRequestMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessageOrBuilder getShowMyCardsRequestMessageOrBuilder() { + if (showMyCardsRequestMessageBuilder_ != null) { + return showMyCardsRequestMessageBuilder_.getMessageOrBuilder(); + } else { + return showMyCardsRequestMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage, de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessageOrBuilder> + getShowMyCardsRequestMessageFieldBuilder() { + if (showMyCardsRequestMessageBuilder_ == null) { + showMyCardsRequestMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage, de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessageOrBuilder>( + showMyCardsRequestMessage_, + getParentForChildren(), + isClean()); + showMyCardsRequestMessage_ = null; + } + return showMyCardsRequestMessageBuilder_; + } + + // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; + private de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage afterHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage, de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.Builder, de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessageOrBuilder> afterHandShowCardsMessageBuilder_; + public boolean hasAfterHandShowCardsMessage() { + return ((bitField1_ & 0x00100000) == 0x00100000); + } + public de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage getAfterHandShowCardsMessage() { + if (afterHandShowCardsMessageBuilder_ == null) { + return afterHandShowCardsMessage_; + } else { + return afterHandShowCardsMessageBuilder_.getMessage(); + } + } + public Builder setAfterHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage value) { + if (afterHandShowCardsMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + afterHandShowCardsMessage_ = value; + onChanged(); + } else { + afterHandShowCardsMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00100000; + return this; + } + public Builder setAfterHandShowCardsMessage( + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.Builder builderForValue) { + if (afterHandShowCardsMessageBuilder_ == null) { + afterHandShowCardsMessage_ = builderForValue.build(); + onChanged(); + } else { + afterHandShowCardsMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00100000; + return this; + } + public Builder mergeAfterHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage value) { + if (afterHandShowCardsMessageBuilder_ == null) { + if (((bitField1_ & 0x00100000) == 0x00100000) && + afterHandShowCardsMessage_ != de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance()) { + afterHandShowCardsMessage_ = + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.newBuilder(afterHandShowCardsMessage_).mergeFrom(value).buildPartial(); + } else { + afterHandShowCardsMessage_ = value; + } + onChanged(); + } else { + afterHandShowCardsMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00100000; + return this; + } + public Builder clearAfterHandShowCardsMessage() { + if (afterHandShowCardsMessageBuilder_ == null) { + afterHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance(); + onChanged(); + } else { + afterHandShowCardsMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00100000); + return this; + } + public de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.Builder getAfterHandShowCardsMessageBuilder() { + bitField1_ |= 0x00100000; + onChanged(); + return getAfterHandShowCardsMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessageOrBuilder getAfterHandShowCardsMessageOrBuilder() { + if (afterHandShowCardsMessageBuilder_ != null) { + return afterHandShowCardsMessageBuilder_.getMessageOrBuilder(); + } else { + return afterHandShowCardsMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage, de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.Builder, de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessageOrBuilder> + getAfterHandShowCardsMessageFieldBuilder() { + if (afterHandShowCardsMessageBuilder_ == null) { + afterHandShowCardsMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage, de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.Builder, de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessageOrBuilder>( + afterHandShowCardsMessage_, + getParentForChildren(), + isClean()); + afterHandShowCardsMessage_ = null; + } + return afterHandShowCardsMessageBuilder_; + } + + // optional .EndOfGameMessage endOfGameMessage = 54; + private de.pokerth.protocol.ProtoBuf.EndOfGameMessage endOfGameMessage_ = de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.EndOfGameMessage, de.pokerth.protocol.ProtoBuf.EndOfGameMessage.Builder, de.pokerth.protocol.ProtoBuf.EndOfGameMessageOrBuilder> endOfGameMessageBuilder_; + public boolean hasEndOfGameMessage() { + return ((bitField1_ & 0x00200000) == 0x00200000); + } + public de.pokerth.protocol.ProtoBuf.EndOfGameMessage getEndOfGameMessage() { + if (endOfGameMessageBuilder_ == null) { + return endOfGameMessage_; + } else { + return endOfGameMessageBuilder_.getMessage(); + } + } + public Builder setEndOfGameMessage(de.pokerth.protocol.ProtoBuf.EndOfGameMessage value) { + if (endOfGameMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endOfGameMessage_ = value; + onChanged(); + } else { + endOfGameMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00200000; + return this; + } + public Builder setEndOfGameMessage( + de.pokerth.protocol.ProtoBuf.EndOfGameMessage.Builder builderForValue) { + if (endOfGameMessageBuilder_ == null) { + endOfGameMessage_ = builderForValue.build(); + onChanged(); + } else { + endOfGameMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00200000; + return this; + } + public Builder mergeEndOfGameMessage(de.pokerth.protocol.ProtoBuf.EndOfGameMessage value) { + if (endOfGameMessageBuilder_ == null) { + if (((bitField1_ & 0x00200000) == 0x00200000) && + endOfGameMessage_ != de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance()) { + endOfGameMessage_ = + de.pokerth.protocol.ProtoBuf.EndOfGameMessage.newBuilder(endOfGameMessage_).mergeFrom(value).buildPartial(); + } else { + endOfGameMessage_ = value; + } + onChanged(); + } else { + endOfGameMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00200000; + return this; + } + public Builder clearEndOfGameMessage() { + if (endOfGameMessageBuilder_ == null) { + endOfGameMessage_ = de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance(); + onChanged(); + } else { + endOfGameMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00200000); + return this; + } + public de.pokerth.protocol.ProtoBuf.EndOfGameMessage.Builder getEndOfGameMessageBuilder() { + bitField1_ |= 0x00200000; + onChanged(); + return getEndOfGameMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.EndOfGameMessageOrBuilder getEndOfGameMessageOrBuilder() { + if (endOfGameMessageBuilder_ != null) { + return endOfGameMessageBuilder_.getMessageOrBuilder(); + } else { + return endOfGameMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.EndOfGameMessage, de.pokerth.protocol.ProtoBuf.EndOfGameMessage.Builder, de.pokerth.protocol.ProtoBuf.EndOfGameMessageOrBuilder> + getEndOfGameMessageFieldBuilder() { + if (endOfGameMessageBuilder_ == null) { + endOfGameMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.EndOfGameMessage, de.pokerth.protocol.ProtoBuf.EndOfGameMessage.Builder, de.pokerth.protocol.ProtoBuf.EndOfGameMessageOrBuilder>( + endOfGameMessage_, + getParentForChildren(), + isClean()); + endOfGameMessage_ = null; + } + return endOfGameMessageBuilder_; + } + + // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; + private de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage playerIdChangedMessage_ = de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage, de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessageOrBuilder> playerIdChangedMessageBuilder_; + public boolean hasPlayerIdChangedMessage() { + return ((bitField1_ & 0x00400000) == 0x00400000); + } + public de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage getPlayerIdChangedMessage() { + if (playerIdChangedMessageBuilder_ == null) { + return playerIdChangedMessage_; + } else { + return playerIdChangedMessageBuilder_.getMessage(); + } + } + public Builder setPlayerIdChangedMessage(de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage value) { + if (playerIdChangedMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + playerIdChangedMessage_ = value; + onChanged(); + } else { + playerIdChangedMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00400000; + return this; + } + public Builder setPlayerIdChangedMessage( + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.Builder builderForValue) { + if (playerIdChangedMessageBuilder_ == null) { + playerIdChangedMessage_ = builderForValue.build(); + onChanged(); + } else { + playerIdChangedMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00400000; + return this; + } + public Builder mergePlayerIdChangedMessage(de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage value) { + if (playerIdChangedMessageBuilder_ == null) { + if (((bitField1_ & 0x00400000) == 0x00400000) && + playerIdChangedMessage_ != de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance()) { + playerIdChangedMessage_ = + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.newBuilder(playerIdChangedMessage_).mergeFrom(value).buildPartial(); + } else { + playerIdChangedMessage_ = value; + } + onChanged(); + } else { + playerIdChangedMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00400000; + return this; + } + public Builder clearPlayerIdChangedMessage() { + if (playerIdChangedMessageBuilder_ == null) { + playerIdChangedMessage_ = de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance(); + onChanged(); + } else { + playerIdChangedMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00400000); + return this; + } + public de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.Builder getPlayerIdChangedMessageBuilder() { + bitField1_ |= 0x00400000; + onChanged(); + return getPlayerIdChangedMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessageOrBuilder getPlayerIdChangedMessageOrBuilder() { + if (playerIdChangedMessageBuilder_ != null) { + return playerIdChangedMessageBuilder_.getMessageOrBuilder(); + } else { + return playerIdChangedMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage, de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessageOrBuilder> + getPlayerIdChangedMessageFieldBuilder() { + if (playerIdChangedMessageBuilder_ == null) { + playerIdChangedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage, de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.Builder, de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessageOrBuilder>( + playerIdChangedMessage_, + getParentForChildren(), + isClean()); + playerIdChangedMessage_ = null; + } + return playerIdChangedMessageBuilder_; + } + + // optional .AskKickPlayerMessage askKickPlayerMessage = 56; + private de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage askKickPlayerMessage_ = de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage, de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.Builder, de.pokerth.protocol.ProtoBuf.AskKickPlayerMessageOrBuilder> askKickPlayerMessageBuilder_; + public boolean hasAskKickPlayerMessage() { + return ((bitField1_ & 0x00800000) == 0x00800000); + } + public de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage getAskKickPlayerMessage() { + if (askKickPlayerMessageBuilder_ == null) { + return askKickPlayerMessage_; + } else { + return askKickPlayerMessageBuilder_.getMessage(); + } + } + public Builder setAskKickPlayerMessage(de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage value) { + if (askKickPlayerMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + askKickPlayerMessage_ = value; + onChanged(); + } else { + askKickPlayerMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x00800000; + return this; + } + public Builder setAskKickPlayerMessage( + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.Builder builderForValue) { + if (askKickPlayerMessageBuilder_ == null) { + askKickPlayerMessage_ = builderForValue.build(); + onChanged(); + } else { + askKickPlayerMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00800000; + return this; + } + public Builder mergeAskKickPlayerMessage(de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage value) { + if (askKickPlayerMessageBuilder_ == null) { + if (((bitField1_ & 0x00800000) == 0x00800000) && + askKickPlayerMessage_ != de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance()) { + askKickPlayerMessage_ = + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.newBuilder(askKickPlayerMessage_).mergeFrom(value).buildPartial(); + } else { + askKickPlayerMessage_ = value; + } + onChanged(); + } else { + askKickPlayerMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x00800000; + return this; + } + public Builder clearAskKickPlayerMessage() { + if (askKickPlayerMessageBuilder_ == null) { + askKickPlayerMessage_ = de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance(); + onChanged(); + } else { + askKickPlayerMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00800000); + return this; + } + public de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.Builder getAskKickPlayerMessageBuilder() { + bitField1_ |= 0x00800000; + onChanged(); + return getAskKickPlayerMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.AskKickPlayerMessageOrBuilder getAskKickPlayerMessageOrBuilder() { + if (askKickPlayerMessageBuilder_ != null) { + return askKickPlayerMessageBuilder_.getMessageOrBuilder(); + } else { + return askKickPlayerMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage, de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.Builder, de.pokerth.protocol.ProtoBuf.AskKickPlayerMessageOrBuilder> + getAskKickPlayerMessageFieldBuilder() { + if (askKickPlayerMessageBuilder_ == null) { + askKickPlayerMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage, de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.Builder, de.pokerth.protocol.ProtoBuf.AskKickPlayerMessageOrBuilder>( + askKickPlayerMessage_, + getParentForChildren(), + isClean()); + askKickPlayerMessage_ = null; + } + return askKickPlayerMessageBuilder_; + } + + // optional .AskKickDeniedMessage askKickDeniedMessage = 57; + private de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage askKickDeniedMessage_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage, de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.Builder, de.pokerth.protocol.ProtoBuf.AskKickDeniedMessageOrBuilder> askKickDeniedMessageBuilder_; + public boolean hasAskKickDeniedMessage() { + return ((bitField1_ & 0x01000000) == 0x01000000); + } + public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage getAskKickDeniedMessage() { + if (askKickDeniedMessageBuilder_ == null) { + return askKickDeniedMessage_; + } else { + return askKickDeniedMessageBuilder_.getMessage(); + } + } + public Builder setAskKickDeniedMessage(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage value) { + if (askKickDeniedMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + askKickDeniedMessage_ = value; + onChanged(); + } else { + askKickDeniedMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x01000000; + return this; + } + public Builder setAskKickDeniedMessage( + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.Builder builderForValue) { + if (askKickDeniedMessageBuilder_ == null) { + askKickDeniedMessage_ = builderForValue.build(); + onChanged(); + } else { + askKickDeniedMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x01000000; + return this; + } + public Builder mergeAskKickDeniedMessage(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage value) { + if (askKickDeniedMessageBuilder_ == null) { + if (((bitField1_ & 0x01000000) == 0x01000000) && + askKickDeniedMessage_ != de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance()) { + askKickDeniedMessage_ = + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.newBuilder(askKickDeniedMessage_).mergeFrom(value).buildPartial(); + } else { + askKickDeniedMessage_ = value; + } + onChanged(); + } else { + askKickDeniedMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x01000000; + return this; + } + public Builder clearAskKickDeniedMessage() { + if (askKickDeniedMessageBuilder_ == null) { + askKickDeniedMessage_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance(); + onChanged(); + } else { + askKickDeniedMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x01000000); + return this; + } + public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.Builder getAskKickDeniedMessageBuilder() { + bitField1_ |= 0x01000000; + onChanged(); + return getAskKickDeniedMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessageOrBuilder getAskKickDeniedMessageOrBuilder() { + if (askKickDeniedMessageBuilder_ != null) { + return askKickDeniedMessageBuilder_.getMessageOrBuilder(); + } else { + return askKickDeniedMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage, de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.Builder, de.pokerth.protocol.ProtoBuf.AskKickDeniedMessageOrBuilder> + getAskKickDeniedMessageFieldBuilder() { + if (askKickDeniedMessageBuilder_ == null) { + askKickDeniedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage, de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.Builder, de.pokerth.protocol.ProtoBuf.AskKickDeniedMessageOrBuilder>( + askKickDeniedMessage_, + getParentForChildren(), + isClean()); + askKickDeniedMessage_ = null; + } + return askKickDeniedMessageBuilder_; + } + + // optional .StartKickPetitionMessage startKickPetitionMessage = 58; + private de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage startKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage, de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.Builder, de.pokerth.protocol.ProtoBuf.StartKickPetitionMessageOrBuilder> startKickPetitionMessageBuilder_; + public boolean hasStartKickPetitionMessage() { + return ((bitField1_ & 0x02000000) == 0x02000000); + } + public de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage getStartKickPetitionMessage() { + if (startKickPetitionMessageBuilder_ == null) { + return startKickPetitionMessage_; + } else { + return startKickPetitionMessageBuilder_.getMessage(); + } + } + public Builder setStartKickPetitionMessage(de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage value) { + if (startKickPetitionMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startKickPetitionMessage_ = value; + onChanged(); + } else { + startKickPetitionMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x02000000; + return this; + } + public Builder setStartKickPetitionMessage( + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.Builder builderForValue) { + if (startKickPetitionMessageBuilder_ == null) { + startKickPetitionMessage_ = builderForValue.build(); + onChanged(); + } else { + startKickPetitionMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x02000000; + return this; + } + public Builder mergeStartKickPetitionMessage(de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage value) { + if (startKickPetitionMessageBuilder_ == null) { + if (((bitField1_ & 0x02000000) == 0x02000000) && + startKickPetitionMessage_ != de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance()) { + startKickPetitionMessage_ = + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.newBuilder(startKickPetitionMessage_).mergeFrom(value).buildPartial(); + } else { + startKickPetitionMessage_ = value; + } + onChanged(); + } else { + startKickPetitionMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x02000000; + return this; + } + public Builder clearStartKickPetitionMessage() { + if (startKickPetitionMessageBuilder_ == null) { + startKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance(); + onChanged(); + } else { + startKickPetitionMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x02000000); + return this; + } + public de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.Builder getStartKickPetitionMessageBuilder() { + bitField1_ |= 0x02000000; + onChanged(); + return getStartKickPetitionMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.StartKickPetitionMessageOrBuilder getStartKickPetitionMessageOrBuilder() { + if (startKickPetitionMessageBuilder_ != null) { + return startKickPetitionMessageBuilder_.getMessageOrBuilder(); + } else { + return startKickPetitionMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage, de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.Builder, de.pokerth.protocol.ProtoBuf.StartKickPetitionMessageOrBuilder> + getStartKickPetitionMessageFieldBuilder() { + if (startKickPetitionMessageBuilder_ == null) { + startKickPetitionMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage, de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.Builder, de.pokerth.protocol.ProtoBuf.StartKickPetitionMessageOrBuilder>( + startKickPetitionMessage_, + getParentForChildren(), + isClean()); + startKickPetitionMessage_ = null; + } + return startKickPetitionMessageBuilder_; + } + + // optional .VoteKickRequestMessage voteKickRequestMessage = 59; + private de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage voteKickRequestMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage, de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.VoteKickRequestMessageOrBuilder> voteKickRequestMessageBuilder_; + public boolean hasVoteKickRequestMessage() { + return ((bitField1_ & 0x04000000) == 0x04000000); + } + public de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage getVoteKickRequestMessage() { + if (voteKickRequestMessageBuilder_ == null) { + return voteKickRequestMessage_; + } else { + return voteKickRequestMessageBuilder_.getMessage(); + } + } + public Builder setVoteKickRequestMessage(de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage value) { + if (voteKickRequestMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + voteKickRequestMessage_ = value; + onChanged(); + } else { + voteKickRequestMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x04000000; + return this; + } + public Builder setVoteKickRequestMessage( + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.Builder builderForValue) { + if (voteKickRequestMessageBuilder_ == null) { + voteKickRequestMessage_ = builderForValue.build(); + onChanged(); + } else { + voteKickRequestMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x04000000; + return this; + } + public Builder mergeVoteKickRequestMessage(de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage value) { + if (voteKickRequestMessageBuilder_ == null) { + if (((bitField1_ & 0x04000000) == 0x04000000) && + voteKickRequestMessage_ != de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance()) { + voteKickRequestMessage_ = + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.newBuilder(voteKickRequestMessage_).mergeFrom(value).buildPartial(); + } else { + voteKickRequestMessage_ = value; + } + onChanged(); + } else { + voteKickRequestMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x04000000; + return this; + } + public Builder clearVoteKickRequestMessage() { + if (voteKickRequestMessageBuilder_ == null) { + voteKickRequestMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance(); + onChanged(); + } else { + voteKickRequestMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x04000000); + return this; + } + public de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.Builder getVoteKickRequestMessageBuilder() { + bitField1_ |= 0x04000000; + onChanged(); + return getVoteKickRequestMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.VoteKickRequestMessageOrBuilder getVoteKickRequestMessageOrBuilder() { + if (voteKickRequestMessageBuilder_ != null) { + return voteKickRequestMessageBuilder_.getMessageOrBuilder(); + } else { + return voteKickRequestMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage, de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.VoteKickRequestMessageOrBuilder> + getVoteKickRequestMessageFieldBuilder() { + if (voteKickRequestMessageBuilder_ == null) { + voteKickRequestMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage, de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.VoteKickRequestMessageOrBuilder>( + voteKickRequestMessage_, + getParentForChildren(), + isClean()); + voteKickRequestMessage_ = null; + } + return voteKickRequestMessageBuilder_; + } + + // optional .VoteKickReplyMessage voteKickReplyMessage = 60; + private de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage voteKickReplyMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage, de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.Builder, de.pokerth.protocol.ProtoBuf.VoteKickReplyMessageOrBuilder> voteKickReplyMessageBuilder_; + public boolean hasVoteKickReplyMessage() { + return ((bitField1_ & 0x08000000) == 0x08000000); + } + public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage getVoteKickReplyMessage() { + if (voteKickReplyMessageBuilder_ == null) { + return voteKickReplyMessage_; + } else { + return voteKickReplyMessageBuilder_.getMessage(); + } + } + public Builder setVoteKickReplyMessage(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage value) { + if (voteKickReplyMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + voteKickReplyMessage_ = value; + onChanged(); + } else { + voteKickReplyMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x08000000; + return this; + } + public Builder setVoteKickReplyMessage( + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.Builder builderForValue) { + if (voteKickReplyMessageBuilder_ == null) { + voteKickReplyMessage_ = builderForValue.build(); + onChanged(); + } else { + voteKickReplyMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x08000000; + return this; + } + public Builder mergeVoteKickReplyMessage(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage value) { + if (voteKickReplyMessageBuilder_ == null) { + if (((bitField1_ & 0x08000000) == 0x08000000) && + voteKickReplyMessage_ != de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance()) { + voteKickReplyMessage_ = + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.newBuilder(voteKickReplyMessage_).mergeFrom(value).buildPartial(); + } else { + voteKickReplyMessage_ = value; + } + onChanged(); + } else { + voteKickReplyMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x08000000; + return this; + } + public Builder clearVoteKickReplyMessage() { + if (voteKickReplyMessageBuilder_ == null) { + voteKickReplyMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance(); + onChanged(); + } else { + voteKickReplyMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x08000000); + return this; + } + public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.Builder getVoteKickReplyMessageBuilder() { + bitField1_ |= 0x08000000; + onChanged(); + return getVoteKickReplyMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessageOrBuilder getVoteKickReplyMessageOrBuilder() { + if (voteKickReplyMessageBuilder_ != null) { + return voteKickReplyMessageBuilder_.getMessageOrBuilder(); + } else { + return voteKickReplyMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage, de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.Builder, de.pokerth.protocol.ProtoBuf.VoteKickReplyMessageOrBuilder> + getVoteKickReplyMessageFieldBuilder() { + if (voteKickReplyMessageBuilder_ == null) { + voteKickReplyMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage, de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.Builder, de.pokerth.protocol.ProtoBuf.VoteKickReplyMessageOrBuilder>( + voteKickReplyMessage_, + getParentForChildren(), + isClean()); + voteKickReplyMessage_ = null; + } + return voteKickReplyMessageBuilder_; + } + + // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; + private de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage kickPetitionUpdateMessage_ = de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage, de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.Builder, de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessageOrBuilder> kickPetitionUpdateMessageBuilder_; + public boolean hasKickPetitionUpdateMessage() { + return ((bitField1_ & 0x10000000) == 0x10000000); + } + public de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage getKickPetitionUpdateMessage() { + if (kickPetitionUpdateMessageBuilder_ == null) { + return kickPetitionUpdateMessage_; + } else { + return kickPetitionUpdateMessageBuilder_.getMessage(); + } + } + public Builder setKickPetitionUpdateMessage(de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage value) { + if (kickPetitionUpdateMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kickPetitionUpdateMessage_ = value; + onChanged(); + } else { + kickPetitionUpdateMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x10000000; + return this; + } + public Builder setKickPetitionUpdateMessage( + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.Builder builderForValue) { + if (kickPetitionUpdateMessageBuilder_ == null) { + kickPetitionUpdateMessage_ = builderForValue.build(); + onChanged(); + } else { + kickPetitionUpdateMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x10000000; + return this; + } + public Builder mergeKickPetitionUpdateMessage(de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage value) { + if (kickPetitionUpdateMessageBuilder_ == null) { + if (((bitField1_ & 0x10000000) == 0x10000000) && + kickPetitionUpdateMessage_ != de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance()) { + kickPetitionUpdateMessage_ = + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.newBuilder(kickPetitionUpdateMessage_).mergeFrom(value).buildPartial(); + } else { + kickPetitionUpdateMessage_ = value; + } + onChanged(); + } else { + kickPetitionUpdateMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x10000000; + return this; + } + public Builder clearKickPetitionUpdateMessage() { + if (kickPetitionUpdateMessageBuilder_ == null) { + kickPetitionUpdateMessage_ = de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance(); + onChanged(); + } else { + kickPetitionUpdateMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x10000000); + return this; + } + public de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.Builder getKickPetitionUpdateMessageBuilder() { + bitField1_ |= 0x10000000; + onChanged(); + return getKickPetitionUpdateMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessageOrBuilder getKickPetitionUpdateMessageOrBuilder() { + if (kickPetitionUpdateMessageBuilder_ != null) { + return kickPetitionUpdateMessageBuilder_.getMessageOrBuilder(); + } else { + return kickPetitionUpdateMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage, de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.Builder, de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessageOrBuilder> + getKickPetitionUpdateMessageFieldBuilder() { + if (kickPetitionUpdateMessageBuilder_ == null) { + kickPetitionUpdateMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage, de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.Builder, de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessageOrBuilder>( + kickPetitionUpdateMessage_, + getParentForChildren(), + isClean()); + kickPetitionUpdateMessage_ = null; + } + return kickPetitionUpdateMessageBuilder_; + } + + // optional .EndKickPetitionMessage endKickPetitionMessage = 62; + private de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage endKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage, de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.Builder, de.pokerth.protocol.ProtoBuf.EndKickPetitionMessageOrBuilder> endKickPetitionMessageBuilder_; + public boolean hasEndKickPetitionMessage() { + return ((bitField1_ & 0x20000000) == 0x20000000); + } + public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage getEndKickPetitionMessage() { + if (endKickPetitionMessageBuilder_ == null) { + return endKickPetitionMessage_; + } else { + return endKickPetitionMessageBuilder_.getMessage(); + } + } + public Builder setEndKickPetitionMessage(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage value) { + if (endKickPetitionMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endKickPetitionMessage_ = value; + onChanged(); + } else { + endKickPetitionMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x20000000; + return this; + } + public Builder setEndKickPetitionMessage( + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.Builder builderForValue) { + if (endKickPetitionMessageBuilder_ == null) { + endKickPetitionMessage_ = builderForValue.build(); + onChanged(); + } else { + endKickPetitionMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x20000000; + return this; + } + public Builder mergeEndKickPetitionMessage(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage value) { + if (endKickPetitionMessageBuilder_ == null) { + if (((bitField1_ & 0x20000000) == 0x20000000) && + endKickPetitionMessage_ != de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance()) { + endKickPetitionMessage_ = + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.newBuilder(endKickPetitionMessage_).mergeFrom(value).buildPartial(); + } else { + endKickPetitionMessage_ = value; + } + onChanged(); + } else { + endKickPetitionMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x20000000; + return this; + } + public Builder clearEndKickPetitionMessage() { + if (endKickPetitionMessageBuilder_ == null) { + endKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance(); + onChanged(); + } else { + endKickPetitionMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x20000000); + return this; + } + public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.Builder getEndKickPetitionMessageBuilder() { + bitField1_ |= 0x20000000; + onChanged(); + return getEndKickPetitionMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessageOrBuilder getEndKickPetitionMessageOrBuilder() { + if (endKickPetitionMessageBuilder_ != null) { + return endKickPetitionMessageBuilder_.getMessageOrBuilder(); + } else { + return endKickPetitionMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage, de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.Builder, de.pokerth.protocol.ProtoBuf.EndKickPetitionMessageOrBuilder> + getEndKickPetitionMessageFieldBuilder() { + if (endKickPetitionMessageBuilder_ == null) { + endKickPetitionMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage, de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.Builder, de.pokerth.protocol.ProtoBuf.EndKickPetitionMessageOrBuilder>( + endKickPetitionMessage_, + getParentForChildren(), + isClean()); + endKickPetitionMessage_ = null; + } + return endKickPetitionMessageBuilder_; + } + + // optional .StatisticsMessage statisticsMessage = 63; + private de.pokerth.protocol.ProtoBuf.StatisticsMessage statisticsMessage_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.StatisticsMessage, de.pokerth.protocol.ProtoBuf.StatisticsMessage.Builder, de.pokerth.protocol.ProtoBuf.StatisticsMessageOrBuilder> statisticsMessageBuilder_; + public boolean hasStatisticsMessage() { + return ((bitField1_ & 0x40000000) == 0x40000000); + } + public de.pokerth.protocol.ProtoBuf.StatisticsMessage getStatisticsMessage() { + if (statisticsMessageBuilder_ == null) { + return statisticsMessage_; + } else { + return statisticsMessageBuilder_.getMessage(); + } + } + public Builder setStatisticsMessage(de.pokerth.protocol.ProtoBuf.StatisticsMessage value) { + if (statisticsMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + statisticsMessage_ = value; + onChanged(); + } else { + statisticsMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x40000000; + return this; + } + public Builder setStatisticsMessage( + de.pokerth.protocol.ProtoBuf.StatisticsMessage.Builder builderForValue) { + if (statisticsMessageBuilder_ == null) { + statisticsMessage_ = builderForValue.build(); + onChanged(); + } else { + statisticsMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x40000000; + return this; + } + public Builder mergeStatisticsMessage(de.pokerth.protocol.ProtoBuf.StatisticsMessage value) { + if (statisticsMessageBuilder_ == null) { + if (((bitField1_ & 0x40000000) == 0x40000000) && + statisticsMessage_ != de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance()) { + statisticsMessage_ = + de.pokerth.protocol.ProtoBuf.StatisticsMessage.newBuilder(statisticsMessage_).mergeFrom(value).buildPartial(); + } else { + statisticsMessage_ = value; + } + onChanged(); + } else { + statisticsMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x40000000; + return this; + } + public Builder clearStatisticsMessage() { + if (statisticsMessageBuilder_ == null) { + statisticsMessage_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance(); + onChanged(); + } else { + statisticsMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x40000000); + return this; + } + public de.pokerth.protocol.ProtoBuf.StatisticsMessage.Builder getStatisticsMessageBuilder() { + bitField1_ |= 0x40000000; + onChanged(); + return getStatisticsMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.StatisticsMessageOrBuilder getStatisticsMessageOrBuilder() { + if (statisticsMessageBuilder_ != null) { + return statisticsMessageBuilder_.getMessageOrBuilder(); + } else { + return statisticsMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.StatisticsMessage, de.pokerth.protocol.ProtoBuf.StatisticsMessage.Builder, de.pokerth.protocol.ProtoBuf.StatisticsMessageOrBuilder> + getStatisticsMessageFieldBuilder() { + if (statisticsMessageBuilder_ == null) { + statisticsMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.StatisticsMessage, de.pokerth.protocol.ProtoBuf.StatisticsMessage.Builder, de.pokerth.protocol.ProtoBuf.StatisticsMessageOrBuilder>( + statisticsMessage_, + getParentForChildren(), + isClean()); + statisticsMessage_ = null; + } + return statisticsMessageBuilder_; + } + + // optional .ChatRequestMessage chatRequestMessage = 64; + private de.pokerth.protocol.ProtoBuf.ChatRequestMessage chatRequestMessage_ = de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ChatRequestMessage, de.pokerth.protocol.ProtoBuf.ChatRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.ChatRequestMessageOrBuilder> chatRequestMessageBuilder_; + public boolean hasChatRequestMessage() { + return ((bitField1_ & 0x80000000) == 0x80000000); + } + public de.pokerth.protocol.ProtoBuf.ChatRequestMessage getChatRequestMessage() { + if (chatRequestMessageBuilder_ == null) { + return chatRequestMessage_; + } else { + return chatRequestMessageBuilder_.getMessage(); + } + } + public Builder setChatRequestMessage(de.pokerth.protocol.ProtoBuf.ChatRequestMessage value) { + if (chatRequestMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chatRequestMessage_ = value; + onChanged(); + } else { + chatRequestMessageBuilder_.setMessage(value); + } + bitField1_ |= 0x80000000; + return this; + } + public Builder setChatRequestMessage( + de.pokerth.protocol.ProtoBuf.ChatRequestMessage.Builder builderForValue) { + if (chatRequestMessageBuilder_ == null) { + chatRequestMessage_ = builderForValue.build(); + onChanged(); + } else { + chatRequestMessageBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x80000000; + return this; + } + public Builder mergeChatRequestMessage(de.pokerth.protocol.ProtoBuf.ChatRequestMessage value) { + if (chatRequestMessageBuilder_ == null) { + if (((bitField1_ & 0x80000000) == 0x80000000) && + chatRequestMessage_ != de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance()) { + chatRequestMessage_ = + de.pokerth.protocol.ProtoBuf.ChatRequestMessage.newBuilder(chatRequestMessage_).mergeFrom(value).buildPartial(); + } else { + chatRequestMessage_ = value; + } + onChanged(); + } else { + chatRequestMessageBuilder_.mergeFrom(value); + } + bitField1_ |= 0x80000000; + return this; + } + public Builder clearChatRequestMessage() { + if (chatRequestMessageBuilder_ == null) { + chatRequestMessage_ = de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance(); + onChanged(); + } else { + chatRequestMessageBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x80000000); + return this; + } + public de.pokerth.protocol.ProtoBuf.ChatRequestMessage.Builder getChatRequestMessageBuilder() { + bitField1_ |= 0x80000000; + onChanged(); + return getChatRequestMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.ChatRequestMessageOrBuilder getChatRequestMessageOrBuilder() { + if (chatRequestMessageBuilder_ != null) { + return chatRequestMessageBuilder_.getMessageOrBuilder(); + } else { + return chatRequestMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ChatRequestMessage, de.pokerth.protocol.ProtoBuf.ChatRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.ChatRequestMessageOrBuilder> + getChatRequestMessageFieldBuilder() { + if (chatRequestMessageBuilder_ == null) { + chatRequestMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ChatRequestMessage, de.pokerth.protocol.ProtoBuf.ChatRequestMessage.Builder, de.pokerth.protocol.ProtoBuf.ChatRequestMessageOrBuilder>( + chatRequestMessage_, + getParentForChildren(), + isClean()); + chatRequestMessage_ = null; + } + return chatRequestMessageBuilder_; + } + + // optional .ChatMessage chatMessage = 65; + private de.pokerth.protocol.ProtoBuf.ChatMessage chatMessage_ = de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ChatMessage, de.pokerth.protocol.ProtoBuf.ChatMessage.Builder, de.pokerth.protocol.ProtoBuf.ChatMessageOrBuilder> chatMessageBuilder_; + public boolean hasChatMessage() { + return ((bitField2_ & 0x00000001) == 0x00000001); + } + public de.pokerth.protocol.ProtoBuf.ChatMessage getChatMessage() { + if (chatMessageBuilder_ == null) { + return chatMessage_; + } else { + return chatMessageBuilder_.getMessage(); + } + } + public Builder setChatMessage(de.pokerth.protocol.ProtoBuf.ChatMessage value) { + if (chatMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chatMessage_ = value; + onChanged(); + } else { + chatMessageBuilder_.setMessage(value); + } + bitField2_ |= 0x00000001; + return this; + } + public Builder setChatMessage( + de.pokerth.protocol.ProtoBuf.ChatMessage.Builder builderForValue) { + if (chatMessageBuilder_ == null) { + chatMessage_ = builderForValue.build(); + onChanged(); + } else { + chatMessageBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000001; + return this; + } + public Builder mergeChatMessage(de.pokerth.protocol.ProtoBuf.ChatMessage value) { + if (chatMessageBuilder_ == null) { + if (((bitField2_ & 0x00000001) == 0x00000001) && + chatMessage_ != de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance()) { + chatMessage_ = + de.pokerth.protocol.ProtoBuf.ChatMessage.newBuilder(chatMessage_).mergeFrom(value).buildPartial(); + } else { + chatMessage_ = value; + } + onChanged(); + } else { + chatMessageBuilder_.mergeFrom(value); + } + bitField2_ |= 0x00000001; + return this; + } + public Builder clearChatMessage() { + if (chatMessageBuilder_ == null) { + chatMessage_ = de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance(); + onChanged(); + } else { + chatMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000001); + return this; + } + public de.pokerth.protocol.ProtoBuf.ChatMessage.Builder getChatMessageBuilder() { + bitField2_ |= 0x00000001; + onChanged(); + return getChatMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.ChatMessageOrBuilder getChatMessageOrBuilder() { + if (chatMessageBuilder_ != null) { + return chatMessageBuilder_.getMessageOrBuilder(); + } else { + return chatMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ChatMessage, de.pokerth.protocol.ProtoBuf.ChatMessage.Builder, de.pokerth.protocol.ProtoBuf.ChatMessageOrBuilder> + getChatMessageFieldBuilder() { + if (chatMessageBuilder_ == null) { + chatMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ChatMessage, de.pokerth.protocol.ProtoBuf.ChatMessage.Builder, de.pokerth.protocol.ProtoBuf.ChatMessageOrBuilder>( + chatMessage_, + getParentForChildren(), + isClean()); + chatMessage_ = null; + } + return chatMessageBuilder_; + } + + // optional .ChatRejectMessage chatRejectMessage = 66; + private de.pokerth.protocol.ProtoBuf.ChatRejectMessage chatRejectMessage_ = de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ChatRejectMessage, de.pokerth.protocol.ProtoBuf.ChatRejectMessage.Builder, de.pokerth.protocol.ProtoBuf.ChatRejectMessageOrBuilder> chatRejectMessageBuilder_; + public boolean hasChatRejectMessage() { + return ((bitField2_ & 0x00000002) == 0x00000002); + } + public de.pokerth.protocol.ProtoBuf.ChatRejectMessage getChatRejectMessage() { + if (chatRejectMessageBuilder_ == null) { + return chatRejectMessage_; + } else { + return chatRejectMessageBuilder_.getMessage(); + } + } + public Builder setChatRejectMessage(de.pokerth.protocol.ProtoBuf.ChatRejectMessage value) { + if (chatRejectMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chatRejectMessage_ = value; + onChanged(); + } else { + chatRejectMessageBuilder_.setMessage(value); + } + bitField2_ |= 0x00000002; + return this; + } + public Builder setChatRejectMessage( + de.pokerth.protocol.ProtoBuf.ChatRejectMessage.Builder builderForValue) { + if (chatRejectMessageBuilder_ == null) { + chatRejectMessage_ = builderForValue.build(); + onChanged(); + } else { + chatRejectMessageBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000002; + return this; + } + public Builder mergeChatRejectMessage(de.pokerth.protocol.ProtoBuf.ChatRejectMessage value) { + if (chatRejectMessageBuilder_ == null) { + if (((bitField2_ & 0x00000002) == 0x00000002) && + chatRejectMessage_ != de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance()) { + chatRejectMessage_ = + de.pokerth.protocol.ProtoBuf.ChatRejectMessage.newBuilder(chatRejectMessage_).mergeFrom(value).buildPartial(); + } else { + chatRejectMessage_ = value; + } + onChanged(); + } else { + chatRejectMessageBuilder_.mergeFrom(value); + } + bitField2_ |= 0x00000002; + return this; + } + public Builder clearChatRejectMessage() { + if (chatRejectMessageBuilder_ == null) { + chatRejectMessage_ = de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance(); + onChanged(); + } else { + chatRejectMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000002); + return this; + } + public de.pokerth.protocol.ProtoBuf.ChatRejectMessage.Builder getChatRejectMessageBuilder() { + bitField2_ |= 0x00000002; + onChanged(); + return getChatRejectMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.ChatRejectMessageOrBuilder getChatRejectMessageOrBuilder() { + if (chatRejectMessageBuilder_ != null) { + return chatRejectMessageBuilder_.getMessageOrBuilder(); + } else { + return chatRejectMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ChatRejectMessage, de.pokerth.protocol.ProtoBuf.ChatRejectMessage.Builder, de.pokerth.protocol.ProtoBuf.ChatRejectMessageOrBuilder> + getChatRejectMessageFieldBuilder() { + if (chatRejectMessageBuilder_ == null) { + chatRejectMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ChatRejectMessage, de.pokerth.protocol.ProtoBuf.ChatRejectMessage.Builder, de.pokerth.protocol.ProtoBuf.ChatRejectMessageOrBuilder>( + chatRejectMessage_, + getParentForChildren(), + isClean()); + chatRejectMessage_ = null; + } + return chatRejectMessageBuilder_; + } + + // optional .DialogMessage dialogMessage = 67; + private de.pokerth.protocol.ProtoBuf.DialogMessage dialogMessage_ = de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.DialogMessage, de.pokerth.protocol.ProtoBuf.DialogMessage.Builder, de.pokerth.protocol.ProtoBuf.DialogMessageOrBuilder> dialogMessageBuilder_; + public boolean hasDialogMessage() { + return ((bitField2_ & 0x00000004) == 0x00000004); + } + public de.pokerth.protocol.ProtoBuf.DialogMessage getDialogMessage() { + if (dialogMessageBuilder_ == null) { + return dialogMessage_; + } else { + return dialogMessageBuilder_.getMessage(); + } + } + public Builder setDialogMessage(de.pokerth.protocol.ProtoBuf.DialogMessage value) { + if (dialogMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dialogMessage_ = value; + onChanged(); + } else { + dialogMessageBuilder_.setMessage(value); + } + bitField2_ |= 0x00000004; + return this; + } + public Builder setDialogMessage( + de.pokerth.protocol.ProtoBuf.DialogMessage.Builder builderForValue) { + if (dialogMessageBuilder_ == null) { + dialogMessage_ = builderForValue.build(); + onChanged(); + } else { + dialogMessageBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000004; + return this; + } + public Builder mergeDialogMessage(de.pokerth.protocol.ProtoBuf.DialogMessage value) { + if (dialogMessageBuilder_ == null) { + if (((bitField2_ & 0x00000004) == 0x00000004) && + dialogMessage_ != de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance()) { + dialogMessage_ = + de.pokerth.protocol.ProtoBuf.DialogMessage.newBuilder(dialogMessage_).mergeFrom(value).buildPartial(); + } else { + dialogMessage_ = value; + } + onChanged(); + } else { + dialogMessageBuilder_.mergeFrom(value); + } + bitField2_ |= 0x00000004; + return this; + } + public Builder clearDialogMessage() { + if (dialogMessageBuilder_ == null) { + dialogMessage_ = de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance(); + onChanged(); + } else { + dialogMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000004); + return this; + } + public de.pokerth.protocol.ProtoBuf.DialogMessage.Builder getDialogMessageBuilder() { + bitField2_ |= 0x00000004; + onChanged(); + return getDialogMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.DialogMessageOrBuilder getDialogMessageOrBuilder() { + if (dialogMessageBuilder_ != null) { + return dialogMessageBuilder_.getMessageOrBuilder(); + } else { + return dialogMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.DialogMessage, de.pokerth.protocol.ProtoBuf.DialogMessage.Builder, de.pokerth.protocol.ProtoBuf.DialogMessageOrBuilder> + getDialogMessageFieldBuilder() { + if (dialogMessageBuilder_ == null) { + dialogMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.DialogMessage, de.pokerth.protocol.ProtoBuf.DialogMessage.Builder, de.pokerth.protocol.ProtoBuf.DialogMessageOrBuilder>( + dialogMessage_, + getParentForChildren(), + isClean()); + dialogMessage_ = null; + } + return dialogMessageBuilder_; + } + + // optional .TimeoutWarningMessage timeoutWarningMessage = 68; + private de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage timeoutWarningMessage_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage, de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.Builder, de.pokerth.protocol.ProtoBuf.TimeoutWarningMessageOrBuilder> timeoutWarningMessageBuilder_; + public boolean hasTimeoutWarningMessage() { + return ((bitField2_ & 0x00000008) == 0x00000008); + } + public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage getTimeoutWarningMessage() { + if (timeoutWarningMessageBuilder_ == null) { + return timeoutWarningMessage_; + } else { + return timeoutWarningMessageBuilder_.getMessage(); + } + } + public Builder setTimeoutWarningMessage(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage value) { + if (timeoutWarningMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeoutWarningMessage_ = value; + onChanged(); + } else { + timeoutWarningMessageBuilder_.setMessage(value); + } + bitField2_ |= 0x00000008; + return this; + } + public Builder setTimeoutWarningMessage( + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.Builder builderForValue) { + if (timeoutWarningMessageBuilder_ == null) { + timeoutWarningMessage_ = builderForValue.build(); + onChanged(); + } else { + timeoutWarningMessageBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000008; + return this; + } + public Builder mergeTimeoutWarningMessage(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage value) { + if (timeoutWarningMessageBuilder_ == null) { + if (((bitField2_ & 0x00000008) == 0x00000008) && + timeoutWarningMessage_ != de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance()) { + timeoutWarningMessage_ = + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.newBuilder(timeoutWarningMessage_).mergeFrom(value).buildPartial(); + } else { + timeoutWarningMessage_ = value; + } + onChanged(); + } else { + timeoutWarningMessageBuilder_.mergeFrom(value); + } + bitField2_ |= 0x00000008; + return this; + } + public Builder clearTimeoutWarningMessage() { + if (timeoutWarningMessageBuilder_ == null) { + timeoutWarningMessage_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance(); + onChanged(); + } else { + timeoutWarningMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000008); + return this; + } + public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.Builder getTimeoutWarningMessageBuilder() { + bitField2_ |= 0x00000008; + onChanged(); + return getTimeoutWarningMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessageOrBuilder getTimeoutWarningMessageOrBuilder() { + if (timeoutWarningMessageBuilder_ != null) { + return timeoutWarningMessageBuilder_.getMessageOrBuilder(); + } else { + return timeoutWarningMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage, de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.Builder, de.pokerth.protocol.ProtoBuf.TimeoutWarningMessageOrBuilder> + getTimeoutWarningMessageFieldBuilder() { + if (timeoutWarningMessageBuilder_ == null) { + timeoutWarningMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage, de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.Builder, de.pokerth.protocol.ProtoBuf.TimeoutWarningMessageOrBuilder>( + timeoutWarningMessage_, + getParentForChildren(), + isClean()); + timeoutWarningMessage_ = null; + } + return timeoutWarningMessageBuilder_; + } + + // optional .ResetTimeoutMessage resetTimeoutMessage = 69; + private de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage resetTimeoutMessage_ = de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage, de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.Builder, de.pokerth.protocol.ProtoBuf.ResetTimeoutMessageOrBuilder> resetTimeoutMessageBuilder_; + public boolean hasResetTimeoutMessage() { + return ((bitField2_ & 0x00000010) == 0x00000010); + } + public de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage getResetTimeoutMessage() { + if (resetTimeoutMessageBuilder_ == null) { + return resetTimeoutMessage_; + } else { + return resetTimeoutMessageBuilder_.getMessage(); + } + } + public Builder setResetTimeoutMessage(de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage value) { + if (resetTimeoutMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resetTimeoutMessage_ = value; + onChanged(); + } else { + resetTimeoutMessageBuilder_.setMessage(value); + } + bitField2_ |= 0x00000010; + return this; + } + public Builder setResetTimeoutMessage( + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.Builder builderForValue) { + if (resetTimeoutMessageBuilder_ == null) { + resetTimeoutMessage_ = builderForValue.build(); + onChanged(); + } else { + resetTimeoutMessageBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000010; + return this; + } + public Builder mergeResetTimeoutMessage(de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage value) { + if (resetTimeoutMessageBuilder_ == null) { + if (((bitField2_ & 0x00000010) == 0x00000010) && + resetTimeoutMessage_ != de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance()) { + resetTimeoutMessage_ = + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.newBuilder(resetTimeoutMessage_).mergeFrom(value).buildPartial(); + } else { + resetTimeoutMessage_ = value; + } + onChanged(); + } else { + resetTimeoutMessageBuilder_.mergeFrom(value); + } + bitField2_ |= 0x00000010; + return this; + } + public Builder clearResetTimeoutMessage() { + if (resetTimeoutMessageBuilder_ == null) { + resetTimeoutMessage_ = de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance(); + onChanged(); + } else { + resetTimeoutMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000010); + return this; + } + public de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.Builder getResetTimeoutMessageBuilder() { + bitField2_ |= 0x00000010; + onChanged(); + return getResetTimeoutMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.ResetTimeoutMessageOrBuilder getResetTimeoutMessageOrBuilder() { + if (resetTimeoutMessageBuilder_ != null) { + return resetTimeoutMessageBuilder_.getMessageOrBuilder(); + } else { + return resetTimeoutMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage, de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.Builder, de.pokerth.protocol.ProtoBuf.ResetTimeoutMessageOrBuilder> + getResetTimeoutMessageFieldBuilder() { + if (resetTimeoutMessageBuilder_ == null) { + resetTimeoutMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage, de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.Builder, de.pokerth.protocol.ProtoBuf.ResetTimeoutMessageOrBuilder>( + resetTimeoutMessage_, + getParentForChildren(), + isClean()); + resetTimeoutMessage_ = null; + } + return resetTimeoutMessageBuilder_; + } + + // optional .ReportAvatarMessage reportAvatarMessage = 70; + private de.pokerth.protocol.ProtoBuf.ReportAvatarMessage reportAvatarMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage, de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.Builder, de.pokerth.protocol.ProtoBuf.ReportAvatarMessageOrBuilder> reportAvatarMessageBuilder_; + public boolean hasReportAvatarMessage() { + return ((bitField2_ & 0x00000020) == 0x00000020); + } + public de.pokerth.protocol.ProtoBuf.ReportAvatarMessage getReportAvatarMessage() { + if (reportAvatarMessageBuilder_ == null) { + return reportAvatarMessage_; + } else { + return reportAvatarMessageBuilder_.getMessage(); + } + } + public Builder setReportAvatarMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarMessage value) { + if (reportAvatarMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reportAvatarMessage_ = value; + onChanged(); + } else { + reportAvatarMessageBuilder_.setMessage(value); + } + bitField2_ |= 0x00000020; + return this; + } + public Builder setReportAvatarMessage( + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.Builder builderForValue) { + if (reportAvatarMessageBuilder_ == null) { + reportAvatarMessage_ = builderForValue.build(); + onChanged(); + } else { + reportAvatarMessageBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000020; + return this; + } + public Builder mergeReportAvatarMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarMessage value) { + if (reportAvatarMessageBuilder_ == null) { + if (((bitField2_ & 0x00000020) == 0x00000020) && + reportAvatarMessage_ != de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance()) { + reportAvatarMessage_ = + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.newBuilder(reportAvatarMessage_).mergeFrom(value).buildPartial(); + } else { + reportAvatarMessage_ = value; + } + onChanged(); + } else { + reportAvatarMessageBuilder_.mergeFrom(value); + } + bitField2_ |= 0x00000020; + return this; + } + public Builder clearReportAvatarMessage() { + if (reportAvatarMessageBuilder_ == null) { + reportAvatarMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance(); + onChanged(); + } else { + reportAvatarMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000020); + return this; + } + public de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.Builder getReportAvatarMessageBuilder() { + bitField2_ |= 0x00000020; + onChanged(); + return getReportAvatarMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.ReportAvatarMessageOrBuilder getReportAvatarMessageOrBuilder() { + if (reportAvatarMessageBuilder_ != null) { + return reportAvatarMessageBuilder_.getMessageOrBuilder(); + } else { + return reportAvatarMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage, de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.Builder, de.pokerth.protocol.ProtoBuf.ReportAvatarMessageOrBuilder> + getReportAvatarMessageFieldBuilder() { + if (reportAvatarMessageBuilder_ == null) { + reportAvatarMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage, de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.Builder, de.pokerth.protocol.ProtoBuf.ReportAvatarMessageOrBuilder>( + reportAvatarMessage_, + getParentForChildren(), + isClean()); + reportAvatarMessage_ = null; + } + return reportAvatarMessageBuilder_; + } + + // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; + private de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage reportAvatarAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage, de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.Builder, de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessageOrBuilder> reportAvatarAckMessageBuilder_; + public boolean hasReportAvatarAckMessage() { + return ((bitField2_ & 0x00000040) == 0x00000040); + } + public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage getReportAvatarAckMessage() { + if (reportAvatarAckMessageBuilder_ == null) { + return reportAvatarAckMessage_; + } else { + return reportAvatarAckMessageBuilder_.getMessage(); + } + } + public Builder setReportAvatarAckMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage value) { + if (reportAvatarAckMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reportAvatarAckMessage_ = value; + onChanged(); + } else { + reportAvatarAckMessageBuilder_.setMessage(value); + } + bitField2_ |= 0x00000040; + return this; + } + public Builder setReportAvatarAckMessage( + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.Builder builderForValue) { + if (reportAvatarAckMessageBuilder_ == null) { + reportAvatarAckMessage_ = builderForValue.build(); + onChanged(); + } else { + reportAvatarAckMessageBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000040; + return this; + } + public Builder mergeReportAvatarAckMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage value) { + if (reportAvatarAckMessageBuilder_ == null) { + if (((bitField2_ & 0x00000040) == 0x00000040) && + reportAvatarAckMessage_ != de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance()) { + reportAvatarAckMessage_ = + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.newBuilder(reportAvatarAckMessage_).mergeFrom(value).buildPartial(); + } else { + reportAvatarAckMessage_ = value; + } + onChanged(); + } else { + reportAvatarAckMessageBuilder_.mergeFrom(value); + } + bitField2_ |= 0x00000040; + return this; + } + public Builder clearReportAvatarAckMessage() { + if (reportAvatarAckMessageBuilder_ == null) { + reportAvatarAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance(); + onChanged(); + } else { + reportAvatarAckMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000040); + return this; + } + public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.Builder getReportAvatarAckMessageBuilder() { + bitField2_ |= 0x00000040; + onChanged(); + return getReportAvatarAckMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessageOrBuilder getReportAvatarAckMessageOrBuilder() { + if (reportAvatarAckMessageBuilder_ != null) { + return reportAvatarAckMessageBuilder_.getMessageOrBuilder(); + } else { + return reportAvatarAckMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage, de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.Builder, de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessageOrBuilder> + getReportAvatarAckMessageFieldBuilder() { + if (reportAvatarAckMessageBuilder_ == null) { + reportAvatarAckMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage, de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.Builder, de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessageOrBuilder>( + reportAvatarAckMessage_, + getParentForChildren(), + isClean()); + reportAvatarAckMessage_ = null; + } + return reportAvatarAckMessageBuilder_; + } + + // optional .ReportGameMessage reportGameMessage = 72; + private de.pokerth.protocol.ProtoBuf.ReportGameMessage reportGameMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ReportGameMessage, de.pokerth.protocol.ProtoBuf.ReportGameMessage.Builder, de.pokerth.protocol.ProtoBuf.ReportGameMessageOrBuilder> reportGameMessageBuilder_; + public boolean hasReportGameMessage() { + return ((bitField2_ & 0x00000080) == 0x00000080); + } + public de.pokerth.protocol.ProtoBuf.ReportGameMessage getReportGameMessage() { + if (reportGameMessageBuilder_ == null) { + return reportGameMessage_; + } else { + return reportGameMessageBuilder_.getMessage(); + } + } + public Builder setReportGameMessage(de.pokerth.protocol.ProtoBuf.ReportGameMessage value) { + if (reportGameMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reportGameMessage_ = value; + onChanged(); + } else { + reportGameMessageBuilder_.setMessage(value); + } + bitField2_ |= 0x00000080; + return this; + } + public Builder setReportGameMessage( + de.pokerth.protocol.ProtoBuf.ReportGameMessage.Builder builderForValue) { + if (reportGameMessageBuilder_ == null) { + reportGameMessage_ = builderForValue.build(); + onChanged(); + } else { + reportGameMessageBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000080; + return this; + } + public Builder mergeReportGameMessage(de.pokerth.protocol.ProtoBuf.ReportGameMessage value) { + if (reportGameMessageBuilder_ == null) { + if (((bitField2_ & 0x00000080) == 0x00000080) && + reportGameMessage_ != de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance()) { + reportGameMessage_ = + de.pokerth.protocol.ProtoBuf.ReportGameMessage.newBuilder(reportGameMessage_).mergeFrom(value).buildPartial(); + } else { + reportGameMessage_ = value; + } + onChanged(); + } else { + reportGameMessageBuilder_.mergeFrom(value); + } + bitField2_ |= 0x00000080; + return this; + } + public Builder clearReportGameMessage() { + if (reportGameMessageBuilder_ == null) { + reportGameMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance(); + onChanged(); + } else { + reportGameMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000080); + return this; + } + public de.pokerth.protocol.ProtoBuf.ReportGameMessage.Builder getReportGameMessageBuilder() { + bitField2_ |= 0x00000080; + onChanged(); + return getReportGameMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.ReportGameMessageOrBuilder getReportGameMessageOrBuilder() { + if (reportGameMessageBuilder_ != null) { + return reportGameMessageBuilder_.getMessageOrBuilder(); + } else { + return reportGameMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ReportGameMessage, de.pokerth.protocol.ProtoBuf.ReportGameMessage.Builder, de.pokerth.protocol.ProtoBuf.ReportGameMessageOrBuilder> + getReportGameMessageFieldBuilder() { + if (reportGameMessageBuilder_ == null) { + reportGameMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ReportGameMessage, de.pokerth.protocol.ProtoBuf.ReportGameMessage.Builder, de.pokerth.protocol.ProtoBuf.ReportGameMessageOrBuilder>( + reportGameMessage_, + getParentForChildren(), + isClean()); + reportGameMessage_ = null; + } + return reportGameMessageBuilder_; + } + + // optional .ReportGameAckMessage reportGameAckMessage = 73; + private de.pokerth.protocol.ProtoBuf.ReportGameAckMessage reportGameAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage, de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.Builder, de.pokerth.protocol.ProtoBuf.ReportGameAckMessageOrBuilder> reportGameAckMessageBuilder_; + public boolean hasReportGameAckMessage() { + return ((bitField2_ & 0x00000100) == 0x00000100); + } + public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage getReportGameAckMessage() { + if (reportGameAckMessageBuilder_ == null) { + return reportGameAckMessage_; + } else { + return reportGameAckMessageBuilder_.getMessage(); + } + } + public Builder setReportGameAckMessage(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage value) { + if (reportGameAckMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reportGameAckMessage_ = value; + onChanged(); + } else { + reportGameAckMessageBuilder_.setMessage(value); + } + bitField2_ |= 0x00000100; + return this; + } + public Builder setReportGameAckMessage( + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.Builder builderForValue) { + if (reportGameAckMessageBuilder_ == null) { + reportGameAckMessage_ = builderForValue.build(); + onChanged(); + } else { + reportGameAckMessageBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000100; + return this; + } + public Builder mergeReportGameAckMessage(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage value) { + if (reportGameAckMessageBuilder_ == null) { + if (((bitField2_ & 0x00000100) == 0x00000100) && + reportGameAckMessage_ != de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance()) { + reportGameAckMessage_ = + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.newBuilder(reportGameAckMessage_).mergeFrom(value).buildPartial(); + } else { + reportGameAckMessage_ = value; + } + onChanged(); + } else { + reportGameAckMessageBuilder_.mergeFrom(value); + } + bitField2_ |= 0x00000100; + return this; + } + public Builder clearReportGameAckMessage() { + if (reportGameAckMessageBuilder_ == null) { + reportGameAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance(); + onChanged(); + } else { + reportGameAckMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000100); + return this; + } + public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.Builder getReportGameAckMessageBuilder() { + bitField2_ |= 0x00000100; + onChanged(); + return getReportGameAckMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.ReportGameAckMessageOrBuilder getReportGameAckMessageOrBuilder() { + if (reportGameAckMessageBuilder_ != null) { + return reportGameAckMessageBuilder_.getMessageOrBuilder(); + } else { + return reportGameAckMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage, de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.Builder, de.pokerth.protocol.ProtoBuf.ReportGameAckMessageOrBuilder> + getReportGameAckMessageFieldBuilder() { + if (reportGameAckMessageBuilder_ == null) { + reportGameAckMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage, de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.Builder, de.pokerth.protocol.ProtoBuf.ReportGameAckMessageOrBuilder>( + reportGameAckMessage_, + getParentForChildren(), + isClean()); + reportGameAckMessage_ = null; + } + return reportGameAckMessageBuilder_; + } + + // optional .ErrorMessage errorMessage = 74; + private de.pokerth.protocol.ProtoBuf.ErrorMessage errorMessage_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ErrorMessage, de.pokerth.protocol.ProtoBuf.ErrorMessage.Builder, de.pokerth.protocol.ProtoBuf.ErrorMessageOrBuilder> errorMessageBuilder_; + public boolean hasErrorMessage() { + return ((bitField2_ & 0x00000200) == 0x00000200); + } + public de.pokerth.protocol.ProtoBuf.ErrorMessage getErrorMessage() { + if (errorMessageBuilder_ == null) { + return errorMessage_; + } else { + return errorMessageBuilder_.getMessage(); + } + } + public Builder setErrorMessage(de.pokerth.protocol.ProtoBuf.ErrorMessage value) { + if (errorMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorMessage_ = value; + onChanged(); + } else { + errorMessageBuilder_.setMessage(value); + } + bitField2_ |= 0x00000200; + return this; + } + public Builder setErrorMessage( + de.pokerth.protocol.ProtoBuf.ErrorMessage.Builder builderForValue) { + if (errorMessageBuilder_ == null) { + errorMessage_ = builderForValue.build(); + onChanged(); + } else { + errorMessageBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00000200; + return this; + } + public Builder mergeErrorMessage(de.pokerth.protocol.ProtoBuf.ErrorMessage value) { + if (errorMessageBuilder_ == null) { + if (((bitField2_ & 0x00000200) == 0x00000200) && + errorMessage_ != de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance()) { + errorMessage_ = + de.pokerth.protocol.ProtoBuf.ErrorMessage.newBuilder(errorMessage_).mergeFrom(value).buildPartial(); + } else { + errorMessage_ = value; + } + onChanged(); + } else { + errorMessageBuilder_.mergeFrom(value); + } + bitField2_ |= 0x00000200; + return this; + } + public Builder clearErrorMessage() { + if (errorMessageBuilder_ == null) { + errorMessage_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance(); + onChanged(); + } else { + errorMessageBuilder_.clear(); + } + bitField2_ = (bitField2_ & ~0x00000200); + return this; + } + public de.pokerth.protocol.ProtoBuf.ErrorMessage.Builder getErrorMessageBuilder() { + bitField2_ |= 0x00000200; + onChanged(); + return getErrorMessageFieldBuilder().getBuilder(); + } + public de.pokerth.protocol.ProtoBuf.ErrorMessageOrBuilder getErrorMessageOrBuilder() { + if (errorMessageBuilder_ != null) { + return errorMessageBuilder_.getMessageOrBuilder(); + } else { + return errorMessage_; + } + } + private com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ErrorMessage, de.pokerth.protocol.ProtoBuf.ErrorMessage.Builder, de.pokerth.protocol.ProtoBuf.ErrorMessageOrBuilder> + getErrorMessageFieldBuilder() { + if (errorMessageBuilder_ == null) { + errorMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + de.pokerth.protocol.ProtoBuf.ErrorMessage, de.pokerth.protocol.ProtoBuf.ErrorMessage.Builder, de.pokerth.protocol.ProtoBuf.ErrorMessageOrBuilder>( + errorMessage_, + getParentForChildren(), + isClean()); + errorMessage_ = null; + } + return errorMessageBuilder_; + } + + // @@protoc_insertion_point(builder_scope:PokerTHMessage) + } + + static { + defaultInstance = new PokerTHMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:PokerTHMessage) + } + + private static com.google.protobuf.Descriptors.Descriptor + internal_static_NetGameInfo_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_NetGameInfo_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_PlayerResult_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PlayerResult_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_AnnounceMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_AnnounceMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_AnnounceMessage_Version_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_AnnounceMessage_Version_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_InitMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_InitMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_AuthServerChallengeMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_AuthServerChallengeMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_AuthClientResponseMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_AuthClientResponseMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_AuthServerVerificationMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_AuthServerVerificationMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_InitAckMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_InitAckMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_AvatarRequestMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_AvatarRequestMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_AvatarHeaderMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_AvatarHeaderMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_AvatarDataMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_AvatarDataMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_AvatarEndMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_AvatarEndMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_UnknownAvatarMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_UnknownAvatarMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_PlayerListMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PlayerListMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_GameListNewMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_GameListNewMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_GameListUpdateMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_GameListUpdateMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_GameListPlayerJoinedMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_GameListPlayerJoinedMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_GameListPlayerLeftMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_GameListPlayerLeftMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_GameListAdminChangedMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_GameListAdminChangedMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_PlayerInfoRequestMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PlayerInfoRequestMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_PlayerInfoReplyMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PlayerInfoReplyMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_PlayerInfoReplyMessage_PlayerInfoData_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PlayerInfoReplyMessage_PlayerInfoData_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_SubscriptionRequestMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_SubscriptionRequestMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_JoinExistingGameMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_JoinExistingGameMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_JoinNewGameMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_JoinNewGameMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_RejoinExistingGameMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_RejoinExistingGameMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_JoinGameAckMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_JoinGameAckMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_JoinGameFailedMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_JoinGameFailedMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_GamePlayerJoinedMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_GamePlayerJoinedMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_GamePlayerLeftMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_GamePlayerLeftMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_GameAdminChangedMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_GameAdminChangedMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_RemovedFromGameMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_RemovedFromGameMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_KickPlayerRequestMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_KickPlayerRequestMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_LeaveGameRequestMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_LeaveGameRequestMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_InvitePlayerToGameMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_InvitePlayerToGameMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_InviteNotifyMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_InviteNotifyMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_RejectGameInvitationMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_RejectGameInvitationMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_RejectInvNotifyMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_RejectInvNotifyMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_StartEventMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_StartEventMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_StartEventAckMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_StartEventAckMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_GameStartInitialMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_GameStartInitialMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_GameStartRejoinMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_GameStartRejoinMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_GameStartRejoinMessage_RejoinPlayerData_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_GameStartRejoinMessage_RejoinPlayerData_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_HandStartMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_HandStartMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_HandStartMessage_PlainCards_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_HandStartMessage_PlainCards_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_PlayersTurnMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PlayersTurnMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_MyActionRequestMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_MyActionRequestMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_YourActionRejectedMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_YourActionRejectedMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_PlayersActionDoneMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PlayersActionDoneMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_DealFlopCardsMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_DealFlopCardsMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_DealTurnCardMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_DealTurnCardMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_DealRiverCardMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_DealRiverCardMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_AllInShowCardsMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_AllInShowCardsMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_AllInShowCardsMessage_PlayerAllIn_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_AllInShowCardsMessage_PlayerAllIn_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_EndOfHandShowCardsMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_EndOfHandShowCardsMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_EndOfHandHideCardsMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_EndOfHandHideCardsMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_ShowMyCardsRequestMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ShowMyCardsRequestMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_AfterHandShowCardsMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_AfterHandShowCardsMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_EndOfGameMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_EndOfGameMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_PlayerIdChangedMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PlayerIdChangedMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_AskKickPlayerMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_AskKickPlayerMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_AskKickDeniedMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_AskKickDeniedMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_StartKickPetitionMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_StartKickPetitionMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_VoteKickRequestMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_VoteKickRequestMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_VoteKickReplyMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_VoteKickReplyMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_KickPetitionUpdateMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_KickPetitionUpdateMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_EndKickPetitionMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_EndKickPetitionMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_StatisticsMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_StatisticsMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_StatisticsMessage_StatisticsData_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_StatisticsMessage_StatisticsData_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_ChatRequestMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ChatRequestMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_ChatMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ChatMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_ChatRejectMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ChatRejectMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_DialogMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_DialogMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_TimeoutWarningMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_TimeoutWarningMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_ResetTimeoutMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ResetTimeoutMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_ReportAvatarMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ReportAvatarMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_ReportAvatarAckMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ReportAvatarAckMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_ReportGameMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ReportGameMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_ReportGameAckMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ReportGameAckMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_ErrorMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_ErrorMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_PokerTHMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PokerTHMessage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\rpokerth.proto\"\242\005\n\013NetGameInfo\022\020\n\010gameN" + + "ame\030\001 \002(\t\022-\n\013netGameType\030\002 \002(\0162\030.NetGame" + + "Info.NetGameType\022\025\n\rmaxNumPlayers\030\003 \002(\r\022" + + "9\n\021raiseIntervalMode\030\004 \002(\0162\036.NetGameInfo" + + ".RaiseIntervalMode\022\027\n\017raiseEveryHands\030\005 " + + "\001(\r\022\031\n\021raiseEveryMinutes\030\006 \001(\r\022/\n\014endRai" + + "seMode\030\007 \002(\0162\031.NetGameInfo.EndRaiseMode\022" + + "\037\n\027endRaiseSmallBlindValue\030\010 \001(\r\022\030\n\020prop" + + "osedGuiSpeed\030\t \002(\r\022\031\n\021delayBetweenHands\030" + + "\n \002(\r\022\033\n\023playerActionTimeout\030\013 \002(\r\022\027\n\017fi", + "rstSmallBlind\030\014 \002(\r\022\022\n\nstartMoney\030\r \002(\r\022" + + "\030\n\014manualBlinds\030\016 \003(\rB\002\020\001\"Z\n\013NetGameType" + + "\022\016\n\nnormalGame\020\001\022\026\n\022registeredOnlyGame\020\002" + + "\022\022\n\016inviteOnlyGame\020\003\022\017\n\013rankingGame\020\004\";\n" + + "\021RaiseIntervalMode\022\022\n\016raiseOnHandNum\020\001\022\022" + + "\n\016raiseOnMinutes\020\002\"H\n\014EndRaiseMode\022\020\n\014do" + + "ubleBlinds\020\001\022\023\n\017raiseByEndValue\020\002\022\021\n\rkee" + + "pLastBlind\020\003\"\243\001\n\014PlayerResult\022\020\n\010playerI" + + "d\030\001 \002(\r\022\023\n\013resultCard1\030\002 \002(\r\022\023\n\013resultCa" + + "rd2\030\003 \002(\r\022\034\n\020bestHandPosition\030\004 \003(\rB\002\020\001\022", + "\020\n\010moneyWon\030\005 \002(\r\022\023\n\013playerMoney\030\006 \002(\r\022\022" + + "\n\ncardsValue\030\007 \001(\r\"\346\002\n\017AnnounceMessage\0221" + + "\n\017protocolVersion\030\001 \002(\0132\030.AnnounceMessag" + + "e.Version\0223\n\021latestGameVersion\030\002 \002(\0132\030.A" + + "nnounceMessage.Version\022\032\n\022latestBetaRevi" + + "sion\030\003 \002(\r\022/\n\nserverType\030\004 \002(\0162\033.Announc" + + "eMessage.ServerType\022\032\n\022numPlayersOnServe" + + "r\030\005 \002(\r\032\'\n\007Version\022\r\n\005major\030\001 \002(\r\022\r\n\005min" + + "or\030\002 \002(\r\"Y\n\nServerType\022\021\n\rserverTypeLAN\020" + + "\000\022\034\n\030serverTypeInternetNoAuth\020\001\022\032\n\026serve", + "rTypeInternetAuth\020\002\"\273\002\n\013InitMessage\0222\n\020r" + + "equestedVersion\030\001 \002(\0132\030.AnnounceMessage." + + "Version\022\017\n\007buildId\030\002 \002(\r\022\027\n\017myLastSessio" + + "nId\030\003 \001(\014\022\032\n\022authServerPassword\030\004 \001(\t\022%\n" + + "\005login\030\005 \002(\0162\026.InitMessage.LoginType\022\020\n\010" + + "nickName\030\006 \001(\t\022\026\n\016clientUserData\030\007 \001(\014\022\022" + + "\n\navatarHash\030\010 \001(\014\"M\n\tLoginType\022\016\n\nguest" + + "Login\020\000\022\026\n\022authenticatedLogin\020\001\022\030\n\024unaut" + + "henticatedLogin\020\002\"5\n\032AuthServerChallenge" + + "Message\022\027\n\017serverChallenge\030\001 \002(\014\"3\n\031Auth", + "ClientResponseMessage\022\026\n\016clientResponse\030" + + "\001 \002(\014\";\n\035AuthServerVerificationMessage\022\032" + + "\n\022serverVerification\030\001 \002(\014\"k\n\016InitAckMes" + + "sage\022\025\n\ryourSessionId\030\001 \002(\014\022\024\n\014yourPlaye" + + "rId\030\002 \002(\r\022\026\n\016yourAvatarHash\030\003 \001(\014\022\024\n\014rej" + + "oinGameId\030\004 \001(\r\"=\n\024AvatarRequestMessage\022" + + "\021\n\trequestId\030\001 \002(\r\022\022\n\navatarHash\030\002 \002(\014\"`" + + "\n\023AvatarHeaderMessage\022\021\n\trequestId\030\001 \002(\r" + + "\022\"\n\navatarType\030\002 \002(\0162\016.NetAvatarType\022\022\n\n" + + "avatarSize\030\003 \002(\r\";\n\021AvatarDataMessage\022\021\n", + "\trequestId\030\001 \002(\r\022\023\n\013avatarBlock\030\002 \002(\014\"%\n" + + "\020AvatarEndMessage\022\021\n\trequestId\030\001 \002(\r\")\n\024" + + "UnknownAvatarMessage\022\021\n\trequestId\030\001 \002(\r\"" + + "\261\001\n\021PlayerListMessage\022\020\n\010playerId\030\001 \002(\r\022" + + "I\n\026playerListNotification\030\002 \002(\0162).Player" + + "ListMessage.PlayerListNotification\"?\n\026Pl" + + "ayerListNotification\022\021\n\rplayerListNew\020\000\022" + + "\022\n\016playerListLeft\020\001\"\245\001\n\022GameListNewMessa" + + "ge\022\016\n\006gameId\030\001 \002(\r\022\036\n\010gameMode\030\002 \002(\0162\014.N" + + "etGameMode\022\021\n\tisPrivate\030\003 \002(\010\022\025\n\tplayerI", + "ds\030\004 \003(\rB\002\020\001\022\025\n\radminPlayerId\030\005 \002(\r\022\036\n\010g" + + "ameInfo\030\006 \002(\0132\014.NetGameInfo\"G\n\025GameListU" + + "pdateMessage\022\016\n\006gameId\030\001 \002(\r\022\036\n\010gameMode" + + "\030\002 \002(\0162\014.NetGameMode\"?\n\033GameListPlayerJo" + + "inedMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030" + + "\002 \002(\r\"=\n\031GameListPlayerLeftMessage\022\016\n\006ga" + + "meId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\"G\n\033GameList" + + "AdminChangedMessage\022\016\n\006gameId\030\001 \002(\r\022\030\n\020n" + + "ewAdminPlayerId\030\002 \002(\r\",\n\030PlayerInfoReque" + + "stMessage\022\020\n\010playerId\030\001 \002(\r\"\355\002\n\026PlayerIn", + "foReplyMessage\022\020\n\010playerId\030\001 \002(\r\022>\n\016play" + + "erInfoData\030\002 \001(\0132&.PlayerInfoReplyMessag" + + "e.PlayerInfoData\032\200\002\n\016PlayerInfoData\022\022\n\np" + + "layerName\030\001 \002(\t\022\017\n\007isHuman\030\002 \002(\010\022\'\n\014play" + + "erRights\030\003 \002(\0162\021.PlayerInfoRights\022\023\n\013cou" + + "ntryCode\030\004 \001(\t\022E\n\navatarData\030\005 \001(\01321.Pla" + + "yerInfoReplyMessage.PlayerInfoData.Avata" + + "rData\032D\n\nAvatarData\022\"\n\navatarType\030\001 \002(\0162" + + "\016.NetAvatarType\022\022\n\navatarHash\030\002 \002(\014\"\260\001\n\032" + + "SubscriptionRequestMessage\022J\n\022subscripti", + "onAction\030\001 \002(\0162..SubscriptionRequestMess" + + "age.SubscriptionAction\"F\n\022SubscriptionAc" + + "tion\022\027\n\023unsubscribeGameList\020\001\022\027\n\023resubsc" + + "ribeGameList\020\002\"N\n\027JoinExistingGameMessag" + + "e\022\016\n\006gameId\030\001 \002(\r\022\020\n\010password\030\002 \001(\t\022\021\n\ta" + + "utoLeave\030\003 \001(\010\"Y\n\022JoinNewGameMessage\022\036\n\010" + + "gameInfo\030\001 \002(\0132\014.NetGameInfo\022\020\n\010password" + + "\030\002 \001(\t\022\021\n\tautoLeave\030\003 \001(\010\">\n\031RejoinExist" + + "ingGameMessage\022\016\n\006gameId\030\001 \002(\r\022\021\n\tautoLe" + + "ave\030\002 \001(\010\"]\n\022JoinGameAckMessage\022\016\n\006gameI", + "d\030\001 \002(\r\022\027\n\017areYouGameAdmin\030\002 \002(\010\022\036\n\010game" + + "Info\030\003 \002(\0132\014.NetGameInfo\"\337\002\n\025JoinGameFai" + + "ledMessage\022\016\n\006gameId\030\001 \002(\r\022K\n\025joinGameFa" + + "ilureReason\030\002 \002(\0162,.JoinGameFailedMessag" + + "e.JoinGameFailureReason\"\350\001\n\025JoinGameFail" + + "ureReason\022\017\n\013invalidGame\020\001\022\016\n\ngameIsFull" + + "\020\002\022\021\n\rgameIsRunning\020\003\022\023\n\017invalidPassword" + + "\020\004\022\025\n\021notAllowedAsGuest\020\005\022\016\n\nnotInvited\020" + + "\006\022\021\n\rgameNameInUse\020\007\022\017\n\013badGameName\020\010\022\023\n" + + "\017invalidSettings\020\t\022\024\n\020ipAddressBlocked\020\n", + "\022\020\n\014rejoinFailed\020\013\"P\n\027GamePlayerJoinedMe" + + "ssage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022" + + "\023\n\013isGameAdmin\030\003 \002(\010\"\316\001\n\025GamePlayerLeftM" + + "essage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r" + + "\022I\n\024gamePlayerLeftReason\030\003 \002(\0162+.GamePla" + + "yerLeftMessage.GamePlayerLeftReason\"H\n\024G" + + "amePlayerLeftReason\022\021\n\rleftOnRequest\020\000\022\016" + + "\n\nleftKicked\020\001\022\r\n\tleftError\020\002\"C\n\027GameAdm" + + "inChangedMessage\022\016\n\006gameId\030\001 \002(\r\022\030\n\020newA" + + "dminPlayerId\030\002 \002(\r\"\206\002\n\026RemovedFromGameMe", + "ssage\022\016\n\006gameId\030\001 \002(\r\022L\n\025removedFromGame" + + "Reason\030\002 \002(\0162-.RemovedFromGameMessage.Re" + + "movedFromGameReason\"\215\001\n\025RemovedFromGameR" + + "eason\022\024\n\020removedOnRequest\020\000\022\022\n\016kickedFro" + + "mGame\020\001\022\016\n\ngameIsFull\020\002\022\021\n\rgameIsRunning" + + "\020\003\022\017\n\013gameTimeout\020\004\022\026\n\022removedStartFaile" + + "d\020\005\"<\n\030KickPlayerRequestMessage\022\016\n\006gameI" + + "d\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\")\n\027LeaveGameRe" + + "questMessage\022\016\n\006gameId\030\001 \002(\r\"=\n\031InvitePl" + + "ayerToGameMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010pla", + "yerId\030\002 \002(\r\"R\n\023InviteNotifyMessage\022\016\n\006ga" + + "meId\030\001 \002(\r\022\023\n\013playerIdWho\030\002 \002(\r\022\026\n\016playe" + + "rIdByWhom\030\003 \002(\r\"\270\001\n\033RejectGameInvitation" + + "Message\022\016\n\006gameId\030\001 \002(\r\022H\n\016myRejectReaso" + + "n\030\002 \002(\01620.RejectGameInvitationMessage.Re" + + "jectGameInvReason\"?\n\023RejectGameInvReason" + + "\022\022\n\016rejectReasonNo\020\000\022\024\n\020rejectReasonBusy" + + "\020\001\"\210\001\n\026RejectInvNotifyMessage\022\016\n\006gameId\030" + + "\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022L\n\022playerRejectR" + + "eason\030\003 \002(\01620.RejectGameInvitationMessag", + "e.RejectGameInvReason\"\262\001\n\021StartEventMess" + + "age\022\016\n\006gameId\030\001 \002(\r\0229\n\016startEventType\030\002 " + + "\002(\0162!.StartEventMessage.StartEventType\022\037" + + "\n\027fillWithComputerPlayers\030\003 \001(\010\"1\n\016Start" + + "EventType\022\016\n\nstartEvent\020\000\022\017\n\013rejoinEvent" + + "\020\001\"&\n\024StartEventAckMessage\022\016\n\006gameId\030\001 \002" + + "(\r\"_\n\027GameStartInitialMessage\022\016\n\006gameId\030" + + "\001 \002(\r\022\033\n\023startDealerPlayerId\030\002 \002(\r\022\027\n\013pl" + + "ayerSeats\030\003 \003(\rB\002\020\001\"\325\001\n\026GameStartRejoinM" + + "essage\022\016\n\006gameId\030\001 \002(\r\022\033\n\023startDealerPla", + "yerId\030\002 \002(\r\022\017\n\007handNum\030\003 \002(\r\022B\n\020rejoinPl" + + "ayerData\030\004 \003(\0132(.GameStartRejoinMessage." + + "RejoinPlayerData\0329\n\020RejoinPlayerData\022\020\n\010" + + "playerId\030\001 \002(\r\022\023\n\013playerMoney\030\002 \002(\r\"\333\001\n\020" + + "HandStartMessage\022\016\n\006gameId\030\001 \002(\r\0220\n\nplai" + + "nCards\030\002 \001(\0132\034.HandStartMessage.PlainCar" + + "ds\022\026\n\016encryptedCards\030\003 \001(\014\022\022\n\nsmallBlind" + + "\030\004 \002(\r\022#\n\nseatStates\030\005 \003(\0162\017.NetPlayerSt" + + "ate\0324\n\nPlainCards\022\022\n\nplainCard1\030\001 \002(\r\022\022\n" + + "\nplainCard2\030\002 \002(\r\"X\n\022PlayersTurnMessage\022", + "\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022 \n\tgam" + + "eState\030\003 \002(\0162\r.NetGameState\"\226\001\n\026MyAction" + + "RequestMessage\022\016\n\006gameId\030\001 \002(\r\022\017\n\007handNu" + + "m\030\002 \002(\r\022 \n\tgameState\030\003 \002(\0162\r.NetGameStat" + + "e\022\"\n\010myAction\030\004 \002(\0162\020.NetPlayerAction\022\025\n" + + "\rmyRelativeBet\030\005 \002(\r\"\271\002\n\031YourActionRejec" + + "tedMessage\022\016\n\006gameId\030\001 \002(\r\022 \n\tgameState\030" + + "\002 \002(\0162\r.NetGameState\022$\n\nyourAction\030\003 \002(\016" + + "2\020.NetPlayerAction\022\027\n\017yourRelativeBet\030\004 " + + "\002(\r\022C\n\017rejectionReason\030\005 \002(\0162*.YourActio", + "nRejectedMessage.RejectionReason\"f\n\017Reje" + + "ctionReason\022\034\n\030rejectedInvalidGameState\020" + + "\001\022\027\n\023rejectedNotYourTurn\020\002\022\034\n\030rejectedAc" + + "tionNotAllowed\020\003\"\335\001\n\030PlayersActionDoneMe" + + "ssage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022" + + " \n\tgameState\030\003 \002(\0162\r.NetGameState\022&\n\014pla" + + "yerAction\030\004 \002(\0162\020.NetPlayerAction\022\026\n\016tot" + + "alPlayerBet\030\005 \002(\r\022\023\n\013playerMoney\030\006 \002(\r\022\022" + + "\n\nhighestSet\030\007 \002(\r\022\024\n\014minimumRaise\030\010 \002(\r" + + "\"_\n\024DealFlopCardsMessage\022\016\n\006gameId\030\001 \002(\r", + "\022\021\n\tflopCard1\030\002 \002(\r\022\021\n\tflopCard2\030\003 \002(\r\022\021" + + "\n\tflopCard3\030\004 \002(\r\"7\n\023DealTurnCardMessage" + + "\022\016\n\006gameId\030\001 \002(\r\022\020\n\010turnCard\030\002 \002(\r\"9\n\024De" + + "alRiverCardMessage\022\016\n\006gameId\030\001 \002(\r\022\021\n\tri" + + "verCard\030\002 \002(\r\"\252\001\n\025AllInShowCardsMessage\022" + + "\016\n\006gameId\030\001 \002(\r\0228\n\014playersAllIn\030\002 \003(\0132\"." + + "AllInShowCardsMessage.PlayerAllIn\032G\n\013Pla" + + "yerAllIn\022\020\n\010playerId\030\001 \002(\r\022\022\n\nallInCard1" + + "\030\002 \002(\r\022\022\n\nallInCard2\030\003 \002(\r\"Q\n\031EndOfHandS" + + "howCardsMessage\022\016\n\006gameId\030\001 \002(\r\022$\n\rplaye", + "rResults\030\002 \003(\0132\r.PlayerResult\"d\n\031EndOfHa" + + "ndHideCardsMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010pl" + + "ayerId\030\002 \002(\r\022\020\n\010moneyWon\030\003 \002(\r\022\023\n\013player" + + "Money\030\004 \002(\r\"\033\n\031ShowMyCardsRequestMessage" + + "\"@\n\031AfterHandShowCardsMessage\022#\n\014playerR" + + "esult\030\001 \002(\0132\r.PlayerResult\":\n\020EndOfGameM" + + "essage\022\016\n\006gameId\030\001 \002(\r\022\026\n\016winnerPlayerId" + + "\030\002 \002(\r\"B\n\026PlayerIdChangedMessage\022\023\n\013oldP" + + "layerId\030\001 \002(\r\022\023\n\013newPlayerId\030\002 \002(\r\"8\n\024As" + + "kKickPlayerMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010pl", + "ayerId\030\002 \002(\r\"\247\002\n\024AskKickDeniedMessage\022\016\n" + + "\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022@\n\020kickD" + + "eniedReason\030\003 \002(\0162&.AskKickDeniedMessage" + + ".KickDeniedReason\"\252\001\n\020KickDeniedReason\022\036" + + "\n\032kickDeniedInvalidGameState\020\000\022\031\n\025kickDe" + + "niedNotPossible\020\001\022\033\n\027kickDeniedTryAgainL" + + "ater\020\002\022\037\n\033kickDeniedAlreadyInProgress\020\003\022" + + "\035\n\031kickDeniedInvalidPlayerId\020\004\"\245\001\n\030Start" + + "KickPetitionMessage\022\016\n\006gameId\030\001 \002(\r\022\022\n\np" + + "etitionId\030\002 \002(\r\022\031\n\021proposingPlayerId\030\003 \002", + "(\r\022\024\n\014kickPlayerId\030\004 \002(\r\022\026\n\016kickTimeoutS" + + "ec\030\005 \002(\r\022\034\n\024numVotesNeededToKick\030\006 \002(\r\"N" + + "\n\026VoteKickRequestMessage\022\016\n\006gameId\030\001 \002(\r" + + "\022\022\n\npetitionId\030\002 \002(\r\022\020\n\010voteKick\030\003 \002(\010\"\337" + + "\001\n\024VoteKickReplyMessage\022\016\n\006gameId\030\001 \002(\r\022" + + "\022\n\npetitionId\030\002 \002(\r\022B\n\021voteKickReplyType" + + "\030\003 \002(\0162\'.VoteKickReplyMessage.VoteKickRe" + + "plyType\"_\n\021VoteKickReplyType\022\017\n\013voteKick" + + "Ack\020\000\022\031\n\025voteKickDeniedInvalid\020\001\022\036\n\032vote" + + "KickDeniedAlreadyVoted\020\002\"\240\001\n\031KickPetitio", + "nUpdateMessage\022\016\n\006gameId\030\001 \002(\r\022\022\n\npetiti" + + "onId\030\002 \002(\r\022\036\n\026numVotesAgainstKicking\030\003 \002" + + "(\r\022!\n\031numVotesInFavourOfKicking\030\004 \002(\r\022\034\n" + + "\024numVotesNeededToKick\030\005 \002(\r\"\344\002\n\026EndKickP" + + "etitionMessage\022\016\n\006gameId\030\001 \002(\r\022\022\n\npetiti" + + "onId\030\002 \002(\r\022\036\n\026numVotesAgainstKicking\030\003 \002" + + "(\r\022!\n\031numVotesInFavourOfKicking\030\004 \002(\r\022\032\n" + + "\022resultPlayerKicked\030\005 \002(\r\022D\n\021petitionEnd" + + "Reason\030\006 \002(\0162).EndKickPetitionMessage.Pe" + + "titionEndReason\"\200\001\n\021PetitionEndReason\022\032\n", + "\026petitionEndEnoughVotes\020\000\022\034\n\030petitionEnd" + + "TooFewPlayers\020\001\022\031\n\025petitionEndPlayerLeft" + + "\020\002\022\026\n\022petitionEndTimeout\020\003\"\357\001\n\021Statistic" + + "sMessage\0229\n\016statisticsData\030\001 \003(\0132!.Stati" + + "sticsMessage.StatisticsData\032\236\001\n\016Statisti" + + "csData\022H\n\016statisticsType\030\001 \002(\01620.Statist" + + "icsMessage.StatisticsData.StatisticsType" + + "\022\027\n\017statisticsValue\030\002 \002(\r\")\n\016StatisticsT" + + "ype\022\027\n\023statNumberOfPlayers\020\001\"T\n\022ChatRequ" + + "estMessage\022\024\n\014targetGameId\030\001 \001(\r\022\026\n\016targ", + "etPlayerId\030\002 \001(\r\022\020\n\010chatText\030\003 \002(\t\"\330\001\n\013C" + + "hatMessage\022\016\n\006gameId\030\001 \001(\r\022\020\n\010playerId\030\002" + + " \001(\r\022\'\n\010chatType\030\003 \002(\0162\025.ChatMessage.Cha" + + "tType\022\020\n\010chatText\030\004 \002(\t\"l\n\010ChatType\022\021\n\rc" + + "hatTypeLobby\020\000\022\020\n\014chatTypeGame\020\001\022\017\n\013chat" + + "TypeBot\020\002\022\025\n\021chatTypeBroadcast\020\003\022\023\n\017chat" + + "TypePrivate\020\004\"%\n\021ChatRejectMessage\022\020\n\010ch" + + "atText\030\001 \002(\t\")\n\rDialogMessage\022\030\n\020notific" + + "ationText\030\001 \002(\t\"\321\001\n\025TimeoutWarningMessag" + + "e\022;\n\rtimeoutReason\030\001 \002(\0162$.TimeoutWarnin", + "gMessage.TimeoutReason\022\030\n\020remainingSecon" + + "ds\030\002 \002(\r\"a\n\rTimeoutReason\022\031\n\025timeoutNoDa" + + "taReceived\020\000\022\027\n\023timeoutInactiveGame\020\001\022\034\n" + + "\030timeoutKickAfterAutofold\020\002\"\025\n\023ResetTime" + + "outMessage\"K\n\023ReportAvatarMessage\022\030\n\020rep" + + "ortedPlayerId\030\001 \002(\r\022\032\n\022reportedAvatarHas" + + "h\030\002 \002(\014\"\336\001\n\026ReportAvatarAckMessage\022\030\n\020re" + + "portedPlayerId\030\001 \002(\r\022F\n\022reportAvatarResu" + + "lt\030\002 \002(\0162*.ReportAvatarAckMessage.Report" + + "AvatarResult\"b\n\022ReportAvatarResult\022\030\n\024av", + "atarReportAccepted\020\000\022\031\n\025avatarReportDupl" + + "icate\020\001\022\027\n\023avatarReportInvalid\020\002\"+\n\021Repo" + + "rtGameMessage\022\026\n\016reportedGameId\030\001 \002(\r\"\314\001" + + "\n\024ReportGameAckMessage\022\026\n\016reportedGameId" + + "\030\001 \002(\r\022@\n\020reportGameResult\030\002 \002(\0162&.Repor" + + "tGameAckMessage.ReportGameResult\"Z\n\020Repo" + + "rtGameResult\022\026\n\022gameReportAccepted\020\000\022\027\n\023" + + "gameReportDuplicate\020\001\022\025\n\021gameReportInval" + + "id\020\002\"\220\003\n\014ErrorMessage\022.\n\013errorReason\030\001 \002" + + "(\0162\031.ErrorMessage.ErrorReason\"\317\002\n\013ErrorR", + "eason\022\014\n\010reserved\020\000\022\033\n\027initVersionNotSup" + + "ported\020\001\022\022\n\016initServerFull\020\002\022\023\n\017initAuth" + + "Failure\020\003\022\027\n\023initPlayerNameInUse\020\004\022\031\n\025in" + + "itInvalidPlayerName\020\005\022\031\n\025initServerMaint" + + "enance\020\006\022\017\n\013initBlocked\020\007\022\022\n\016avatarTooLa" + + "rge\020\010\022\021\n\rinvalidPacket\020\t\022\020\n\014invalidState" + + "\020\n\022\024\n\020kickedFromServer\020\013\022\024\n\020bannedFromSe" + + "rver\020\014\022\023\n\017blockedByServer\020\r\022\022\n\016sessionTi" + + "meout\020\016\"\3771\n\016PokerTHMessage\0227\n\013messageTyp" + + "e\030\001 \002(\0162\".PokerTHMessage.PokerTHMessageT", + "ype\022)\n\017announceMessage\030\002 \001(\0132\020.AnnounceM" + + "essage\022!\n\013initMessage\030\003 \001(\0132\014.InitMessag" + + "e\022?\n\032authServerChallengeMessage\030\004 \001(\0132\033." + + "AuthServerChallengeMessage\022=\n\031authClient" + + "ResponseMessage\030\005 \001(\0132\032.AuthClientRespon" + + "seMessage\022E\n\035authServerVerificationMessa" + + "ge\030\006 \001(\0132\036.AuthServerVerificationMessage" + + "\022\'\n\016initAckMessage\030\007 \001(\0132\017.InitAckMessag" + + "e\0223\n\024avatarRequestMessage\030\010 \001(\0132\025.Avatar" + + "RequestMessage\0221\n\023avatarHeaderMessage\030\t ", + "\001(\0132\024.AvatarHeaderMessage\022-\n\021avatarDataM" + + "essage\030\n \001(\0132\022.AvatarDataMessage\022+\n\020avat" + + "arEndMessage\030\013 \001(\0132\021.AvatarEndMessage\0223\n" + + "\024unknownAvatarMessage\030\014 \001(\0132\025.UnknownAva" + + "tarMessage\022-\n\021playerListMessage\030\r \001(\0132\022." + + "PlayerListMessage\022/\n\022gameListNewMessage\030" + + "\016 \001(\0132\023.GameListNewMessage\0225\n\025gameListUp" + + "dateMessage\030\017 \001(\0132\026.GameListUpdateMessag" + + "e\022A\n\033gameListPlayerJoinedMessage\030\020 \001(\0132\034" + + ".GameListPlayerJoinedMessage\022=\n\031gameList", + "PlayerLeftMessage\030\021 \001(\0132\032.GameListPlayer" + + "LeftMessage\022A\n\033gameListAdminChangedMessa" + + "ge\030\022 \001(\0132\034.GameListAdminChangedMessage\022;" + + "\n\030playerInfoRequestMessage\030\023 \001(\0132\031.Playe" + + "rInfoRequestMessage\0227\n\026playerInfoReplyMe" + + "ssage\030\024 \001(\0132\027.PlayerInfoReplyMessage\022?\n\032" + + "subscriptionRequestMessage\030\025 \001(\0132\033.Subsc" + + "riptionRequestMessage\0229\n\027joinExistingGam" + + "eMessage\030\026 \001(\0132\030.JoinExistingGameMessage" + + "\022/\n\022joinNewGameMessage\030\027 \001(\0132\023.JoinNewGa", + "meMessage\022=\n\031rejoinExistingGameMessage\030\030" + + " \001(\0132\032.RejoinExistingGameMessage\022/\n\022join" + + "GameAckMessage\030\031 \001(\0132\023.JoinGameAckMessag" + + "e\0225\n\025joinGameFailedMessage\030\032 \001(\0132\026.JoinG" + + "ameFailedMessage\0229\n\027gamePlayerJoinedMess" + + "age\030\033 \001(\0132\030.GamePlayerJoinedMessage\0225\n\025g" + + "amePlayerLeftMessage\030\034 \001(\0132\026.GamePlayerL" + + "eftMessage\0229\n\027gameAdminChangedMessage\030\035 " + + "\001(\0132\030.GameAdminChangedMessage\0227\n\026removed" + + "FromGameMessage\030\036 \001(\0132\027.RemovedFromGameM", + "essage\022;\n\030kickPlayerRequestMessage\030\037 \001(\013" + + "2\031.KickPlayerRequestMessage\0229\n\027leaveGame" + + "RequestMessage\030 \001(\0132\030.LeaveGameRequestM" + + "essage\022=\n\031invitePlayerToGameMessage\030! \001(" + + "\0132\032.InvitePlayerToGameMessage\0221\n\023inviteN" + + "otifyMessage\030\" \001(\0132\024.InviteNotifyMessage" + + "\022A\n\033rejectGameInvitationMessage\030# \001(\0132\034." + + "RejectGameInvitationMessage\0227\n\026rejectInv" + + "NotifyMessage\030$ \001(\0132\027.RejectInvNotifyMes" + + "sage\022-\n\021startEventMessage\030% \001(\0132\022.StartE", + "ventMessage\0223\n\024startEventAckMessage\030& \001(" + + "\0132\025.StartEventAckMessage\0229\n\027gameStartIni" + + "tialMessage\030\' \001(\0132\030.GameStartInitialMess" + + "age\0227\n\026gameStartRejoinMessage\030( \001(\0132\027.Ga" + + "meStartRejoinMessage\022+\n\020handStartMessage" + + "\030) \001(\0132\021.HandStartMessage\022/\n\022playersTurn" + + "Message\030* \001(\0132\023.PlayersTurnMessage\0227\n\026my" + + "ActionRequestMessage\030+ \001(\0132\027.MyActionReq" + + "uestMessage\022=\n\031yourActionRejectedMessage" + + "\030, \001(\0132\032.YourActionRejectedMessage\022;\n\030pl", + "ayersActionDoneMessage\030- \001(\0132\031.PlayersAc" + + "tionDoneMessage\0223\n\024dealFlopCardsMessage\030" + + ". \001(\0132\025.DealFlopCardsMessage\0221\n\023dealTurn" + + "CardMessage\030/ \001(\0132\024.DealTurnCardMessage\022" + + "3\n\024dealRiverCardMessage\0300 \001(\0132\025.DealRive" + + "rCardMessage\0225\n\025allInShowCardsMessage\0301 " + + "\001(\0132\026.AllInShowCardsMessage\022=\n\031endOfHand" + + "ShowCardsMessage\0302 \001(\0132\032.EndOfHandShowCa" + + "rdsMessage\022=\n\031endOfHandHideCardsMessage\030" + + "3 \001(\0132\032.EndOfHandHideCardsMessage\022=\n\031sho", + "wMyCardsRequestMessage\0304 \001(\0132\032.ShowMyCar" + + "dsRequestMessage\022=\n\031afterHandShowCardsMe" + + "ssage\0305 \001(\0132\032.AfterHandShowCardsMessage\022" + + "+\n\020endOfGameMessage\0306 \001(\0132\021.EndOfGameMes" + + "sage\0227\n\026playerIdChangedMessage\0307 \001(\0132\027.P" + + "layerIdChangedMessage\0223\n\024askKickPlayerMe" + + "ssage\0308 \001(\0132\025.AskKickPlayerMessage\0223\n\024as" + + "kKickDeniedMessage\0309 \001(\0132\025.AskKickDenied" + + "Message\022;\n\030startKickPetitionMessage\030: \001(" + + "\0132\031.StartKickPetitionMessage\0227\n\026voteKick", + "RequestMessage\030; \001(\0132\027.VoteKickRequestMe" + + "ssage\0223\n\024voteKickReplyMessage\030< \001(\0132\025.Vo" + + "teKickReplyMessage\022=\n\031kickPetitionUpdate" + + "Message\030= \001(\0132\032.KickPetitionUpdateMessag" + + "e\0227\n\026endKickPetitionMessage\030> \001(\0132\027.EndK" + + "ickPetitionMessage\022-\n\021statisticsMessage\030" + + "? \001(\0132\022.StatisticsMessage\022/\n\022chatRequest" + + "Message\030@ \001(\0132\023.ChatRequestMessage\022!\n\013ch" + + "atMessage\030A \001(\0132\014.ChatMessage\022-\n\021chatRej" + + "ectMessage\030B \001(\0132\022.ChatRejectMessage\022%\n\r", + "dialogMessage\030C \001(\0132\016.DialogMessage\0225\n\025t" + + "imeoutWarningMessage\030D \001(\0132\026.TimeoutWarn" + + "ingMessage\0221\n\023resetTimeoutMessage\030E \001(\0132" + + "\024.ResetTimeoutMessage\0221\n\023reportAvatarMes" + + "sage\030F \001(\0132\024.ReportAvatarMessage\0227\n\026repo" + + "rtAvatarAckMessage\030G \001(\0132\027.ReportAvatarA" + + "ckMessage\022-\n\021reportGameMessage\030H \001(\0132\022.R" + + "eportGameMessage\0223\n\024reportGameAckMessage" + + "\030I \001(\0132\025.ReportGameAckMessage\022#\n\014errorMe" + + "ssage\030J \001(\0132\r.ErrorMessage\"\244\022\n\022PokerTHMe", + "ssageType\022\030\n\024Type_AnnounceMessage\020\001\022\024\n\020T" + + "ype_InitMessage\020\002\022#\n\037Type_AuthServerChal" + + "lengeMessage\020\003\022\"\n\036Type_AuthClientRespons" + + "eMessage\020\004\022&\n\"Type_AuthServerVerificatio" + + "nMessage\020\005\022\027\n\023Type_InitAckMessage\020\006\022\035\n\031T" + + "ype_AvatarRequestMessage\020\007\022\034\n\030Type_Avata" + + "rHeaderMessage\020\010\022\032\n\026Type_AvatarDataMessa" + + "ge\020\t\022\031\n\025Type_AvatarEndMessage\020\n\022\035\n\031Type_" + + "UnknownAvatarMessage\020\013\022\032\n\026Type_PlayerLis" + + "tMessage\020\014\022\033\n\027Type_GameListNewMessage\020\r\022", + "\036\n\032Type_GameListUpdateMessage\020\016\022$\n Type_" + + "GameListPlayerJoinedMessage\020\017\022\"\n\036Type_Ga" + + "meListPlayerLeftMessage\020\020\022$\n Type_GameLi" + + "stAdminChangedMessage\020\021\022!\n\035Type_PlayerIn" + + "foRequestMessage\020\022\022\037\n\033Type_PlayerInfoRep" + + "lyMessage\020\023\022#\n\037Type_SubscriptionRequestM" + + "essage\020\024\022 \n\034Type_JoinExistingGameMessage" + + "\020\025\022\033\n\027Type_JoinNewGameMessage\020\026\022\"\n\036Type_" + + "RejoinExistingGameMessage\020\027\022\033\n\027Type_Join" + + "GameAckMessage\020\030\022\036\n\032Type_JoinGameFailedM", + "essage\020\031\022 \n\034Type_GamePlayerJoinedMessage" + + "\020\032\022\036\n\032Type_GamePlayerLeftMessage\020\033\022 \n\034Ty" + + "pe_GameAdminChangedMessage\020\034\022\037\n\033Type_Rem" + + "ovedFromGameMessage\020\035\022!\n\035Type_KickPlayer" + + "RequestMessage\020\036\022 \n\034Type_LeaveGameReques" + + "tMessage\020\037\022\"\n\036Type_InvitePlayerToGameMes" + + "sage\020 \022\034\n\030Type_InviteNotifyMessage\020!\022$\n " + + "Type_RejectGameInvitationMessage\020\"\022\037\n\033Ty" + + "pe_RejectInvNotifyMessage\020#\022\032\n\026Type_Star" + + "tEventMessage\020$\022\035\n\031Type_StartEventAckMes", + "sage\020%\022 \n\034Type_GameStartInitialMessage\020&" + + "\022\037\n\033Type_GameStartRejoinMessage\020\'\022\031\n\025Typ" + + "e_HandStartMessage\020(\022\033\n\027Type_PlayersTurn" + + "Message\020)\022\037\n\033Type_MyActionRequestMessage" + + "\020*\022\"\n\036Type_YourActionRejectedMessage\020+\022!" + + "\n\035Type_PlayersActionDoneMessage\020,\022\035\n\031Typ" + + "e_DealFlopCardsMessage\020-\022\034\n\030Type_DealTur" + + "nCardMessage\020.\022\035\n\031Type_DealRiverCardMess" + + "age\020/\022\036\n\032Type_AllInShowCardsMessage\0200\022\"\n" + + "\036Type_EndOfHandShowCardsMessage\0201\022\"\n\036Typ", + "e_EndOfHandHideCardsMessage\0202\022\"\n\036Type_Sh" + + "owMyCardsRequestMessage\0203\022\"\n\036Type_AfterH" + + "andShowCardsMessage\0204\022\031\n\025Type_EndOfGameM" + + "essage\0205\022\037\n\033Type_PlayerIdChangedMessage\020" + + "6\022\035\n\031Type_AskKickPlayerMessage\0207\022\035\n\031Type" + + "_AskKickDeniedMessage\0208\022!\n\035Type_StartKic" + + "kPetitionMessage\0209\022\037\n\033Type_VoteKickReque" + + "stMessage\020:\022\035\n\031Type_VoteKickReplyMessage" + + "\020;\022\"\n\036Type_KickPetitionUpdateMessage\020<\022\037" + + "\n\033Type_EndKickPetitionMessage\020=\022\032\n\026Type_", + "StatisticsMessage\020>\022\033\n\027Type_ChatRequestM" + + "essage\020?\022\024\n\020Type_ChatMessage\020@\022\032\n\026Type_C" + + "hatRejectMessage\020A\022\026\n\022Type_DialogMessage" + + "\020B\022\036\n\032Type_TimeoutWarningMessage\020C\022\034\n\030Ty" + + "pe_ResetTimeoutMessage\020D\022\034\n\030Type_ReportA" + + "vatarMessage\020E\022\037\n\033Type_ReportAvatarAckMe" + + "ssage\020F\022\032\n\026Type_ReportGameMessage\020G\022\035\n\031T" + + "ype_ReportGameAckMessage\020H\022\025\n\021Type_Error" + + "Message\020I*?\n\013NetGameMode\022\017\n\013gameCreated\020" + + "\001\022\017\n\013gameStarted\020\002\022\016\n\ngameClosed\020\003*\204\001\n\014N", + "etGameState\022\020\n\014statePreflop\020\000\022\r\n\tstateFl" + + "op\020\001\022\r\n\tstateTurn\020\002\022\016\n\nstateRiver\020\003\022\032\n\026s" + + "tatePreflopSmallBlind\020\004\022\030\n\024statePreflopB" + + "igBlind\020\005*\203\001\n\017NetPlayerAction\022\016\n\nactionN" + + "one\020\000\022\016\n\nactionFold\020\001\022\017\n\013actionCheck\020\002\022\016" + + "\n\nactionCall\020\003\022\r\n\tactionBet\020\004\022\017\n\013actionR" + + "aise\020\005\022\017\n\013actionAllIn\020\006*_\n\016NetPlayerStat" + + "e\022\025\n\021playerStateNormal\020\000\022\036\n\032playerStateS" + + "essionInactive\020\001\022\026\n\022playerStateNoMoney\020\002" + + "*X\n\020PlayerInfoRights\022\025\n\021playerRightsGues", + "t\020\001\022\026\n\022playerRightsNormal\020\002\022\025\n\021playerRig" + + "htsAdmin\020\003*K\n\rNetAvatarType\022\022\n\016avatarIma" + + "gePng\020\000\022\022\n\016avatarImageJpg\020\001\022\022\n\016avatarIma" + + "geGif\020\002B\037\n\023de.pokerth.protocolB\010ProtoBuf" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + internal_static_NetGameInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_NetGameInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_NetGameInfo_descriptor, + new java.lang.String[] { "GameName", "NetGameType", "MaxNumPlayers", "RaiseIntervalMode", "RaiseEveryHands", "RaiseEveryMinutes", "EndRaiseMode", "EndRaiseSmallBlindValue", "ProposedGuiSpeed", "DelayBetweenHands", "PlayerActionTimeout", "FirstSmallBlind", "StartMoney", "ManualBlinds", }, + de.pokerth.protocol.ProtoBuf.NetGameInfo.class, + de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder.class); + internal_static_PlayerResult_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_PlayerResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PlayerResult_descriptor, + new java.lang.String[] { "PlayerId", "ResultCard1", "ResultCard2", "BestHandPosition", "MoneyWon", "PlayerMoney", "CardsValue", }, + de.pokerth.protocol.ProtoBuf.PlayerResult.class, + de.pokerth.protocol.ProtoBuf.PlayerResult.Builder.class); + internal_static_AnnounceMessage_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_AnnounceMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_AnnounceMessage_descriptor, + new java.lang.String[] { "ProtocolVersion", "LatestGameVersion", "LatestBetaRevision", "ServerType", "NumPlayersOnServer", }, + de.pokerth.protocol.ProtoBuf.AnnounceMessage.class, + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Builder.class); + internal_static_AnnounceMessage_Version_descriptor = + internal_static_AnnounceMessage_descriptor.getNestedTypes().get(0); + internal_static_AnnounceMessage_Version_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_AnnounceMessage_Version_descriptor, + new java.lang.String[] { "Major", "Minor", }, + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.class, + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder.class); + internal_static_InitMessage_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_InitMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_InitMessage_descriptor, + new java.lang.String[] { "RequestedVersion", "BuildId", "MyLastSessionId", "AuthServerPassword", "Login", "NickName", "ClientUserData", "AvatarHash", }, + de.pokerth.protocol.ProtoBuf.InitMessage.class, + de.pokerth.protocol.ProtoBuf.InitMessage.Builder.class); + internal_static_AuthServerChallengeMessage_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_AuthServerChallengeMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_AuthServerChallengeMessage_descriptor, + new java.lang.String[] { "ServerChallenge", }, + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.class, + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.Builder.class); + internal_static_AuthClientResponseMessage_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_AuthClientResponseMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_AuthClientResponseMessage_descriptor, + new java.lang.String[] { "ClientResponse", }, + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.class, + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.Builder.class); + internal_static_AuthServerVerificationMessage_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_AuthServerVerificationMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_AuthServerVerificationMessage_descriptor, + new java.lang.String[] { "ServerVerification", }, + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.class, + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.Builder.class); + internal_static_InitAckMessage_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_InitAckMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_InitAckMessage_descriptor, + new java.lang.String[] { "YourSessionId", "YourPlayerId", "YourAvatarHash", "RejoinGameId", }, + de.pokerth.protocol.ProtoBuf.InitAckMessage.class, + de.pokerth.protocol.ProtoBuf.InitAckMessage.Builder.class); + internal_static_AvatarRequestMessage_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_AvatarRequestMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_AvatarRequestMessage_descriptor, + new java.lang.String[] { "RequestId", "AvatarHash", }, + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.class, + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.Builder.class); + internal_static_AvatarHeaderMessage_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_AvatarHeaderMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_AvatarHeaderMessage_descriptor, + new java.lang.String[] { "RequestId", "AvatarType", "AvatarSize", }, + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.class, + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.Builder.class); + internal_static_AvatarDataMessage_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_AvatarDataMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_AvatarDataMessage_descriptor, + new java.lang.String[] { "RequestId", "AvatarBlock", }, + de.pokerth.protocol.ProtoBuf.AvatarDataMessage.class, + de.pokerth.protocol.ProtoBuf.AvatarDataMessage.Builder.class); + internal_static_AvatarEndMessage_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_AvatarEndMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_AvatarEndMessage_descriptor, + new java.lang.String[] { "RequestId", }, + de.pokerth.protocol.ProtoBuf.AvatarEndMessage.class, + de.pokerth.protocol.ProtoBuf.AvatarEndMessage.Builder.class); + internal_static_UnknownAvatarMessage_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_UnknownAvatarMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_UnknownAvatarMessage_descriptor, + new java.lang.String[] { "RequestId", }, + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.class, + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.Builder.class); + internal_static_PlayerListMessage_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_PlayerListMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PlayerListMessage_descriptor, + new java.lang.String[] { "PlayerId", "PlayerListNotification", }, + de.pokerth.protocol.ProtoBuf.PlayerListMessage.class, + de.pokerth.protocol.ProtoBuf.PlayerListMessage.Builder.class); + internal_static_GameListNewMessage_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_GameListNewMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_GameListNewMessage_descriptor, + new java.lang.String[] { "GameId", "GameMode", "IsPrivate", "PlayerIds", "AdminPlayerId", "GameInfo", }, + de.pokerth.protocol.ProtoBuf.GameListNewMessage.class, + de.pokerth.protocol.ProtoBuf.GameListNewMessage.Builder.class); + internal_static_GameListUpdateMessage_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_GameListUpdateMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_GameListUpdateMessage_descriptor, + new java.lang.String[] { "GameId", "GameMode", }, + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.class, + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.Builder.class); + internal_static_GameListPlayerJoinedMessage_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_GameListPlayerJoinedMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_GameListPlayerJoinedMessage_descriptor, + new java.lang.String[] { "GameId", "PlayerId", }, + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.class, + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.Builder.class); + internal_static_GameListPlayerLeftMessage_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_GameListPlayerLeftMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_GameListPlayerLeftMessage_descriptor, + new java.lang.String[] { "GameId", "PlayerId", }, + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.class, + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.Builder.class); + internal_static_GameListAdminChangedMessage_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_GameListAdminChangedMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_GameListAdminChangedMessage_descriptor, + new java.lang.String[] { "GameId", "NewAdminPlayerId", }, + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.class, + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.Builder.class); + internal_static_PlayerInfoRequestMessage_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_PlayerInfoRequestMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PlayerInfoRequestMessage_descriptor, + new java.lang.String[] { "PlayerId", }, + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.class, + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.Builder.class); + internal_static_PlayerInfoReplyMessage_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_PlayerInfoReplyMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PlayerInfoReplyMessage_descriptor, + new java.lang.String[] { "PlayerId", "PlayerInfoData", }, + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.class, + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.Builder.class); + internal_static_PlayerInfoReplyMessage_PlayerInfoData_descriptor = + internal_static_PlayerInfoReplyMessage_descriptor.getNestedTypes().get(0); + internal_static_PlayerInfoReplyMessage_PlayerInfoData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PlayerInfoReplyMessage_PlayerInfoData_descriptor, + new java.lang.String[] { "PlayerName", "IsHuman", "PlayerRights", "CountryCode", "AvatarData", }, + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.class, + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.Builder.class); + internal_static_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_descriptor = + internal_static_PlayerInfoReplyMessage_PlayerInfoData_descriptor.getNestedTypes().get(0); + internal_static_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_descriptor, + new java.lang.String[] { "AvatarType", "AvatarHash", }, + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.class, + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.Builder.class); + internal_static_SubscriptionRequestMessage_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_SubscriptionRequestMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_SubscriptionRequestMessage_descriptor, + new java.lang.String[] { "SubscriptionAction", }, + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.class, + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.Builder.class); + internal_static_JoinExistingGameMessage_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_JoinExistingGameMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_JoinExistingGameMessage_descriptor, + new java.lang.String[] { "GameId", "Password", "AutoLeave", }, + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.class, + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.Builder.class); + internal_static_JoinNewGameMessage_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_JoinNewGameMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_JoinNewGameMessage_descriptor, + new java.lang.String[] { "GameInfo", "Password", "AutoLeave", }, + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.class, + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.Builder.class); + internal_static_RejoinExistingGameMessage_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_RejoinExistingGameMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_RejoinExistingGameMessage_descriptor, + new java.lang.String[] { "GameId", "AutoLeave", }, + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.class, + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.Builder.class); + internal_static_JoinGameAckMessage_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_JoinGameAckMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_JoinGameAckMessage_descriptor, + new java.lang.String[] { "GameId", "AreYouGameAdmin", "GameInfo", }, + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.class, + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.Builder.class); + internal_static_JoinGameFailedMessage_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_JoinGameFailedMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_JoinGameFailedMessage_descriptor, + new java.lang.String[] { "GameId", "JoinGameFailureReason", }, + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.class, + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.Builder.class); + internal_static_GamePlayerJoinedMessage_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_GamePlayerJoinedMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_GamePlayerJoinedMessage_descriptor, + new java.lang.String[] { "GameId", "PlayerId", "IsGameAdmin", }, + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.class, + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.Builder.class); + internal_static_GamePlayerLeftMessage_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_GamePlayerLeftMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_GamePlayerLeftMessage_descriptor, + new java.lang.String[] { "GameId", "PlayerId", "GamePlayerLeftReason", }, + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.class, + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.Builder.class); + internal_static_GameAdminChangedMessage_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_GameAdminChangedMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_GameAdminChangedMessage_descriptor, + new java.lang.String[] { "GameId", "NewAdminPlayerId", }, + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.class, + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.Builder.class); + internal_static_RemovedFromGameMessage_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_RemovedFromGameMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_RemovedFromGameMessage_descriptor, + new java.lang.String[] { "GameId", "RemovedFromGameReason", }, + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.class, + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.Builder.class); + internal_static_KickPlayerRequestMessage_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_KickPlayerRequestMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_KickPlayerRequestMessage_descriptor, + new java.lang.String[] { "GameId", "PlayerId", }, + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.class, + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.Builder.class); + internal_static_LeaveGameRequestMessage_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_LeaveGameRequestMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_LeaveGameRequestMessage_descriptor, + new java.lang.String[] { "GameId", }, + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.class, + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.Builder.class); + internal_static_InvitePlayerToGameMessage_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_InvitePlayerToGameMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_InvitePlayerToGameMessage_descriptor, + new java.lang.String[] { "GameId", "PlayerId", }, + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.class, + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.Builder.class); + internal_static_InviteNotifyMessage_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_InviteNotifyMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_InviteNotifyMessage_descriptor, + new java.lang.String[] { "GameId", "PlayerIdWho", "PlayerIdByWhom", }, + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.class, + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.Builder.class); + internal_static_RejectGameInvitationMessage_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_RejectGameInvitationMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_RejectGameInvitationMessage_descriptor, + new java.lang.String[] { "GameId", "MyRejectReason", }, + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.class, + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.Builder.class); + internal_static_RejectInvNotifyMessage_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_RejectInvNotifyMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_RejectInvNotifyMessage_descriptor, + new java.lang.String[] { "GameId", "PlayerId", "PlayerRejectReason", }, + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.class, + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.Builder.class); + internal_static_StartEventMessage_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_StartEventMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_StartEventMessage_descriptor, + new java.lang.String[] { "GameId", "StartEventType", "FillWithComputerPlayers", }, + de.pokerth.protocol.ProtoBuf.StartEventMessage.class, + de.pokerth.protocol.ProtoBuf.StartEventMessage.Builder.class); + internal_static_StartEventAckMessage_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_StartEventAckMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_StartEventAckMessage_descriptor, + new java.lang.String[] { "GameId", }, + de.pokerth.protocol.ProtoBuf.StartEventAckMessage.class, + de.pokerth.protocol.ProtoBuf.StartEventAckMessage.Builder.class); + internal_static_GameStartInitialMessage_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_GameStartInitialMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_GameStartInitialMessage_descriptor, + new java.lang.String[] { "GameId", "StartDealerPlayerId", "PlayerSeats", }, + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.class, + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.Builder.class); + internal_static_GameStartRejoinMessage_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_GameStartRejoinMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_GameStartRejoinMessage_descriptor, + new java.lang.String[] { "GameId", "StartDealerPlayerId", "HandNum", "RejoinPlayerData", }, + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.class, + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.Builder.class); + internal_static_GameStartRejoinMessage_RejoinPlayerData_descriptor = + internal_static_GameStartRejoinMessage_descriptor.getNestedTypes().get(0); + internal_static_GameStartRejoinMessage_RejoinPlayerData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_GameStartRejoinMessage_RejoinPlayerData_descriptor, + new java.lang.String[] { "PlayerId", "PlayerMoney", }, + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.class, + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder.class); + internal_static_HandStartMessage_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_HandStartMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_HandStartMessage_descriptor, + new java.lang.String[] { "GameId", "PlainCards", "EncryptedCards", "SmallBlind", "SeatStates", }, + de.pokerth.protocol.ProtoBuf.HandStartMessage.class, + de.pokerth.protocol.ProtoBuf.HandStartMessage.Builder.class); + internal_static_HandStartMessage_PlainCards_descriptor = + internal_static_HandStartMessage_descriptor.getNestedTypes().get(0); + internal_static_HandStartMessage_PlainCards_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_HandStartMessage_PlainCards_descriptor, + new java.lang.String[] { "PlainCard1", "PlainCard2", }, + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.class, + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.Builder.class); + internal_static_PlayersTurnMessage_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_PlayersTurnMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PlayersTurnMessage_descriptor, + new java.lang.String[] { "GameId", "PlayerId", "GameState", }, + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.class, + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.Builder.class); + internal_static_MyActionRequestMessage_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_MyActionRequestMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_MyActionRequestMessage_descriptor, + new java.lang.String[] { "GameId", "HandNum", "GameState", "MyAction", "MyRelativeBet", }, + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.class, + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.Builder.class); + internal_static_YourActionRejectedMessage_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_YourActionRejectedMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_YourActionRejectedMessage_descriptor, + new java.lang.String[] { "GameId", "GameState", "YourAction", "YourRelativeBet", "RejectionReason", }, + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.class, + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.Builder.class); + internal_static_PlayersActionDoneMessage_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_PlayersActionDoneMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PlayersActionDoneMessage_descriptor, + new java.lang.String[] { "GameId", "PlayerId", "GameState", "PlayerAction", "TotalPlayerBet", "PlayerMoney", "HighestSet", "MinimumRaise", }, + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.class, + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.Builder.class); + internal_static_DealFlopCardsMessage_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_DealFlopCardsMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_DealFlopCardsMessage_descriptor, + new java.lang.String[] { "GameId", "FlopCard1", "FlopCard2", "FlopCard3", }, + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.class, + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.Builder.class); + internal_static_DealTurnCardMessage_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_DealTurnCardMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_DealTurnCardMessage_descriptor, + new java.lang.String[] { "GameId", "TurnCard", }, + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.class, + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.Builder.class); + internal_static_DealRiverCardMessage_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_DealRiverCardMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_DealRiverCardMessage_descriptor, + new java.lang.String[] { "GameId", "RiverCard", }, + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.class, + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.Builder.class); + internal_static_AllInShowCardsMessage_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_AllInShowCardsMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_AllInShowCardsMessage_descriptor, + new java.lang.String[] { "GameId", "PlayersAllIn", }, + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.class, + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.Builder.class); + internal_static_AllInShowCardsMessage_PlayerAllIn_descriptor = + internal_static_AllInShowCardsMessage_descriptor.getNestedTypes().get(0); + internal_static_AllInShowCardsMessage_PlayerAllIn_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_AllInShowCardsMessage_PlayerAllIn_descriptor, + new java.lang.String[] { "PlayerId", "AllInCard1", "AllInCard2", }, + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.class, + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder.class); + internal_static_EndOfHandShowCardsMessage_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_EndOfHandShowCardsMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_EndOfHandShowCardsMessage_descriptor, + new java.lang.String[] { "GameId", "PlayerResults", }, + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.class, + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.Builder.class); + internal_static_EndOfHandHideCardsMessage_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_EndOfHandHideCardsMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_EndOfHandHideCardsMessage_descriptor, + new java.lang.String[] { "GameId", "PlayerId", "MoneyWon", "PlayerMoney", }, + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.class, + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.Builder.class); + internal_static_ShowMyCardsRequestMessage_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_ShowMyCardsRequestMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ShowMyCardsRequestMessage_descriptor, + new java.lang.String[] { }, + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.class, + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.Builder.class); + internal_static_AfterHandShowCardsMessage_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_AfterHandShowCardsMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_AfterHandShowCardsMessage_descriptor, + new java.lang.String[] { "PlayerResult", }, + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.class, + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.Builder.class); + internal_static_EndOfGameMessage_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_EndOfGameMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_EndOfGameMessage_descriptor, + new java.lang.String[] { "GameId", "WinnerPlayerId", }, + de.pokerth.protocol.ProtoBuf.EndOfGameMessage.class, + de.pokerth.protocol.ProtoBuf.EndOfGameMessage.Builder.class); + internal_static_PlayerIdChangedMessage_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_PlayerIdChangedMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PlayerIdChangedMessage_descriptor, + new java.lang.String[] { "OldPlayerId", "NewPlayerId", }, + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.class, + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.Builder.class); + internal_static_AskKickPlayerMessage_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_AskKickPlayerMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_AskKickPlayerMessage_descriptor, + new java.lang.String[] { "GameId", "PlayerId", }, + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.class, + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.Builder.class); + internal_static_AskKickDeniedMessage_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_AskKickDeniedMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_AskKickDeniedMessage_descriptor, + new java.lang.String[] { "GameId", "PlayerId", "KickDeniedReason", }, + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.class, + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.Builder.class); + internal_static_StartKickPetitionMessage_descriptor = + getDescriptor().getMessageTypes().get(58); + internal_static_StartKickPetitionMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_StartKickPetitionMessage_descriptor, + new java.lang.String[] { "GameId", "PetitionId", "ProposingPlayerId", "KickPlayerId", "KickTimeoutSec", "NumVotesNeededToKick", }, + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.class, + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.Builder.class); + internal_static_VoteKickRequestMessage_descriptor = + getDescriptor().getMessageTypes().get(59); + internal_static_VoteKickRequestMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_VoteKickRequestMessage_descriptor, + new java.lang.String[] { "GameId", "PetitionId", "VoteKick", }, + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.class, + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.Builder.class); + internal_static_VoteKickReplyMessage_descriptor = + getDescriptor().getMessageTypes().get(60); + internal_static_VoteKickReplyMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_VoteKickReplyMessage_descriptor, + new java.lang.String[] { "GameId", "PetitionId", "VoteKickReplyType", }, + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.class, + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.Builder.class); + internal_static_KickPetitionUpdateMessage_descriptor = + getDescriptor().getMessageTypes().get(61); + internal_static_KickPetitionUpdateMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_KickPetitionUpdateMessage_descriptor, + new java.lang.String[] { "GameId", "PetitionId", "NumVotesAgainstKicking", "NumVotesInFavourOfKicking", "NumVotesNeededToKick", }, + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.class, + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.Builder.class); + internal_static_EndKickPetitionMessage_descriptor = + getDescriptor().getMessageTypes().get(62); + internal_static_EndKickPetitionMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_EndKickPetitionMessage_descriptor, + new java.lang.String[] { "GameId", "PetitionId", "NumVotesAgainstKicking", "NumVotesInFavourOfKicking", "ResultPlayerKicked", "PetitionEndReason", }, + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.class, + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.Builder.class); + internal_static_StatisticsMessage_descriptor = + getDescriptor().getMessageTypes().get(63); + internal_static_StatisticsMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_StatisticsMessage_descriptor, + new java.lang.String[] { "StatisticsData", }, + de.pokerth.protocol.ProtoBuf.StatisticsMessage.class, + de.pokerth.protocol.ProtoBuf.StatisticsMessage.Builder.class); + internal_static_StatisticsMessage_StatisticsData_descriptor = + internal_static_StatisticsMessage_descriptor.getNestedTypes().get(0); + internal_static_StatisticsMessage_StatisticsData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_StatisticsMessage_StatisticsData_descriptor, + new java.lang.String[] { "StatisticsType", "StatisticsValue", }, + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.class, + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder.class); + internal_static_ChatRequestMessage_descriptor = + getDescriptor().getMessageTypes().get(64); + internal_static_ChatRequestMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ChatRequestMessage_descriptor, + new java.lang.String[] { "TargetGameId", "TargetPlayerId", "ChatText", }, + de.pokerth.protocol.ProtoBuf.ChatRequestMessage.class, + de.pokerth.protocol.ProtoBuf.ChatRequestMessage.Builder.class); + internal_static_ChatMessage_descriptor = + getDescriptor().getMessageTypes().get(65); + internal_static_ChatMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ChatMessage_descriptor, + new java.lang.String[] { "GameId", "PlayerId", "ChatType", "ChatText", }, + de.pokerth.protocol.ProtoBuf.ChatMessage.class, + de.pokerth.protocol.ProtoBuf.ChatMessage.Builder.class); + internal_static_ChatRejectMessage_descriptor = + getDescriptor().getMessageTypes().get(66); + internal_static_ChatRejectMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ChatRejectMessage_descriptor, + new java.lang.String[] { "ChatText", }, + de.pokerth.protocol.ProtoBuf.ChatRejectMessage.class, + de.pokerth.protocol.ProtoBuf.ChatRejectMessage.Builder.class); + internal_static_DialogMessage_descriptor = + getDescriptor().getMessageTypes().get(67); + internal_static_DialogMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_DialogMessage_descriptor, + new java.lang.String[] { "NotificationText", }, + de.pokerth.protocol.ProtoBuf.DialogMessage.class, + de.pokerth.protocol.ProtoBuf.DialogMessage.Builder.class); + internal_static_TimeoutWarningMessage_descriptor = + getDescriptor().getMessageTypes().get(68); + internal_static_TimeoutWarningMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_TimeoutWarningMessage_descriptor, + new java.lang.String[] { "TimeoutReason", "RemainingSeconds", }, + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.class, + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.Builder.class); + internal_static_ResetTimeoutMessage_descriptor = + getDescriptor().getMessageTypes().get(69); + internal_static_ResetTimeoutMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ResetTimeoutMessage_descriptor, + new java.lang.String[] { }, + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.class, + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.Builder.class); + internal_static_ReportAvatarMessage_descriptor = + getDescriptor().getMessageTypes().get(70); + internal_static_ReportAvatarMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ReportAvatarMessage_descriptor, + new java.lang.String[] { "ReportedPlayerId", "ReportedAvatarHash", }, + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.class, + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.Builder.class); + internal_static_ReportAvatarAckMessage_descriptor = + getDescriptor().getMessageTypes().get(71); + internal_static_ReportAvatarAckMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ReportAvatarAckMessage_descriptor, + new java.lang.String[] { "ReportedPlayerId", "ReportAvatarResult", }, + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.class, + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.Builder.class); + internal_static_ReportGameMessage_descriptor = + getDescriptor().getMessageTypes().get(72); + internal_static_ReportGameMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ReportGameMessage_descriptor, + new java.lang.String[] { "ReportedGameId", }, + de.pokerth.protocol.ProtoBuf.ReportGameMessage.class, + de.pokerth.protocol.ProtoBuf.ReportGameMessage.Builder.class); + internal_static_ReportGameAckMessage_descriptor = + getDescriptor().getMessageTypes().get(73); + internal_static_ReportGameAckMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ReportGameAckMessage_descriptor, + new java.lang.String[] { "ReportedGameId", "ReportGameResult", }, + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.class, + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.Builder.class); + internal_static_ErrorMessage_descriptor = + getDescriptor().getMessageTypes().get(74); + internal_static_ErrorMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_ErrorMessage_descriptor, + new java.lang.String[] { "ErrorReason", }, + de.pokerth.protocol.ProtoBuf.ErrorMessage.class, + de.pokerth.protocol.ProtoBuf.ErrorMessage.Builder.class); + internal_static_PokerTHMessage_descriptor = + getDescriptor().getMessageTypes().get(75); + internal_static_PokerTHMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PokerTHMessage_descriptor, + new java.lang.String[] { "MessageType", "AnnounceMessage", "InitMessage", "AuthServerChallengeMessage", "AuthClientResponseMessage", "AuthServerVerificationMessage", "InitAckMessage", "AvatarRequestMessage", "AvatarHeaderMessage", "AvatarDataMessage", "AvatarEndMessage", "UnknownAvatarMessage", "PlayerListMessage", "GameListNewMessage", "GameListUpdateMessage", "GameListPlayerJoinedMessage", "GameListPlayerLeftMessage", "GameListAdminChangedMessage", "PlayerInfoRequestMessage", "PlayerInfoReplyMessage", "SubscriptionRequestMessage", "JoinExistingGameMessage", "JoinNewGameMessage", "RejoinExistingGameMessage", "JoinGameAckMessage", "JoinGameFailedMessage", "GamePlayerJoinedMessage", "GamePlayerLeftMessage", "GameAdminChangedMessage", "RemovedFromGameMessage", "KickPlayerRequestMessage", "LeaveGameRequestMessage", "InvitePlayerToGameMessage", "InviteNotifyMessage", "RejectGameInvitationMessage", "RejectInvNotifyMessage", "StartEventMessage", "StartEventAckMessage", "GameStartInitialMessage", "GameStartRejoinMessage", "HandStartMessage", "PlayersTurnMessage", "MyActionRequestMessage", "YourActionRejectedMessage", "PlayersActionDoneMessage", "DealFlopCardsMessage", "DealTurnCardMessage", "DealRiverCardMessage", "AllInShowCardsMessage", "EndOfHandShowCardsMessage", "EndOfHandHideCardsMessage", "ShowMyCardsRequestMessage", "AfterHandShowCardsMessage", "EndOfGameMessage", "PlayerIdChangedMessage", "AskKickPlayerMessage", "AskKickDeniedMessage", "StartKickPetitionMessage", "VoteKickRequestMessage", "VoteKickReplyMessage", "KickPetitionUpdateMessage", "EndKickPetitionMessage", "StatisticsMessage", "ChatRequestMessage", "ChatMessage", "ChatRejectMessage", "DialogMessage", "TimeoutWarningMessage", "ResetTimeoutMessage", "ReportAvatarMessage", "ReportAvatarAckMessage", "ReportGameMessage", "ReportGameAckMessage", "ErrorMessage", }, + de.pokerth.protocol.ProtoBuf.PokerTHMessage.class, + de.pokerth.protocol.ProtoBuf.PokerTHMessage.Builder.class); + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/tests/src/pokerth_test/AllTests.java b/tests/src/de/pokerth/test/AllTests.java similarity index 98% rename from tests/src/pokerth_test/AllTests.java rename to tests/src/de/pokerth/test/AllTests.java index ff3a10cf..9bcdfee7 100644 --- a/tests/src/pokerth_test/AllTests.java +++ b/tests/src/de/pokerth/test/AllTests.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import org.junit.internal.TextListener; import org.junit.runner.JUnitCore; diff --git a/tests/src/pokerth_test/AnnounceTest.java b/tests/src/de/pokerth/test/AnnounceTest.java similarity index 68% rename from tests/src/pokerth_test/AnnounceTest.java rename to tests/src/de/pokerth/test/AnnounceTest.java index 71876e07..5b5902ac 100644 --- a/tests/src/pokerth_test/AnnounceTest.java +++ b/tests/src/de/pokerth/test/AnnounceTest.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -24,25 +24,26 @@ import java.net.Socket; import org.junit.Test; -import pokerth_protocol.AnnounceMessage; -import pokerth_protocol.PokerTHMessage; -import pokerth_protocol.AnnounceMessage.AnnounceMessageSequenceType.ServerTypeEnumType; +import de.pokerth.protocol.ProtoBuf.AnnounceMessage; +import de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType; +import de.pokerth.protocol.ProtoBuf.PokerTHMessage; +import de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType; public class AnnounceTest extends TestBase { protected void TestAnnounceMsg(AnnounceMessage announce, int numPlayersOnServer) { - assertEquals(PROTOCOL_VERSION_MAJOR, announce.getValue().getProtocolVersion().getMajor().intValue()); - assertEquals(PROTOCOL_VERSION_MINOR, announce.getValue().getProtocolVersion().getMinor().intValue()); - assertEquals(ServerTypeEnumType.EnumType.serverTypeInternetAuth, announce.getValue().getServerType().getValue()); - assertEquals(numPlayersOnServer, announce.getValue().getNumPlayersOnServer().intValue()); + assertEquals(PROTOCOL_VERSION_MAJOR, announce.getProtocolVersion().getMajor()); + assertEquals(PROTOCOL_VERSION_MINOR, announce.getProtocolVersion().getMinor()); + assertEquals(ServerType.serverTypeInternetAuth, announce.getServerType()); + assertEquals(numPlayersOnServer, announce.getNumPlayersOnServer()); } @Test public void testAnnounce() throws Exception { PokerTHMessage msg = receiveMessage(); - assertTrue(msg.isAnnounceMessageSelected()); + assertTrue(msg.hasAnnounceMessage() && msg.getMessageType() == PokerTHMessageType.Type_AnnounceMessage); TestAnnounceMsg(msg.getAnnounceMessage(), 0); // numPlayersOnServer should only be incremented after login. @@ -50,7 +51,7 @@ public class AnnounceTest extends TestBase { for (int i = 0; i < 9; i++) { s[i] = new Socket("localhost", 7234); msg = receiveMessage(s[i]); - assertTrue(msg.isAnnounceMessageSelected()); + assertTrue(msg.hasAnnounceMessage() && msg.getMessageType() == PokerTHMessageType.Type_AnnounceMessage); // Without login: Counter stays at 0. TestAnnounceMsg(msg.getAnnounceMessage(), 0); } @@ -65,7 +66,7 @@ public class AnnounceTest extends TestBase { sock.close(); sock = new Socket("localhost", 7234); msg = receiveMessage(); - assertTrue(msg.isAnnounceMessageSelected()); + assertTrue(msg.hasAnnounceMessage() && msg.getMessageType() == PokerTHMessageType.Type_AnnounceMessage); // After login: Counter is incremented. TestAnnounceMsg(msg.getAnnounceMessage(), i + 1); } @@ -77,7 +78,7 @@ public class AnnounceTest extends TestBase { sock.close(); sock = new Socket("localhost", 7234); msg = receiveMessage(); - assertTrue(msg.isAnnounceMessageSelected()); + assertTrue(msg.hasAnnounceMessage() && msg.getMessageType() == PokerTHMessageType.Type_AnnounceMessage); // After login: Counter is incremented. TestAnnounceMsg(msg.getAnnounceMessage(), 9); } @@ -90,7 +91,7 @@ public class AnnounceTest extends TestBase { sock.close(); sock = new Socket("localhost", 7234); msg = receiveMessage(); - assertTrue(msg.isAnnounceMessageSelected()); + assertTrue(msg.hasAnnounceMessage() && msg.getMessageType() == PokerTHMessageType.Type_AnnounceMessage); // After login: Counter is incremented. TestAnnounceMsg(msg.getAnnounceMessage(), 8 - i); } diff --git a/tests/src/pokerth_test/AuthLoginTest.java b/tests/src/de/pokerth/test/AuthLoginTest.java similarity index 97% rename from tests/src/pokerth_test/AuthLoginTest.java rename to tests/src/de/pokerth/test/AuthLoginTest.java index 65afbc5f..9e8c0aa3 100644 --- a/tests/src/pokerth_test/AuthLoginTest.java +++ b/tests/src/de/pokerth/test/AuthLoginTest.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import org.junit.Test; diff --git a/tests/src/pokerth_test/Base64Coder.java b/tests/src/de/pokerth/test/Base64Coder.java similarity index 99% rename from tests/src/pokerth_test/Base64Coder.java rename to tests/src/de/pokerth/test/Base64Coder.java index 02dd5c1b..f52a3895 100644 --- a/tests/src/pokerth_test/Base64Coder.java +++ b/tests/src/de/pokerth/test/Base64Coder.java @@ -14,7 +14,7 @@ //Please contact the author if you need another license. //This module is provided "as is", without warranties of any kind. -package pokerth_test; +package de.pokerth.test; /** * A Base64 encoder/decoder. diff --git a/tests/src/pokerth_test/BlockedPlayerTest.java b/tests/src/de/pokerth/test/BlockedPlayerTest.java similarity index 66% rename from tests/src/pokerth_test/BlockedPlayerTest.java rename to tests/src/de/pokerth/test/BlockedPlayerTest.java index c147c2d6..ff620f9b 100644 --- a/tests/src/pokerth_test/BlockedPlayerTest.java +++ b/tests/src/de/pokerth/test/BlockedPlayerTest.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -25,15 +25,14 @@ import java.sql.Statement; import org.junit.Test; -import pokerth_protocol.AnnounceMessage; -import pokerth_protocol.AuthenticatedLogin; -import pokerth_protocol.InitMessage; -import pokerth_protocol.PokerTHMessage; -import pokerth_protocol.Version; -import pokerth_protocol.AnnounceMessage.AnnounceMessageSequenceType.ServerTypeEnumType; -import pokerth_protocol.ErrorMessage.ErrorMessageSequenceType.ErrorReasonEnumType; -import pokerth_protocol.InitMessage.InitMessageSequenceType; -import pokerth_protocol.InitMessage.InitMessageSequenceType.LoginChoiceType; +import com.google.protobuf.ByteString; + +import de.pokerth.protocol.ProtoBuf.AnnounceMessage; +import de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason; +import de.pokerth.protocol.ProtoBuf.InitMessage; +import de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType; +import de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType; +import de.pokerth.protocol.ProtoBuf.PokerTHMessage; public class BlockedPlayerTest extends TestBase { @@ -41,31 +40,31 @@ public class BlockedPlayerTest extends TestBase { void verifyLoginBlocked() throws Exception { PokerTHMessage msg = receiveMessage(sock); AnnounceMessage announce = msg.getAnnounceMessage(); - assertTrue(announce.getValue().getServerType().getValue() == ServerTypeEnumType.EnumType.serverTypeInternetAuth); + assertTrue(announce.getServerType() == ServerType.serverTypeInternetAuth); ScramSha1 scramAuth = new ScramSha1(); // Send challenge. - Version requestedVersion = new Version(); - requestedVersion.setMajor(PROTOCOL_VERSION_MAJOR); - requestedVersion.setMinor(PROTOCOL_VERSION_MINOR); - AuthenticatedLogin authLogin = new AuthenticatedLogin(); - authLogin.setClientUserData(scramAuth.executeStep1("test1").getBytes()); - LoginChoiceType loginType = new LoginChoiceType(); - loginType.selectAuthenticatedLogin(authLogin); - InitMessageSequenceType msgType = new InitMessageSequenceType(); - msgType.setBuildId(0L); - msgType.setLogin(loginType); - msgType.setRequestedVersion(requestedVersion); - InitMessage init = new InitMessage(); - init.setValue(msgType); - msg = new PokerTHMessage(); - msg.selectInitMessage(init); + AnnounceMessage.Version requestedVersion = AnnounceMessage.Version.newBuilder() + .setMajor(PROTOCOL_VERSION_MAJOR) + .setMinor(PROTOCOL_VERSION_MINOR) + .build(); + InitMessage init = InitMessage.newBuilder() + .setBuildId(0) + .setLogin(InitMessage.LoginType.authenticatedLogin) + .setRequestedVersion(requestedVersion) + .setClientUserData(ByteString.copyFromUtf8(scramAuth.executeStep1("test1"))) + .build(); + + msg = PokerTHMessage.newBuilder() + .setMessageType(PokerTHMessageType.Type_InitMessage) + .setInitMessage(init) + .build(); sendMessage(msg, sock); msg = receiveMessage(sock); - assertTrue(msg.isErrorMessageSelected()); - assertEquals(ErrorReasonEnumType.EnumType.errorBlockedByServer, msg.getErrorMessage().getValue().getErrorReason().getValue()); + assertTrue(msg.hasErrorMessage() && msg.getMessageType() == PokerTHMessageType.Type_ErrorMessage); + assertEquals(ErrorReason.blockedByServer, msg.getErrorMessage().getErrorReason()); } @Test diff --git a/tests/src/de/pokerth/test/ChatTest.java b/tests/src/de/pokerth/test/ChatTest.java new file mode 100644 index 00000000..589bbda0 --- /dev/null +++ b/tests/src/de/pokerth/test/ChatTest.java @@ -0,0 +1,269 @@ +/* PokerTH automated tests. + Copyright (C) 2010 Lothar May + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +package de.pokerth.test; + +import static org.junit.Assert.*; + +import java.net.Socket; +import java.util.ArrayList; +import java.util.Collection; + +import org.junit.Test; + +import de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType; +import de.pokerth.protocol.ProtoBuf.ChatRequestMessage; +import de.pokerth.protocol.ProtoBuf.NetGameInfo; +import de.pokerth.protocol.ProtoBuf.StartEventAckMessage; +import de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode; +import de.pokerth.protocol.ProtoBuf.PokerTHMessage; +import de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType; +import de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType; +import de.pokerth.protocol.ProtoBuf.StartEventMessage; +import de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType; + + +public class ChatTest extends TestBase { + + final String ChatText = "Hello World ÖÄÜöäüẞ€"; + + PokerTHMessage createLobbyChatMsg(String chatText) { + ChatRequestMessage chatLobby = ChatRequestMessage.newBuilder() + .setChatText(chatText) + .build(); + PokerTHMessage msg = PokerTHMessage.newBuilder() + .setMessageType(PokerTHMessageType.Type_ChatRequestMessage) + .setChatRequestMessage(chatLobby) + .build(); + return msg; + } + + PokerTHMessage createGameChatMsg(String chatText, int gameId) { + ChatRequestMessage chatGame = ChatRequestMessage.newBuilder() + .setChatText(chatText) + .setTargetGameId(gameId) + .build(); + PokerTHMessage msg = PokerTHMessage.newBuilder() + .setMessageType(PokerTHMessageType.Type_ChatRequestMessage) + .setChatRequestMessage(chatGame) + .build(); + return msg; + } + + PokerTHMessage createPrivateChatMsg(String chatText, int playerId) { + ChatRequestMessage chatPrivate = ChatRequestMessage.newBuilder() + .setChatText(chatText) + .setTargetPlayerId(playerId) + .build(); + PokerTHMessage msg = PokerTHMessage.newBuilder() + .setMessageType(PokerTHMessageType.Type_ChatRequestMessage) + .setChatRequestMessage(chatPrivate) + .build(); + return msg; + } + + @Test + public void testChat() throws Exception { + guestInit(); + + Socket s[] = new Socket[8]; + int playerId[] = new int[8]; + for (int i = 0; i < 8; i++) { + s[i] = new Socket("localhost", 7234); + String username = "test" + (i+1); + String password = username; + playerId[i] = userInit(s[i], username, password); + } + + PokerTHMessage msg = createLobbyChatMsg(ChatText + 1); + // Message as guest user should be rejected. + sendMessage(msg); + do { + msg = receiveMessage(); + } while (msg.hasPlayerListMessage()); + assertTrue(msg.hasChatRejectMessage()); + assertEquals(ChatText + 1, msg.getChatRejectMessage().getChatText()); + + // Message as registered user should be sent to other users and guests. + msg = createLobbyChatMsg(ChatText + 2); + sendMessage(msg, s[0]); + + msg = receiveMessage(); + assertTrue(msg.hasChatMessage() && msg.getMessageType() == PokerTHMessageType.Type_ChatMessage); + assertEquals(ChatText + 2, msg.getChatMessage().getChatText()); + assertEquals(ChatType.chatTypeLobby, msg.getChatMessage().getChatType()); + assertEquals(playerId[0], msg.getChatMessage().getPlayerId()); + + for (int i = 0; i < 8; i++) { + do { + msg = receiveMessage(s[i]); + } while (msg.hasPlayerListMessage()); + assertTrue(msg.hasChatMessage() && msg.getMessageType() == PokerTHMessageType.Type_ChatMessage); + assertEquals(ChatText + 2, msg.getChatMessage().getChatText()); + assertEquals(ChatType.chatTypeLobby, msg.getChatMessage().getChatType()); + assertEquals(playerId[0], msg.getChatMessage().getPlayerId()); + } + + // A game chat message, if not within a game, should be rejected. + msg = createGameChatMsg(ChatText + 3, 1); + sendMessage(msg); + + msg = receiveMessage(); + assertTrue(msg.hasChatRejectMessage() && msg.getMessageType() == PokerTHMessageType.Type_ChatRejectMessage); + assertEquals(ChatText + 3, msg.getChatRejectMessage().getChatText()); + + msg = createGameChatMsg(ChatText + 4, 1); + sendMessage(msg, s[0]); + + msg = receiveMessage(s[0]); + assertTrue(msg.hasChatRejectMessage() && msg.getMessageType() == PokerTHMessageType.Type_ChatRejectMessage); + assertEquals(ChatText + 4, msg.getChatRejectMessage().getChatText()); + + // Guests are not allowed to send private messages in the lobby. + msg = createPrivateChatMsg(ChatText + 5, playerId[1]); + sendMessage(msg); + + msg = receiveMessage(); + assertTrue(msg.hasChatRejectMessage() && msg.getMessageType() == PokerTHMessageType.Type_ChatRejectMessage); + assertEquals(ChatText + 5, msg.getChatRejectMessage().getChatText()); + + // Registered users are allowed to send private messages in the lobby. + msg = createPrivateChatMsg(ChatText + 6, playerId[1]); + sendMessage(msg, s[0]); + + msg = receiveMessage(s[1]); + assertTrue(msg.hasChatMessage() && msg.getMessageType() == PokerTHMessageType.Type_ChatMessage); + assertEquals(ChatText + 6, msg.getChatMessage().getChatText()); + assertEquals(ChatType.chatTypePrivate, msg.getChatMessage().getChatType()); + assertEquals(playerId[0], msg.getChatMessage().getPlayerId()); + + // Game messages can be sent by registered users within a game. + Collection l = new ArrayList(); + NetGameInfo gameInfo = createGameInfo(NetGameType.normalGame, 10, 5, 5, EndRaiseMode.doubleBlinds, 0, 100, GuestUser + " game list normal game", l, 10, 0, 2, 2000); + sendMessage(createGameRequestMsg( + gameInfo, + "", + false)); + do { + msg = receiveMessage(); + failOnErrorMessage(msg); + } while (!msg.hasJoinGameAckMessage() && !msg.hasJoinGameFailedMessage()); + assertTrue(msg.hasJoinGameAckMessage() && msg.getMessageType() == PokerTHMessageType.Type_JoinGameAckMessage); + int gameId = msg.getJoinGameAckMessage().getGameId(); + + // Let 8 players join the game, and test game chat. + for (int i = 0; i < 8; i++) { + sendMessage(joinGameRequestMsg(gameId, "", false), s[i]); + do { + msg = receiveMessage(s[i]); + failOnErrorMessage(msg); + } while (!msg.hasJoinGameAckMessage() && !msg.hasJoinGameFailedMessage()); + assertTrue(msg.hasJoinGameAckMessage() && msg.getMessageType() == PokerTHMessageType.Type_JoinGameAckMessage); + } + + StartEventMessage startEvent = StartEventMessage.newBuilder() + .setGameId(gameId) + .setFillWithComputerPlayers(false) + .setStartEventType(StartEventType.startEvent) + .build(); + msg = PokerTHMessage.newBuilder() + .setMessageType(PokerTHMessageType.Type_StartEventMessage) + .setStartEventMessage(startEvent) + .build(); + sendMessage(msg); + + // Server should confirm start event. + do { + msg = receiveMessage(); + failOnErrorMessage(msg); + } while (!msg.hasStartEventMessage()); + + // Acknowledge start event. + StartEventAckMessage startAck = StartEventAckMessage.newBuilder() + .setGameId(gameId) + .build(); + msg = PokerTHMessage.newBuilder() + .setMessageType(PokerTHMessageType.Type_StartEventAckMessage) + .setStartEventAckMessage(startAck) + .build(); + sendMessage(msg); + + for (int i = 0; i < 8; i++) { + sendMessage(msg, s[i]); + } + + // Server should game start. + do { + msg = receiveMessage(); + failOnErrorMessage(msg); + } while (!msg.hasGameStartInitialMessage()); + + + // Guest user: not allowed. + msg = createGameChatMsg(ChatText + 7, gameId); + sendMessage(msg); + do { + msg = receiveMessage(); + failOnErrorMessage(msg); + assertFalse(msg.hasChatMessage()); + } while (!msg.hasChatRejectMessage()); + assertEquals(ChatText + 7, msg.getChatRejectMessage().getChatText()); + + // Other users: allowed. + for (int c = 0; c < 8; c++) { + msg = createGameChatMsg(ChatText + "c" + c, gameId); + sendMessage(msg, s[c]); + do { + msg = receiveMessage(s[c]); + failOnErrorMessage(msg); + assertFalse(msg.hasChatRejectMessage() || msg.getMessageType() == PokerTHMessageType.Type_ChatRejectMessage); + } while (!msg.hasChatMessage()); + + assertEquals(ChatText + "c" + c, msg.getChatMessage().getChatText()); + assertEquals(ChatType.chatTypeGame, msg.getChatMessage().getChatType()); + assertEquals(playerId[c], msg.getChatMessage().getPlayerId()); + assertEquals(gameId, msg.getChatMessage().getGameId()); + + for (int i = 0; i < 8; i++) { + if (i != c) { + do { + msg = receiveMessage(s[i]); + failOnErrorMessage(msg); + assertFalse(msg.hasChatRejectMessage() || msg.getMessageType() == PokerTHMessageType.Type_ChatRejectMessage); + } while (!msg.hasChatMessage()); + assertEquals(ChatText + "c" + c, msg.getChatMessage().getChatText()); + assertEquals(ChatType.chatTypeGame, msg.getChatMessage().getChatType()); + assertEquals(playerId[c], msg.getChatMessage().getPlayerId()); + assertEquals(gameId, msg.getChatMessage().getGameId()); + } + } + } + + // Private chat message should now be rejected. + msg = createPrivateChatMsg(ChatText + 8, playerId[1]); + sendMessage(msg, s[0]); + do { + msg = receiveMessage(s[0]); + failOnErrorMessage(msg); + assertFalse(msg.hasChatMessage() || msg.getMessageType() == PokerTHMessageType.Type_ChatMessage); + } while (!msg.hasChatRejectMessage()); + + for (int i = 0; i < 8; i++) { + s[i].close(); + } + } +} diff --git a/tests/src/de/pokerth/test/CreateGameTest.java b/tests/src/de/pokerth/test/CreateGameTest.java new file mode 100644 index 00000000..d674bd9a --- /dev/null +++ b/tests/src/de/pokerth/test/CreateGameTest.java @@ -0,0 +1,94 @@ +/* PokerTH automated tests. + Copyright (C) 2010 Lothar May + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +package de.pokerth.test; + +import static org.junit.Assert.*; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; + +import org.junit.Test; + +import de.pokerth.protocol.ProtoBuf.NetGameInfo; +import de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode; +import de.pokerth.protocol.ProtoBuf.PokerTHMessage; +import de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType; + +public class CreateGameTest extends TestBase { + + @Test + public void testJoinGameRequestMessage() throws Exception { + guestInit(); + + Collection l = new ArrayList(); + l.add(250); + l.add(600); + l.add(1000); + NetGameInfo gameInfo = createGameInfo(NetGameInfo.NetGameType.normalGame, 20, 7, 8, EndRaiseMode.raiseByEndValue, 1000, 100, GuestUser + " create test game", l, 10, 0, 7, 2000); + sendMessage(createGameRequestMsg( + gameInfo, + GamePassword, + false)); + + PokerTHMessage msg; + msg = receiveMessage(); + if (!msg.hasPlayerListMessage() || msg.getMessageType() != PokerTHMessageType.Type_PlayerListMessage) { + failOnErrorMessage(msg); + fail("Invalid message."); + } + + msg = receiveMessage(); + if (!msg.hasGameListNewMessage() || msg.getMessageType() != PokerTHMessageType.Type_GameListNewMessage) { + failOnErrorMessage(msg); + fail("Invalid message."); + } + + msg = receiveMessage(); + if (msg.hasJoinGameAckMessage() && msg.getMessageType() == PokerTHMessageType.Type_JoinGameAckMessage) + { + assertTrue(msg.getJoinGameAckMessage().getGameId() != 0); + NetGameInfo receivedGameInfo = msg.getJoinGameAckMessage().getGameInfo(); + assertEquals(receivedGameInfo.getDelayBetweenHands(), gameInfo.getDelayBetweenHands()); + assertEquals(receivedGameInfo.getEndRaiseMode(), gameInfo.getEndRaiseMode()); + assertEquals(receivedGameInfo.getEndRaiseSmallBlindValue(), gameInfo.getEndRaiseSmallBlindValue()); + assertEquals(receivedGameInfo.getFirstSmallBlind(), gameInfo.getFirstSmallBlind()); + assertEquals(receivedGameInfo.getGameName(), gameInfo.getGameName()); + assertEquals(receivedGameInfo.getManualBlindsCount(), gameInfo.getManualBlindsCount()); + for (Iterator rec_it = receivedGameInfo.getManualBlindsList().iterator(), + game_it = gameInfo.getManualBlindsList().iterator(); + rec_it.hasNext() && game_it.hasNext();) + { + assertEquals(rec_it.next(), game_it.next()); + } + assertEquals(receivedGameInfo.getMaxNumPlayers(), gameInfo.getMaxNumPlayers()); + assertEquals(receivedGameInfo.getNetGameType(), gameInfo.getNetGameType()); + assertEquals(receivedGameInfo.getPlayerActionTimeout(), gameInfo.getPlayerActionTimeout()); + assertEquals(receivedGameInfo.getProposedGuiSpeed(), gameInfo.getProposedGuiSpeed()); + assertEquals(receivedGameInfo.getRaiseIntervalMode(), gameInfo.getRaiseIntervalMode()); + assertEquals(receivedGameInfo.getRaiseEveryHands(), gameInfo.getRaiseEveryHands()); + assertEquals(receivedGameInfo.getRaiseEveryMinutes(), gameInfo.getRaiseEveryMinutes()); + assertEquals(receivedGameInfo.getStartMoney(), gameInfo.getStartMoney()); + } + else { + failOnErrorMessage(msg); + fail("Invalid message."); + } + } + +} diff --git a/tests/src/pokerth_test/CreateRankingGameTest.java b/tests/src/de/pokerth/test/CreateRankingGameTest.java similarity index 63% rename from tests/src/pokerth_test/CreateRankingGameTest.java rename to tests/src/de/pokerth/test/CreateRankingGameTest.java index 2b91db17..3f0059e5 100644 --- a/tests/src/pokerth_test/CreateRankingGameTest.java +++ b/tests/src/de/pokerth/test/CreateRankingGameTest.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import static org.junit.Assert.*; @@ -24,9 +24,10 @@ import java.util.Collection; import org.junit.Test; -import pokerth_protocol.*; -import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType; -import pokerth_protocol.NetGameInfo.NetGameTypeEnumType; +import de.pokerth.protocol.ProtoBuf.NetGameInfo; +import de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode; +import de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType; +import de.pokerth.protocol.ProtoBuf.PokerTHMessage; public class CreateRankingGameTest extends TestBase { @@ -35,13 +36,10 @@ public class CreateRankingGameTest extends TestBase { private void createRankingGame(String password) throws Exception { counter++; - Collection l = new ArrayList(); - NetGameInfo gameInfo = createGameInfo(8, EndRaiseModeEnumType.EnumType.doubleBlinds, 0, 50, GuestUser + " create ranking game " + counter, l, 10, 0, 11, 10000); + Collection l = new ArrayList(); + NetGameInfo gameInfo = createGameInfo(NetGameType.rankingGame, 20, 7, 8, EndRaiseMode.doubleBlinds, 0, 50, GuestUser + " create ranking game " + counter, l, 10, 0, 11, 10000); sendMessage(createGameRequestMsg( gameInfo, - NetGameTypeEnumType.EnumType.rankingGame, - 20, - 7, password, false)); } @@ -52,7 +50,7 @@ public class CreateRankingGameTest extends TestBase { PokerTHMessage msg; msg = receiveMessage(); - if (!msg.isPlayerListMessageSelected()) { + if (!msg.hasPlayerListMessage()) { failOnErrorMessage(msg); fail("Invalid message."); } @@ -60,16 +58,10 @@ public class CreateRankingGameTest extends TestBase { createRankingGame(""); msg = receiveMessage(); - if (msg.isJoinGameReplyMessageSelected()) + if (!msg.hasJoinGameFailedMessage()) { - if (!msg.getJoinGameReplyMessage().getValue().getJoinGameResult().isJoinGameFailedSelected()) - { - fail("Guest user could create ranking game!"); - } - } - else { failOnErrorMessage(msg); - fail("Invalid message."); + fail("Guest user could create ranking game!"); } } @@ -80,7 +72,7 @@ public class CreateRankingGameTest extends TestBase { // Waiting for player list update. PokerTHMessage msg; msg = receiveMessage(); - if (!msg.isPlayerListMessageSelected()) { + if (!msg.hasPlayerListMessage()) { failOnErrorMessage(msg); fail("Invalid message."); } @@ -88,10 +80,10 @@ public class CreateRankingGameTest extends TestBase { createRankingGame(""); msg = receiveMessage(); - if (msg.isGameListMessageSelected()) + if (msg.hasGameListNewMessage()) { msg = receiveMessage(); - if (msg.getJoinGameReplyMessage().getValue().getJoinGameResult().isJoinGameFailedSelected()) + if (msg.hasJoinGameFailedMessage()) { fail("Registered user could not join ranking game!"); } @@ -109,7 +101,7 @@ public class CreateRankingGameTest extends TestBase { // Waiting for player list update. PokerTHMessage msg; msg = receiveMessage(); - if (!msg.isPlayerListMessageSelected()) { + if (!msg.hasPlayerListMessage()) { failOnErrorMessage(msg); fail("Invalid message."); } @@ -117,16 +109,10 @@ public class CreateRankingGameTest extends TestBase { createRankingGame(GamePassword); msg = receiveMessage(); - if (msg.isJoinGameReplyMessageSelected()) + if (!msg.hasJoinGameFailedMessage()) { - if (!msg.getJoinGameReplyMessage().getValue().getJoinGameResult().isJoinGameFailedSelected()) - { - fail("Registered user should not be allowed to create ranking game with password!"); - } - } - else { failOnErrorMessage(msg); - fail("Invalid message."); + fail("Registered user should not be allowed to create ranking game with password!"); } } } diff --git a/tests/src/pokerth_test/GameListTest.java b/tests/src/de/pokerth/test/GameListTest.java similarity index 95% rename from tests/src/pokerth_test/GameListTest.java rename to tests/src/de/pokerth/test/GameListTest.java index 321519fe..6c769b91 100644 --- a/tests/src/pokerth_test/GameListTest.java +++ b/tests/src/de/pokerth/test/GameListTest.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -26,15 +26,6 @@ import java.util.Collection; import org.junit.Test; -import pokerth_protocol.GameListMessage; -import pokerth_protocol.GameListNew; -import pokerth_protocol.NetGameInfo; -import pokerth_protocol.NetGameMode; -import pokerth_protocol.PokerTHMessage; -import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType; -import pokerth_protocol.NetGameInfo.NetGameTypeEnumType; -import pokerth_protocol.InitialNonZeroAmountOfMoney; - public class GameListTest extends TestBase { diff --git a/tests/src/pokerth_test/GuestLoginTest.java b/tests/src/de/pokerth/test/GuestLoginTest.java similarity index 97% rename from tests/src/pokerth_test/GuestLoginTest.java rename to tests/src/de/pokerth/test/GuestLoginTest.java index 0a68773c..e2318237 100644 --- a/tests/src/pokerth_test/GuestLoginTest.java +++ b/tests/src/de/pokerth/test/GuestLoginTest.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import org.junit.Test; diff --git a/tests/src/pokerth_test/LoadTest.java b/tests/src/de/pokerth/test/LoadTest.java similarity index 95% rename from tests/src/pokerth_test/LoadTest.java rename to tests/src/de/pokerth/test/LoadTest.java index 8b6c06d8..e44fe740 100644 --- a/tests/src/pokerth_test/LoadTest.java +++ b/tests/src/de/pokerth/test/LoadTest.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import java.net.Socket; @@ -26,11 +26,6 @@ import java.util.Collection; import org.junit.Test; -import pokerth_protocol.*; -import pokerth_protocol.MyActionRequestMessage.MyActionRequestMessageSequenceType; -import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType; -import pokerth_protocol.NetGameInfo.NetGameTypeEnumType; - public class LoadTest extends TestBase { diff --git a/tests/src/pokerth_test/LobbySubscriptionTest.java b/tests/src/de/pokerth/test/LobbySubscriptionTest.java similarity index 88% rename from tests/src/pokerth_test/LobbySubscriptionTest.java rename to tests/src/de/pokerth/test/LobbySubscriptionTest.java index 3fd58807..1181cd1b 100644 --- a/tests/src/pokerth_test/LobbySubscriptionTest.java +++ b/tests/src/de/pokerth/test/LobbySubscriptionTest.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; @@ -26,15 +26,6 @@ import java.util.Collection; import org.junit.Test; -import pokerth_protocol.NetGameInfo; -import pokerth_protocol.PokerTHMessage; -import pokerth_protocol.SubscriptionRequestMessage; -import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType; -import pokerth_protocol.NetGameInfo.NetGameTypeEnumType; -import pokerth_protocol.SubscriptionRequestMessage.SubscriptionRequestMessageSequenceType; -import pokerth_protocol.SubscriptionRequestMessage.SubscriptionRequestMessageSequenceType.SubscriptionActionEnumType; -import pokerth_protocol.InitialNonZeroAmountOfMoney; - public class LobbySubscriptionTest extends TestBase { diff --git a/tests/src/pokerth_test/PlayerInfoTest.java b/tests/src/de/pokerth/test/PlayerInfoTest.java similarity index 97% rename from tests/src/pokerth_test/PlayerInfoTest.java rename to tests/src/de/pokerth/test/PlayerInfoTest.java index e0bf9b5f..d09fce75 100644 --- a/tests/src/pokerth_test/PlayerInfoTest.java +++ b/tests/src/de/pokerth/test/PlayerInfoTest.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import java.net.Socket; @@ -25,9 +25,6 @@ import java.util.Arrays; import org.junit.Test; -import pokerth_protocol.*; -import pokerth_protocol.PlayerInfoRequestMessage.PlayerInfoRequestMessageSequenceType; - public class PlayerInfoTest extends TestBase { protected void sendPlayerInfoRequest(Socket s, long playerId) throws Exception { diff --git a/tests/src/pokerth_test/PlayerListTest.java b/tests/src/de/pokerth/test/PlayerListTest.java similarity index 92% rename from tests/src/pokerth_test/PlayerListTest.java rename to tests/src/de/pokerth/test/PlayerListTest.java index 4c028dca..d9253280 100644 --- a/tests/src/pokerth_test/PlayerListTest.java +++ b/tests/src/de/pokerth/test/PlayerListTest.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -24,10 +24,6 @@ import java.net.Socket; import org.junit.Test; -import pokerth_protocol.PlayerListMessage; -import pokerth_protocol.PokerTHMessage; -import pokerth_protocol.PlayerListMessage.PlayerListMessageSequenceType.PlayerListNotificationEnumType; - public class PlayerListTest extends TestBase { diff --git a/tests/src/pokerth_test/RejoinGameTest.java b/tests/src/de/pokerth/test/RejoinGameTest.java similarity index 96% rename from tests/src/pokerth_test/RejoinGameTest.java rename to tests/src/de/pokerth/test/RejoinGameTest.java index 70e17f1c..d67f3296 100644 --- a/tests/src/pokerth_test/RejoinGameTest.java +++ b/tests/src/de/pokerth/test/RejoinGameTest.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import java.net.Socket; @@ -26,13 +26,6 @@ import java.util.Collection; import org.junit.Test; -import pokerth_protocol.*; -import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType; -import pokerth_protocol.NetGameInfo.NetGameTypeEnumType; -import pokerth_protocol.PlayerListMessage.PlayerListMessageSequenceType.PlayerListNotificationEnumType; - -import pokerth_protocol.StartEventAckMessage.StartEventAckMessageSequenceType; - public class RejoinGameTest extends TestBase { diff --git a/tests/src/pokerth_test/RejoinMultiGameTest.java b/tests/src/de/pokerth/test/RejoinMultiGameTest.java similarity index 97% rename from tests/src/pokerth_test/RejoinMultiGameTest.java rename to tests/src/de/pokerth/test/RejoinMultiGameTest.java index 0bd1f2e3..b234ce2d 100644 --- a/tests/src/pokerth_test/RejoinMultiGameTest.java +++ b/tests/src/de/pokerth/test/RejoinMultiGameTest.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import java.net.Socket; @@ -28,13 +28,6 @@ import java.util.Collection; import org.junit.Test; -import pokerth_protocol.*; -import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType; -import pokerth_protocol.NetGameInfo.NetGameTypeEnumType; -import pokerth_protocol.PlayerListMessage.PlayerListMessageSequenceType.PlayerListNotificationEnumType; - -import pokerth_protocol.StartEventAckMessage.StartEventAckMessageSequenceType; - public class RejoinMultiGameTest extends TestBase { diff --git a/tests/src/pokerth_test/RunNormalGameTest.java b/tests/src/de/pokerth/test/RunNormalGameTest.java similarity index 89% rename from tests/src/pokerth_test/RunNormalGameTest.java rename to tests/src/de/pokerth/test/RunNormalGameTest.java index 1210012d..4122203f 100644 --- a/tests/src/pokerth_test/RunNormalGameTest.java +++ b/tests/src/de/pokerth/test/RunNormalGameTest.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; @@ -27,20 +27,6 @@ import java.util.Iterator; import org.junit.Test; -import pokerth_protocol.NetGameInfo; -import pokerth_protocol.NonZeroId; -import pokerth_protocol.PlayerResult; -import pokerth_protocol.PokerTHMessage; -import pokerth_protocol.StartEvent; -import pokerth_protocol.StartEventAckMessage; -import pokerth_protocol.StartEventMessage; -import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType; -import pokerth_protocol.NetGameInfo.NetGameTypeEnumType; -import pokerth_protocol.StartEventAckMessage.StartEventAckMessageSequenceType; -import pokerth_protocol.StartEventMessage.StartEventMessageSequenceType; -import pokerth_protocol.InitialNonZeroAmountOfMoney; -import pokerth_protocol.StartEventMessage.StartEventMessageSequenceType.StartEventTypeChoiceType; - public class RunNormalGameTest extends TestBase { diff --git a/tests/src/pokerth_test/RunRankingGameTest.java b/tests/src/de/pokerth/test/RunRankingGameTest.java similarity index 97% rename from tests/src/pokerth_test/RunRankingGameTest.java rename to tests/src/de/pokerth/test/RunRankingGameTest.java index 976a89fe..d2385efd 100644 --- a/tests/src/pokerth_test/RunRankingGameTest.java +++ b/tests/src/de/pokerth/test/RunRankingGameTest.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import java.net.Socket; import java.sql.ResultSet; @@ -29,13 +29,6 @@ import java.util.Iterator; import org.junit.Test; -import pokerth_protocol.*; -import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType; -import pokerth_protocol.NetGameInfo.NetGameTypeEnumType; - -import pokerth_protocol.MyActionRequestMessage.MyActionRequestMessageSequenceType; -import pokerth_protocol.StartEventAckMessage.StartEventAckMessageSequenceType; - public class RunRankingGameTest extends TestBase { diff --git a/tests/src/pokerth_test/ScramSha1.java b/tests/src/de/pokerth/test/ScramSha1.java similarity index 99% rename from tests/src/pokerth_test/ScramSha1.java rename to tests/src/de/pokerth/test/ScramSha1.java index d3e9aa9f..de8b3cc6 100644 --- a/tests/src/pokerth_test/ScramSha1.java +++ b/tests/src/de/pokerth/test/ScramSha1.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; diff --git a/tests/src/pokerth_test/SeatStateTest.java b/tests/src/de/pokerth/test/SeatStateTest.java similarity index 92% rename from tests/src/pokerth_test/SeatStateTest.java rename to tests/src/de/pokerth/test/SeatStateTest.java index ac21cb16..9968c66e 100644 --- a/tests/src/pokerth_test/SeatStateTest.java +++ b/tests/src/de/pokerth/test/SeatStateTest.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -28,16 +28,6 @@ import java.util.Iterator; import org.junit.Test; -import pokerth_protocol.InitialNonZeroAmountOfMoney; -import pokerth_protocol.NetGameInfo; -import pokerth_protocol.NetPlayerState; -import pokerth_protocol.NonZeroId; -import pokerth_protocol.PokerTHMessage; -import pokerth_protocol.StartEventAckMessage; -import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType; -import pokerth_protocol.NetGameInfo.NetGameTypeEnumType; -import pokerth_protocol.StartEventAckMessage.StartEventAckMessageSequenceType; - public class SeatStateTest extends TestBase { diff --git a/tests/src/pokerth_test/StartNormalGameTest.java b/tests/src/de/pokerth/test/StartNormalGameTest.java similarity index 89% rename from tests/src/pokerth_test/StartNormalGameTest.java rename to tests/src/de/pokerth/test/StartNormalGameTest.java index 60e5173a..b8a489a1 100644 --- a/tests/src/pokerth_test/StartNormalGameTest.java +++ b/tests/src/de/pokerth/test/StartNormalGameTest.java @@ -15,7 +15,7 @@ along with this program. If not, see . */ -package pokerth_test; +package de.pokerth.test; import static org.junit.Assert.*; @@ -24,12 +24,6 @@ import java.util.Collection; import org.junit.Test; -import pokerth_protocol.*; -import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType; -import pokerth_protocol.NetGameInfo.NetGameTypeEnumType; -import pokerth_protocol.StartEventMessage.StartEventMessageSequenceType; -import pokerth_protocol.StartEventMessage.StartEventMessageSequenceType.StartEventTypeChoiceType; - public class StartNormalGameTest extends TestBase { @Test diff --git a/tests/src/de/pokerth/test/TestBase.java b/tests/src/de/pokerth/test/TestBase.java new file mode 100644 index 00000000..28415f9f --- /dev/null +++ b/tests/src/de/pokerth/test/TestBase.java @@ -0,0 +1,386 @@ +/* PokerTH automated tests. + Copyright (C) 2010 Lothar May + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +package de.pokerth.test; + +import static org.junit.Assert.*; + +import org.junit.After; +import org.junit.Before; +import org.w3c.dom.Document; +import org.w3c.dom.Element; + +import com.google.protobuf.ByteString; + +import java.io.*; +import java.net.*; +import java.security.MessageDigest; +import java.sql.Connection; +import java.sql.DriverManager; +import java.util.Collection; + +import javax.crypto.Cipher; +import javax.crypto.spec.IvParameterSpec; +import javax.crypto.spec.SecretKeySpec; +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; + +import de.pokerth.protocol.ProtoBuf.AnnounceMessage; +import de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType; +import de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage; +import de.pokerth.protocol.ProtoBuf.ErrorMessage; +import de.pokerth.protocol.ProtoBuf.InitAckMessage; +import de.pokerth.protocol.ProtoBuf.InitMessage; +import de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage; +import de.pokerth.protocol.ProtoBuf.JoinNewGameMessage; +import de.pokerth.protocol.ProtoBuf.NetGameInfo; +import de.pokerth.protocol.ProtoBuf.PokerTHMessage; +import de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType; + +public abstract class TestBase { + + public final int PROTOCOL_VERSION_MAJOR = 5; + public final int PROTOCOL_VERSION_MINOR = 1; + public final String AuthUser = "user"; + public final String AuthPassword = "pencil"; + public final String GuestUser = "Guest112233"; + public final String GamePassword = "äöü?ßÄÖÜ"; + + protected Socket sock; + protected Connection dbConn; + protected int lastRejoinGameId = 0; + + @Before + public void dbInit() throws Exception { + String configFileName = System.getProperty("user.home"); + if (System.getProperty("os.name").toLowerCase().indexOf("linux") > -1) { + configFileName += "/.pokerth/config.xml"; + } else { + configFileName += "/AppData/Roaming/pokerth/config.xml"; + } + File file = new File(configFileName); + DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); + DocumentBuilder db = dbf.newDocumentBuilder(); + Document doc = db.parse(file); + doc.getDocumentElement().normalize(); + Element configNode = (Element)doc.getElementsByTagName("Configuration").item(0); + + Element dbAddressNode = (Element)configNode.getElementsByTagName("DBServerAddress").item(0); + String dbAddress = dbAddressNode.getAttribute("value"); + + Element dbUserNode = (Element)configNode.getElementsByTagName("DBServerUser").item(0); + String dbUser = dbUserNode.getAttribute("value"); + + Element dbPasswordNode = (Element)configNode.getElementsByTagName("DBServerPassword").item(0); + String dbPassword = dbPasswordNode.getAttribute("value"); + + Element dbNameNode = (Element)configNode.getElementsByTagName("DBServerDatabaseName").item(0); + String dbName = dbNameNode.getAttribute("value"); + + final String dbUrl = "jdbc:mysql://" + dbAddress + ":3306/" + dbName; + Class.forName("com.mysql.jdbc.Driver").newInstance (); + dbConn = DriverManager.getConnection(dbUrl, dbUser, dbPassword); + } + + @After + public void dbClose() throws Exception { + dbConn.close(); + } + + @Before + public void setUp() throws Exception { + Thread.sleep(2000); + sock = new Socket("localhost", 7234); + } + + @After + public void tearDown() throws IOException { + sock.close(); + } + + public void sendMessage(PokerTHMessage msg) throws Exception { + sendMessage(msg, sock); + } + + public void sendMessage(PokerTHMessage msg, Socket s) throws Exception { + int size = msg.getSerializedSize(); + byte[] header = new byte[4]; + for (int i = 0; i < 4; i++) + { + header[i] = (new Integer(size >>> 24)).byteValue(); + size <<= 8; + } + s.getOutputStream().write(header); + s.getOutputStream().write(msg.toByteArray()); + } + + public PokerTHMessage receiveMessage() throws Exception { + return receiveMessage(sock); + } + + public PokerTHMessage receiveMessage(Socket s) throws Exception { + byte[] header = new byte[4]; + s.getInputStream().read(header); + int size = 0; + for (int i = 0; i < 4; i++) { + size <<= 8; + size |= (int)header[i]; + } + byte[] data = new byte[size]; + s.getInputStream().read(data); + return PokerTHMessage.parseFrom(data); + } + + public int guestInit() throws Exception { + return guestInit(sock); + } + + public int guestInit(Socket s) throws Exception { + int playerId = 0; + PokerTHMessage msg = receiveMessage(s); + assertTrue(msg.hasAnnounceMessage()); + + AnnounceMessage.Version requestedVersion = AnnounceMessage.Version.newBuilder() + .setMajor(PROTOCOL_VERSION_MAJOR) + .setMinor(PROTOCOL_VERSION_MINOR) + .build(); + InitMessage init = InitMessage.newBuilder() + .setBuildId(0) + .setLogin(InitMessage.LoginType.guestLogin) + .setRequestedVersion(requestedVersion) + .setNickName(GuestUser) + .build(); + msg = PokerTHMessage.newBuilder() + .setMessageType(PokerTHMessageType.Type_InitMessage) + .setInitMessage(init) + .build(); + sendMessage(msg, s); + + msg = receiveMessage(s); + if (msg.hasInitAckMessage() && msg.getMessageType() == PokerTHMessageType.Type_InitAckMessage) { + InitAckMessage initAck = msg.getInitAckMessage(); + assertTrue(initAck.getYourPlayerId() != 0L); + assertTrue(!initAck.hasYourAvatarHash()); + playerId = initAck.getYourPlayerId(); + } + else { + failOnErrorMessage(msg); + fail("Invalid message."); + } + return playerId; + } + + public int userInit() throws Exception { + return userInit(sock, AuthUser, AuthPassword); + } + + public int userInit(Socket s, String user, String password) throws Exception { + return userInit(s, user, password, null, null); + } + + public int userInit(Socket s, String user, String password, byte[] avatarData, byte[] lastSessionId) throws Exception { + int playerId = 0; + PokerTHMessage msg = receiveMessage(s); + AnnounceMessage announce = msg.getAnnounceMessage(); + assertTrue(announce.getServerType() == ServerType.serverTypeInternetAuth); + + ScramSha1 scramAuth = new ScramSha1(); + + // Send challenge. + AnnounceMessage.Version requestedVersion = AnnounceMessage.Version.newBuilder() + .setMajor(PROTOCOL_VERSION_MAJOR) + .setMinor(PROTOCOL_VERSION_MINOR) + .build(); + InitMessage.Builder initBuilder = InitMessage.newBuilder(); + initBuilder + .setBuildId(0) + .setLogin(InitMessage.LoginType.authenticatedLogin) + .setRequestedVersion(requestedVersion) + .setClientUserData(ByteString.copyFromUtf8(scramAuth.executeStep1(user))); + if (avatarData != null) { + initBuilder.setAvatarHash(ByteString.copyFrom(avatarData)); + } + if (lastSessionId != null) { + initBuilder.setMyLastSessionId(ByteString.copyFrom(lastSessionId)); + } + InitMessage init = initBuilder.build(); + msg = PokerTHMessage.newBuilder() + .setMessageType(PokerTHMessageType.Type_InitMessage) + .setInitMessage(init) + .build(); + sendMessage(msg, s); + + msg = receiveMessage(s); + + if (msg.hasAuthServerChallengeMessage() && msg.getMessageType() == PokerTHMessageType.Type_AuthServerChallengeMessage) + { + String serverFirstMessage = new String(msg.getAuthServerChallengeMessage().getServerChallenge().toStringUtf8()); + AuthClientResponseMessage authClient = AuthClientResponseMessage.newBuilder() + .setClientResponse(ByteString.copyFromUtf8(scramAuth.executeStep2(password, serverFirstMessage))) + .build(); + + msg = PokerTHMessage.newBuilder() + .setMessageType(PokerTHMessageType.Type_AuthClientResponseMessage) + .setAuthClientResponseMessage(authClient) + .build(); + sendMessage(msg, s); + } + failOnErrorMessage(msg); + + msg = receiveMessage(s); + failOnErrorMessage(msg); + + msg = receiveMessage(s); + if (msg.hasInitAckMessage() && msg.getMessageType() == PokerTHMessageType.Type_InitAckMessage) { + InitAckMessage initAck = msg.getInitAckMessage(); + assertTrue(initAck.getYourPlayerId() != 0L); + assertTrue(!initAck.hasYourAvatarHash()); + playerId = initAck.getYourPlayerId(); + if (lastSessionId != null) { + lastSessionId = initAck.getYourSessionId().toByteArray(); + } + if (initAck.hasRejoinGameId()) { + lastRejoinGameId = initAck.getRejoinGameId(); + } + else { + lastRejoinGameId = 0; + } + } + else { + failOnErrorMessage(msg); + fail("Invalid message."); + } + return playerId; + } + + public PokerTHMessage createGameRequestMsg(NetGameInfo gameInfo, String password, boolean autoLeave) { + JoinNewGameMessage.Builder joinBuilder = JoinNewGameMessage.newBuilder(); + joinBuilder.setGameInfo(gameInfo); + joinBuilder.setAutoLeave(autoLeave); + if (!password.isEmpty()) { + joinBuilder.setPassword(password); + } + JoinNewGameMessage joinNew = joinBuilder.build(); + + PokerTHMessage msg = PokerTHMessage.newBuilder() + .setMessageType(PokerTHMessageType.Type_JoinNewGameMessage) + .setJoinNewGameMessage(joinNew) + .build(); + return msg; + } + + public PokerTHMessage joinGameRequestMsg(int gameId, String password, boolean autoLeave) { + JoinExistingGameMessage.Builder joinBuilder = JoinExistingGameMessage.newBuilder(); + joinBuilder.setGameId(gameId); + joinBuilder.setAutoLeave(autoLeave); + if (!password.isEmpty()) { + joinBuilder.setPassword(password); + } + JoinExistingGameMessage joinExisting = joinBuilder.build(); + + PokerTHMessage msg = PokerTHMessage.newBuilder() + .setMessageType(PokerTHMessageType.Type_JoinExistingGameMessage) + .setJoinExistingGameMessage(joinExisting) + .build(); + return msg; + } + +/* public PokerTHMessage rejoinGameRequestMsg(long gameId, boolean autoLeave) { + RejoinExistingGame rejoinExisting = new RejoinExistingGame(); + rejoinExisting.setGameId(new NonZeroId(gameId)); + JoinGameActionChoiceType joinAction = new JoinGameActionChoiceType(); + joinAction.selectRejoinExistingGame(rejoinExisting); + JoinGameRequestMessageSequenceType joinType = new JoinGameRequestMessageSequenceType(); + joinType.setJoinGameAction(joinAction); + joinType.setAutoLeave(autoLeave); + + JoinGameRequestMessage joinRequest = new JoinGameRequestMessage(); + joinRequest.setValue(joinType); + + PokerTHMessage msg = new PokerTHMessage(); + msg.selectJoinGameRequestMessage(joinRequest); + return msg; + }*/ + + public NetGameInfo createGameInfo(NetGameInfo.NetGameType gameType, int playerActionTimeout, int proposedGuiSpeed, int delayBetweenHands, NetGameInfo.EndRaiseMode endMode, int endRaiseValue, int sb, + String gameName, Collection manualBlinds, int maxNumPlayers, int raiseEveryMinutes, int raiseEveryHands, int startMoney) { + + NetGameInfo.RaiseIntervalMode raiseInterval; + if (raiseEveryMinutes > 0) { + raiseInterval = NetGameInfo.RaiseIntervalMode.raiseOnMinutes; + } + else { + raiseInterval = NetGameInfo.RaiseIntervalMode.raiseOnHandNum; + } + + NetGameInfo gameInfo = NetGameInfo.newBuilder() + .setNetGameType(gameType) + .setPlayerActionTimeout(playerActionTimeout) + .setProposedGuiSpeed(proposedGuiSpeed) + .setDelayBetweenHands(delayBetweenHands) + .setEndRaiseMode(endMode) + .setEndRaiseSmallBlindValue(endRaiseValue) + .setFirstSmallBlind(sb) + .setGameName(gameName) + .setMaxNumPlayers(maxNumPlayers) + .addAllManualBlinds(manualBlinds) + .setRaiseIntervalMode(raiseInterval) + .setRaiseEveryMinutes(raiseEveryMinutes) + .setRaiseEveryHands(raiseEveryHands) + .setStartMoney(startMoney) + .build(); + + return gameInfo; + } + + void failOnErrorMessage(PokerTHMessage msg) { + if (msg.hasErrorMessage()) + { + ErrorMessage error = msg.getErrorMessage(); + fail("Received error: " + error.getErrorReason().toString()); + } + } + + public byte[] decryptCards(final String password, final byte[] ciphertext) throws Exception + { + final MessageDigest shaDigest = MessageDigest.getInstance("SHA-1"); + byte[] pw1 = password.getBytes("UTF-8"); + + byte[] keyHash1 = shaDigest.digest(pw1); + keyHash1 = shaDigest.digest(keyHash1); + byte[] pw2 = new byte[keyHash1.length + pw1.length]; + System.arraycopy(keyHash1, 0, pw2, 0, keyHash1.length); + System.arraycopy(pw1, 0, pw2, keyHash1.length, pw1.length); + byte[] keyHash2 = shaDigest.digest(pw2); + keyHash2 = shaDigest.digest(keyHash2); + + byte[] key = new byte[16]; + System.arraycopy(keyHash1, 0, key, 0, key.length); + byte[] iv = new byte[16]; + System.arraycopy(keyHash1, 16, iv, 0, 4); + System.arraycopy(keyHash2, 0, iv, 4, 12); + + Cipher cipher = Cipher.getInstance("AES/CBC/NoPadding"); + + cipher.init( + Cipher.DECRYPT_MODE, + new SecretKeySpec(key, "AES"), + new IvParameterSpec(iv)); + + return cipher.doFinal(ciphertext); + } +} diff --git a/tests/src/pokerth_protocol/AfterHandShowCardsMessage.java b/tests/src/pokerth_protocol/AfterHandShowCardsMessage.java deleted file mode 100644 index 77a13f46..00000000 --- a/tests/src/pokerth_protocol/AfterHandShowCardsMessage.java +++ /dev/null @@ -1,94 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "AfterHandShowCardsMessage" ) - public class AfterHandShowCardsMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "AfterHandShowCardsMessage" , isSet = false ) - public static class AfterHandShowCardsMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "playerResult", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private PlayerResult playerResult = null; - - - - public PlayerResult getPlayerResult () { - return this.playerResult; - } - - - - public void setPlayerResult (PlayerResult value) { - this.playerResult = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_AfterHandShowCardsMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_AfterHandShowCardsMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(AfterHandShowCardsMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "AfterHandShowCardsMessage", isOptional = false , hasTag = true, tag = 34, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private AfterHandShowCardsMessageSequenceType value; - - - - public AfterHandShowCardsMessage () { - } - - - - public void setValue(AfterHandShowCardsMessageSequenceType value) { - this.value = value; - } - - - - public AfterHandShowCardsMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AfterHandShowCardsMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/AllInShowCardsMessage.java b/tests/src/pokerth_protocol/AllInShowCardsMessage.java deleted file mode 100644 index e28e39c4..00000000 --- a/tests/src/pokerth_protocol/AllInShowCardsMessage.java +++ /dev/null @@ -1,121 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "AllInShowCardsMessage" ) - public class AllInShowCardsMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "AllInShowCardsMessage" , isSet = false ) - public static class AllInShowCardsMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - -@ASN1SequenceOf( name = "playersAllIn", isSetOf = false ) - - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 10L - - ) - - @ASN1Element ( name = "playersAllIn", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private java.util.Collection playersAllIn = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public java.util.Collection getPlayersAllIn () { - return this.playersAllIn; - } - - - - public void setPlayersAllIn (java.util.Collection value) { - this.playersAllIn = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_AllInShowCardsMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_AllInShowCardsMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(AllInShowCardsMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "AllInShowCardsMessage", isOptional = false , hasTag = true, tag = 31, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private AllInShowCardsMessageSequenceType value; - - - - public AllInShowCardsMessage () { - } - - - - public void setValue(AllInShowCardsMessageSequenceType value) { - this.value = value; - } - - - - public AllInShowCardsMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AllInShowCardsMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/AmountOfMoney.java b/tests/src/pokerth_protocol/AmountOfMoney.java deleted file mode 100644 index 90623026..00000000 --- a/tests/src/pokerth_protocol/AmountOfMoney.java +++ /dev/null @@ -1,58 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "AmountOfMoney" ) - public class AmountOfMoney implements IASN1PreparedElement { - - @ASN1Integer( name = "AmountOfMoney" ) - @ASN1ValueRangeConstraint ( - - min = 0L, - - max = 10000000L - - ) - - private Integer value; - - public AmountOfMoney() { - } - - public AmountOfMoney(Integer value) { - this.value = value; - } - - public void setValue(Integer value) { - this.value = value; - } - - public Integer getValue() { - return this.value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AmountOfMoney.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/AnnounceMessage.java b/tests/src/pokerth_protocol/AnnounceMessage.java deleted file mode 100644 index 010894e6..00000000 --- a/tests/src/pokerth_protocol/AnnounceMessage.java +++ /dev/null @@ -1,223 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "AnnounceMessage" ) - public class AnnounceMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "AnnounceMessage" , isSet = false ) - public static class AnnounceMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "protocolVersion", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Version protocolVersion = null; - - - @ASN1Element ( name = "latestGameVersion", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Version latestGameVersion = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 0L, - - max = 65535L - - ) - - @ASN1Element ( name = "latestBetaRevision", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer latestBetaRevision = null; - - - - @ASN1PreparedElement - @ASN1Enum ( - name = "ServerTypeEnumType" - ) - public static class ServerTypeEnumType implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "serverTypeLAN", hasTag = true , tag = 0 ) - serverTypeLAN , - @ASN1EnumItem ( name = "serverTypeInternetNoAuth", hasTag = true , tag = 1 ) - serverTypeInternetNoAuth , - @ASN1EnumItem ( name = "serverTypeInternetAuth", hasTag = true , tag = 2 ) - serverTypeInternetAuth , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ServerTypeEnumType.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - } - - @ASN1Element ( name = "serverType", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private ServerTypeEnumType serverType = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 0L, - - max = 65535L - - ) - - @ASN1Element ( name = "numPlayersOnServer", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer numPlayersOnServer = null; - - - - public Version getProtocolVersion () { - return this.protocolVersion; - } - - - - public void setProtocolVersion (Version value) { - this.protocolVersion = value; - } - - - - public Version getLatestGameVersion () { - return this.latestGameVersion; - } - - - - public void setLatestGameVersion (Version value) { - this.latestGameVersion = value; - } - - - - public Integer getLatestBetaRevision () { - return this.latestBetaRevision; - } - - - - public void setLatestBetaRevision (Integer value) { - this.latestBetaRevision = value; - } - - - - public ServerTypeEnumType getServerType () { - return this.serverType; - } - - - - public void setServerType (ServerTypeEnumType value) { - this.serverType = value; - } - - - - public Integer getNumPlayersOnServer () { - return this.numPlayersOnServer; - } - - - - public void setNumPlayersOnServer (Integer value) { - this.numPlayersOnServer = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_AnnounceMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_AnnounceMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(AnnounceMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "AnnounceMessage", isOptional = false , hasTag = true, tag = 0, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private AnnounceMessageSequenceType value; - - - - public AnnounceMessage () { - } - - - - public void setValue(AnnounceMessageSequenceType value) { - this.value = value; - } - - - - public AnnounceMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AnnounceMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/AskKickDeniedMessage.java b/tests/src/pokerth_protocol/AskKickDeniedMessage.java deleted file mode 100644 index 816e0687..00000000 --- a/tests/src/pokerth_protocol/AskKickDeniedMessage.java +++ /dev/null @@ -1,177 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "AskKickDeniedMessage" ) - public class AskKickDeniedMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "AskKickDeniedMessage" , isSet = false ) - public static class AskKickDeniedMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - - @ASN1PreparedElement - @ASN1Enum ( - name = "KickDeniedReasonEnumType" - ) - public static class KickDeniedReasonEnumType implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "kickDeniedInvalidGameState", hasTag = true , tag = 0 ) - kickDeniedInvalidGameState , - @ASN1EnumItem ( name = "kickDeniedNotPossible", hasTag = true , tag = 1 ) - kickDeniedNotPossible , - @ASN1EnumItem ( name = "kickDeniedTryAgainLater", hasTag = true , tag = 2 ) - kickDeniedTryAgainLater , - @ASN1EnumItem ( name = "kickDeniedAlreadyInProgress", hasTag = true , tag = 3 ) - kickDeniedAlreadyInProgress , - @ASN1EnumItem ( name = "kickDeniedInvalidPlayerId", hasTag = true , tag = 4 ) - kickDeniedInvalidPlayerId , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(KickDeniedReasonEnumType.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - } - - @ASN1Element ( name = "kickDeniedReason", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private KickDeniedReasonEnumType kickDeniedReason = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - public KickDeniedReasonEnumType getKickDeniedReason () { - return this.kickDeniedReason; - } - - - - public void setKickDeniedReason (KickDeniedReasonEnumType value) { - this.kickDeniedReason = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_AskKickDeniedMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_AskKickDeniedMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(AskKickDeniedMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "AskKickDeniedMessage", isOptional = false , hasTag = true, tag = 65, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private AskKickDeniedMessageSequenceType value; - - - - public AskKickDeniedMessage () { - } - - - - public void setValue(AskKickDeniedMessageSequenceType value) { - this.value = value; - } - - - - public AskKickDeniedMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AskKickDeniedMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/AskKickPlayerMessage.java b/tests/src/pokerth_protocol/AskKickPlayerMessage.java deleted file mode 100644 index e1e9276e..00000000 --- a/tests/src/pokerth_protocol/AskKickPlayerMessage.java +++ /dev/null @@ -1,111 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "AskKickPlayerMessage" ) - public class AskKickPlayerMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "AskKickPlayerMessage" , isSet = false ) - public static class AskKickPlayerMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_AskKickPlayerMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_AskKickPlayerMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(AskKickPlayerMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "AskKickPlayerMessage", isOptional = false , hasTag = true, tag = 64, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private AskKickPlayerMessageSequenceType value; - - - - public AskKickPlayerMessage () { - } - - - - public void setValue(AskKickPlayerMessageSequenceType value) { - this.value = value; - } - - - - public AskKickPlayerMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AskKickPlayerMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/AuthClientResponse.java b/tests/src/pokerth_protocol/AuthClientResponse.java deleted file mode 100644 index a7fed0e7..00000000 --- a/tests/src/pokerth_protocol/AuthClientResponse.java +++ /dev/null @@ -1,60 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "AuthClientResponse", isSet = false ) - public class AuthClientResponse implements IASN1PreparedElement { - @ASN1OctetString( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 256L - - ) - - @ASN1Element ( name = "clientResponse", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private byte[] clientResponse = null; - - - - public byte[] getClientResponse () { - return this.clientResponse; - } - - - - public void setClientResponse (byte[] value) { - this.clientResponse = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AuthClientResponse.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/AuthMessage.java b/tests/src/pokerth_protocol/AuthMessage.java deleted file mode 100644 index e13744ac..00000000 --- a/tests/src/pokerth_protocol/AuthMessage.java +++ /dev/null @@ -1,164 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "AuthMessage" ) - public class AuthMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Choice ( name = "AuthMessage" ) - public static class AuthMessageChoiceType implements IASN1PreparedElement { - - @ASN1Element ( name = "authServerChallenge", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false ) - - private AuthServerChallenge authServerChallenge = null; - - - @ASN1Element ( name = "authClientResponse", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false ) - - private AuthClientResponse authClientResponse = null; - - - @ASN1Element ( name = "authServerVerification", isOptional = false , hasTag = true, tag = 2 , hasDefaultValue = false ) - - private AuthServerVerification authServerVerification = null; - - - - public AuthServerChallenge getAuthServerChallenge () { - return this.authServerChallenge; - } - - public boolean isAuthServerChallengeSelected () { - return this.authServerChallenge != null; - } - - private void setAuthServerChallenge (AuthServerChallenge value) { - this.authServerChallenge = value; - } - - - public void selectAuthServerChallenge (AuthServerChallenge value) { - this.authServerChallenge = value; - - setAuthClientResponse(null); - - setAuthServerVerification(null); - - } - - - - - public AuthClientResponse getAuthClientResponse () { - return this.authClientResponse; - } - - public boolean isAuthClientResponseSelected () { - return this.authClientResponse != null; - } - - private void setAuthClientResponse (AuthClientResponse value) { - this.authClientResponse = value; - } - - - public void selectAuthClientResponse (AuthClientResponse value) { - this.authClientResponse = value; - - setAuthServerChallenge(null); - - setAuthServerVerification(null); - - } - - - - - public AuthServerVerification getAuthServerVerification () { - return this.authServerVerification; - } - - public boolean isAuthServerVerificationSelected () { - return this.authServerVerification != null; - } - - private void setAuthServerVerification (AuthServerVerification value) { - this.authServerVerification = value; - } - - - public void selectAuthServerVerification (AuthServerVerification value) { - this.authServerVerification = value; - - setAuthServerChallenge(null); - - setAuthClientResponse(null); - - } - - - - - public void initWithDefaults() { - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_AuthMessageChoiceType; - } - - private static IASN1PreparedElementData preparedData_AuthMessageChoiceType = CoderFactory.getInstance().newPreparedElementData(AuthMessageChoiceType.class); - - } - - - @ASN1Element ( name = "AuthMessage", isOptional = false , hasTag = true, tag = 2, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private AuthMessageChoiceType value; - - - - public AuthMessage () { - } - - - - public void setValue(AuthMessageChoiceType value) { - this.value = value; - } - - - - public AuthMessageChoiceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AuthMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/AuthServerChallenge.java b/tests/src/pokerth_protocol/AuthServerChallenge.java deleted file mode 100644 index eb52c352..00000000 --- a/tests/src/pokerth_protocol/AuthServerChallenge.java +++ /dev/null @@ -1,60 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "AuthServerChallenge", isSet = false ) - public class AuthServerChallenge implements IASN1PreparedElement { - @ASN1OctetString( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 256L - - ) - - @ASN1Element ( name = "serverChallenge", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private byte[] serverChallenge = null; - - - - public byte[] getServerChallenge () { - return this.serverChallenge; - } - - - - public void setServerChallenge (byte[] value) { - this.serverChallenge = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AuthServerChallenge.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/AuthServerVerification.java b/tests/src/pokerth_protocol/AuthServerVerification.java deleted file mode 100644 index c1a3a22a..00000000 --- a/tests/src/pokerth_protocol/AuthServerVerification.java +++ /dev/null @@ -1,60 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "AuthServerVerification", isSet = false ) - public class AuthServerVerification implements IASN1PreparedElement { - @ASN1OctetString( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 256L - - ) - - @ASN1Element ( name = "serverVerification", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private byte[] serverVerification = null; - - - - public byte[] getServerVerification () { - return this.serverVerification; - } - - - - public void setServerVerification (byte[] value) { - this.serverVerification = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AuthServerVerification.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/AuthenticatedLogin.java b/tests/src/pokerth_protocol/AuthenticatedLogin.java deleted file mode 100644 index 3ea422c8..00000000 --- a/tests/src/pokerth_protocol/AuthenticatedLogin.java +++ /dev/null @@ -1,81 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "AuthenticatedLogin", isSet = false ) - public class AuthenticatedLogin implements IASN1PreparedElement { - @ASN1OctetString( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 256L - - ) - - @ASN1Element ( name = "clientUserData", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private byte[] clientUserData = null; - - - @ASN1Element ( name = "avatar", isOptional = true , hasTag = false , hasDefaultValue = false ) - - private AvatarHash avatar = null; - - - - public byte[] getClientUserData () { - return this.clientUserData; - } - - - - public void setClientUserData (byte[] value) { - this.clientUserData = value; - } - - - - public AvatarHash getAvatar () { - return this.avatar; - } - - - public boolean isAvatarPresent () { - return this.avatar != null; - } - - - public void setAvatar (AvatarHash value) { - this.avatar = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AuthenticatedLogin.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/AvatarData.java b/tests/src/pokerth_protocol/AvatarData.java deleted file mode 100644 index a60a7291..00000000 --- a/tests/src/pokerth_protocol/AvatarData.java +++ /dev/null @@ -1,60 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "AvatarData", isSet = false ) - public class AvatarData implements IASN1PreparedElement { - @ASN1OctetString( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 256L - - ) - - @ASN1Element ( name = "avatarBlock", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private byte[] avatarBlock = null; - - - - public byte[] getAvatarBlock () { - return this.avatarBlock; - } - - - - public void setAvatarBlock (byte[] value) { - this.avatarBlock = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AvatarData.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/AvatarEnd.java b/tests/src/pokerth_protocol/AvatarEnd.java deleted file mode 100644 index 8f43d0bc..00000000 --- a/tests/src/pokerth_protocol/AvatarEnd.java +++ /dev/null @@ -1,35 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "AvatarEnd", isSet = false ) - public class AvatarEnd implements IASN1PreparedElement { - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AvatarEnd.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/AvatarHash.java b/tests/src/pokerth_protocol/AvatarHash.java deleted file mode 100644 index d8f81af4..00000000 --- a/tests/src/pokerth_protocol/AvatarHash.java +++ /dev/null @@ -1,61 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "AvatarHash" ) - public class AvatarHash implements IASN1PreparedElement { - - @ASN1OctetString( name = "AvatarHash" ) - - @ASN1SizeConstraint ( max = 16L ) - - private byte[] value = null; - - public AvatarHash() { - } - - public AvatarHash(byte[] value) { - this.value = value; - } - - public AvatarHash(BitString value) { - setValue(value); - } - - public void setValue(byte[] value) { - this.value = value; - } - - public void setValue(BitString btStr) { - this.value = btStr.getValue(); - } - - public byte[] getValue() { - return this.value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AvatarHash.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/AvatarHeader.java b/tests/src/pokerth_protocol/AvatarHeader.java deleted file mode 100644 index f6563f96..00000000 --- a/tests/src/pokerth_protocol/AvatarHeader.java +++ /dev/null @@ -1,77 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "AvatarHeader", isSet = false ) - public class AvatarHeader implements IASN1PreparedElement { - - @ASN1Element ( name = "avatarType", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NetAvatarType avatarType = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 32L, - - max = 30720L - - ) - - @ASN1Element ( name = "avatarSize", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer avatarSize = null; - - - - public NetAvatarType getAvatarType () { - return this.avatarType; - } - - - - public void setAvatarType (NetAvatarType value) { - this.avatarType = value; - } - - - - public Integer getAvatarSize () { - return this.avatarSize; - } - - - - public void setAvatarSize (Integer value) { - this.avatarSize = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AvatarHeader.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/AvatarReplyMessage.java b/tests/src/pokerth_protocol/AvatarReplyMessage.java deleted file mode 100644 index dfcf796c..00000000 --- a/tests/src/pokerth_protocol/AvatarReplyMessage.java +++ /dev/null @@ -1,257 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "AvatarReplyMessage" ) - public class AvatarReplyMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "AvatarReplyMessage" , isSet = false ) - public static class AvatarReplyMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "requestId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId requestId = null; - - - - @ASN1PreparedElement - @ASN1Choice ( name = "avatarResult" ) - public static class AvatarResultChoiceType implements IASN1PreparedElement { - - @ASN1Element ( name = "avatarHeader", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false ) - - private AvatarHeader avatarHeader = null; - - - @ASN1Element ( name = "avatarData", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false ) - - private AvatarData avatarData = null; - - - @ASN1Element ( name = "avatarEnd", isOptional = false , hasTag = true, tag = 2 , hasDefaultValue = false ) - - private AvatarEnd avatarEnd = null; - - - @ASN1Element ( name = "unknownAvatar", isOptional = false , hasTag = true, tag = 3 , hasDefaultValue = false ) - - private UnknownAvatar unknownAvatar = null; - - - - public AvatarHeader getAvatarHeader () { - return this.avatarHeader; - } - - public boolean isAvatarHeaderSelected () { - return this.avatarHeader != null; - } - - private void setAvatarHeader (AvatarHeader value) { - this.avatarHeader = value; - } - - - public void selectAvatarHeader (AvatarHeader value) { - this.avatarHeader = value; - - setAvatarData(null); - - setAvatarEnd(null); - - setUnknownAvatar(null); - - } - - - - - public AvatarData getAvatarData () { - return this.avatarData; - } - - public boolean isAvatarDataSelected () { - return this.avatarData != null; - } - - private void setAvatarData (AvatarData value) { - this.avatarData = value; - } - - - public void selectAvatarData (AvatarData value) { - this.avatarData = value; - - setAvatarHeader(null); - - setAvatarEnd(null); - - setUnknownAvatar(null); - - } - - - - - public AvatarEnd getAvatarEnd () { - return this.avatarEnd; - } - - public boolean isAvatarEndSelected () { - return this.avatarEnd != null; - } - - private void setAvatarEnd (AvatarEnd value) { - this.avatarEnd = value; - } - - - public void selectAvatarEnd (AvatarEnd value) { - this.avatarEnd = value; - - setAvatarHeader(null); - - setAvatarData(null); - - setUnknownAvatar(null); - - } - - - - - public UnknownAvatar getUnknownAvatar () { - return this.unknownAvatar; - } - - public boolean isUnknownAvatarSelected () { - return this.unknownAvatar != null; - } - - private void setUnknownAvatar (UnknownAvatar value) { - this.unknownAvatar = value; - } - - - public void selectUnknownAvatar (UnknownAvatar value) { - this.unknownAvatar = value; - - setAvatarHeader(null); - - setAvatarData(null); - - setAvatarEnd(null); - - } - - - - - public void initWithDefaults() { - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_AvatarResultChoiceType; - } - - private static IASN1PreparedElementData preparedData_AvatarResultChoiceType = CoderFactory.getInstance().newPreparedElementData(AvatarResultChoiceType.class); - - } - - - @ASN1Element ( name = "avatarResult", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AvatarResultChoiceType avatarResult = null; - - - - public NonZeroId getRequestId () { - return this.requestId; - } - - - - public void setRequestId (NonZeroId value) { - this.requestId = value; - } - - - - public AvatarResultChoiceType getAvatarResult () { - return this.avatarResult; - } - - - - public void setAvatarResult (AvatarResultChoiceType value) { - this.avatarResult = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_AvatarReplyMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_AvatarReplyMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(AvatarReplyMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "AvatarReplyMessage", isOptional = false , hasTag = true, tag = 5, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private AvatarReplyMessageSequenceType value; - - - - public AvatarReplyMessage () { - } - - - - public void setValue(AvatarReplyMessageSequenceType value) { - this.value = value; - } - - - - public AvatarReplyMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AvatarReplyMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/AvatarRequestMessage.java b/tests/src/pokerth_protocol/AvatarRequestMessage.java deleted file mode 100644 index b86a77b9..00000000 --- a/tests/src/pokerth_protocol/AvatarRequestMessage.java +++ /dev/null @@ -1,111 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "AvatarRequestMessage" ) - public class AvatarRequestMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "AvatarRequestMessage" , isSet = false ) - public static class AvatarRequestMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "requestId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId requestId = null; - - - @ASN1Element ( name = "avatar", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AvatarHash avatar = null; - - - - public NonZeroId getRequestId () { - return this.requestId; - } - - - - public void setRequestId (NonZeroId value) { - this.requestId = value; - } - - - - public AvatarHash getAvatar () { - return this.avatar; - } - - - - public void setAvatar (AvatarHash value) { - this.avatar = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_AvatarRequestMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_AvatarRequestMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(AvatarRequestMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "AvatarRequestMessage", isOptional = false , hasTag = true, tag = 4, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private AvatarRequestMessageSequenceType value; - - - - public AvatarRequestMessage () { - } - - - - public void setValue(AvatarRequestMessageSequenceType value) { - this.value = value; - } - - - - public AvatarRequestMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(AvatarRequestMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/Card.java b/tests/src/pokerth_protocol/Card.java deleted file mode 100644 index 1e914394..00000000 --- a/tests/src/pokerth_protocol/Card.java +++ /dev/null @@ -1,58 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "Card" ) - public class Card implements IASN1PreparedElement { - - @ASN1Integer( name = "Card" ) - @ASN1ValueRangeConstraint ( - - min = 0L, - - max = 51L - - ) - - private Integer value; - - public Card() { - } - - public Card(Integer value) { - this.value = value; - } - - public void setValue(Integer value) { - this.value = value; - } - - public Integer getValue() { - return this.value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(Card.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/ChatMessage.java b/tests/src/pokerth_protocol/ChatMessage.java deleted file mode 100644 index 538731cd..00000000 --- a/tests/src/pokerth_protocol/ChatMessage.java +++ /dev/null @@ -1,309 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "ChatMessage" ) - public class ChatMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "ChatMessage" , isSet = false ) - public static class ChatMessageSequenceType implements IASN1PreparedElement { - - - @ASN1PreparedElement - @ASN1Choice ( name = "chatType" ) - public static class ChatTypeChoiceType implements IASN1PreparedElement { - - @ASN1Element ( name = "chatTypeLobby", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false ) - - private ChatTypeLobby chatTypeLobby = null; - - - @ASN1Element ( name = "chatTypeGame", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false ) - - private ChatTypeGame chatTypeGame = null; - - - @ASN1Element ( name = "chatTypeBot", isOptional = false , hasTag = true, tag = 2 , hasDefaultValue = false ) - - private ChatTypeBot chatTypeBot = null; - - - @ASN1Element ( name = "chatTypeBroadcast", isOptional = false , hasTag = true, tag = 3 , hasDefaultValue = false ) - - private ChatTypeBroadcast chatTypeBroadcast = null; - - - @ASN1Element ( name = "chatTypePrivate", isOptional = false , hasTag = true, tag = 4 , hasDefaultValue = false ) - - private ChatTypePrivate chatTypePrivate = null; - - - - public ChatTypeLobby getChatTypeLobby () { - return this.chatTypeLobby; - } - - public boolean isChatTypeLobbySelected () { - return this.chatTypeLobby != null; - } - - private void setChatTypeLobby (ChatTypeLobby value) { - this.chatTypeLobby = value; - } - - - public void selectChatTypeLobby (ChatTypeLobby value) { - this.chatTypeLobby = value; - - setChatTypeGame(null); - - setChatTypeBot(null); - - setChatTypeBroadcast(null); - - setChatTypePrivate(null); - - } - - - - - public ChatTypeGame getChatTypeGame () { - return this.chatTypeGame; - } - - public boolean isChatTypeGameSelected () { - return this.chatTypeGame != null; - } - - private void setChatTypeGame (ChatTypeGame value) { - this.chatTypeGame = value; - } - - - public void selectChatTypeGame (ChatTypeGame value) { - this.chatTypeGame = value; - - setChatTypeLobby(null); - - setChatTypeBot(null); - - setChatTypeBroadcast(null); - - setChatTypePrivate(null); - - } - - - - - public ChatTypeBot getChatTypeBot () { - return this.chatTypeBot; - } - - public boolean isChatTypeBotSelected () { - return this.chatTypeBot != null; - } - - private void setChatTypeBot (ChatTypeBot value) { - this.chatTypeBot = value; - } - - - public void selectChatTypeBot (ChatTypeBot value) { - this.chatTypeBot = value; - - setChatTypeLobby(null); - - setChatTypeGame(null); - - setChatTypeBroadcast(null); - - setChatTypePrivate(null); - - } - - - - - public ChatTypeBroadcast getChatTypeBroadcast () { - return this.chatTypeBroadcast; - } - - public boolean isChatTypeBroadcastSelected () { - return this.chatTypeBroadcast != null; - } - - private void setChatTypeBroadcast (ChatTypeBroadcast value) { - this.chatTypeBroadcast = value; - } - - - public void selectChatTypeBroadcast (ChatTypeBroadcast value) { - this.chatTypeBroadcast = value; - - setChatTypeLobby(null); - - setChatTypeGame(null); - - setChatTypeBot(null); - - setChatTypePrivate(null); - - } - - - - - public ChatTypePrivate getChatTypePrivate () { - return this.chatTypePrivate; - } - - public boolean isChatTypePrivateSelected () { - return this.chatTypePrivate != null; - } - - private void setChatTypePrivate (ChatTypePrivate value) { - this.chatTypePrivate = value; - } - - - public void selectChatTypePrivate (ChatTypePrivate value) { - this.chatTypePrivate = value; - - setChatTypeLobby(null); - - setChatTypeGame(null); - - setChatTypeBot(null); - - setChatTypeBroadcast(null); - - } - - - - - public void initWithDefaults() { - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_ChatTypeChoiceType; - } - - private static IASN1PreparedElementData preparedData_ChatTypeChoiceType = CoderFactory.getInstance().newPreparedElementData(ChatTypeChoiceType.class); - - } - - - @ASN1Element ( name = "chatType", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private ChatTypeChoiceType chatType = null; - - - @ASN1String( name = "", - stringType = UniversalTag.UTF8String , isUCS = false ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 128L - - ) - - @ASN1Element ( name = "chatText", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private String chatText = null; - - - - public ChatTypeChoiceType getChatType () { - return this.chatType; - } - - - - public void setChatType (ChatTypeChoiceType value) { - this.chatType = value; - } - - - - public String getChatText () { - return this.chatText; - } - - - - public void setChatText (String value) { - this.chatText = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_ChatMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_ChatMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(ChatMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "ChatMessage", isOptional = false , hasTag = true, tag = 130, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private ChatMessageSequenceType value; - - - - public ChatMessage () { - } - - - - public void setValue(ChatMessageSequenceType value) { - this.value = value; - } - - - - public ChatMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/ChatRejectMessage.java b/tests/src/pokerth_protocol/ChatRejectMessage.java deleted file mode 100644 index e6045e7a..00000000 --- a/tests/src/pokerth_protocol/ChatRejectMessage.java +++ /dev/null @@ -1,104 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "ChatRejectMessage" ) - public class ChatRejectMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "ChatRejectMessage" , isSet = false ) - public static class ChatRejectMessageSequenceType implements IASN1PreparedElement { - - @ASN1String( name = "", - stringType = UniversalTag.UTF8String , isUCS = false ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 128L - - ) - - @ASN1Element ( name = "chatText", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private String chatText = null; - - - - public String getChatText () { - return this.chatText; - } - - - - public void setChatText (String value) { - this.chatText = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_ChatRejectMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_ChatRejectMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(ChatRejectMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "ChatRejectMessage", isOptional = false , hasTag = true, tag = 131, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private ChatRejectMessageSequenceType value; - - - - public ChatRejectMessage () { - } - - - - public void setValue(ChatRejectMessageSequenceType value) { - this.value = value; - } - - - - public ChatRejectMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatRejectMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/ChatRequestMessage.java b/tests/src/pokerth_protocol/ChatRequestMessage.java deleted file mode 100644 index 48e5a398..00000000 --- a/tests/src/pokerth_protocol/ChatRequestMessage.java +++ /dev/null @@ -1,229 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "ChatRequestMessage" ) - public class ChatRequestMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "ChatRequestMessage" , isSet = false ) - public static class ChatRequestMessageSequenceType implements IASN1PreparedElement { - - - @ASN1PreparedElement - @ASN1Choice ( name = "chatRequestType" ) - public static class ChatRequestTypeChoiceType implements IASN1PreparedElement { - - @ASN1Element ( name = "chatRequestTypeLobby", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false ) - - private ChatRequestTypeLobby chatRequestTypeLobby = null; - - - @ASN1Element ( name = "chatRequestTypeGame", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false ) - - private ChatRequestTypeGame chatRequestTypeGame = null; - - - @ASN1Element ( name = "chatRequestTypePrivate", isOptional = false , hasTag = true, tag = 2 , hasDefaultValue = false ) - - private ChatRequestTypePrivate chatRequestTypePrivate = null; - - - - public ChatRequestTypeLobby getChatRequestTypeLobby () { - return this.chatRequestTypeLobby; - } - - public boolean isChatRequestTypeLobbySelected () { - return this.chatRequestTypeLobby != null; - } - - private void setChatRequestTypeLobby (ChatRequestTypeLobby value) { - this.chatRequestTypeLobby = value; - } - - - public void selectChatRequestTypeLobby (ChatRequestTypeLobby value) { - this.chatRequestTypeLobby = value; - - setChatRequestTypeGame(null); - - setChatRequestTypePrivate(null); - - } - - - - - public ChatRequestTypeGame getChatRequestTypeGame () { - return this.chatRequestTypeGame; - } - - public boolean isChatRequestTypeGameSelected () { - return this.chatRequestTypeGame != null; - } - - private void setChatRequestTypeGame (ChatRequestTypeGame value) { - this.chatRequestTypeGame = value; - } - - - public void selectChatRequestTypeGame (ChatRequestTypeGame value) { - this.chatRequestTypeGame = value; - - setChatRequestTypeLobby(null); - - setChatRequestTypePrivate(null); - - } - - - - - public ChatRequestTypePrivate getChatRequestTypePrivate () { - return this.chatRequestTypePrivate; - } - - public boolean isChatRequestTypePrivateSelected () { - return this.chatRequestTypePrivate != null; - } - - private void setChatRequestTypePrivate (ChatRequestTypePrivate value) { - this.chatRequestTypePrivate = value; - } - - - public void selectChatRequestTypePrivate (ChatRequestTypePrivate value) { - this.chatRequestTypePrivate = value; - - setChatRequestTypeLobby(null); - - setChatRequestTypeGame(null); - - } - - - - - public void initWithDefaults() { - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_ChatRequestTypeChoiceType; - } - - private static IASN1PreparedElementData preparedData_ChatRequestTypeChoiceType = CoderFactory.getInstance().newPreparedElementData(ChatRequestTypeChoiceType.class); - - } - - - @ASN1Element ( name = "chatRequestType", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private ChatRequestTypeChoiceType chatRequestType = null; - - - @ASN1String( name = "", - stringType = UniversalTag.UTF8String , isUCS = false ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 128L - - ) - - @ASN1Element ( name = "chatText", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private String chatText = null; - - - - public ChatRequestTypeChoiceType getChatRequestType () { - return this.chatRequestType; - } - - - - public void setChatRequestType (ChatRequestTypeChoiceType value) { - this.chatRequestType = value; - } - - - - public String getChatText () { - return this.chatText; - } - - - - public void setChatText (String value) { - this.chatText = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_ChatRequestMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_ChatRequestMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(ChatRequestMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "ChatRequestMessage", isOptional = false , hasTag = true, tag = 129, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private ChatRequestMessageSequenceType value; - - - - public ChatRequestMessage () { - } - - - - public void setValue(ChatRequestMessageSequenceType value) { - this.value = value; - } - - - - public ChatRequestMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatRequestMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/ChatRequestTypeGame.java b/tests/src/pokerth_protocol/ChatRequestTypeGame.java deleted file mode 100644 index b8d95145..00000000 --- a/tests/src/pokerth_protocol/ChatRequestTypeGame.java +++ /dev/null @@ -1,52 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "ChatRequestTypeGame", isSet = false ) - public class ChatRequestTypeGame implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatRequestTypeGame.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/ChatRequestTypeLobby.java b/tests/src/pokerth_protocol/ChatRequestTypeLobby.java deleted file mode 100644 index 083777af..00000000 --- a/tests/src/pokerth_protocol/ChatRequestTypeLobby.java +++ /dev/null @@ -1,35 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "ChatRequestTypeLobby", isSet = false ) - public class ChatRequestTypeLobby implements IASN1PreparedElement { - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatRequestTypeLobby.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/ChatRequestTypePrivate.java b/tests/src/pokerth_protocol/ChatRequestTypePrivate.java deleted file mode 100644 index 45b75c0e..00000000 --- a/tests/src/pokerth_protocol/ChatRequestTypePrivate.java +++ /dev/null @@ -1,52 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "ChatRequestTypePrivate", isSet = false ) - public class ChatRequestTypePrivate implements IASN1PreparedElement { - - @ASN1Element ( name = "targetPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId targetPlayerId = null; - - - - public NonZeroId getTargetPlayerId () { - return this.targetPlayerId; - } - - - - public void setTargetPlayerId (NonZeroId value) { - this.targetPlayerId = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatRequestTypePrivate.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/ChatTypeBot.java b/tests/src/pokerth_protocol/ChatTypeBot.java deleted file mode 100644 index d83aaf0b..00000000 --- a/tests/src/pokerth_protocol/ChatTypeBot.java +++ /dev/null @@ -1,35 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "ChatTypeBot", isSet = false ) - public class ChatTypeBot implements IASN1PreparedElement { - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatTypeBot.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/ChatTypeBroadcast.java b/tests/src/pokerth_protocol/ChatTypeBroadcast.java deleted file mode 100644 index d548de94..00000000 --- a/tests/src/pokerth_protocol/ChatTypeBroadcast.java +++ /dev/null @@ -1,35 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "ChatTypeBroadcast", isSet = false ) - public class ChatTypeBroadcast implements IASN1PreparedElement { - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatTypeBroadcast.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/ChatTypeGame.java b/tests/src/pokerth_protocol/ChatTypeGame.java deleted file mode 100644 index 567b5f65..00000000 --- a/tests/src/pokerth_protocol/ChatTypeGame.java +++ /dev/null @@ -1,69 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "ChatTypeGame", isSet = false ) - public class ChatTypeGame implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatTypeGame.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/ChatTypeLobby.java b/tests/src/pokerth_protocol/ChatTypeLobby.java deleted file mode 100644 index 53861ed9..00000000 --- a/tests/src/pokerth_protocol/ChatTypeLobby.java +++ /dev/null @@ -1,52 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "ChatTypeLobby", isSet = false ) - public class ChatTypeLobby implements IASN1PreparedElement { - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatTypeLobby.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/ChatTypePrivate.java b/tests/src/pokerth_protocol/ChatTypePrivate.java deleted file mode 100644 index a2152e0f..00000000 --- a/tests/src/pokerth_protocol/ChatTypePrivate.java +++ /dev/null @@ -1,52 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "ChatTypePrivate", isSet = false ) - public class ChatTypePrivate implements IASN1PreparedElement { - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ChatTypePrivate.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/DealFlopCardsMessage.java b/tests/src/pokerth_protocol/DealFlopCardsMessage.java deleted file mode 100644 index 21138a5e..00000000 --- a/tests/src/pokerth_protocol/DealFlopCardsMessage.java +++ /dev/null @@ -1,145 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "DealFlopCardsMessage" ) - public class DealFlopCardsMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "DealFlopCardsMessage" , isSet = false ) - public static class DealFlopCardsMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "flopCard1", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Card flopCard1 = null; - - - @ASN1Element ( name = "flopCard2", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Card flopCard2 = null; - - - @ASN1Element ( name = "flopCard3", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Card flopCard3 = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public Card getFlopCard1 () { - return this.flopCard1; - } - - - - public void setFlopCard1 (Card value) { - this.flopCard1 = value; - } - - - - public Card getFlopCard2 () { - return this.flopCard2; - } - - - - public void setFlopCard2 (Card value) { - this.flopCard2 = value; - } - - - - public Card getFlopCard3 () { - return this.flopCard3; - } - - - - public void setFlopCard3 (Card value) { - this.flopCard3 = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_DealFlopCardsMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_DealFlopCardsMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(DealFlopCardsMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "DealFlopCardsMessage", isOptional = false , hasTag = true, tag = 28, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private DealFlopCardsMessageSequenceType value; - - - - public DealFlopCardsMessage () { - } - - - - public void setValue(DealFlopCardsMessageSequenceType value) { - this.value = value; - } - - - - public DealFlopCardsMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(DealFlopCardsMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/DealRiverCardMessage.java b/tests/src/pokerth_protocol/DealRiverCardMessage.java deleted file mode 100644 index ff7f0a64..00000000 --- a/tests/src/pokerth_protocol/DealRiverCardMessage.java +++ /dev/null @@ -1,111 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "DealRiverCardMessage" ) - public class DealRiverCardMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "DealRiverCardMessage" , isSet = false ) - public static class DealRiverCardMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "riverCard", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Card riverCard = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public Card getRiverCard () { - return this.riverCard; - } - - - - public void setRiverCard (Card value) { - this.riverCard = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_DealRiverCardMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_DealRiverCardMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(DealRiverCardMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "DealRiverCardMessage", isOptional = false , hasTag = true, tag = 30, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private DealRiverCardMessageSequenceType value; - - - - public DealRiverCardMessage () { - } - - - - public void setValue(DealRiverCardMessageSequenceType value) { - this.value = value; - } - - - - public DealRiverCardMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(DealRiverCardMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/DealTurnCardMessage.java b/tests/src/pokerth_protocol/DealTurnCardMessage.java deleted file mode 100644 index 167541c8..00000000 --- a/tests/src/pokerth_protocol/DealTurnCardMessage.java +++ /dev/null @@ -1,111 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "DealTurnCardMessage" ) - public class DealTurnCardMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "DealTurnCardMessage" , isSet = false ) - public static class DealTurnCardMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "turnCard", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Card turnCard = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public Card getTurnCard () { - return this.turnCard; - } - - - - public void setTurnCard (Card value) { - this.turnCard = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_DealTurnCardMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_DealTurnCardMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(DealTurnCardMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "DealTurnCardMessage", isOptional = false , hasTag = true, tag = 29, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private DealTurnCardMessageSequenceType value; - - - - public DealTurnCardMessage () { - } - - - - public void setValue(DealTurnCardMessageSequenceType value) { - this.value = value; - } - - - - public DealTurnCardMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(DealTurnCardMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/DialogMessage.java b/tests/src/pokerth_protocol/DialogMessage.java deleted file mode 100644 index d1323fd1..00000000 --- a/tests/src/pokerth_protocol/DialogMessage.java +++ /dev/null @@ -1,104 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "DialogMessage" ) - public class DialogMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "DialogMessage" , isSet = false ) - public static class DialogMessageSequenceType implements IASN1PreparedElement { - - @ASN1String( name = "", - stringType = UniversalTag.UTF8String , isUCS = false ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 128L - - ) - - @ASN1Element ( name = "notificationText", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private String notificationText = null; - - - - public String getNotificationText () { - return this.notificationText; - } - - - - public void setNotificationText (String value) { - this.notificationText = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_DialogMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_DialogMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(DialogMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "DialogMessage", isOptional = false , hasTag = true, tag = 132, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private DialogMessageSequenceType value; - - - - public DialogMessage () { - } - - - - public void setValue(DialogMessageSequenceType value) { - this.value = value; - } - - - - public DialogMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(DialogMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/EncryptedCards.java b/tests/src/pokerth_protocol/EncryptedCards.java deleted file mode 100644 index 4b483ea7..00000000 --- a/tests/src/pokerth_protocol/EncryptedCards.java +++ /dev/null @@ -1,60 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "EncryptedCards", isSet = false ) - public class EncryptedCards implements IASN1PreparedElement { - @ASN1OctetString( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 16L, - - max = 64L - - ) - - @ASN1Element ( name = "cardData", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private byte[] cardData = null; - - - - public byte[] getCardData () { - return this.cardData; - } - - - - public void setCardData (byte[] value) { - this.cardData = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(EncryptedCards.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/EndKickPetitionMessage.java b/tests/src/pokerth_protocol/EndKickPetitionMessage.java deleted file mode 100644 index fc972617..00000000 --- a/tests/src/pokerth_protocol/EndKickPetitionMessage.java +++ /dev/null @@ -1,243 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "EndKickPetitionMessage" ) - public class EndKickPetitionMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "EndKickPetitionMessage" , isSet = false ) - public static class EndKickPetitionMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "petitionId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId petitionId = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 0L, - - max = 9L - - ) - - @ASN1Element ( name = "numVotesAgainstKicking", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer numVotesAgainstKicking = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 9L - - ) - - @ASN1Element ( name = "numVotesInFavourOfKicking", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer numVotesInFavourOfKicking = null; - - @ASN1Boolean( name = "" ) - - @ASN1Element ( name = "resultPlayerKicked", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Boolean resultPlayerKicked = null; - - - - @ASN1PreparedElement - @ASN1Enum ( - name = "PetitionEndReasonEnumType" - ) - public static class PetitionEndReasonEnumType implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "petitionEndEnoughVotes", hasTag = true , tag = 0 ) - petitionEndEnoughVotes , - @ASN1EnumItem ( name = "petitionEndTooFewPlayers", hasTag = true , tag = 1 ) - petitionEndTooFewPlayers , - @ASN1EnumItem ( name = "petitionEndPlayerLeft", hasTag = true , tag = 2 ) - petitionEndPlayerLeft , - @ASN1EnumItem ( name = "petitionEndTimeout", hasTag = true , tag = 3 ) - petitionEndTimeout , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(PetitionEndReasonEnumType.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - } - - @ASN1Element ( name = "petitionEndReason", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private PetitionEndReasonEnumType petitionEndReason = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NonZeroId getPetitionId () { - return this.petitionId; - } - - - - public void setPetitionId (NonZeroId value) { - this.petitionId = value; - } - - - - public Integer getNumVotesAgainstKicking () { - return this.numVotesAgainstKicking; - } - - - - public void setNumVotesAgainstKicking (Integer value) { - this.numVotesAgainstKicking = value; - } - - - - public Integer getNumVotesInFavourOfKicking () { - return this.numVotesInFavourOfKicking; - } - - - - public void setNumVotesInFavourOfKicking (Integer value) { - this.numVotesInFavourOfKicking = value; - } - - - - public Boolean getResultPlayerKicked () { - return this.resultPlayerKicked; - } - - - - public void setResultPlayerKicked (Boolean value) { - this.resultPlayerKicked = value; - } - - - - public PetitionEndReasonEnumType getPetitionEndReason () { - return this.petitionEndReason; - } - - - - public void setPetitionEndReason (PetitionEndReasonEnumType value) { - this.petitionEndReason = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_EndKickPetitionMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_EndKickPetitionMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(EndKickPetitionMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "EndKickPetitionMessage", isOptional = false , hasTag = true, tag = 70, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private EndKickPetitionMessageSequenceType value; - - - - public EndKickPetitionMessage () { - } - - - - public void setValue(EndKickPetitionMessageSequenceType value) { - this.value = value; - } - - - - public EndKickPetitionMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(EndKickPetitionMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/EndOfGameMessage.java b/tests/src/pokerth_protocol/EndOfGameMessage.java deleted file mode 100644 index cc387cb2..00000000 --- a/tests/src/pokerth_protocol/EndOfGameMessage.java +++ /dev/null @@ -1,111 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "EndOfGameMessage" ) - public class EndOfGameMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "EndOfGameMessage" , isSet = false ) - public static class EndOfGameMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "winnerPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId winnerPlayerId = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NonZeroId getWinnerPlayerId () { - return this.winnerPlayerId; - } - - - - public void setWinnerPlayerId (NonZeroId value) { - this.winnerPlayerId = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_EndOfGameMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_EndOfGameMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(EndOfGameMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "EndOfGameMessage", isOptional = false , hasTag = true, tag = 35, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private EndOfGameMessageSequenceType value; - - - - public EndOfGameMessage () { - } - - - - public void setValue(EndOfGameMessageSequenceType value) { - this.value = value; - } - - - - public EndOfGameMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(EndOfGameMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/EndOfHandHideCards.java b/tests/src/pokerth_protocol/EndOfHandHideCards.java deleted file mode 100644 index d221650d..00000000 --- a/tests/src/pokerth_protocol/EndOfHandHideCards.java +++ /dev/null @@ -1,86 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "EndOfHandHideCards", isSet = false ) - public class EndOfHandHideCards implements IASN1PreparedElement { - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - @ASN1Element ( name = "moneyWon", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AmountOfMoney moneyWon = null; - - - @ASN1Element ( name = "playerMoney", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AmountOfMoney playerMoney = null; - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - public AmountOfMoney getMoneyWon () { - return this.moneyWon; - } - - - - public void setMoneyWon (AmountOfMoney value) { - this.moneyWon = value; - } - - - - public AmountOfMoney getPlayerMoney () { - return this.playerMoney; - } - - - - public void setPlayerMoney (AmountOfMoney value) { - this.playerMoney = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(EndOfHandHideCards.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/EndOfHandMessage.java b/tests/src/pokerth_protocol/EndOfHandMessage.java deleted file mode 100644 index fae44b5b..00000000 --- a/tests/src/pokerth_protocol/EndOfHandMessage.java +++ /dev/null @@ -1,185 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "EndOfHandMessage" ) - public class EndOfHandMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "EndOfHandMessage" , isSet = false ) - public static class EndOfHandMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - - @ASN1PreparedElement - @ASN1Choice ( name = "endOfHandType" ) - public static class EndOfHandTypeChoiceType implements IASN1PreparedElement { - - @ASN1Element ( name = "endOfHandShowCards", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false ) - - private EndOfHandShowCards endOfHandShowCards = null; - - - @ASN1Element ( name = "endOfHandHideCards", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false ) - - private EndOfHandHideCards endOfHandHideCards = null; - - - - public EndOfHandShowCards getEndOfHandShowCards () { - return this.endOfHandShowCards; - } - - public boolean isEndOfHandShowCardsSelected () { - return this.endOfHandShowCards != null; - } - - private void setEndOfHandShowCards (EndOfHandShowCards value) { - this.endOfHandShowCards = value; - } - - - public void selectEndOfHandShowCards (EndOfHandShowCards value) { - this.endOfHandShowCards = value; - - setEndOfHandHideCards(null); - - } - - - - - public EndOfHandHideCards getEndOfHandHideCards () { - return this.endOfHandHideCards; - } - - public boolean isEndOfHandHideCardsSelected () { - return this.endOfHandHideCards != null; - } - - private void setEndOfHandHideCards (EndOfHandHideCards value) { - this.endOfHandHideCards = value; - } - - - public void selectEndOfHandHideCards (EndOfHandHideCards value) { - this.endOfHandHideCards = value; - - setEndOfHandShowCards(null); - - } - - - - - public void initWithDefaults() { - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_EndOfHandTypeChoiceType; - } - - private static IASN1PreparedElementData preparedData_EndOfHandTypeChoiceType = CoderFactory.getInstance().newPreparedElementData(EndOfHandTypeChoiceType.class); - - } - - - @ASN1Element ( name = "endOfHandType", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private EndOfHandTypeChoiceType endOfHandType = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public EndOfHandTypeChoiceType getEndOfHandType () { - return this.endOfHandType; - } - - - - public void setEndOfHandType (EndOfHandTypeChoiceType value) { - this.endOfHandType = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_EndOfHandMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_EndOfHandMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(EndOfHandMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "EndOfHandMessage", isOptional = false , hasTag = true, tag = 32, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private EndOfHandMessageSequenceType value; - - - - public EndOfHandMessage () { - } - - - - public void setValue(EndOfHandMessageSequenceType value) { - this.value = value; - } - - - - public EndOfHandMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(EndOfHandMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/EndOfHandShowCards.java b/tests/src/pokerth_protocol/EndOfHandShowCards.java deleted file mode 100644 index 9c216315..00000000 --- a/tests/src/pokerth_protocol/EndOfHandShowCards.java +++ /dev/null @@ -1,62 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "EndOfHandShowCards", isSet = false ) - public class EndOfHandShowCards implements IASN1PreparedElement { - -@ASN1SequenceOf( name = "playerResults", isSetOf = false ) - - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 10L - - ) - - @ASN1Element ( name = "playerResults", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private java.util.Collection playerResults = null; - - - - public java.util.Collection getPlayerResults () { - return this.playerResults; - } - - - - public void setPlayerResults (java.util.Collection value) { - this.playerResults = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(EndOfHandShowCards.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/ErrorMessage.java b/tests/src/pokerth_protocol/ErrorMessage.java deleted file mode 100644 index 84c7c443..00000000 --- a/tests/src/pokerth_protocol/ErrorMessage.java +++ /dev/null @@ -1,163 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "ErrorMessage" ) - public class ErrorMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "ErrorMessage" , isSet = false ) - public static class ErrorMessageSequenceType implements IASN1PreparedElement { - - - @ASN1PreparedElement - @ASN1Enum ( - name = "ErrorReasonEnumType" - ) - public static class ErrorReasonEnumType implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "errorReserved", hasTag = true , tag = 0 ) - errorReserved , - @ASN1EnumItem ( name = "errorInitVersionNotSupported", hasTag = true , tag = 1 ) - errorInitVersionNotSupported , - @ASN1EnumItem ( name = "errorInitServerFull", hasTag = true , tag = 2 ) - errorInitServerFull , - @ASN1EnumItem ( name = "errorInitAuthFailure", hasTag = true , tag = 3 ) - errorInitAuthFailure , - @ASN1EnumItem ( name = "errorInitPlayerNameInUse", hasTag = true , tag = 4 ) - errorInitPlayerNameInUse , - @ASN1EnumItem ( name = "errorInitInvalidPlayerName", hasTag = true , tag = 5 ) - errorInitInvalidPlayerName , - @ASN1EnumItem ( name = "errorInitServerMaintenance", hasTag = true , tag = 6 ) - errorInitServerMaintenance , - @ASN1EnumItem ( name = "errorInitBlocked", hasTag = true , tag = 7 ) - errorInitBlocked , - @ASN1EnumItem ( name = "errorAvatarTooLarge", hasTag = true , tag = 8 ) - errorAvatarTooLarge , - @ASN1EnumItem ( name = "errorInvalidPacket", hasTag = true , tag = 256 ) - errorInvalidPacket , - @ASN1EnumItem ( name = "errorInvalidState", hasTag = true , tag = 257 ) - errorInvalidState , - @ASN1EnumItem ( name = "errorKickedFromServer", hasTag = true , tag = 258 ) - errorKickedFromServer , - @ASN1EnumItem ( name = "errorBannedFromServer", hasTag = true , tag = 259 ) - errorBannedFromServer , - @ASN1EnumItem ( name = "errorBlockedByServer", hasTag = true , tag = 260 ) - errorBlockedByServer , - @ASN1EnumItem ( name = "errorSessionTimeout", hasTag = true , tag = 261 ) - errorSessionTimeout - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ErrorReasonEnumType.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - } - - @ASN1Element ( name = "errorReason", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private ErrorReasonEnumType errorReason = null; - - - - public ErrorReasonEnumType getErrorReason () { - return this.errorReason; - } - - - - public void setErrorReason (ErrorReasonEnumType value) { - this.errorReason = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_ErrorMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_ErrorMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(ErrorMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "ErrorMessage", isOptional = false , hasTag = true, tag = 255, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private ErrorMessageSequenceType value; - - - - public ErrorMessage () { - } - - - - public void setValue(ErrorMessageSequenceType value) { - this.value = value; - } - - - - public ErrorMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ErrorMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/GameAdminChanged.java b/tests/src/pokerth_protocol/GameAdminChanged.java deleted file mode 100644 index 8dd702c9..00000000 --- a/tests/src/pokerth_protocol/GameAdminChanged.java +++ /dev/null @@ -1,52 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "GameAdminChanged", isSet = false ) - public class GameAdminChanged implements IASN1PreparedElement { - - @ASN1Element ( name = "newAdminPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId newAdminPlayerId = null; - - - - public NonZeroId getNewAdminPlayerId () { - return this.newAdminPlayerId; - } - - - - public void setNewAdminPlayerId (NonZeroId value) { - this.newAdminPlayerId = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameAdminChanged.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/GameListAdminChanged.java b/tests/src/pokerth_protocol/GameListAdminChanged.java deleted file mode 100644 index eaeb4fcc..00000000 --- a/tests/src/pokerth_protocol/GameListAdminChanged.java +++ /dev/null @@ -1,52 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "GameListAdminChanged", isSet = false ) - public class GameListAdminChanged implements IASN1PreparedElement { - - @ASN1Element ( name = "newAdminPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId newAdminPlayerId = null; - - - - public NonZeroId getNewAdminPlayerId () { - return this.newAdminPlayerId; - } - - - - public void setNewAdminPlayerId (NonZeroId value) { - this.newAdminPlayerId = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameListAdminChanged.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/GameListMessage.java b/tests/src/pokerth_protocol/GameListMessage.java deleted file mode 100644 index 3dd5ca11..00000000 --- a/tests/src/pokerth_protocol/GameListMessage.java +++ /dev/null @@ -1,299 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "GameListMessage" ) - public class GameListMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "GameListMessage" , isSet = false ) - public static class GameListMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - - @ASN1PreparedElement - @ASN1Choice ( name = "gameListNotification" ) - public static class GameListNotificationChoiceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameListNew", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false ) - - private GameListNew gameListNew = null; - - - @ASN1Element ( name = "gameListUpdate", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false ) - - private GameListUpdate gameListUpdate = null; - - - @ASN1Element ( name = "gameListPlayerJoined", isOptional = false , hasTag = true, tag = 2 , hasDefaultValue = false ) - - private GameListPlayerJoined gameListPlayerJoined = null; - - - @ASN1Element ( name = "gameListPlayerLeft", isOptional = false , hasTag = true, tag = 3 , hasDefaultValue = false ) - - private GameListPlayerLeft gameListPlayerLeft = null; - - - @ASN1Element ( name = "gameListAdminChanged", isOptional = false , hasTag = true, tag = 4 , hasDefaultValue = false ) - - private GameListAdminChanged gameListAdminChanged = null; - - - - public GameListNew getGameListNew () { - return this.gameListNew; - } - - public boolean isGameListNewSelected () { - return this.gameListNew != null; - } - - private void setGameListNew (GameListNew value) { - this.gameListNew = value; - } - - - public void selectGameListNew (GameListNew value) { - this.gameListNew = value; - - setGameListUpdate(null); - - setGameListPlayerJoined(null); - - setGameListPlayerLeft(null); - - setGameListAdminChanged(null); - - } - - - - - public GameListUpdate getGameListUpdate () { - return this.gameListUpdate; - } - - public boolean isGameListUpdateSelected () { - return this.gameListUpdate != null; - } - - private void setGameListUpdate (GameListUpdate value) { - this.gameListUpdate = value; - } - - - public void selectGameListUpdate (GameListUpdate value) { - this.gameListUpdate = value; - - setGameListNew(null); - - setGameListPlayerJoined(null); - - setGameListPlayerLeft(null); - - setGameListAdminChanged(null); - - } - - - - - public GameListPlayerJoined getGameListPlayerJoined () { - return this.gameListPlayerJoined; - } - - public boolean isGameListPlayerJoinedSelected () { - return this.gameListPlayerJoined != null; - } - - private void setGameListPlayerJoined (GameListPlayerJoined value) { - this.gameListPlayerJoined = value; - } - - - public void selectGameListPlayerJoined (GameListPlayerJoined value) { - this.gameListPlayerJoined = value; - - setGameListNew(null); - - setGameListUpdate(null); - - setGameListPlayerLeft(null); - - setGameListAdminChanged(null); - - } - - - - - public GameListPlayerLeft getGameListPlayerLeft () { - return this.gameListPlayerLeft; - } - - public boolean isGameListPlayerLeftSelected () { - return this.gameListPlayerLeft != null; - } - - private void setGameListPlayerLeft (GameListPlayerLeft value) { - this.gameListPlayerLeft = value; - } - - - public void selectGameListPlayerLeft (GameListPlayerLeft value) { - this.gameListPlayerLeft = value; - - setGameListNew(null); - - setGameListUpdate(null); - - setGameListPlayerJoined(null); - - setGameListAdminChanged(null); - - } - - - - - public GameListAdminChanged getGameListAdminChanged () { - return this.gameListAdminChanged; - } - - public boolean isGameListAdminChangedSelected () { - return this.gameListAdminChanged != null; - } - - private void setGameListAdminChanged (GameListAdminChanged value) { - this.gameListAdminChanged = value; - } - - - public void selectGameListAdminChanged (GameListAdminChanged value) { - this.gameListAdminChanged = value; - - setGameListNew(null); - - setGameListUpdate(null); - - setGameListPlayerJoined(null); - - setGameListPlayerLeft(null); - - } - - - - - public void initWithDefaults() { - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_GameListNotificationChoiceType; - } - - private static IASN1PreparedElementData preparedData_GameListNotificationChoiceType = CoderFactory.getInstance().newPreparedElementData(GameListNotificationChoiceType.class); - - } - - - @ASN1Element ( name = "gameListNotification", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private GameListNotificationChoiceType gameListNotification = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public GameListNotificationChoiceType getGameListNotification () { - return this.gameListNotification; - } - - - - public void setGameListNotification (GameListNotificationChoiceType value) { - this.gameListNotification = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_GameListMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_GameListMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(GameListMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "GameListMessage", isOptional = false , hasTag = true, tag = 7, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private GameListMessageSequenceType value; - - - - public GameListMessage () { - } - - - - public void setValue(GameListMessageSequenceType value) { - this.value = value; - } - - - - public GameListMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameListMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/GameListNew.java b/tests/src/pokerth_protocol/GameListNew.java deleted file mode 100644 index dc8cbebb..00000000 --- a/tests/src/pokerth_protocol/GameListNew.java +++ /dev/null @@ -1,131 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "GameListNew", isSet = false ) - public class GameListNew implements IASN1PreparedElement { - - @ASN1Element ( name = "gameMode", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NetGameMode gameMode = null; - - @ASN1Boolean( name = "" ) - - @ASN1Element ( name = "isPrivate", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Boolean isPrivate = null; - - -@ASN1SequenceOf( name = "playerIds", isSetOf = false ) - - @ASN1ValueRangeConstraint ( - - min = 0L, - - max = 10L - - ) - - @ASN1Element ( name = "playerIds", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private java.util.Collection playerIds = null; - - - @ASN1Element ( name = "adminPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId adminPlayerId = null; - - - @ASN1Element ( name = "gameInfo", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NetGameInfo gameInfo = null; - - - - public NetGameMode getGameMode () { - return this.gameMode; - } - - - - public void setGameMode (NetGameMode value) { - this.gameMode = value; - } - - - - public Boolean getIsPrivate () { - return this.isPrivate; - } - - - - public void setIsPrivate (Boolean value) { - this.isPrivate = value; - } - - - - public java.util.Collection getPlayerIds () { - return this.playerIds; - } - - - - public void setPlayerIds (java.util.Collection value) { - this.playerIds = value; - } - - - - public NonZeroId getAdminPlayerId () { - return this.adminPlayerId; - } - - - - public void setAdminPlayerId (NonZeroId value) { - this.adminPlayerId = value; - } - - - - public NetGameInfo getGameInfo () { - return this.gameInfo; - } - - - - public void setGameInfo (NetGameInfo value) { - this.gameInfo = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameListNew.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/GameListPlayerJoined.java b/tests/src/pokerth_protocol/GameListPlayerJoined.java deleted file mode 100644 index f2a1507d..00000000 --- a/tests/src/pokerth_protocol/GameListPlayerJoined.java +++ /dev/null @@ -1,52 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "GameListPlayerJoined", isSet = false ) - public class GameListPlayerJoined implements IASN1PreparedElement { - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameListPlayerJoined.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/GameListPlayerLeft.java b/tests/src/pokerth_protocol/GameListPlayerLeft.java deleted file mode 100644 index f73d088e..00000000 --- a/tests/src/pokerth_protocol/GameListPlayerLeft.java +++ /dev/null @@ -1,52 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "GameListPlayerLeft", isSet = false ) - public class GameListPlayerLeft implements IASN1PreparedElement { - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameListPlayerLeft.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/GameListUpdate.java b/tests/src/pokerth_protocol/GameListUpdate.java deleted file mode 100644 index ec336662..00000000 --- a/tests/src/pokerth_protocol/GameListUpdate.java +++ /dev/null @@ -1,52 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "GameListUpdate", isSet = false ) - public class GameListUpdate implements IASN1PreparedElement { - - @ASN1Element ( name = "gameMode", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NetGameMode gameMode = null; - - - - public NetGameMode getGameMode () { - return this.gameMode; - } - - - - public void setGameMode (NetGameMode value) { - this.gameMode = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameListUpdate.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/GamePlayerJoined.java b/tests/src/pokerth_protocol/GamePlayerJoined.java deleted file mode 100644 index 9fee1020..00000000 --- a/tests/src/pokerth_protocol/GamePlayerJoined.java +++ /dev/null @@ -1,70 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "GamePlayerJoined", isSet = false ) - public class GamePlayerJoined implements IASN1PreparedElement { - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - @ASN1Boolean( name = "" ) - - @ASN1Element ( name = "isGameAdmin", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Boolean isGameAdmin = null; - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - public Boolean getIsGameAdmin () { - return this.isGameAdmin; - } - - - - public void setIsGameAdmin (Boolean value) { - this.isGameAdmin = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GamePlayerJoined.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/GamePlayerLeft.java b/tests/src/pokerth_protocol/GamePlayerLeft.java deleted file mode 100644 index 28342442..00000000 --- a/tests/src/pokerth_protocol/GamePlayerLeft.java +++ /dev/null @@ -1,114 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "GamePlayerLeft", isSet = false ) - public class GamePlayerLeft implements IASN1PreparedElement { - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - - @ASN1PreparedElement - @ASN1Enum ( - name = "GamePlayerLeftReasonEnumType" - ) - public static class GamePlayerLeftReasonEnumType implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "leftOnRequest", hasTag = true , tag = 0 ) - leftOnRequest , - @ASN1EnumItem ( name = "leftKicked", hasTag = true , tag = 1 ) - leftKicked , - @ASN1EnumItem ( name = "leftError", hasTag = true , tag = 2 ) - leftError , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GamePlayerLeftReasonEnumType.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - } - - @ASN1Element ( name = "gamePlayerLeftReason", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private GamePlayerLeftReasonEnumType gamePlayerLeftReason = null; - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - public GamePlayerLeftReasonEnumType getGamePlayerLeftReason () { - return this.gamePlayerLeftReason; - } - - - - public void setGamePlayerLeftReason (GamePlayerLeftReasonEnumType value) { - this.gamePlayerLeftReason = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GamePlayerLeft.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/GamePlayerMessage.java b/tests/src/pokerth_protocol/GamePlayerMessage.java deleted file mode 100644 index 92b2fe9f..00000000 --- a/tests/src/pokerth_protocol/GamePlayerMessage.java +++ /dev/null @@ -1,257 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "GamePlayerMessage" ) - public class GamePlayerMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "GamePlayerMessage" , isSet = false ) - public static class GamePlayerMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - - @ASN1PreparedElement - @ASN1Choice ( name = "gamePlayerNotification" ) - public static class GamePlayerNotificationChoiceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gamePlayerJoined", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false ) - - private GamePlayerJoined gamePlayerJoined = null; - - - @ASN1Element ( name = "gamePlayerLeft", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false ) - - private GamePlayerLeft gamePlayerLeft = null; - - - @ASN1Element ( name = "gameAdminChanged", isOptional = false , hasTag = true, tag = 2 , hasDefaultValue = false ) - - private GameAdminChanged gameAdminChanged = null; - - - @ASN1Element ( name = "removedFromGame", isOptional = false , hasTag = true, tag = 3 , hasDefaultValue = false ) - - private RemovedFromGame removedFromGame = null; - - - - public GamePlayerJoined getGamePlayerJoined () { - return this.gamePlayerJoined; - } - - public boolean isGamePlayerJoinedSelected () { - return this.gamePlayerJoined != null; - } - - private void setGamePlayerJoined (GamePlayerJoined value) { - this.gamePlayerJoined = value; - } - - - public void selectGamePlayerJoined (GamePlayerJoined value) { - this.gamePlayerJoined = value; - - setGamePlayerLeft(null); - - setGameAdminChanged(null); - - setRemovedFromGame(null); - - } - - - - - public GamePlayerLeft getGamePlayerLeft () { - return this.gamePlayerLeft; - } - - public boolean isGamePlayerLeftSelected () { - return this.gamePlayerLeft != null; - } - - private void setGamePlayerLeft (GamePlayerLeft value) { - this.gamePlayerLeft = value; - } - - - public void selectGamePlayerLeft (GamePlayerLeft value) { - this.gamePlayerLeft = value; - - setGamePlayerJoined(null); - - setGameAdminChanged(null); - - setRemovedFromGame(null); - - } - - - - - public GameAdminChanged getGameAdminChanged () { - return this.gameAdminChanged; - } - - public boolean isGameAdminChangedSelected () { - return this.gameAdminChanged != null; - } - - private void setGameAdminChanged (GameAdminChanged value) { - this.gameAdminChanged = value; - } - - - public void selectGameAdminChanged (GameAdminChanged value) { - this.gameAdminChanged = value; - - setGamePlayerJoined(null); - - setGamePlayerLeft(null); - - setRemovedFromGame(null); - - } - - - - - public RemovedFromGame getRemovedFromGame () { - return this.removedFromGame; - } - - public boolean isRemovedFromGameSelected () { - return this.removedFromGame != null; - } - - private void setRemovedFromGame (RemovedFromGame value) { - this.removedFromGame = value; - } - - - public void selectRemovedFromGame (RemovedFromGame value) { - this.removedFromGame = value; - - setGamePlayerJoined(null); - - setGamePlayerLeft(null); - - setGameAdminChanged(null); - - } - - - - - public void initWithDefaults() { - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_GamePlayerNotificationChoiceType; - } - - private static IASN1PreparedElementData preparedData_GamePlayerNotificationChoiceType = CoderFactory.getInstance().newPreparedElementData(GamePlayerNotificationChoiceType.class); - - } - - - @ASN1Element ( name = "gamePlayerNotification", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private GamePlayerNotificationChoiceType gamePlayerNotification = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public GamePlayerNotificationChoiceType getGamePlayerNotification () { - return this.gamePlayerNotification; - } - - - - public void setGamePlayerNotification (GamePlayerNotificationChoiceType value) { - this.gamePlayerNotification = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_GamePlayerMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_GamePlayerMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(GamePlayerMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "GamePlayerMessage", isOptional = false , hasTag = true, tag = 13, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private GamePlayerMessageSequenceType value; - - - - public GamePlayerMessage () { - } - - - - public void setValue(GamePlayerMessageSequenceType value) { - this.value = value; - } - - - - public GamePlayerMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GamePlayerMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/GameStartMessage.java b/tests/src/pokerth_protocol/GameStartMessage.java deleted file mode 100644 index 0715031f..00000000 --- a/tests/src/pokerth_protocol/GameStartMessage.java +++ /dev/null @@ -1,202 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "GameStartMessage" ) - public class GameStartMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "GameStartMessage" , isSet = false ) - public static class GameStartMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "startDealerPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId startDealerPlayerId = null; - - - - @ASN1PreparedElement - @ASN1Choice ( name = "gameStartMode" ) - public static class GameStartModeChoiceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameStartModeInitial", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false ) - - private GameStartModeInitial gameStartModeInitial = null; - - - @ASN1Element ( name = "gameStartModeRejoin", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false ) - - private GameStartModeRejoin gameStartModeRejoin = null; - - - - public GameStartModeInitial getGameStartModeInitial () { - return this.gameStartModeInitial; - } - - public boolean isGameStartModeInitialSelected () { - return this.gameStartModeInitial != null; - } - - private void setGameStartModeInitial (GameStartModeInitial value) { - this.gameStartModeInitial = value; - } - - - public void selectGameStartModeInitial (GameStartModeInitial value) { - this.gameStartModeInitial = value; - - setGameStartModeRejoin(null); - - } - - - - - public GameStartModeRejoin getGameStartModeRejoin () { - return this.gameStartModeRejoin; - } - - public boolean isGameStartModeRejoinSelected () { - return this.gameStartModeRejoin != null; - } - - private void setGameStartModeRejoin (GameStartModeRejoin value) { - this.gameStartModeRejoin = value; - } - - - public void selectGameStartModeRejoin (GameStartModeRejoin value) { - this.gameStartModeRejoin = value; - - setGameStartModeInitial(null); - - } - - - - - public void initWithDefaults() { - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_GameStartModeChoiceType; - } - - private static IASN1PreparedElementData preparedData_GameStartModeChoiceType = CoderFactory.getInstance().newPreparedElementData(GameStartModeChoiceType.class); - - } - - - @ASN1Element ( name = "gameStartMode", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private GameStartModeChoiceType gameStartMode = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NonZeroId getStartDealerPlayerId () { - return this.startDealerPlayerId; - } - - - - public void setStartDealerPlayerId (NonZeroId value) { - this.startDealerPlayerId = value; - } - - - - public GameStartModeChoiceType getGameStartMode () { - return this.gameStartMode; - } - - - - public void setGameStartMode (GameStartModeChoiceType value) { - this.gameStartMode = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_GameStartMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_GameStartMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(GameStartMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "GameStartMessage", isOptional = false , hasTag = true, tag = 22, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private GameStartMessageSequenceType value; - - - - public GameStartMessage () { - } - - - - public void setValue(GameStartMessageSequenceType value) { - this.value = value; - } - - - - public GameStartMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameStartMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/GameStartModeInitial.java b/tests/src/pokerth_protocol/GameStartModeInitial.java deleted file mode 100644 index 75ee0481..00000000 --- a/tests/src/pokerth_protocol/GameStartModeInitial.java +++ /dev/null @@ -1,62 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "GameStartModeInitial", isSet = false ) - public class GameStartModeInitial implements IASN1PreparedElement { - -@ASN1SequenceOf( name = "playerSeats", isSetOf = false ) - - @ASN1ValueRangeConstraint ( - - min = 2L, - - max = 10L - - ) - - @ASN1Element ( name = "playerSeats", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private java.util.Collection playerSeats = null; - - - - public java.util.Collection getPlayerSeats () { - return this.playerSeats; - } - - - - public void setPlayerSeats (java.util.Collection value) { - this.playerSeats = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameStartModeInitial.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/GameStartModeRejoin.java b/tests/src/pokerth_protocol/GameStartModeRejoin.java deleted file mode 100644 index cb6231a3..00000000 --- a/tests/src/pokerth_protocol/GameStartModeRejoin.java +++ /dev/null @@ -1,79 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "GameStartModeRejoin", isSet = false ) - public class GameStartModeRejoin implements IASN1PreparedElement { - - @ASN1Element ( name = "handNum", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId handNum = null; - - -@ASN1SequenceOf( name = "rejoinPlayerData", isSetOf = false ) - - @ASN1ValueRangeConstraint ( - - min = 2L, - - max = 10L - - ) - - @ASN1Element ( name = "rejoinPlayerData", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private java.util.Collection rejoinPlayerData = null; - - - - public NonZeroId getHandNum () { - return this.handNum; - } - - - - public void setHandNum (NonZeroId value) { - this.handNum = value; - } - - - - public java.util.Collection getRejoinPlayerData () { - return this.rejoinPlayerData; - } - - - - public void setRejoinPlayerData (java.util.Collection value) { - this.rejoinPlayerData = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameStartModeRejoin.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/GuestLogin.java b/tests/src/pokerth_protocol/GuestLogin.java deleted file mode 100644 index bac1b872..00000000 --- a/tests/src/pokerth_protocol/GuestLogin.java +++ /dev/null @@ -1,62 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "GuestLogin", isSet = false ) - public class GuestLogin implements IASN1PreparedElement { - - @ASN1String( name = "", - stringType = UniversalTag.UTF8String , isUCS = false ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 64L - - ) - - @ASN1Element ( name = "nickName", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private String nickName = null; - - - - public String getNickName () { - return this.nickName; - } - - - - public void setNickName (String value) { - this.nickName = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GuestLogin.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/Guid.java b/tests/src/pokerth_protocol/Guid.java deleted file mode 100644 index f16e499b..00000000 --- a/tests/src/pokerth_protocol/Guid.java +++ /dev/null @@ -1,61 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "Guid" ) - public class Guid implements IASN1PreparedElement { - - @ASN1OctetString( name = "Guid" ) - - @ASN1SizeConstraint ( max = 16L ) - - private byte[] value = null; - - public Guid() { - } - - public Guid(byte[] value) { - this.value = value; - } - - public Guid(BitString value) { - setValue(value); - } - - public void setValue(byte[] value) { - this.value = value; - } - - public void setValue(BitString btStr) { - this.value = btStr.getValue(); - } - - public byte[] getValue() { - return this.value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(Guid.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/HandStartMessage.java b/tests/src/pokerth_protocol/HandStartMessage.java deleted file mode 100644 index 45ec1f74..00000000 --- a/tests/src/pokerth_protocol/HandStartMessage.java +++ /dev/null @@ -1,237 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "HandStartMessage" ) - public class HandStartMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "HandStartMessage" , isSet = false ) - public static class HandStartMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - - @ASN1PreparedElement - @ASN1Choice ( name = "yourCards" ) - public static class YourCardsChoiceType implements IASN1PreparedElement { - - @ASN1Element ( name = "plainCards", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false ) - - private PlainCards plainCards = null; - - - @ASN1Element ( name = "encryptedCards", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false ) - - private EncryptedCards encryptedCards = null; - - - - public PlainCards getPlainCards () { - return this.plainCards; - } - - public boolean isPlainCardsSelected () { - return this.plainCards != null; - } - - private void setPlainCards (PlainCards value) { - this.plainCards = value; - } - - - public void selectPlainCards (PlainCards value) { - this.plainCards = value; - - setEncryptedCards(null); - - } - - - - - public EncryptedCards getEncryptedCards () { - return this.encryptedCards; - } - - public boolean isEncryptedCardsSelected () { - return this.encryptedCards != null; - } - - private void setEncryptedCards (EncryptedCards value) { - this.encryptedCards = value; - } - - - public void selectEncryptedCards (EncryptedCards value) { - this.encryptedCards = value; - - setPlainCards(null); - - } - - - - - public void initWithDefaults() { - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_YourCardsChoiceType; - } - - private static IASN1PreparedElementData preparedData_YourCardsChoiceType = CoderFactory.getInstance().newPreparedElementData(YourCardsChoiceType.class); - - } - - - @ASN1Element ( name = "yourCards", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private YourCardsChoiceType yourCards = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 100000000L - - ) - - @ASN1Element ( name = "smallBlind", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer smallBlind = null; - - -@ASN1SequenceOf( name = "seatStates", isSetOf = false ) - - @ASN1ValueRangeConstraint ( - - min = 2L, - - max = 10L - - ) - - @ASN1Element ( name = "seatStates", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private java.util.Collection seatStates = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public YourCardsChoiceType getYourCards () { - return this.yourCards; - } - - - - public void setYourCards (YourCardsChoiceType value) { - this.yourCards = value; - } - - - - public Integer getSmallBlind () { - return this.smallBlind; - } - - - - public void setSmallBlind (Integer value) { - this.smallBlind = value; - } - - - - public java.util.Collection getSeatStates () { - return this.seatStates; - } - - - - public void setSeatStates (java.util.Collection value) { - this.seatStates = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_HandStartMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_HandStartMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(HandStartMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "HandStartMessage", isOptional = false , hasTag = true, tag = 23, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private HandStartMessageSequenceType value; - - - - public HandStartMessage () { - } - - - - public void setValue(HandStartMessageSequenceType value) { - this.value = value; - } - - - - public HandStartMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(HandStartMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/Id.java b/tests/src/pokerth_protocol/Id.java deleted file mode 100644 index 83c67046..00000000 --- a/tests/src/pokerth_protocol/Id.java +++ /dev/null @@ -1,58 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "Id" ) - public class Id implements IASN1PreparedElement { - - @ASN1Integer( name = "Id" ) - @ASN1ValueRangeConstraint ( - - min = 0L, - - max = 4294967295L - - ) - - private Long value; - - public Id() { - } - - public Id(Long value) { - this.value = value; - } - - public void setValue(Long value) { - this.value = value; - } - - public Long getValue() { - return this.value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(Id.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/InitAckMessage.java b/tests/src/pokerth_protocol/InitAckMessage.java deleted file mode 100644 index c806873e..00000000 --- a/tests/src/pokerth_protocol/InitAckMessage.java +++ /dev/null @@ -1,153 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "InitAckMessage" ) - public class InitAckMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "InitAckMessage" , isSet = false ) - public static class InitAckMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "yourSessionId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Guid yourSessionId = null; - - - @ASN1Element ( name = "yourPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId yourPlayerId = null; - - - @ASN1Element ( name = "yourAvatar", isOptional = true , hasTag = false , hasDefaultValue = false ) - - private AvatarHash yourAvatar = null; - - - @ASN1Element ( name = "rejoinGameId", isOptional = true , hasTag = false , hasDefaultValue = false ) - - private NonZeroId rejoinGameId = null; - - - - public Guid getYourSessionId () { - return this.yourSessionId; - } - - - - public void setYourSessionId (Guid value) { - this.yourSessionId = value; - } - - - - public NonZeroId getYourPlayerId () { - return this.yourPlayerId; - } - - - - public void setYourPlayerId (NonZeroId value) { - this.yourPlayerId = value; - } - - - - public AvatarHash getYourAvatar () { - return this.yourAvatar; - } - - - public boolean isYourAvatarPresent () { - return this.yourAvatar != null; - } - - - public void setYourAvatar (AvatarHash value) { - this.yourAvatar = value; - } - - - - public NonZeroId getRejoinGameId () { - return this.rejoinGameId; - } - - - public boolean isRejoinGameIdPresent () { - return this.rejoinGameId != null; - } - - - public void setRejoinGameId (NonZeroId value) { - this.rejoinGameId = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_InitAckMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_InitAckMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(InitAckMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "InitAckMessage", isOptional = false , hasTag = true, tag = 3, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private InitAckMessageSequenceType value; - - - - public InitAckMessage () { - } - - - - public void setValue(InitAckMessageSequenceType value) { - this.value = value; - } - - - - public InitAckMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(InitAckMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/InitMessage.java b/tests/src/pokerth_protocol/InitMessage.java deleted file mode 100644 index b3be8695..00000000 --- a/tests/src/pokerth_protocol/InitMessage.java +++ /dev/null @@ -1,289 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "InitMessage" ) - public class InitMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "InitMessage" , isSet = false ) - public static class InitMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "requestedVersion", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Version requestedVersion = null; - - @ASN1Integer( name = "" ) - - @ASN1Element ( name = "buildId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Long buildId = null; - - - @ASN1Element ( name = "myLastSessionId", isOptional = true , hasTag = false , hasDefaultValue = false ) - - private Guid myLastSessionId = null; - - - @ASN1String( name = "", - stringType = UniversalTag.UTF8String , isUCS = false ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 64L - - ) - - @ASN1Element ( name = "authServerPassword", isOptional = true , hasTag = false , hasDefaultValue = false ) - - private String authServerPassword = null; - - - - @ASN1PreparedElement - @ASN1Choice ( name = "login" ) - public static class LoginChoiceType implements IASN1PreparedElement { - - @ASN1Element ( name = "guestLogin", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false ) - - private GuestLogin guestLogin = null; - - - @ASN1Element ( name = "authenticatedLogin", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false ) - - private AuthenticatedLogin authenticatedLogin = null; - - - @ASN1Element ( name = "unauthenticatedLogin", isOptional = false , hasTag = true, tag = 2 , hasDefaultValue = false ) - - private UnauthenticatedLogin unauthenticatedLogin = null; - - - - public GuestLogin getGuestLogin () { - return this.guestLogin; - } - - public boolean isGuestLoginSelected () { - return this.guestLogin != null; - } - - private void setGuestLogin (GuestLogin value) { - this.guestLogin = value; - } - - - public void selectGuestLogin (GuestLogin value) { - this.guestLogin = value; - - setAuthenticatedLogin(null); - - setUnauthenticatedLogin(null); - - } - - - - - public AuthenticatedLogin getAuthenticatedLogin () { - return this.authenticatedLogin; - } - - public boolean isAuthenticatedLoginSelected () { - return this.authenticatedLogin != null; - } - - private void setAuthenticatedLogin (AuthenticatedLogin value) { - this.authenticatedLogin = value; - } - - - public void selectAuthenticatedLogin (AuthenticatedLogin value) { - this.authenticatedLogin = value; - - setGuestLogin(null); - - setUnauthenticatedLogin(null); - - } - - - - - public UnauthenticatedLogin getUnauthenticatedLogin () { - return this.unauthenticatedLogin; - } - - public boolean isUnauthenticatedLoginSelected () { - return this.unauthenticatedLogin != null; - } - - private void setUnauthenticatedLogin (UnauthenticatedLogin value) { - this.unauthenticatedLogin = value; - } - - - public void selectUnauthenticatedLogin (UnauthenticatedLogin value) { - this.unauthenticatedLogin = value; - - setGuestLogin(null); - - setAuthenticatedLogin(null); - - } - - - - - public void initWithDefaults() { - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_LoginChoiceType; - } - - private static IASN1PreparedElementData preparedData_LoginChoiceType = CoderFactory.getInstance().newPreparedElementData(LoginChoiceType.class); - - } - - - @ASN1Element ( name = "login", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private LoginChoiceType login = null; - - - - public Version getRequestedVersion () { - return this.requestedVersion; - } - - - - public void setRequestedVersion (Version value) { - this.requestedVersion = value; - } - - - - public Long getBuildId () { - return this.buildId; - } - - - - public void setBuildId (Long value) { - this.buildId = value; - } - - - - public Guid getMyLastSessionId () { - return this.myLastSessionId; - } - - - public boolean isMyLastSessionIdPresent () { - return this.myLastSessionId != null; - } - - - public void setMyLastSessionId (Guid value) { - this.myLastSessionId = value; - } - - - - public String getAuthServerPassword () { - return this.authServerPassword; - } - - - public boolean isAuthServerPasswordPresent () { - return this.authServerPassword != null; - } - - - public void setAuthServerPassword (String value) { - this.authServerPassword = value; - } - - - - public LoginChoiceType getLogin () { - return this.login; - } - - - - public void setLogin (LoginChoiceType value) { - this.login = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_InitMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_InitMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(InitMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "InitMessage", isOptional = false , hasTag = true, tag = 1, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private InitMessageSequenceType value; - - - - public InitMessage () { - } - - - - public void setValue(InitMessageSequenceType value) { - this.value = value; - } - - - - public InitMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(InitMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/InitialAmountOfMoney.java b/tests/src/pokerth_protocol/InitialAmountOfMoney.java deleted file mode 100644 index 47ad5775..00000000 --- a/tests/src/pokerth_protocol/InitialAmountOfMoney.java +++ /dev/null @@ -1,58 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "InitialAmountOfMoney" ) - public class InitialAmountOfMoney implements IASN1PreparedElement { - - @ASN1Integer( name = "InitialAmountOfMoney" ) - @ASN1ValueRangeConstraint ( - - min = 0L, - - max = 1000000L - - ) - - private Integer value; - - public InitialAmountOfMoney() { - } - - public InitialAmountOfMoney(Integer value) { - this.value = value; - } - - public void setValue(Integer value) { - this.value = value; - } - - public Integer getValue() { - return this.value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(InitialAmountOfMoney.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/InitialNonZeroAmountOfMoney.java b/tests/src/pokerth_protocol/InitialNonZeroAmountOfMoney.java deleted file mode 100644 index 7834d85f..00000000 --- a/tests/src/pokerth_protocol/InitialNonZeroAmountOfMoney.java +++ /dev/null @@ -1,58 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "InitialNonZeroAmountOfMoney" ) - public class InitialNonZeroAmountOfMoney implements IASN1PreparedElement { - - @ASN1Integer( name = "InitialNonZeroAmountOfMoney" ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 1000000L - - ) - - private Integer value; - - public InitialNonZeroAmountOfMoney() { - } - - public InitialNonZeroAmountOfMoney(Integer value) { - this.value = value; - } - - public void setValue(Integer value) { - this.value = value; - } - - public Integer getValue() { - return this.value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(InitialNonZeroAmountOfMoney.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/InviteNotifyMessage.java b/tests/src/pokerth_protocol/InviteNotifyMessage.java deleted file mode 100644 index 474221f2..00000000 --- a/tests/src/pokerth_protocol/InviteNotifyMessage.java +++ /dev/null @@ -1,128 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "InviteNotifyMessage" ) - public class InviteNotifyMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "InviteNotifyMessage" , isSet = false ) - public static class InviteNotifyMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "playerIdWho", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerIdWho = null; - - - @ASN1Element ( name = "playerIdByWhom", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerIdByWhom = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NonZeroId getPlayerIdWho () { - return this.playerIdWho; - } - - - - public void setPlayerIdWho (NonZeroId value) { - this.playerIdWho = value; - } - - - - public NonZeroId getPlayerIdByWhom () { - return this.playerIdByWhom; - } - - - - public void setPlayerIdByWhom (NonZeroId value) { - this.playerIdByWhom = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_InviteNotifyMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_InviteNotifyMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(InviteNotifyMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "InviteNotifyMessage", isOptional = false , hasTag = true, tag = 17, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private InviteNotifyMessageSequenceType value; - - - - public InviteNotifyMessage () { - } - - - - public void setValue(InviteNotifyMessageSequenceType value) { - this.value = value; - } - - - - public InviteNotifyMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(InviteNotifyMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/InvitePlayerToGameMessage.java b/tests/src/pokerth_protocol/InvitePlayerToGameMessage.java deleted file mode 100644 index d9faa7e6..00000000 --- a/tests/src/pokerth_protocol/InvitePlayerToGameMessage.java +++ /dev/null @@ -1,111 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "InvitePlayerToGameMessage" ) - public class InvitePlayerToGameMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "InvitePlayerToGameMessage" , isSet = false ) - public static class InvitePlayerToGameMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_InvitePlayerToGameMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_InvitePlayerToGameMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(InvitePlayerToGameMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "InvitePlayerToGameMessage", isOptional = false , hasTag = true, tag = 16, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private InvitePlayerToGameMessageSequenceType value; - - - - public InvitePlayerToGameMessage () { - } - - - - public void setValue(InvitePlayerToGameMessageSequenceType value) { - this.value = value; - } - - - - public InvitePlayerToGameMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(InvitePlayerToGameMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/JoinExistingGame.java b/tests/src/pokerth_protocol/JoinExistingGame.java deleted file mode 100644 index 5ed81140..00000000 --- a/tests/src/pokerth_protocol/JoinExistingGame.java +++ /dev/null @@ -1,83 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "JoinExistingGame", isSet = false ) - public class JoinExistingGame implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1String( name = "", - stringType = UniversalTag.UTF8String , isUCS = false ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 64L - - ) - - @ASN1Element ( name = "password", isOptional = true , hasTag = false , hasDefaultValue = false ) - - private String password = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public String getPassword () { - return this.password; - } - - - public boolean isPasswordPresent () { - return this.password != null; - } - - - public void setPassword (String value) { - this.password = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(JoinExistingGame.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/JoinGameAck.java b/tests/src/pokerth_protocol/JoinGameAck.java deleted file mode 100644 index 899ee32f..00000000 --- a/tests/src/pokerth_protocol/JoinGameAck.java +++ /dev/null @@ -1,70 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "JoinGameAck", isSet = false ) - public class JoinGameAck implements IASN1PreparedElement { - @ASN1Boolean( name = "" ) - - @ASN1Element ( name = "areYouGameAdmin", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Boolean areYouGameAdmin = null; - - - @ASN1Element ( name = "gameInfo", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NetGameInfo gameInfo = null; - - - - public Boolean getAreYouGameAdmin () { - return this.areYouGameAdmin; - } - - - - public void setAreYouGameAdmin (Boolean value) { - this.areYouGameAdmin = value; - } - - - - public NetGameInfo getGameInfo () { - return this.gameInfo; - } - - - - public void setGameInfo (NetGameInfo value) { - this.gameInfo = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(JoinGameAck.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/JoinGameFailed.java b/tests/src/pokerth_protocol/JoinGameFailed.java deleted file mode 100644 index c38d36bd..00000000 --- a/tests/src/pokerth_protocol/JoinGameFailed.java +++ /dev/null @@ -1,113 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "JoinGameFailed", isSet = false ) - public class JoinGameFailed implements IASN1PreparedElement { - - - @ASN1PreparedElement - @ASN1Enum ( - name = "JoinGameFailureReasonEnumType" - ) - public static class JoinGameFailureReasonEnumType implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "invalidGame", hasTag = true , tag = 1 ) - invalidGame , - @ASN1EnumItem ( name = "gameIsFull", hasTag = true , tag = 2 ) - gameIsFull , - @ASN1EnumItem ( name = "gameIsRunning", hasTag = true , tag = 3 ) - gameIsRunning , - @ASN1EnumItem ( name = "invalidPassword", hasTag = true , tag = 4 ) - invalidPassword , - @ASN1EnumItem ( name = "notAllowedAsGuest", hasTag = true , tag = 5 ) - notAllowedAsGuest , - @ASN1EnumItem ( name = "notInvited", hasTag = true , tag = 6 ) - notInvited , - @ASN1EnumItem ( name = "gameNameInUse", hasTag = true , tag = 7 ) - gameNameInUse , - @ASN1EnumItem ( name = "badGameName", hasTag = true , tag = 8 ) - badGameName , - @ASN1EnumItem ( name = "invalidSettings", hasTag = true , tag = 9 ) - invalidSettings , - @ASN1EnumItem ( name = "ipAddressBlocked", hasTag = true , tag = 10 ) - ipAddressBlocked , - @ASN1EnumItem ( name = "rejoinFailed", hasTag = true , tag = 11 ) - rejoinFailed , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(JoinGameFailureReasonEnumType.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - } - - @ASN1Element ( name = "joinGameFailureReason", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private JoinGameFailureReasonEnumType joinGameFailureReason = null; - - - - public JoinGameFailureReasonEnumType getJoinGameFailureReason () { - return this.joinGameFailureReason; - } - - - - public void setJoinGameFailureReason (JoinGameFailureReasonEnumType value) { - this.joinGameFailureReason = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(JoinGameFailed.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/JoinGameReplyMessage.java b/tests/src/pokerth_protocol/JoinGameReplyMessage.java deleted file mode 100644 index 893663c4..00000000 --- a/tests/src/pokerth_protocol/JoinGameReplyMessage.java +++ /dev/null @@ -1,185 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "JoinGameReplyMessage" ) - public class JoinGameReplyMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "JoinGameReplyMessage" , isSet = false ) - public static class JoinGameReplyMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - - @ASN1PreparedElement - @ASN1Choice ( name = "joinGameResult" ) - public static class JoinGameResultChoiceType implements IASN1PreparedElement { - - @ASN1Element ( name = "joinGameAck", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false ) - - private JoinGameAck joinGameAck = null; - - - @ASN1Element ( name = "joinGameFailed", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false ) - - private JoinGameFailed joinGameFailed = null; - - - - public JoinGameAck getJoinGameAck () { - return this.joinGameAck; - } - - public boolean isJoinGameAckSelected () { - return this.joinGameAck != null; - } - - private void setJoinGameAck (JoinGameAck value) { - this.joinGameAck = value; - } - - - public void selectJoinGameAck (JoinGameAck value) { - this.joinGameAck = value; - - setJoinGameFailed(null); - - } - - - - - public JoinGameFailed getJoinGameFailed () { - return this.joinGameFailed; - } - - public boolean isJoinGameFailedSelected () { - return this.joinGameFailed != null; - } - - private void setJoinGameFailed (JoinGameFailed value) { - this.joinGameFailed = value; - } - - - public void selectJoinGameFailed (JoinGameFailed value) { - this.joinGameFailed = value; - - setJoinGameAck(null); - - } - - - - - public void initWithDefaults() { - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_JoinGameResultChoiceType; - } - - private static IASN1PreparedElementData preparedData_JoinGameResultChoiceType = CoderFactory.getInstance().newPreparedElementData(JoinGameResultChoiceType.class); - - } - - - @ASN1Element ( name = "joinGameResult", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private JoinGameResultChoiceType joinGameResult = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public JoinGameResultChoiceType getJoinGameResult () { - return this.joinGameResult; - } - - - - public void setJoinGameResult (JoinGameResultChoiceType value) { - this.joinGameResult = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_JoinGameReplyMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_JoinGameReplyMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(JoinGameReplyMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "JoinGameReplyMessage", isOptional = false , hasTag = true, tag = 12, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private JoinGameReplyMessageSequenceType value; - - - - public JoinGameReplyMessage () { - } - - - - public void setValue(JoinGameReplyMessageSequenceType value) { - this.value = value; - } - - - - public JoinGameReplyMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(JoinGameReplyMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/JoinGameRequestMessage.java b/tests/src/pokerth_protocol/JoinGameRequestMessage.java deleted file mode 100644 index 0f2d6e36..00000000 --- a/tests/src/pokerth_protocol/JoinGameRequestMessage.java +++ /dev/null @@ -1,220 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "JoinGameRequestMessage" ) - public class JoinGameRequestMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "JoinGameRequestMessage" , isSet = false ) - public static class JoinGameRequestMessageSequenceType implements IASN1PreparedElement { - - - @ASN1PreparedElement - @ASN1Choice ( name = "joinGameAction" ) - public static class JoinGameActionChoiceType implements IASN1PreparedElement { - - @ASN1Element ( name = "joinExistingGame", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false ) - - private JoinExistingGame joinExistingGame = null; - - - @ASN1Element ( name = "joinNewGame", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false ) - - private JoinNewGame joinNewGame = null; - - - @ASN1Element ( name = "rejoinExistingGame", isOptional = false , hasTag = true, tag = 2 , hasDefaultValue = false ) - - private RejoinExistingGame rejoinExistingGame = null; - - - - public JoinExistingGame getJoinExistingGame () { - return this.joinExistingGame; - } - - public boolean isJoinExistingGameSelected () { - return this.joinExistingGame != null; - } - - private void setJoinExistingGame (JoinExistingGame value) { - this.joinExistingGame = value; - } - - - public void selectJoinExistingGame (JoinExistingGame value) { - this.joinExistingGame = value; - - setJoinNewGame(null); - - setRejoinExistingGame(null); - - } - - - - - public JoinNewGame getJoinNewGame () { - return this.joinNewGame; - } - - public boolean isJoinNewGameSelected () { - return this.joinNewGame != null; - } - - private void setJoinNewGame (JoinNewGame value) { - this.joinNewGame = value; - } - - - public void selectJoinNewGame (JoinNewGame value) { - this.joinNewGame = value; - - setJoinExistingGame(null); - - setRejoinExistingGame(null); - - } - - - - - public RejoinExistingGame getRejoinExistingGame () { - return this.rejoinExistingGame; - } - - public boolean isRejoinExistingGameSelected () { - return this.rejoinExistingGame != null; - } - - private void setRejoinExistingGame (RejoinExistingGame value) { - this.rejoinExistingGame = value; - } - - - public void selectRejoinExistingGame (RejoinExistingGame value) { - this.rejoinExistingGame = value; - - setJoinExistingGame(null); - - setJoinNewGame(null); - - } - - - - - public void initWithDefaults() { - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_JoinGameActionChoiceType; - } - - private static IASN1PreparedElementData preparedData_JoinGameActionChoiceType = CoderFactory.getInstance().newPreparedElementData(JoinGameActionChoiceType.class); - - } - - - @ASN1Element ( name = "joinGameAction", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private JoinGameActionChoiceType joinGameAction = null; - - @ASN1Boolean( name = "" ) - - @ASN1Element ( name = "autoLeave", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Boolean autoLeave = null; - - - - public JoinGameActionChoiceType getJoinGameAction () { - return this.joinGameAction; - } - - - - public void setJoinGameAction (JoinGameActionChoiceType value) { - this.joinGameAction = value; - } - - - - public Boolean getAutoLeave () { - return this.autoLeave; - } - - - - public void setAutoLeave (Boolean value) { - this.autoLeave = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_JoinGameRequestMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_JoinGameRequestMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(JoinGameRequestMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "JoinGameRequestMessage", isOptional = false , hasTag = true, tag = 11, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private JoinGameRequestMessageSequenceType value; - - - - public JoinGameRequestMessage () { - } - - - - public void setValue(JoinGameRequestMessageSequenceType value) { - this.value = value; - } - - - - public JoinGameRequestMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(JoinGameRequestMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/JoinNewGame.java b/tests/src/pokerth_protocol/JoinNewGame.java deleted file mode 100644 index 9d4ebc3a..00000000 --- a/tests/src/pokerth_protocol/JoinNewGame.java +++ /dev/null @@ -1,83 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "JoinNewGame", isSet = false ) - public class JoinNewGame implements IASN1PreparedElement { - - @ASN1Element ( name = "gameInfo", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NetGameInfo gameInfo = null; - - - @ASN1String( name = "", - stringType = UniversalTag.UTF8String , isUCS = false ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 64L - - ) - - @ASN1Element ( name = "password", isOptional = true , hasTag = false , hasDefaultValue = false ) - - private String password = null; - - - - public NetGameInfo getGameInfo () { - return this.gameInfo; - } - - - - public void setGameInfo (NetGameInfo value) { - this.gameInfo = value; - } - - - - public String getPassword () { - return this.password; - } - - - public boolean isPasswordPresent () { - return this.password != null; - } - - - public void setPassword (String value) { - this.password = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(JoinNewGame.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/KickPetitionUpdateMessage.java b/tests/src/pokerth_protocol/KickPetitionUpdateMessage.java deleted file mode 100644 index 951aeeeb..00000000 --- a/tests/src/pokerth_protocol/KickPetitionUpdateMessage.java +++ /dev/null @@ -1,186 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "KickPetitionUpdateMessage" ) - public class KickPetitionUpdateMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "KickPetitionUpdateMessage" , isSet = false ) - public static class KickPetitionUpdateMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "petitionId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId petitionId = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 0L, - - max = 9L - - ) - - @ASN1Element ( name = "numVotesAgainstKicking", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer numVotesAgainstKicking = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 9L - - ) - - @ASN1Element ( name = "numVotesInFavourOfKicking", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer numVotesInFavourOfKicking = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 9L - - ) - - @ASN1Element ( name = "numVotesNeededToKick", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer numVotesNeededToKick = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NonZeroId getPetitionId () { - return this.petitionId; - } - - - - public void setPetitionId (NonZeroId value) { - this.petitionId = value; - } - - - - public Integer getNumVotesAgainstKicking () { - return this.numVotesAgainstKicking; - } - - - - public void setNumVotesAgainstKicking (Integer value) { - this.numVotesAgainstKicking = value; - } - - - - public Integer getNumVotesInFavourOfKicking () { - return this.numVotesInFavourOfKicking; - } - - - - public void setNumVotesInFavourOfKicking (Integer value) { - this.numVotesInFavourOfKicking = value; - } - - - - public Integer getNumVotesNeededToKick () { - return this.numVotesNeededToKick; - } - - - - public void setNumVotesNeededToKick (Integer value) { - this.numVotesNeededToKick = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_KickPetitionUpdateMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_KickPetitionUpdateMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(KickPetitionUpdateMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "KickPetitionUpdateMessage", isOptional = false , hasTag = true, tag = 69, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private KickPetitionUpdateMessageSequenceType value; - - - - public KickPetitionUpdateMessage () { - } - - - - public void setValue(KickPetitionUpdateMessageSequenceType value) { - this.value = value; - } - - - - public KickPetitionUpdateMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(KickPetitionUpdateMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/KickPlayerRequestMessage.java b/tests/src/pokerth_protocol/KickPlayerRequestMessage.java deleted file mode 100644 index 2c785fb3..00000000 --- a/tests/src/pokerth_protocol/KickPlayerRequestMessage.java +++ /dev/null @@ -1,111 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "KickPlayerRequestMessage" ) - public class KickPlayerRequestMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "KickPlayerRequestMessage" , isSet = false ) - public static class KickPlayerRequestMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_KickPlayerRequestMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_KickPlayerRequestMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(KickPlayerRequestMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "KickPlayerRequestMessage", isOptional = false , hasTag = true, tag = 14, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private KickPlayerRequestMessageSequenceType value; - - - - public KickPlayerRequestMessage () { - } - - - - public void setValue(KickPlayerRequestMessageSequenceType value) { - this.value = value; - } - - - - public KickPlayerRequestMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(KickPlayerRequestMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/LeaveGameRequestMessage.java b/tests/src/pokerth_protocol/LeaveGameRequestMessage.java deleted file mode 100644 index 49eb7dda..00000000 --- a/tests/src/pokerth_protocol/LeaveGameRequestMessage.java +++ /dev/null @@ -1,94 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "LeaveGameRequestMessage" ) - public class LeaveGameRequestMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "LeaveGameRequestMessage" , isSet = false ) - public static class LeaveGameRequestMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_LeaveGameRequestMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_LeaveGameRequestMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(LeaveGameRequestMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "LeaveGameRequestMessage", isOptional = false , hasTag = true, tag = 15, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private LeaveGameRequestMessageSequenceType value; - - - - public LeaveGameRequestMessage () { - } - - - - public void setValue(LeaveGameRequestMessageSequenceType value) { - this.value = value; - } - - - - public LeaveGameRequestMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(LeaveGameRequestMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/MyActionRequestMessage.java b/tests/src/pokerth_protocol/MyActionRequestMessage.java deleted file mode 100644 index b4088a93..00000000 --- a/tests/src/pokerth_protocol/MyActionRequestMessage.java +++ /dev/null @@ -1,162 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "MyActionRequestMessage" ) - public class MyActionRequestMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "MyActionRequestMessage" , isSet = false ) - public static class MyActionRequestMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "handNum", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId handNum = null; - - - @ASN1Element ( name = "gameState", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NetGameState gameState = null; - - - @ASN1Element ( name = "myAction", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NetPlayerAction myAction = null; - - - @ASN1Element ( name = "myRelativeBet", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AmountOfMoney myRelativeBet = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NonZeroId getHandNum () { - return this.handNum; - } - - - - public void setHandNum (NonZeroId value) { - this.handNum = value; - } - - - - public NetGameState getGameState () { - return this.gameState; - } - - - - public void setGameState (NetGameState value) { - this.gameState = value; - } - - - - public NetPlayerAction getMyAction () { - return this.myAction; - } - - - - public void setMyAction (NetPlayerAction value) { - this.myAction = value; - } - - - - public AmountOfMoney getMyRelativeBet () { - return this.myRelativeBet; - } - - - - public void setMyRelativeBet (AmountOfMoney value) { - this.myRelativeBet = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_MyActionRequestMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_MyActionRequestMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(MyActionRequestMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "MyActionRequestMessage", isOptional = false , hasTag = true, tag = 25, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private MyActionRequestMessageSequenceType value; - - - - public MyActionRequestMessage () { - } - - - - public void setValue(MyActionRequestMessageSequenceType value) { - this.value = value; - } - - - - public MyActionRequestMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(MyActionRequestMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/NetAvatarType.java b/tests/src/pokerth_protocol/NetAvatarType.java deleted file mode 100644 index acc41032..00000000 --- a/tests/src/pokerth_protocol/NetAvatarType.java +++ /dev/null @@ -1,62 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Enum ( - name = "NetAvatarType" - ) - public class NetAvatarType implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "avatarImagePng", hasTag = true , tag = 1 ) - avatarImagePng , - @ASN1EnumItem ( name = "avatarImageJpg", hasTag = true , tag = 2 ) - avatarImageJpg , - @ASN1EnumItem ( name = "avatarImageGif", hasTag = true , tag = 3 ) - avatarImageGif , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(NetAvatarType.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/NetGameInfo.java b/tests/src/pokerth_protocol/NetGameInfo.java deleted file mode 100644 index 035e8942..00000000 --- a/tests/src/pokerth_protocol/NetGameInfo.java +++ /dev/null @@ -1,481 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "NetGameInfo", isSet = false ) - public class NetGameInfo implements IASN1PreparedElement { - - @ASN1String( name = "", - stringType = UniversalTag.UTF8String , isUCS = false ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 64L - - ) - - @ASN1Element ( name = "gameName", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private String gameName = null; - - - - @ASN1PreparedElement - @ASN1Enum ( - name = "NetGameTypeEnumType" - ) - public static class NetGameTypeEnumType implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "normalGame", hasTag = true , tag = 1 ) - normalGame , - @ASN1EnumItem ( name = "registeredOnlyGame", hasTag = true , tag = 2 ) - registeredOnlyGame , - @ASN1EnumItem ( name = "inviteOnlyGame", hasTag = true , tag = 3 ) - inviteOnlyGame , - @ASN1EnumItem ( name = "rankingGame", hasTag = true , tag = 4 ) - rankingGame , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(NetGameTypeEnumType.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - } - - @ASN1Element ( name = "netGameType", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NetGameTypeEnumType netGameType = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 2L, - - max = 10L - - ) - - @ASN1Element ( name = "maxNumPlayers", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer maxNumPlayers = null; - - - - @ASN1PreparedElement - @ASN1Choice ( name = "raiseIntervalMode" ) - public static class RaiseIntervalModeChoiceType implements IASN1PreparedElement { - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 1000L - - ) - - @ASN1Element ( name = "raiseEveryHands", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false ) - - private Integer raiseEveryHands = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 1000L - - ) - - @ASN1Element ( name = "raiseEveryMinutes", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false ) - - private Integer raiseEveryMinutes = null; - - - - public Integer getRaiseEveryHands () { - return this.raiseEveryHands; - } - - public boolean isRaiseEveryHandsSelected () { - return this.raiseEveryHands != null; - } - - private void setRaiseEveryHands (Integer value) { - this.raiseEveryHands = value; - } - - - public void selectRaiseEveryHands (Integer value) { - this.raiseEveryHands = value; - - setRaiseEveryMinutes(null); - - } - - - - - public Integer getRaiseEveryMinutes () { - return this.raiseEveryMinutes; - } - - public boolean isRaiseEveryMinutesSelected () { - return this.raiseEveryMinutes != null; - } - - private void setRaiseEveryMinutes (Integer value) { - this.raiseEveryMinutes = value; - } - - - public void selectRaiseEveryMinutes (Integer value) { - this.raiseEveryMinutes = value; - - setRaiseEveryHands(null); - - } - - - - - public void initWithDefaults() { - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_RaiseIntervalModeChoiceType; - } - - private static IASN1PreparedElementData preparedData_RaiseIntervalModeChoiceType = CoderFactory.getInstance().newPreparedElementData(RaiseIntervalModeChoiceType.class); - - } - - - @ASN1Element ( name = "raiseIntervalMode", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private RaiseIntervalModeChoiceType raiseIntervalMode = null; - - - - @ASN1PreparedElement - @ASN1Enum ( - name = "EndRaiseModeEnumType" - ) - public static class EndRaiseModeEnumType implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "doubleBlinds", hasTag = true , tag = 1 ) - doubleBlinds , - @ASN1EnumItem ( name = "raiseByEndValue", hasTag = true , tag = 2 ) - raiseByEndValue , - @ASN1EnumItem ( name = "keepLastBlind", hasTag = true , tag = 3 ) - keepLastBlind , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(EndRaiseModeEnumType.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - } - - @ASN1Element ( name = "endRaiseMode", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private EndRaiseModeEnumType endRaiseMode = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 11L - - ) - - @ASN1Element ( name = "proposedGuiSpeed", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer proposedGuiSpeed = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 5L, - - max = 20L - - ) - - @ASN1Element ( name = "delayBetweenHands", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer delayBetweenHands = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 0L, - - max = 60L - - ) - - @ASN1Element ( name = "playerActionTimeout", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer playerActionTimeout = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 20000L - - ) - - @ASN1Element ( name = "firstSmallBlind", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer firstSmallBlind = null; - - - @ASN1Element ( name = "endRaiseSmallBlindValue", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private InitialAmountOfMoney endRaiseSmallBlindValue = null; - - - @ASN1Element ( name = "startMoney", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private InitialNonZeroAmountOfMoney startMoney = null; - - -@ASN1SequenceOf( name = "manualBlinds", isSetOf = false ) - - @ASN1ValueRangeConstraint ( - - min = 0L, - - max = 30L - - ) - - @ASN1Element ( name = "manualBlinds", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private java.util.Collection manualBlinds = null; - - - - public String getGameName () { - return this.gameName; - } - - - - public void setGameName (String value) { - this.gameName = value; - } - - - - public NetGameTypeEnumType getNetGameType () { - return this.netGameType; - } - - - - public void setNetGameType (NetGameTypeEnumType value) { - this.netGameType = value; - } - - - - public Integer getMaxNumPlayers () { - return this.maxNumPlayers; - } - - - - public void setMaxNumPlayers (Integer value) { - this.maxNumPlayers = value; - } - - - - public RaiseIntervalModeChoiceType getRaiseIntervalMode () { - return this.raiseIntervalMode; - } - - - - public void setRaiseIntervalMode (RaiseIntervalModeChoiceType value) { - this.raiseIntervalMode = value; - } - - - - public EndRaiseModeEnumType getEndRaiseMode () { - return this.endRaiseMode; - } - - - - public void setEndRaiseMode (EndRaiseModeEnumType value) { - this.endRaiseMode = value; - } - - - - public Integer getProposedGuiSpeed () { - return this.proposedGuiSpeed; - } - - - - public void setProposedGuiSpeed (Integer value) { - this.proposedGuiSpeed = value; - } - - - - public Integer getDelayBetweenHands () { - return this.delayBetweenHands; - } - - - - public void setDelayBetweenHands (Integer value) { - this.delayBetweenHands = value; - } - - - - public Integer getPlayerActionTimeout () { - return this.playerActionTimeout; - } - - - - public void setPlayerActionTimeout (Integer value) { - this.playerActionTimeout = value; - } - - - - public Integer getFirstSmallBlind () { - return this.firstSmallBlind; - } - - - - public void setFirstSmallBlind (Integer value) { - this.firstSmallBlind = value; - } - - - - public InitialAmountOfMoney getEndRaiseSmallBlindValue () { - return this.endRaiseSmallBlindValue; - } - - - - public void setEndRaiseSmallBlindValue (InitialAmountOfMoney value) { - this.endRaiseSmallBlindValue = value; - } - - - - public InitialNonZeroAmountOfMoney getStartMoney () { - return this.startMoney; - } - - - - public void setStartMoney (InitialNonZeroAmountOfMoney value) { - this.startMoney = value; - } - - - - public java.util.Collection getManualBlinds () { - return this.manualBlinds; - } - - - - public void setManualBlinds (java.util.Collection value) { - this.manualBlinds = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(NetGameInfo.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/NetGameMode.java b/tests/src/pokerth_protocol/NetGameMode.java deleted file mode 100644 index 8ae8a3ea..00000000 --- a/tests/src/pokerth_protocol/NetGameMode.java +++ /dev/null @@ -1,62 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Enum ( - name = "NetGameMode" - ) - public class NetGameMode implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "gameCreated", hasTag = true , tag = 1 ) - gameCreated , - @ASN1EnumItem ( name = "gameStarted", hasTag = true , tag = 2 ) - gameStarted , - @ASN1EnumItem ( name = "gameClosed", hasTag = true , tag = 3 ) - gameClosed , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(NetGameMode.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/NetGameState.java b/tests/src/pokerth_protocol/NetGameState.java deleted file mode 100644 index 8ef393dd..00000000 --- a/tests/src/pokerth_protocol/NetGameState.java +++ /dev/null @@ -1,68 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Enum ( - name = "NetGameState" - ) - public class NetGameState implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "statePreflop", hasTag = true , tag = 0 ) - statePreflop , - @ASN1EnumItem ( name = "stateFlop", hasTag = true , tag = 1 ) - stateFlop , - @ASN1EnumItem ( name = "stateTurn", hasTag = true , tag = 2 ) - stateTurn , - @ASN1EnumItem ( name = "stateRiver", hasTag = true , tag = 3 ) - stateRiver , - @ASN1EnumItem ( name = "statePreflopSmallBlind", hasTag = true , tag = 4 ) - statePreflopSmallBlind , - @ASN1EnumItem ( name = "statePreflopBigBlind", hasTag = true , tag = 5 ) - statePreflopBigBlind , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(NetGameState.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/NetPlayerAction.java b/tests/src/pokerth_protocol/NetPlayerAction.java deleted file mode 100644 index 73661afc..00000000 --- a/tests/src/pokerth_protocol/NetPlayerAction.java +++ /dev/null @@ -1,70 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Enum ( - name = "NetPlayerAction" - ) - public class NetPlayerAction implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "actionNone", hasTag = true , tag = 0 ) - actionNone , - @ASN1EnumItem ( name = "actionFold", hasTag = true , tag = 1 ) - actionFold , - @ASN1EnumItem ( name = "actionCheck", hasTag = true , tag = 2 ) - actionCheck , - @ASN1EnumItem ( name = "actionCall", hasTag = true , tag = 3 ) - actionCall , - @ASN1EnumItem ( name = "actionBet", hasTag = true , tag = 4 ) - actionBet , - @ASN1EnumItem ( name = "actionRaise", hasTag = true , tag = 5 ) - actionRaise , - @ASN1EnumItem ( name = "actionAllIn", hasTag = true , tag = 6 ) - actionAllIn , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(NetPlayerAction.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/NetPlayerState.java b/tests/src/pokerth_protocol/NetPlayerState.java deleted file mode 100644 index 387440e7..00000000 --- a/tests/src/pokerth_protocol/NetPlayerState.java +++ /dev/null @@ -1,62 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Enum ( - name = "NetPlayerState" - ) - public class NetPlayerState implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "playerStateNormal", hasTag = true , tag = 0 ) - playerStateNormal , - @ASN1EnumItem ( name = "playerStateSessionInactive", hasTag = true , tag = 1 ) - playerStateSessionInactive , - @ASN1EnumItem ( name = "playerStateNoMoney", hasTag = true , tag = 2 ) - playerStateNoMoney , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(NetPlayerState.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/NonZeroId.java b/tests/src/pokerth_protocol/NonZeroId.java deleted file mode 100644 index bbe693d7..00000000 --- a/tests/src/pokerth_protocol/NonZeroId.java +++ /dev/null @@ -1,58 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "NonZeroId" ) - public class NonZeroId implements IASN1PreparedElement { - - @ASN1Integer( name = "NonZeroId" ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 4294967295L - - ) - - private Long value; - - public NonZeroId() { - } - - public NonZeroId(Long value) { - this.value = value; - } - - public void setValue(Long value) { - this.value = value; - } - - public Long getValue() { - return this.value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(NonZeroId.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/POKERTH_PROTOCOL.java b/tests/src/pokerth_protocol/POKERTH_PROTOCOL.java deleted file mode 100644 index 81169f01..00000000 --- a/tests/src/pokerth_protocol/POKERTH_PROTOCOL.java +++ /dev/null @@ -1,20 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - @ASN1Module ( name = "POKERTH_PROTOCOL", isImplicitTags = false ) - public class POKERTH_PROTOCOL { - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/PlainCards.java b/tests/src/pokerth_protocol/PlainCards.java deleted file mode 100644 index 7179f5f7..00000000 --- a/tests/src/pokerth_protocol/PlainCards.java +++ /dev/null @@ -1,69 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "PlainCards", isSet = false ) - public class PlainCards implements IASN1PreparedElement { - - @ASN1Element ( name = "plainCard1", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Card plainCard1 = null; - - - @ASN1Element ( name = "plainCard2", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Card plainCard2 = null; - - - - public Card getPlainCard1 () { - return this.plainCard1; - } - - - - public void setPlainCard1 (Card value) { - this.plainCard1 = value; - } - - - - public Card getPlainCard2 () { - return this.plainCard2; - } - - - - public void setPlainCard2 (Card value) { - this.plainCard2 = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(PlainCards.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/PlayerAllIn.java b/tests/src/pokerth_protocol/PlayerAllIn.java deleted file mode 100644 index 9365d6bd..00000000 --- a/tests/src/pokerth_protocol/PlayerAllIn.java +++ /dev/null @@ -1,86 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "PlayerAllIn", isSet = false ) - public class PlayerAllIn implements IASN1PreparedElement { - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - @ASN1Element ( name = "allInCard1", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Card allInCard1 = null; - - - @ASN1Element ( name = "allInCard2", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Card allInCard2 = null; - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - public Card getAllInCard1 () { - return this.allInCard1; - } - - - - public void setAllInCard1 (Card value) { - this.allInCard1 = value; - } - - - - public Card getAllInCard2 () { - return this.allInCard2; - } - - - - public void setAllInCard2 (Card value) { - this.allInCard2 = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(PlayerAllIn.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/PlayerIdChangedMessage.java b/tests/src/pokerth_protocol/PlayerIdChangedMessage.java deleted file mode 100644 index b5b0f99e..00000000 --- a/tests/src/pokerth_protocol/PlayerIdChangedMessage.java +++ /dev/null @@ -1,111 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "PlayerIdChangedMessage" ) - public class PlayerIdChangedMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "PlayerIdChangedMessage" , isSet = false ) - public static class PlayerIdChangedMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "oldPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId oldPlayerId = null; - - - @ASN1Element ( name = "newPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId newPlayerId = null; - - - - public NonZeroId getOldPlayerId () { - return this.oldPlayerId; - } - - - - public void setOldPlayerId (NonZeroId value) { - this.oldPlayerId = value; - } - - - - public NonZeroId getNewPlayerId () { - return this.newPlayerId; - } - - - - public void setNewPlayerId (NonZeroId value) { - this.newPlayerId = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_PlayerIdChangedMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_PlayerIdChangedMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(PlayerIdChangedMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "PlayerIdChangedMessage", isOptional = false , hasTag = true, tag = 36, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private PlayerIdChangedMessageSequenceType value; - - - - public PlayerIdChangedMessage () { - } - - - - public void setValue(PlayerIdChangedMessageSequenceType value) { - this.value = value; - } - - - - public PlayerIdChangedMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(PlayerIdChangedMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/PlayerInfoData.java b/tests/src/pokerth_protocol/PlayerInfoData.java deleted file mode 100644 index cafb695c..00000000 --- a/tests/src/pokerth_protocol/PlayerInfoData.java +++ /dev/null @@ -1,199 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "PlayerInfoData", isSet = false ) - public class PlayerInfoData implements IASN1PreparedElement { - - @ASN1String( name = "", - stringType = UniversalTag.UTF8String , isUCS = false ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 32L - - ) - - @ASN1Element ( name = "playerName", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private String playerName = null; - - @ASN1Boolean( name = "" ) - - @ASN1Element ( name = "isHuman", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Boolean isHuman = null; - - - @ASN1Element ( name = "playerRights", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private PlayerInfoRights playerRights = null; - - - @ASN1String( name = "", - stringType = UniversalTag.UTF8String , isUCS = false ) - - @ASN1SizeConstraint ( max = 2L ) - - @ASN1Element ( name = "countryCode", isOptional = true , hasTag = false , hasDefaultValue = false ) - - private String countryCode = null; - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "avatarData" , isSet = false ) - public static class AvatarDataSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "avatarType", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NetAvatarType avatarType = null; - - - @ASN1Element ( name = "avatar", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AvatarHash avatar = null; - - - - public NetAvatarType getAvatarType () { - return this.avatarType; - } - - - - public void setAvatarType (NetAvatarType value) { - this.avatarType = value; - } - - - - public AvatarHash getAvatar () { - return this.avatar; - } - - - - public void setAvatar (AvatarHash value) { - this.avatar = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_AvatarDataSequenceType; - } - - private static IASN1PreparedElementData preparedData_AvatarDataSequenceType = CoderFactory.getInstance().newPreparedElementData(AvatarDataSequenceType.class); - - } - - - - @ASN1Element ( name = "avatarData", isOptional = true , hasTag = false , hasDefaultValue = false ) - - private AvatarDataSequenceType avatarData = null; - - - - public String getPlayerName () { - return this.playerName; - } - - - - public void setPlayerName (String value) { - this.playerName = value; - } - - - - public Boolean getIsHuman () { - return this.isHuman; - } - - - - public void setIsHuman (Boolean value) { - this.isHuman = value; - } - - - - public PlayerInfoRights getPlayerRights () { - return this.playerRights; - } - - - - public void setPlayerRights (PlayerInfoRights value) { - this.playerRights = value; - } - - - - public String getCountryCode () { - return this.countryCode; - } - - - public boolean isCountryCodePresent () { - return this.countryCode != null; - } - - - public void setCountryCode (String value) { - this.countryCode = value; - } - - - - public AvatarDataSequenceType getAvatarData () { - return this.avatarData; - } - - - public boolean isAvatarDataPresent () { - return this.avatarData != null; - } - - - public void setAvatarData (AvatarDataSequenceType value) { - this.avatarData = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(PlayerInfoData.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/PlayerInfoReplyMessage.java b/tests/src/pokerth_protocol/PlayerInfoReplyMessage.java deleted file mode 100644 index 738238e1..00000000 --- a/tests/src/pokerth_protocol/PlayerInfoReplyMessage.java +++ /dev/null @@ -1,185 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "PlayerInfoReplyMessage" ) - public class PlayerInfoReplyMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "PlayerInfoReplyMessage" , isSet = false ) - public static class PlayerInfoReplyMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - - @ASN1PreparedElement - @ASN1Choice ( name = "playerInfoResult" ) - public static class PlayerInfoResultChoiceType implements IASN1PreparedElement { - - @ASN1Element ( name = "playerInfoData", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false ) - - private PlayerInfoData playerInfoData = null; - - - @ASN1Element ( name = "unknownPlayerInfo", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false ) - - private UnknownPlayerInfo unknownPlayerInfo = null; - - - - public PlayerInfoData getPlayerInfoData () { - return this.playerInfoData; - } - - public boolean isPlayerInfoDataSelected () { - return this.playerInfoData != null; - } - - private void setPlayerInfoData (PlayerInfoData value) { - this.playerInfoData = value; - } - - - public void selectPlayerInfoData (PlayerInfoData value) { - this.playerInfoData = value; - - setUnknownPlayerInfo(null); - - } - - - - - public UnknownPlayerInfo getUnknownPlayerInfo () { - return this.unknownPlayerInfo; - } - - public boolean isUnknownPlayerInfoSelected () { - return this.unknownPlayerInfo != null; - } - - private void setUnknownPlayerInfo (UnknownPlayerInfo value) { - this.unknownPlayerInfo = value; - } - - - public void selectUnknownPlayerInfo (UnknownPlayerInfo value) { - this.unknownPlayerInfo = value; - - setPlayerInfoData(null); - - } - - - - - public void initWithDefaults() { - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_PlayerInfoResultChoiceType; - } - - private static IASN1PreparedElementData preparedData_PlayerInfoResultChoiceType = CoderFactory.getInstance().newPreparedElementData(PlayerInfoResultChoiceType.class); - - } - - - @ASN1Element ( name = "playerInfoResult", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private PlayerInfoResultChoiceType playerInfoResult = null; - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - public PlayerInfoResultChoiceType getPlayerInfoResult () { - return this.playerInfoResult; - } - - - - public void setPlayerInfoResult (PlayerInfoResultChoiceType value) { - this.playerInfoResult = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_PlayerInfoReplyMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_PlayerInfoReplyMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(PlayerInfoReplyMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "PlayerInfoReplyMessage", isOptional = false , hasTag = true, tag = 9, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private PlayerInfoReplyMessageSequenceType value; - - - - public PlayerInfoReplyMessage () { - } - - - - public void setValue(PlayerInfoReplyMessageSequenceType value) { - this.value = value; - } - - - - public PlayerInfoReplyMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(PlayerInfoReplyMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/PlayerInfoRequestMessage.java b/tests/src/pokerth_protocol/PlayerInfoRequestMessage.java deleted file mode 100644 index 85f3cbc8..00000000 --- a/tests/src/pokerth_protocol/PlayerInfoRequestMessage.java +++ /dev/null @@ -1,94 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "PlayerInfoRequestMessage" ) - public class PlayerInfoRequestMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "PlayerInfoRequestMessage" , isSet = false ) - public static class PlayerInfoRequestMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_PlayerInfoRequestMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_PlayerInfoRequestMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(PlayerInfoRequestMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "PlayerInfoRequestMessage", isOptional = false , hasTag = true, tag = 8, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private PlayerInfoRequestMessageSequenceType value; - - - - public PlayerInfoRequestMessage () { - } - - - - public void setValue(PlayerInfoRequestMessageSequenceType value) { - this.value = value; - } - - - - public PlayerInfoRequestMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(PlayerInfoRequestMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/PlayerInfoRights.java b/tests/src/pokerth_protocol/PlayerInfoRights.java deleted file mode 100644 index 8ac264ed..00000000 --- a/tests/src/pokerth_protocol/PlayerInfoRights.java +++ /dev/null @@ -1,62 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Enum ( - name = "PlayerInfoRights" - ) - public class PlayerInfoRights implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "playerRightsGuest", hasTag = true , tag = 1 ) - playerRightsGuest , - @ASN1EnumItem ( name = "playerRightsNormal", hasTag = true , tag = 2 ) - playerRightsNormal , - @ASN1EnumItem ( name = "playerRightsAdmin", hasTag = true , tag = 3 ) - playerRightsAdmin , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(PlayerInfoRights.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/PlayerListMessage.java b/tests/src/pokerth_protocol/PlayerListMessage.java deleted file mode 100644 index a4d295b3..00000000 --- a/tests/src/pokerth_protocol/PlayerListMessage.java +++ /dev/null @@ -1,154 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "PlayerListMessage" ) - public class PlayerListMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "PlayerListMessage" , isSet = false ) - public static class PlayerListMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - - @ASN1PreparedElement - @ASN1Enum ( - name = "PlayerListNotificationEnumType" - ) - public static class PlayerListNotificationEnumType implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "playerListNew", hasTag = true , tag = 0 ) - playerListNew , - @ASN1EnumItem ( name = "playerListLeft", hasTag = true , tag = 1 ) - playerListLeft , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(PlayerListNotificationEnumType.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - } - - @ASN1Element ( name = "playerListNotification", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private PlayerListNotificationEnumType playerListNotification = null; - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - public PlayerListNotificationEnumType getPlayerListNotification () { - return this.playerListNotification; - } - - - - public void setPlayerListNotification (PlayerListNotificationEnumType value) { - this.playerListNotification = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_PlayerListMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_PlayerListMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(PlayerListMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "PlayerListMessage", isOptional = false , hasTag = true, tag = 6, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private PlayerListMessageSequenceType value; - - - - public PlayerListMessage () { - } - - - - public void setValue(PlayerListMessageSequenceType value) { - this.value = value; - } - - - - public PlayerListMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(PlayerListMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/PlayerResult.java b/tests/src/pokerth_protocol/PlayerResult.java deleted file mode 100644 index f00ed2d3..00000000 --- a/tests/src/pokerth_protocol/PlayerResult.java +++ /dev/null @@ -1,165 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "PlayerResult", isSet = false ) - public class PlayerResult implements IASN1PreparedElement { - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - @ASN1Element ( name = "resultCard1", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Card resultCard1 = null; - - - @ASN1Element ( name = "resultCard2", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Card resultCard2 = null; - - @ASN1Integer( name = "" ) - -@ASN1SequenceOf( name = "bestHandPosition", isSetOf = false ) - - - @ASN1SizeConstraint ( max = 5L ) - - @ASN1Element ( name = "bestHandPosition", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private java.util.Collection bestHandPosition = null; - - - @ASN1Element ( name = "moneyWon", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AmountOfMoney moneyWon = null; - - - @ASN1Element ( name = "playerMoney", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AmountOfMoney playerMoney = null; - - @ASN1Integer( name = "" ) - - @ASN1Element ( name = "cardsValue", isOptional = true , hasTag = false , hasDefaultValue = false ) - - private Long cardsValue = null; - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - public Card getResultCard1 () { - return this.resultCard1; - } - - - - public void setResultCard1 (Card value) { - this.resultCard1 = value; - } - - - - public Card getResultCard2 () { - return this.resultCard2; - } - - - - public void setResultCard2 (Card value) { - this.resultCard2 = value; - } - - - - public java.util.Collection getBestHandPosition () { - return this.bestHandPosition; - } - - - - public void setBestHandPosition (java.util.Collection value) { - this.bestHandPosition = value; - } - - - - public AmountOfMoney getMoneyWon () { - return this.moneyWon; - } - - - - public void setMoneyWon (AmountOfMoney value) { - this.moneyWon = value; - } - - - - public AmountOfMoney getPlayerMoney () { - return this.playerMoney; - } - - - - public void setPlayerMoney (AmountOfMoney value) { - this.playerMoney = value; - } - - - - public Long getCardsValue () { - return this.cardsValue; - } - - - public boolean isCardsValuePresent () { - return this.cardsValue != null; - } - - - public void setCardsValue (Long value) { - this.cardsValue = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(PlayerResult.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/PlayersActionDoneMessage.java b/tests/src/pokerth_protocol/PlayersActionDoneMessage.java deleted file mode 100644 index 021ae642..00000000 --- a/tests/src/pokerth_protocol/PlayersActionDoneMessage.java +++ /dev/null @@ -1,213 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "PlayersActionDoneMessage" ) - public class PlayersActionDoneMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "PlayersActionDoneMessage" , isSet = false ) - public static class PlayersActionDoneMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - @ASN1Element ( name = "gameState", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NetGameState gameState = null; - - - @ASN1Element ( name = "playerAction", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NetPlayerAction playerAction = null; - - - @ASN1Element ( name = "totalPlayerBet", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AmountOfMoney totalPlayerBet = null; - - - @ASN1Element ( name = "playerMoney", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AmountOfMoney playerMoney = null; - - - @ASN1Element ( name = "highestSet", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AmountOfMoney highestSet = null; - - - @ASN1Element ( name = "minimumRaise", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AmountOfMoney minimumRaise = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - public NetGameState getGameState () { - return this.gameState; - } - - - - public void setGameState (NetGameState value) { - this.gameState = value; - } - - - - public NetPlayerAction getPlayerAction () { - return this.playerAction; - } - - - - public void setPlayerAction (NetPlayerAction value) { - this.playerAction = value; - } - - - - public AmountOfMoney getTotalPlayerBet () { - return this.totalPlayerBet; - } - - - - public void setTotalPlayerBet (AmountOfMoney value) { - this.totalPlayerBet = value; - } - - - - public AmountOfMoney getPlayerMoney () { - return this.playerMoney; - } - - - - public void setPlayerMoney (AmountOfMoney value) { - this.playerMoney = value; - } - - - - public AmountOfMoney getHighestSet () { - return this.highestSet; - } - - - - public void setHighestSet (AmountOfMoney value) { - this.highestSet = value; - } - - - - public AmountOfMoney getMinimumRaise () { - return this.minimumRaise; - } - - - - public void setMinimumRaise (AmountOfMoney value) { - this.minimumRaise = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_PlayersActionDoneMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_PlayersActionDoneMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(PlayersActionDoneMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "PlayersActionDoneMessage", isOptional = false , hasTag = true, tag = 27, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private PlayersActionDoneMessageSequenceType value; - - - - public PlayersActionDoneMessage () { - } - - - - public void setValue(PlayersActionDoneMessageSequenceType value) { - this.value = value; - } - - - - public PlayersActionDoneMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(PlayersActionDoneMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/PlayersTurnMessage.java b/tests/src/pokerth_protocol/PlayersTurnMessage.java deleted file mode 100644 index 9a71fa2d..00000000 --- a/tests/src/pokerth_protocol/PlayersTurnMessage.java +++ /dev/null @@ -1,128 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "PlayersTurnMessage" ) - public class PlayersTurnMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "PlayersTurnMessage" , isSet = false ) - public static class PlayersTurnMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - @ASN1Element ( name = "gameState", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NetGameState gameState = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - public NetGameState getGameState () { - return this.gameState; - } - - - - public void setGameState (NetGameState value) { - this.gameState = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_PlayersTurnMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_PlayersTurnMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(PlayersTurnMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "PlayersTurnMessage", isOptional = false , hasTag = true, tag = 24, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private PlayersTurnMessageSequenceType value; - - - - public PlayersTurnMessage () { - } - - - - public void setValue(PlayersTurnMessageSequenceType value) { - this.value = value; - } - - - - public PlayersTurnMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(PlayersTurnMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/PokerTHMessage.java b/tests/src/pokerth_protocol/PokerTHMessage.java deleted file mode 100644 index 93a721d3..00000000 --- a/tests/src/pokerth_protocol/PokerTHMessage.java +++ /dev/null @@ -1,7161 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Choice ( name = "PokerTHMessage" ) - public class PokerTHMessage implements IASN1PreparedElement { - - @ASN1Element ( name = "announceMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AnnounceMessage announceMessage = null; - - - @ASN1Element ( name = "initMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private InitMessage initMessage = null; - - - @ASN1Element ( name = "authMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AuthMessage authMessage = null; - - - @ASN1Element ( name = "initAckMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private InitAckMessage initAckMessage = null; - - - @ASN1Element ( name = "avatarRequestMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AvatarRequestMessage avatarRequestMessage = null; - - - @ASN1Element ( name = "avatarReplyMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AvatarReplyMessage avatarReplyMessage = null; - - - @ASN1Element ( name = "playerListMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private PlayerListMessage playerListMessage = null; - - - @ASN1Element ( name = "gameListMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private GameListMessage gameListMessage = null; - - - @ASN1Element ( name = "playerInfoRequestMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private PlayerInfoRequestMessage playerInfoRequestMessage = null; - - - @ASN1Element ( name = "playerInfoReplyMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private PlayerInfoReplyMessage playerInfoReplyMessage = null; - - - @ASN1Element ( name = "subscriptionRequestMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private SubscriptionRequestMessage subscriptionRequestMessage = null; - - - @ASN1Element ( name = "joinGameRequestMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private JoinGameRequestMessage joinGameRequestMessage = null; - - - @ASN1Element ( name = "joinGameReplyMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private JoinGameReplyMessage joinGameReplyMessage = null; - - - @ASN1Element ( name = "gamePlayerMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private GamePlayerMessage gamePlayerMessage = null; - - - @ASN1Element ( name = "kickPlayerRequestMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private KickPlayerRequestMessage kickPlayerRequestMessage = null; - - - @ASN1Element ( name = "leaveGameRequestMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private LeaveGameRequestMessage leaveGameRequestMessage = null; - - - @ASN1Element ( name = "invitePlayerToGameMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private InvitePlayerToGameMessage invitePlayerToGameMessage = null; - - - @ASN1Element ( name = "inviteNotifyMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private InviteNotifyMessage inviteNotifyMessage = null; - - - @ASN1Element ( name = "rejectGameInvitationMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private RejectGameInvitationMessage rejectGameInvitationMessage = null; - - - @ASN1Element ( name = "rejectInvNotifyMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private RejectInvNotifyMessage rejectInvNotifyMessage = null; - - - @ASN1Element ( name = "startEventMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private StartEventMessage startEventMessage = null; - - - @ASN1Element ( name = "startEventAckMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private StartEventAckMessage startEventAckMessage = null; - - - @ASN1Element ( name = "gameStartMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private GameStartMessage gameStartMessage = null; - - - @ASN1Element ( name = "handStartMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private HandStartMessage handStartMessage = null; - - - @ASN1Element ( name = "playersTurnMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private PlayersTurnMessage playersTurnMessage = null; - - - @ASN1Element ( name = "myActionRequestMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private MyActionRequestMessage myActionRequestMessage = null; - - - @ASN1Element ( name = "yourActionRejectedMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private YourActionRejectedMessage yourActionRejectedMessage = null; - - - @ASN1Element ( name = "playersActionDoneMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private PlayersActionDoneMessage playersActionDoneMessage = null; - - - @ASN1Element ( name = "dealFlopCardsMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private DealFlopCardsMessage dealFlopCardsMessage = null; - - - @ASN1Element ( name = "dealTurnCardMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private DealTurnCardMessage dealTurnCardMessage = null; - - - @ASN1Element ( name = "dealRiverCardMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private DealRiverCardMessage dealRiverCardMessage = null; - - - @ASN1Element ( name = "allInShowCardsMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AllInShowCardsMessage allInShowCardsMessage = null; - - - @ASN1Element ( name = "endOfHandMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private EndOfHandMessage endOfHandMessage = null; - - - @ASN1Element ( name = "showMyCardsRequestMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private ShowMyCardsRequestMessage showMyCardsRequestMessage = null; - - - @ASN1Element ( name = "afterHandShowCardsMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AfterHandShowCardsMessage afterHandShowCardsMessage = null; - - - @ASN1Element ( name = "endOfGameMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private EndOfGameMessage endOfGameMessage = null; - - - @ASN1Element ( name = "playerIdChangedMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private PlayerIdChangedMessage playerIdChangedMessage = null; - - - @ASN1Element ( name = "askKickPlayerMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AskKickPlayerMessage askKickPlayerMessage = null; - - - @ASN1Element ( name = "askKickDeniedMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AskKickDeniedMessage askKickDeniedMessage = null; - - - @ASN1Element ( name = "startKickPetitionMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private StartKickPetitionMessage startKickPetitionMessage = null; - - - @ASN1Element ( name = "voteKickRequestMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private VoteKickRequestMessage voteKickRequestMessage = null; - - - @ASN1Element ( name = "voteKickReplyMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private VoteKickReplyMessage voteKickReplyMessage = null; - - - @ASN1Element ( name = "kickPetitionUpdateMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private KickPetitionUpdateMessage kickPetitionUpdateMessage = null; - - - @ASN1Element ( name = "endKickPetitionMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private EndKickPetitionMessage endKickPetitionMessage = null; - - - @ASN1Element ( name = "statisticsMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private StatisticsMessage statisticsMessage = null; - - - @ASN1Element ( name = "chatRequestMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private ChatRequestMessage chatRequestMessage = null; - - - @ASN1Element ( name = "chatMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private ChatMessage chatMessage = null; - - - @ASN1Element ( name = "chatRejectMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private ChatRejectMessage chatRejectMessage = null; - - - @ASN1Element ( name = "dialogMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private DialogMessage dialogMessage = null; - - - @ASN1Element ( name = "timeoutWarningMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private TimeoutWarningMessage timeoutWarningMessage = null; - - - @ASN1Element ( name = "resetTimeoutMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private ResetTimeoutMessage resetTimeoutMessage = null; - - - @ASN1Element ( name = "reportAvatarMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private ReportAvatarMessage reportAvatarMessage = null; - - - @ASN1Element ( name = "reportAvatarAckMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private ReportAvatarAckMessage reportAvatarAckMessage = null; - - - @ASN1Element ( name = "errorMessage", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private ErrorMessage errorMessage = null; - - - - public AnnounceMessage getAnnounceMessage () { - return this.announceMessage; - } - - public boolean isAnnounceMessageSelected () { - return this.announceMessage != null; - } - - private void setAnnounceMessage (AnnounceMessage value) { - this.announceMessage = value; - } - - - public void selectAnnounceMessage (AnnounceMessage value) { - this.announceMessage = value; - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public InitMessage getInitMessage () { - return this.initMessage; - } - - public boolean isInitMessageSelected () { - return this.initMessage != null; - } - - private void setInitMessage (InitMessage value) { - this.initMessage = value; - } - - - public void selectInitMessage (InitMessage value) { - this.initMessage = value; - - setAnnounceMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public AuthMessage getAuthMessage () { - return this.authMessage; - } - - public boolean isAuthMessageSelected () { - return this.authMessage != null; - } - - private void setAuthMessage (AuthMessage value) { - this.authMessage = value; - } - - - public void selectAuthMessage (AuthMessage value) { - this.authMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public InitAckMessage getInitAckMessage () { - return this.initAckMessage; - } - - public boolean isInitAckMessageSelected () { - return this.initAckMessage != null; - } - - private void setInitAckMessage (InitAckMessage value) { - this.initAckMessage = value; - } - - - public void selectInitAckMessage (InitAckMessage value) { - this.initAckMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public AvatarRequestMessage getAvatarRequestMessage () { - return this.avatarRequestMessage; - } - - public boolean isAvatarRequestMessageSelected () { - return this.avatarRequestMessage != null; - } - - private void setAvatarRequestMessage (AvatarRequestMessage value) { - this.avatarRequestMessage = value; - } - - - public void selectAvatarRequestMessage (AvatarRequestMessage value) { - this.avatarRequestMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public AvatarReplyMessage getAvatarReplyMessage () { - return this.avatarReplyMessage; - } - - public boolean isAvatarReplyMessageSelected () { - return this.avatarReplyMessage != null; - } - - private void setAvatarReplyMessage (AvatarReplyMessage value) { - this.avatarReplyMessage = value; - } - - - public void selectAvatarReplyMessage (AvatarReplyMessage value) { - this.avatarReplyMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public PlayerListMessage getPlayerListMessage () { - return this.playerListMessage; - } - - public boolean isPlayerListMessageSelected () { - return this.playerListMessage != null; - } - - private void setPlayerListMessage (PlayerListMessage value) { - this.playerListMessage = value; - } - - - public void selectPlayerListMessage (PlayerListMessage value) { - this.playerListMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public GameListMessage getGameListMessage () { - return this.gameListMessage; - } - - public boolean isGameListMessageSelected () { - return this.gameListMessage != null; - } - - private void setGameListMessage (GameListMessage value) { - this.gameListMessage = value; - } - - - public void selectGameListMessage (GameListMessage value) { - this.gameListMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public PlayerInfoRequestMessage getPlayerInfoRequestMessage () { - return this.playerInfoRequestMessage; - } - - public boolean isPlayerInfoRequestMessageSelected () { - return this.playerInfoRequestMessage != null; - } - - private void setPlayerInfoRequestMessage (PlayerInfoRequestMessage value) { - this.playerInfoRequestMessage = value; - } - - - public void selectPlayerInfoRequestMessage (PlayerInfoRequestMessage value) { - this.playerInfoRequestMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public PlayerInfoReplyMessage getPlayerInfoReplyMessage () { - return this.playerInfoReplyMessage; - } - - public boolean isPlayerInfoReplyMessageSelected () { - return this.playerInfoReplyMessage != null; - } - - private void setPlayerInfoReplyMessage (PlayerInfoReplyMessage value) { - this.playerInfoReplyMessage = value; - } - - - public void selectPlayerInfoReplyMessage (PlayerInfoReplyMessage value) { - this.playerInfoReplyMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public SubscriptionRequestMessage getSubscriptionRequestMessage () { - return this.subscriptionRequestMessage; - } - - public boolean isSubscriptionRequestMessageSelected () { - return this.subscriptionRequestMessage != null; - } - - private void setSubscriptionRequestMessage (SubscriptionRequestMessage value) { - this.subscriptionRequestMessage = value; - } - - - public void selectSubscriptionRequestMessage (SubscriptionRequestMessage value) { - this.subscriptionRequestMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public JoinGameRequestMessage getJoinGameRequestMessage () { - return this.joinGameRequestMessage; - } - - public boolean isJoinGameRequestMessageSelected () { - return this.joinGameRequestMessage != null; - } - - private void setJoinGameRequestMessage (JoinGameRequestMessage value) { - this.joinGameRequestMessage = value; - } - - - public void selectJoinGameRequestMessage (JoinGameRequestMessage value) { - this.joinGameRequestMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public JoinGameReplyMessage getJoinGameReplyMessage () { - return this.joinGameReplyMessage; - } - - public boolean isJoinGameReplyMessageSelected () { - return this.joinGameReplyMessage != null; - } - - private void setJoinGameReplyMessage (JoinGameReplyMessage value) { - this.joinGameReplyMessage = value; - } - - - public void selectJoinGameReplyMessage (JoinGameReplyMessage value) { - this.joinGameReplyMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public GamePlayerMessage getGamePlayerMessage () { - return this.gamePlayerMessage; - } - - public boolean isGamePlayerMessageSelected () { - return this.gamePlayerMessage != null; - } - - private void setGamePlayerMessage (GamePlayerMessage value) { - this.gamePlayerMessage = value; - } - - - public void selectGamePlayerMessage (GamePlayerMessage value) { - this.gamePlayerMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public KickPlayerRequestMessage getKickPlayerRequestMessage () { - return this.kickPlayerRequestMessage; - } - - public boolean isKickPlayerRequestMessageSelected () { - return this.kickPlayerRequestMessage != null; - } - - private void setKickPlayerRequestMessage (KickPlayerRequestMessage value) { - this.kickPlayerRequestMessage = value; - } - - - public void selectKickPlayerRequestMessage (KickPlayerRequestMessage value) { - this.kickPlayerRequestMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public LeaveGameRequestMessage getLeaveGameRequestMessage () { - return this.leaveGameRequestMessage; - } - - public boolean isLeaveGameRequestMessageSelected () { - return this.leaveGameRequestMessage != null; - } - - private void setLeaveGameRequestMessage (LeaveGameRequestMessage value) { - this.leaveGameRequestMessage = value; - } - - - public void selectLeaveGameRequestMessage (LeaveGameRequestMessage value) { - this.leaveGameRequestMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public InvitePlayerToGameMessage getInvitePlayerToGameMessage () { - return this.invitePlayerToGameMessage; - } - - public boolean isInvitePlayerToGameMessageSelected () { - return this.invitePlayerToGameMessage != null; - } - - private void setInvitePlayerToGameMessage (InvitePlayerToGameMessage value) { - this.invitePlayerToGameMessage = value; - } - - - public void selectInvitePlayerToGameMessage (InvitePlayerToGameMessage value) { - this.invitePlayerToGameMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public InviteNotifyMessage getInviteNotifyMessage () { - return this.inviteNotifyMessage; - } - - public boolean isInviteNotifyMessageSelected () { - return this.inviteNotifyMessage != null; - } - - private void setInviteNotifyMessage (InviteNotifyMessage value) { - this.inviteNotifyMessage = value; - } - - - public void selectInviteNotifyMessage (InviteNotifyMessage value) { - this.inviteNotifyMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public RejectGameInvitationMessage getRejectGameInvitationMessage () { - return this.rejectGameInvitationMessage; - } - - public boolean isRejectGameInvitationMessageSelected () { - return this.rejectGameInvitationMessage != null; - } - - private void setRejectGameInvitationMessage (RejectGameInvitationMessage value) { - this.rejectGameInvitationMessage = value; - } - - - public void selectRejectGameInvitationMessage (RejectGameInvitationMessage value) { - this.rejectGameInvitationMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public RejectInvNotifyMessage getRejectInvNotifyMessage () { - return this.rejectInvNotifyMessage; - } - - public boolean isRejectInvNotifyMessageSelected () { - return this.rejectInvNotifyMessage != null; - } - - private void setRejectInvNotifyMessage (RejectInvNotifyMessage value) { - this.rejectInvNotifyMessage = value; - } - - - public void selectRejectInvNotifyMessage (RejectInvNotifyMessage value) { - this.rejectInvNotifyMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public StartEventMessage getStartEventMessage () { - return this.startEventMessage; - } - - public boolean isStartEventMessageSelected () { - return this.startEventMessage != null; - } - - private void setStartEventMessage (StartEventMessage value) { - this.startEventMessage = value; - } - - - public void selectStartEventMessage (StartEventMessage value) { - this.startEventMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public StartEventAckMessage getStartEventAckMessage () { - return this.startEventAckMessage; - } - - public boolean isStartEventAckMessageSelected () { - return this.startEventAckMessage != null; - } - - private void setStartEventAckMessage (StartEventAckMessage value) { - this.startEventAckMessage = value; - } - - - public void selectStartEventAckMessage (StartEventAckMessage value) { - this.startEventAckMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public GameStartMessage getGameStartMessage () { - return this.gameStartMessage; - } - - public boolean isGameStartMessageSelected () { - return this.gameStartMessage != null; - } - - private void setGameStartMessage (GameStartMessage value) { - this.gameStartMessage = value; - } - - - public void selectGameStartMessage (GameStartMessage value) { - this.gameStartMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public HandStartMessage getHandStartMessage () { - return this.handStartMessage; - } - - public boolean isHandStartMessageSelected () { - return this.handStartMessage != null; - } - - private void setHandStartMessage (HandStartMessage value) { - this.handStartMessage = value; - } - - - public void selectHandStartMessage (HandStartMessage value) { - this.handStartMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public PlayersTurnMessage getPlayersTurnMessage () { - return this.playersTurnMessage; - } - - public boolean isPlayersTurnMessageSelected () { - return this.playersTurnMessage != null; - } - - private void setPlayersTurnMessage (PlayersTurnMessage value) { - this.playersTurnMessage = value; - } - - - public void selectPlayersTurnMessage (PlayersTurnMessage value) { - this.playersTurnMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public MyActionRequestMessage getMyActionRequestMessage () { - return this.myActionRequestMessage; - } - - public boolean isMyActionRequestMessageSelected () { - return this.myActionRequestMessage != null; - } - - private void setMyActionRequestMessage (MyActionRequestMessage value) { - this.myActionRequestMessage = value; - } - - - public void selectMyActionRequestMessage (MyActionRequestMessage value) { - this.myActionRequestMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public YourActionRejectedMessage getYourActionRejectedMessage () { - return this.yourActionRejectedMessage; - } - - public boolean isYourActionRejectedMessageSelected () { - return this.yourActionRejectedMessage != null; - } - - private void setYourActionRejectedMessage (YourActionRejectedMessage value) { - this.yourActionRejectedMessage = value; - } - - - public void selectYourActionRejectedMessage (YourActionRejectedMessage value) { - this.yourActionRejectedMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public PlayersActionDoneMessage getPlayersActionDoneMessage () { - return this.playersActionDoneMessage; - } - - public boolean isPlayersActionDoneMessageSelected () { - return this.playersActionDoneMessage != null; - } - - private void setPlayersActionDoneMessage (PlayersActionDoneMessage value) { - this.playersActionDoneMessage = value; - } - - - public void selectPlayersActionDoneMessage (PlayersActionDoneMessage value) { - this.playersActionDoneMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public DealFlopCardsMessage getDealFlopCardsMessage () { - return this.dealFlopCardsMessage; - } - - public boolean isDealFlopCardsMessageSelected () { - return this.dealFlopCardsMessage != null; - } - - private void setDealFlopCardsMessage (DealFlopCardsMessage value) { - this.dealFlopCardsMessage = value; - } - - - public void selectDealFlopCardsMessage (DealFlopCardsMessage value) { - this.dealFlopCardsMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public DealTurnCardMessage getDealTurnCardMessage () { - return this.dealTurnCardMessage; - } - - public boolean isDealTurnCardMessageSelected () { - return this.dealTurnCardMessage != null; - } - - private void setDealTurnCardMessage (DealTurnCardMessage value) { - this.dealTurnCardMessage = value; - } - - - public void selectDealTurnCardMessage (DealTurnCardMessage value) { - this.dealTurnCardMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public DealRiverCardMessage getDealRiverCardMessage () { - return this.dealRiverCardMessage; - } - - public boolean isDealRiverCardMessageSelected () { - return this.dealRiverCardMessage != null; - } - - private void setDealRiverCardMessage (DealRiverCardMessage value) { - this.dealRiverCardMessage = value; - } - - - public void selectDealRiverCardMessage (DealRiverCardMessage value) { - this.dealRiverCardMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public AllInShowCardsMessage getAllInShowCardsMessage () { - return this.allInShowCardsMessage; - } - - public boolean isAllInShowCardsMessageSelected () { - return this.allInShowCardsMessage != null; - } - - private void setAllInShowCardsMessage (AllInShowCardsMessage value) { - this.allInShowCardsMessage = value; - } - - - public void selectAllInShowCardsMessage (AllInShowCardsMessage value) { - this.allInShowCardsMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public EndOfHandMessage getEndOfHandMessage () { - return this.endOfHandMessage; - } - - public boolean isEndOfHandMessageSelected () { - return this.endOfHandMessage != null; - } - - private void setEndOfHandMessage (EndOfHandMessage value) { - this.endOfHandMessage = value; - } - - - public void selectEndOfHandMessage (EndOfHandMessage value) { - this.endOfHandMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public ShowMyCardsRequestMessage getShowMyCardsRequestMessage () { - return this.showMyCardsRequestMessage; - } - - public boolean isShowMyCardsRequestMessageSelected () { - return this.showMyCardsRequestMessage != null; - } - - private void setShowMyCardsRequestMessage (ShowMyCardsRequestMessage value) { - this.showMyCardsRequestMessage = value; - } - - - public void selectShowMyCardsRequestMessage (ShowMyCardsRequestMessage value) { - this.showMyCardsRequestMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public AfterHandShowCardsMessage getAfterHandShowCardsMessage () { - return this.afterHandShowCardsMessage; - } - - public boolean isAfterHandShowCardsMessageSelected () { - return this.afterHandShowCardsMessage != null; - } - - private void setAfterHandShowCardsMessage (AfterHandShowCardsMessage value) { - this.afterHandShowCardsMessage = value; - } - - - public void selectAfterHandShowCardsMessage (AfterHandShowCardsMessage value) { - this.afterHandShowCardsMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public EndOfGameMessage getEndOfGameMessage () { - return this.endOfGameMessage; - } - - public boolean isEndOfGameMessageSelected () { - return this.endOfGameMessage != null; - } - - private void setEndOfGameMessage (EndOfGameMessage value) { - this.endOfGameMessage = value; - } - - - public void selectEndOfGameMessage (EndOfGameMessage value) { - this.endOfGameMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public PlayerIdChangedMessage getPlayerIdChangedMessage () { - return this.playerIdChangedMessage; - } - - public boolean isPlayerIdChangedMessageSelected () { - return this.playerIdChangedMessage != null; - } - - private void setPlayerIdChangedMessage (PlayerIdChangedMessage value) { - this.playerIdChangedMessage = value; - } - - - public void selectPlayerIdChangedMessage (PlayerIdChangedMessage value) { - this.playerIdChangedMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public AskKickPlayerMessage getAskKickPlayerMessage () { - return this.askKickPlayerMessage; - } - - public boolean isAskKickPlayerMessageSelected () { - return this.askKickPlayerMessage != null; - } - - private void setAskKickPlayerMessage (AskKickPlayerMessage value) { - this.askKickPlayerMessage = value; - } - - - public void selectAskKickPlayerMessage (AskKickPlayerMessage value) { - this.askKickPlayerMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public AskKickDeniedMessage getAskKickDeniedMessage () { - return this.askKickDeniedMessage; - } - - public boolean isAskKickDeniedMessageSelected () { - return this.askKickDeniedMessage != null; - } - - private void setAskKickDeniedMessage (AskKickDeniedMessage value) { - this.askKickDeniedMessage = value; - } - - - public void selectAskKickDeniedMessage (AskKickDeniedMessage value) { - this.askKickDeniedMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public StartKickPetitionMessage getStartKickPetitionMessage () { - return this.startKickPetitionMessage; - } - - public boolean isStartKickPetitionMessageSelected () { - return this.startKickPetitionMessage != null; - } - - private void setStartKickPetitionMessage (StartKickPetitionMessage value) { - this.startKickPetitionMessage = value; - } - - - public void selectStartKickPetitionMessage (StartKickPetitionMessage value) { - this.startKickPetitionMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public VoteKickRequestMessage getVoteKickRequestMessage () { - return this.voteKickRequestMessage; - } - - public boolean isVoteKickRequestMessageSelected () { - return this.voteKickRequestMessage != null; - } - - private void setVoteKickRequestMessage (VoteKickRequestMessage value) { - this.voteKickRequestMessage = value; - } - - - public void selectVoteKickRequestMessage (VoteKickRequestMessage value) { - this.voteKickRequestMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public VoteKickReplyMessage getVoteKickReplyMessage () { - return this.voteKickReplyMessage; - } - - public boolean isVoteKickReplyMessageSelected () { - return this.voteKickReplyMessage != null; - } - - private void setVoteKickReplyMessage (VoteKickReplyMessage value) { - this.voteKickReplyMessage = value; - } - - - public void selectVoteKickReplyMessage (VoteKickReplyMessage value) { - this.voteKickReplyMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public KickPetitionUpdateMessage getKickPetitionUpdateMessage () { - return this.kickPetitionUpdateMessage; - } - - public boolean isKickPetitionUpdateMessageSelected () { - return this.kickPetitionUpdateMessage != null; - } - - private void setKickPetitionUpdateMessage (KickPetitionUpdateMessage value) { - this.kickPetitionUpdateMessage = value; - } - - - public void selectKickPetitionUpdateMessage (KickPetitionUpdateMessage value) { - this.kickPetitionUpdateMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public EndKickPetitionMessage getEndKickPetitionMessage () { - return this.endKickPetitionMessage; - } - - public boolean isEndKickPetitionMessageSelected () { - return this.endKickPetitionMessage != null; - } - - private void setEndKickPetitionMessage (EndKickPetitionMessage value) { - this.endKickPetitionMessage = value; - } - - - public void selectEndKickPetitionMessage (EndKickPetitionMessage value) { - this.endKickPetitionMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public StatisticsMessage getStatisticsMessage () { - return this.statisticsMessage; - } - - public boolean isStatisticsMessageSelected () { - return this.statisticsMessage != null; - } - - private void setStatisticsMessage (StatisticsMessage value) { - this.statisticsMessage = value; - } - - - public void selectStatisticsMessage (StatisticsMessage value) { - this.statisticsMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public ChatRequestMessage getChatRequestMessage () { - return this.chatRequestMessage; - } - - public boolean isChatRequestMessageSelected () { - return this.chatRequestMessage != null; - } - - private void setChatRequestMessage (ChatRequestMessage value) { - this.chatRequestMessage = value; - } - - - public void selectChatRequestMessage (ChatRequestMessage value) { - this.chatRequestMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public ChatMessage getChatMessage () { - return this.chatMessage; - } - - public boolean isChatMessageSelected () { - return this.chatMessage != null; - } - - private void setChatMessage (ChatMessage value) { - this.chatMessage = value; - } - - - public void selectChatMessage (ChatMessage value) { - this.chatMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public ChatRejectMessage getChatRejectMessage () { - return this.chatRejectMessage; - } - - public boolean isChatRejectMessageSelected () { - return this.chatRejectMessage != null; - } - - private void setChatRejectMessage (ChatRejectMessage value) { - this.chatRejectMessage = value; - } - - - public void selectChatRejectMessage (ChatRejectMessage value) { - this.chatRejectMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public DialogMessage getDialogMessage () { - return this.dialogMessage; - } - - public boolean isDialogMessageSelected () { - return this.dialogMessage != null; - } - - private void setDialogMessage (DialogMessage value) { - this.dialogMessage = value; - } - - - public void selectDialogMessage (DialogMessage value) { - this.dialogMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public TimeoutWarningMessage getTimeoutWarningMessage () { - return this.timeoutWarningMessage; - } - - public boolean isTimeoutWarningMessageSelected () { - return this.timeoutWarningMessage != null; - } - - private void setTimeoutWarningMessage (TimeoutWarningMessage value) { - this.timeoutWarningMessage = value; - } - - - public void selectTimeoutWarningMessage (TimeoutWarningMessage value) { - this.timeoutWarningMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public ResetTimeoutMessage getResetTimeoutMessage () { - return this.resetTimeoutMessage; - } - - public boolean isResetTimeoutMessageSelected () { - return this.resetTimeoutMessage != null; - } - - private void setResetTimeoutMessage (ResetTimeoutMessage value) { - this.resetTimeoutMessage = value; - } - - - public void selectResetTimeoutMessage (ResetTimeoutMessage value) { - this.resetTimeoutMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public ReportAvatarMessage getReportAvatarMessage () { - return this.reportAvatarMessage; - } - - public boolean isReportAvatarMessageSelected () { - return this.reportAvatarMessage != null; - } - - private void setReportAvatarMessage (ReportAvatarMessage value) { - this.reportAvatarMessage = value; - } - - - public void selectReportAvatarMessage (ReportAvatarMessage value) { - this.reportAvatarMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarAckMessage(null); - - setErrorMessage(null); - - } - - - - - public ReportAvatarAckMessage getReportAvatarAckMessage () { - return this.reportAvatarAckMessage; - } - - public boolean isReportAvatarAckMessageSelected () { - return this.reportAvatarAckMessage != null; - } - - private void setReportAvatarAckMessage (ReportAvatarAckMessage value) { - this.reportAvatarAckMessage = value; - } - - - public void selectReportAvatarAckMessage (ReportAvatarAckMessage value) { - this.reportAvatarAckMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setErrorMessage(null); - - } - - - - - public ErrorMessage getErrorMessage () { - return this.errorMessage; - } - - public boolean isErrorMessageSelected () { - return this.errorMessage != null; - } - - private void setErrorMessage (ErrorMessage value) { - this.errorMessage = value; - } - - - public void selectErrorMessage (ErrorMessage value) { - this.errorMessage = value; - - setAnnounceMessage(null); - - setInitMessage(null); - - setAuthMessage(null); - - setInitAckMessage(null); - - setAvatarRequestMessage(null); - - setAvatarReplyMessage(null); - - setPlayerListMessage(null); - - setGameListMessage(null); - - setPlayerInfoRequestMessage(null); - - setPlayerInfoReplyMessage(null); - - setSubscriptionRequestMessage(null); - - setJoinGameRequestMessage(null); - - setJoinGameReplyMessage(null); - - setGamePlayerMessage(null); - - setKickPlayerRequestMessage(null); - - setLeaveGameRequestMessage(null); - - setInvitePlayerToGameMessage(null); - - setInviteNotifyMessage(null); - - setRejectGameInvitationMessage(null); - - setRejectInvNotifyMessage(null); - - setStartEventMessage(null); - - setStartEventAckMessage(null); - - setGameStartMessage(null); - - setHandStartMessage(null); - - setPlayersTurnMessage(null); - - setMyActionRequestMessage(null); - - setYourActionRejectedMessage(null); - - setPlayersActionDoneMessage(null); - - setDealFlopCardsMessage(null); - - setDealTurnCardMessage(null); - - setDealRiverCardMessage(null); - - setAllInShowCardsMessage(null); - - setEndOfHandMessage(null); - - setShowMyCardsRequestMessage(null); - - setAfterHandShowCardsMessage(null); - - setEndOfGameMessage(null); - - setPlayerIdChangedMessage(null); - - setAskKickPlayerMessage(null); - - setAskKickDeniedMessage(null); - - setStartKickPetitionMessage(null); - - setVoteKickRequestMessage(null); - - setVoteKickReplyMessage(null); - - setKickPetitionUpdateMessage(null); - - setEndKickPetitionMessage(null); - - setStatisticsMessage(null); - - setChatRequestMessage(null); - - setChatMessage(null); - - setChatRejectMessage(null); - - setDialogMessage(null); - - setTimeoutWarningMessage(null); - - setResetTimeoutMessage(null); - - setReportAvatarMessage(null); - - setReportAvatarAckMessage(null); - - } - - - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(PokerTHMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/RejectGameInvReason.java b/tests/src/pokerth_protocol/RejectGameInvReason.java deleted file mode 100644 index 34cda4b4..00000000 --- a/tests/src/pokerth_protocol/RejectGameInvReason.java +++ /dev/null @@ -1,60 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Enum ( - name = "RejectGameInvReason" - ) - public class RejectGameInvReason implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "no", hasTag = true , tag = 0 ) - no , - @ASN1EnumItem ( name = "busy", hasTag = true , tag = 1 ) - busy , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(RejectGameInvReason.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/RejectGameInvitationMessage.java b/tests/src/pokerth_protocol/RejectGameInvitationMessage.java deleted file mode 100644 index 3cb0fda5..00000000 --- a/tests/src/pokerth_protocol/RejectGameInvitationMessage.java +++ /dev/null @@ -1,111 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "RejectGameInvitationMessage" ) - public class RejectGameInvitationMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "RejectGameInvitationMessage" , isSet = false ) - public static class RejectGameInvitationMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "myRejectReason", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private RejectGameInvReason myRejectReason = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public RejectGameInvReason getMyRejectReason () { - return this.myRejectReason; - } - - - - public void setMyRejectReason (RejectGameInvReason value) { - this.myRejectReason = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_RejectGameInvitationMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_RejectGameInvitationMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(RejectGameInvitationMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "RejectGameInvitationMessage", isOptional = false , hasTag = true, tag = 18, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private RejectGameInvitationMessageSequenceType value; - - - - public RejectGameInvitationMessage () { - } - - - - public void setValue(RejectGameInvitationMessageSequenceType value) { - this.value = value; - } - - - - public RejectGameInvitationMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(RejectGameInvitationMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/RejectInvNotifyMessage.java b/tests/src/pokerth_protocol/RejectInvNotifyMessage.java deleted file mode 100644 index 54cc084c..00000000 --- a/tests/src/pokerth_protocol/RejectInvNotifyMessage.java +++ /dev/null @@ -1,128 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "RejectInvNotifyMessage" ) - public class RejectInvNotifyMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "RejectInvNotifyMessage" , isSet = false ) - public static class RejectInvNotifyMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - @ASN1Element ( name = "playerRejectReason", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private RejectGameInvReason playerRejectReason = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - public RejectGameInvReason getPlayerRejectReason () { - return this.playerRejectReason; - } - - - - public void setPlayerRejectReason (RejectGameInvReason value) { - this.playerRejectReason = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_RejectInvNotifyMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_RejectInvNotifyMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(RejectInvNotifyMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "RejectInvNotifyMessage", isOptional = false , hasTag = true, tag = 19, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private RejectInvNotifyMessageSequenceType value; - - - - public RejectInvNotifyMessage () { - } - - - - public void setValue(RejectInvNotifyMessageSequenceType value) { - this.value = value; - } - - - - public RejectInvNotifyMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(RejectInvNotifyMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/RejoinEvent.java b/tests/src/pokerth_protocol/RejoinEvent.java deleted file mode 100644 index d3d38c4b..00000000 --- a/tests/src/pokerth_protocol/RejoinEvent.java +++ /dev/null @@ -1,35 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "RejoinEvent", isSet = false ) - public class RejoinEvent implements IASN1PreparedElement { - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(RejoinEvent.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/RejoinExistingGame.java b/tests/src/pokerth_protocol/RejoinExistingGame.java deleted file mode 100644 index 3d809370..00000000 --- a/tests/src/pokerth_protocol/RejoinExistingGame.java +++ /dev/null @@ -1,52 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "RejoinExistingGame", isSet = false ) - public class RejoinExistingGame implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(RejoinExistingGame.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/RejoinPlayerData.java b/tests/src/pokerth_protocol/RejoinPlayerData.java deleted file mode 100644 index 79eed2c5..00000000 --- a/tests/src/pokerth_protocol/RejoinPlayerData.java +++ /dev/null @@ -1,69 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "RejoinPlayerData", isSet = false ) - public class RejoinPlayerData implements IASN1PreparedElement { - - @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId playerId = null; - - - @ASN1Element ( name = "playerMoney", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AmountOfMoney playerMoney = null; - - - - public NonZeroId getPlayerId () { - return this.playerId; - } - - - - public void setPlayerId (NonZeroId value) { - this.playerId = value; - } - - - - public AmountOfMoney getPlayerMoney () { - return this.playerMoney; - } - - - - public void setPlayerMoney (AmountOfMoney value) { - this.playerMoney = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(RejoinPlayerData.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/RemovedFromGame.java b/tests/src/pokerth_protocol/RemovedFromGame.java deleted file mode 100644 index c5642958..00000000 --- a/tests/src/pokerth_protocol/RemovedFromGame.java +++ /dev/null @@ -1,103 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "RemovedFromGame", isSet = false ) - public class RemovedFromGame implements IASN1PreparedElement { - - - @ASN1PreparedElement - @ASN1Enum ( - name = "RemovedFromGameReasonEnumType" - ) - public static class RemovedFromGameReasonEnumType implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "removedOnRequest", hasTag = true , tag = 0 ) - removedOnRequest , - @ASN1EnumItem ( name = "kickedFromGame", hasTag = true , tag = 1 ) - kickedFromGame , - @ASN1EnumItem ( name = "gameIsFull", hasTag = true , tag = 2 ) - gameIsFull , - @ASN1EnumItem ( name = "gameIsRunning", hasTag = true , tag = 3 ) - gameIsRunning , - @ASN1EnumItem ( name = "gameTimeout", hasTag = true , tag = 4 ) - gameTimeout , - @ASN1EnumItem ( name = "removedStartFailed", hasTag = true , tag = 5 ) - removedStartFailed , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(RemovedFromGameReasonEnumType.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - } - - @ASN1Element ( name = "removedFromGameReason", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private RemovedFromGameReasonEnumType removedFromGameReason = null; - - - - public RemovedFromGameReasonEnumType getRemovedFromGameReason () { - return this.removedFromGameReason; - } - - - - public void setRemovedFromGameReason (RemovedFromGameReasonEnumType value) { - this.removedFromGameReason = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(RemovedFromGame.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/ReportAvatarAckMessage.java b/tests/src/pokerth_protocol/ReportAvatarAckMessage.java deleted file mode 100644 index 6a02c433..00000000 --- a/tests/src/pokerth_protocol/ReportAvatarAckMessage.java +++ /dev/null @@ -1,156 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "ReportAvatarAckMessage" ) - public class ReportAvatarAckMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "ReportAvatarAckMessage" , isSet = false ) - public static class ReportAvatarAckMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "reportedPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId reportedPlayerId = null; - - - - @ASN1PreparedElement - @ASN1Enum ( - name = "ReportResultEnumType" - ) - public static class ReportResultEnumType implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "avatarReportAccepted", hasTag = true , tag = 0 ) - avatarReportAccepted , - @ASN1EnumItem ( name = "avatarReportDuplicate", hasTag = true , tag = 1 ) - avatarReportDuplicate , - @ASN1EnumItem ( name = "avatarReportInvalid", hasTag = true , tag = 2 ) - avatarReportInvalid , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ReportResultEnumType.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - } - - @ASN1Element ( name = "reportResult", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private ReportResultEnumType reportResult = null; - - - - public NonZeroId getReportedPlayerId () { - return this.reportedPlayerId; - } - - - - public void setReportedPlayerId (NonZeroId value) { - this.reportedPlayerId = value; - } - - - - public ReportResultEnumType getReportResult () { - return this.reportResult; - } - - - - public void setReportResult (ReportResultEnumType value) { - this.reportResult = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_ReportAvatarAckMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_ReportAvatarAckMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(ReportAvatarAckMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "ReportAvatarAckMessage", isOptional = false , hasTag = true, tag = 136, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private ReportAvatarAckMessageSequenceType value; - - - - public ReportAvatarAckMessage () { - } - - - - public void setValue(ReportAvatarAckMessageSequenceType value) { - this.value = value; - } - - - - public ReportAvatarAckMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ReportAvatarAckMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/ReportAvatarMessage.java b/tests/src/pokerth_protocol/ReportAvatarMessage.java deleted file mode 100644 index 6c5f6db9..00000000 --- a/tests/src/pokerth_protocol/ReportAvatarMessage.java +++ /dev/null @@ -1,111 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "ReportAvatarMessage" ) - public class ReportAvatarMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "ReportAvatarMessage" , isSet = false ) - public static class ReportAvatarMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "reportedPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId reportedPlayerId = null; - - - @ASN1Element ( name = "reportedAvatar", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AvatarHash reportedAvatar = null; - - - - public NonZeroId getReportedPlayerId () { - return this.reportedPlayerId; - } - - - - public void setReportedPlayerId (NonZeroId value) { - this.reportedPlayerId = value; - } - - - - public AvatarHash getReportedAvatar () { - return this.reportedAvatar; - } - - - - public void setReportedAvatar (AvatarHash value) { - this.reportedAvatar = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_ReportAvatarMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_ReportAvatarMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(ReportAvatarMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "ReportAvatarMessage", isOptional = false , hasTag = true, tag = 135, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private ReportAvatarMessageSequenceType value; - - - - public ReportAvatarMessage () { - } - - - - public void setValue(ReportAvatarMessageSequenceType value) { - this.value = value; - } - - - - public ReportAvatarMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ReportAvatarMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/ResetTimeoutMessage.java b/tests/src/pokerth_protocol/ResetTimeoutMessage.java deleted file mode 100644 index c30efaa6..00000000 --- a/tests/src/pokerth_protocol/ResetTimeoutMessage.java +++ /dev/null @@ -1,77 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "ResetTimeoutMessage" ) - public class ResetTimeoutMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "ResetTimeoutMessage" , isSet = false ) - public static class ResetTimeoutMessageSequenceType implements IASN1PreparedElement { - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_ResetTimeoutMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_ResetTimeoutMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(ResetTimeoutMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "ResetTimeoutMessage", isOptional = false , hasTag = true, tag = 134, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private ResetTimeoutMessageSequenceType value; - - - - public ResetTimeoutMessage () { - } - - - - public void setValue(ResetTimeoutMessageSequenceType value) { - this.value = value; - } - - - - public ResetTimeoutMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ResetTimeoutMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/ShowMyCardsRequestMessage.java b/tests/src/pokerth_protocol/ShowMyCardsRequestMessage.java deleted file mode 100644 index d2e542ca..00000000 --- a/tests/src/pokerth_protocol/ShowMyCardsRequestMessage.java +++ /dev/null @@ -1,77 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "ShowMyCardsRequestMessage" ) - public class ShowMyCardsRequestMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "ShowMyCardsRequestMessage" , isSet = false ) - public static class ShowMyCardsRequestMessageSequenceType implements IASN1PreparedElement { - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_ShowMyCardsRequestMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_ShowMyCardsRequestMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(ShowMyCardsRequestMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "ShowMyCardsRequestMessage", isOptional = false , hasTag = true, tag = 33, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private ShowMyCardsRequestMessageSequenceType value; - - - - public ShowMyCardsRequestMessage () { - } - - - - public void setValue(ShowMyCardsRequestMessageSequenceType value) { - this.value = value; - } - - - - public ShowMyCardsRequestMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(ShowMyCardsRequestMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/StartEvent.java b/tests/src/pokerth_protocol/StartEvent.java deleted file mode 100644 index 64a8cbad..00000000 --- a/tests/src/pokerth_protocol/StartEvent.java +++ /dev/null @@ -1,53 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "StartEvent", isSet = false ) - public class StartEvent implements IASN1PreparedElement { - @ASN1Boolean( name = "" ) - - @ASN1Element ( name = "fillWithComputerPlayers", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Boolean fillWithComputerPlayers = null; - - - - public Boolean getFillWithComputerPlayers () { - return this.fillWithComputerPlayers; - } - - - - public void setFillWithComputerPlayers (Boolean value) { - this.fillWithComputerPlayers = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(StartEvent.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/StartEventAckMessage.java b/tests/src/pokerth_protocol/StartEventAckMessage.java deleted file mode 100644 index 694876af..00000000 --- a/tests/src/pokerth_protocol/StartEventAckMessage.java +++ /dev/null @@ -1,94 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "StartEventAckMessage" ) - public class StartEventAckMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "StartEventAckMessage" , isSet = false ) - public static class StartEventAckMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_StartEventAckMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_StartEventAckMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(StartEventAckMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "StartEventAckMessage", isOptional = false , hasTag = true, tag = 21, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private StartEventAckMessageSequenceType value; - - - - public StartEventAckMessage () { - } - - - - public void setValue(StartEventAckMessageSequenceType value) { - this.value = value; - } - - - - public StartEventAckMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(StartEventAckMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/StartEventMessage.java b/tests/src/pokerth_protocol/StartEventMessage.java deleted file mode 100644 index e69daa53..00000000 --- a/tests/src/pokerth_protocol/StartEventMessage.java +++ /dev/null @@ -1,185 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "StartEventMessage" ) - public class StartEventMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "StartEventMessage" , isSet = false ) - public static class StartEventMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - - @ASN1PreparedElement - @ASN1Choice ( name = "startEventType" ) - public static class StartEventTypeChoiceType implements IASN1PreparedElement { - - @ASN1Element ( name = "startEvent", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false ) - - private StartEvent startEvent = null; - - - @ASN1Element ( name = "rejoinEvent", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false ) - - private RejoinEvent rejoinEvent = null; - - - - public StartEvent getStartEvent () { - return this.startEvent; - } - - public boolean isStartEventSelected () { - return this.startEvent != null; - } - - private void setStartEvent (StartEvent value) { - this.startEvent = value; - } - - - public void selectStartEvent (StartEvent value) { - this.startEvent = value; - - setRejoinEvent(null); - - } - - - - - public RejoinEvent getRejoinEvent () { - return this.rejoinEvent; - } - - public boolean isRejoinEventSelected () { - return this.rejoinEvent != null; - } - - private void setRejoinEvent (RejoinEvent value) { - this.rejoinEvent = value; - } - - - public void selectRejoinEvent (RejoinEvent value) { - this.rejoinEvent = value; - - setStartEvent(null); - - } - - - - - public void initWithDefaults() { - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_StartEventTypeChoiceType; - } - - private static IASN1PreparedElementData preparedData_StartEventTypeChoiceType = CoderFactory.getInstance().newPreparedElementData(StartEventTypeChoiceType.class); - - } - - - @ASN1Element ( name = "startEventType", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private StartEventTypeChoiceType startEventType = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public StartEventTypeChoiceType getStartEventType () { - return this.startEventType; - } - - - - public void setStartEventType (StartEventTypeChoiceType value) { - this.startEventType = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_StartEventMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_StartEventMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(StartEventMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "StartEventMessage", isOptional = false , hasTag = true, tag = 20, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private StartEventMessageSequenceType value; - - - - public StartEventMessage () { - } - - - - public void setValue(StartEventMessageSequenceType value) { - this.value = value; - } - - - - public StartEventMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(StartEventMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/StartKickPetitionMessage.java b/tests/src/pokerth_protocol/StartKickPetitionMessage.java deleted file mode 100644 index 6f4795bf..00000000 --- a/tests/src/pokerth_protocol/StartKickPetitionMessage.java +++ /dev/null @@ -1,195 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "StartKickPetitionMessage" ) - public class StartKickPetitionMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "StartKickPetitionMessage" , isSet = false ) - public static class StartKickPetitionMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "petitionId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId petitionId = null; - - - @ASN1Element ( name = "proposingPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId proposingPlayerId = null; - - - @ASN1Element ( name = "kickPlayerId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId kickPlayerId = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 120L - - ) - - @ASN1Element ( name = "kickTimeoutSec", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer kickTimeoutSec = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 9L - - ) - - @ASN1Element ( name = "numVotesNeededToKick", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer numVotesNeededToKick = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NonZeroId getPetitionId () { - return this.petitionId; - } - - - - public void setPetitionId (NonZeroId value) { - this.petitionId = value; - } - - - - public NonZeroId getProposingPlayerId () { - return this.proposingPlayerId; - } - - - - public void setProposingPlayerId (NonZeroId value) { - this.proposingPlayerId = value; - } - - - - public NonZeroId getKickPlayerId () { - return this.kickPlayerId; - } - - - - public void setKickPlayerId (NonZeroId value) { - this.kickPlayerId = value; - } - - - - public Integer getKickTimeoutSec () { - return this.kickTimeoutSec; - } - - - - public void setKickTimeoutSec (Integer value) { - this.kickTimeoutSec = value; - } - - - - public Integer getNumVotesNeededToKick () { - return this.numVotesNeededToKick; - } - - - - public void setNumVotesNeededToKick (Integer value) { - this.numVotesNeededToKick = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_StartKickPetitionMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_StartKickPetitionMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(StartKickPetitionMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "StartKickPetitionMessage", isOptional = false , hasTag = true, tag = 66, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private StartKickPetitionMessageSequenceType value; - - - - public StartKickPetitionMessage () { - } - - - - public void setValue(StartKickPetitionMessageSequenceType value) { - this.value = value; - } - - - - public StartKickPetitionMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(StartKickPetitionMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/StatisticsData.java b/tests/src/pokerth_protocol/StatisticsData.java deleted file mode 100644 index 3ab046b8..00000000 --- a/tests/src/pokerth_protocol/StatisticsData.java +++ /dev/null @@ -1,111 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "StatisticsData", isSet = false ) - public class StatisticsData implements IASN1PreparedElement { - - - @ASN1PreparedElement - @ASN1Enum ( - name = "StatisticsTypeEnumType" - ) - public static class StatisticsTypeEnumType implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "statNumberOfPlayers", hasTag = true , tag = 1 ) - statNumberOfPlayers , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(StatisticsTypeEnumType.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - } - - @ASN1Element ( name = "statisticsType", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private StatisticsTypeEnumType statisticsType = null; - - @ASN1Integer( name = "" ) - - @ASN1Element ( name = "statisticsValue", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Long statisticsValue = null; - - - - public StatisticsTypeEnumType getStatisticsType () { - return this.statisticsType; - } - - - - public void setStatisticsType (StatisticsTypeEnumType value) { - this.statisticsType = value; - } - - - - public Long getStatisticsValue () { - return this.statisticsValue; - } - - - - public void setStatisticsValue (Long value) { - this.statisticsValue = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(StatisticsData.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/StatisticsMessage.java b/tests/src/pokerth_protocol/StatisticsMessage.java deleted file mode 100644 index a46150ad..00000000 --- a/tests/src/pokerth_protocol/StatisticsMessage.java +++ /dev/null @@ -1,104 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "StatisticsMessage" ) - public class StatisticsMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "StatisticsMessage" , isSet = false ) - public static class StatisticsMessageSequenceType implements IASN1PreparedElement { - -@ASN1SequenceOf( name = "statisticsData", isSetOf = false ) - - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 32L - - ) - - @ASN1Element ( name = "statisticsData", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private java.util.Collection statisticsData = null; - - - - public java.util.Collection getStatisticsData () { - return this.statisticsData; - } - - - - public void setStatisticsData (java.util.Collection value) { - this.statisticsData = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_StatisticsMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_StatisticsMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(StatisticsMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "StatisticsMessage", isOptional = false , hasTag = true, tag = 128, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private StatisticsMessageSequenceType value; - - - - public StatisticsMessage () { - } - - - - public void setValue(StatisticsMessageSequenceType value) { - this.value = value; - } - - - - public StatisticsMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(StatisticsMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/SubscriptionRequestMessage.java b/tests/src/pokerth_protocol/SubscriptionRequestMessage.java deleted file mode 100644 index c1fd9616..00000000 --- a/tests/src/pokerth_protocol/SubscriptionRequestMessage.java +++ /dev/null @@ -1,137 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "SubscriptionRequestMessage" ) - public class SubscriptionRequestMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "SubscriptionRequestMessage" , isSet = false ) - public static class SubscriptionRequestMessageSequenceType implements IASN1PreparedElement { - - - @ASN1PreparedElement - @ASN1Enum ( - name = "SubscriptionActionEnumType" - ) - public static class SubscriptionActionEnumType implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "unsubscribeGameList", hasTag = true , tag = 1 ) - unsubscribeGameList , - @ASN1EnumItem ( name = "resubscribeGameList", hasTag = true , tag = 2 ) - resubscribeGameList , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(SubscriptionActionEnumType.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - } - - @ASN1Element ( name = "subscriptionAction", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private SubscriptionActionEnumType subscriptionAction = null; - - - - public SubscriptionActionEnumType getSubscriptionAction () { - return this.subscriptionAction; - } - - - - public void setSubscriptionAction (SubscriptionActionEnumType value) { - this.subscriptionAction = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_SubscriptionRequestMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_SubscriptionRequestMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(SubscriptionRequestMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "SubscriptionRequestMessage", isOptional = false , hasTag = true, tag = 10, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private SubscriptionRequestMessageSequenceType value; - - - - public SubscriptionRequestMessage () { - } - - - - public void setValue(SubscriptionRequestMessageSequenceType value) { - this.value = value; - } - - - - public SubscriptionRequestMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(SubscriptionRequestMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/TimeoutWarningMessage.java b/tests/src/pokerth_protocol/TimeoutWarningMessage.java deleted file mode 100644 index a74a0699..00000000 --- a/tests/src/pokerth_protocol/TimeoutWarningMessage.java +++ /dev/null @@ -1,157 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "TimeoutWarningMessage" ) - public class TimeoutWarningMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "TimeoutWarningMessage" , isSet = false ) - public static class TimeoutWarningMessageSequenceType implements IASN1PreparedElement { - - - @ASN1PreparedElement - @ASN1Enum ( - name = "TimeoutReasonEnumType" - ) - public static class TimeoutReasonEnumType implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "timeoutNoDataReceived", hasTag = true , tag = 0 ) - timeoutNoDataReceived , - @ASN1EnumItem ( name = "timeoutInactiveGame", hasTag = true , tag = 1 ) - timeoutInactiveGame , - @ASN1EnumItem ( name = "timeoutKickAfterAutofold", hasTag = true , tag = 2 ) - timeoutKickAfterAutofold , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(TimeoutReasonEnumType.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - } - - @ASN1Element ( name = "timeoutReason", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private TimeoutReasonEnumType timeoutReason = null; - - @ASN1Integer( name = "" ) - - @ASN1Element ( name = "remainingSeconds", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Long remainingSeconds = null; - - - - public TimeoutReasonEnumType getTimeoutReason () { - return this.timeoutReason; - } - - - - public void setTimeoutReason (TimeoutReasonEnumType value) { - this.timeoutReason = value; - } - - - - public Long getRemainingSeconds () { - return this.remainingSeconds; - } - - - - public void setRemainingSeconds (Long value) { - this.remainingSeconds = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_TimeoutWarningMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_TimeoutWarningMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(TimeoutWarningMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "TimeoutWarningMessage", isOptional = false , hasTag = true, tag = 133, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private TimeoutWarningMessageSequenceType value; - - - - public TimeoutWarningMessage () { - } - - - - public void setValue(TimeoutWarningMessageSequenceType value) { - this.value = value; - } - - - - public TimeoutWarningMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(TimeoutWarningMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/UnauthenticatedLogin.java b/tests/src/pokerth_protocol/UnauthenticatedLogin.java deleted file mode 100644 index 08000bfe..00000000 --- a/tests/src/pokerth_protocol/UnauthenticatedLogin.java +++ /dev/null @@ -1,83 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "UnauthenticatedLogin", isSet = false ) - public class UnauthenticatedLogin implements IASN1PreparedElement { - - @ASN1String( name = "", - stringType = UniversalTag.UTF8String , isUCS = false ) - @ASN1ValueRangeConstraint ( - - min = 1L, - - max = 64L - - ) - - @ASN1Element ( name = "nickName", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private String nickName = null; - - - @ASN1Element ( name = "avatar", isOptional = true , hasTag = false , hasDefaultValue = false ) - - private AvatarHash avatar = null; - - - - public String getNickName () { - return this.nickName; - } - - - - public void setNickName (String value) { - this.nickName = value; - } - - - - public AvatarHash getAvatar () { - return this.avatar; - } - - - public boolean isAvatarPresent () { - return this.avatar != null; - } - - - public void setAvatar (AvatarHash value) { - this.avatar = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(UnauthenticatedLogin.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/UnknownAvatar.java b/tests/src/pokerth_protocol/UnknownAvatar.java deleted file mode 100644 index f8e2c284..00000000 --- a/tests/src/pokerth_protocol/UnknownAvatar.java +++ /dev/null @@ -1,35 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "UnknownAvatar", isSet = false ) - public class UnknownAvatar implements IASN1PreparedElement { - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(UnknownAvatar.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/UnknownPlayerInfo.java b/tests/src/pokerth_protocol/UnknownPlayerInfo.java deleted file mode 100644 index a4f4ed9f..00000000 --- a/tests/src/pokerth_protocol/UnknownPlayerInfo.java +++ /dev/null @@ -1,35 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "UnknownPlayerInfo", isSet = false ) - public class UnknownPlayerInfo implements IASN1PreparedElement { - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(UnknownPlayerInfo.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/Version.java b/tests/src/pokerth_protocol/Version.java deleted file mode 100644 index 5e249ec5..00000000 --- a/tests/src/pokerth_protocol/Version.java +++ /dev/null @@ -1,85 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "Version", isSet = false ) - public class Version implements IASN1PreparedElement { - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 0L, - - max = 65535L - - ) - - @ASN1Element ( name = "major", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer major = null; - - @ASN1Integer( name = "" ) - @ASN1ValueRangeConstraint ( - - min = 0L, - - max = 65535L - - ) - - @ASN1Element ( name = "minor", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Integer minor = null; - - - - public Integer getMajor () { - return this.major; - } - - - - public void setMajor (Integer value) { - this.major = value; - } - - - - public Integer getMinor () { - return this.minor; - } - - - - public void setMinor (Integer value) { - this.minor = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(Version.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/VoteKickAck.java b/tests/src/pokerth_protocol/VoteKickAck.java deleted file mode 100644 index 26d673c3..00000000 --- a/tests/src/pokerth_protocol/VoteKickAck.java +++ /dev/null @@ -1,35 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "VoteKickAck", isSet = false ) - public class VoteKickAck implements IASN1PreparedElement { - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(VoteKickAck.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/VoteKickDenied.java b/tests/src/pokerth_protocol/VoteKickDenied.java deleted file mode 100644 index f2ceaad1..00000000 --- a/tests/src/pokerth_protocol/VoteKickDenied.java +++ /dev/null @@ -1,95 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "VoteKickDenied", isSet = false ) - public class VoteKickDenied implements IASN1PreparedElement { - - - @ASN1PreparedElement - @ASN1Enum ( - name = "VoteKickDeniedReasonEnumType" - ) - public static class VoteKickDeniedReasonEnumType implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "voteKickDeniedInvalid", hasTag = true , tag = 0 ) - voteKickDeniedInvalid , - @ASN1EnumItem ( name = "voteKickDeniedAlreadyVoted", hasTag = true , tag = 1 ) - voteKickDeniedAlreadyVoted , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(VoteKickDeniedReasonEnumType.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - } - - @ASN1Element ( name = "voteKickDeniedReason", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private VoteKickDeniedReasonEnumType voteKickDeniedReason = null; - - - - public VoteKickDeniedReasonEnumType getVoteKickDeniedReason () { - return this.voteKickDeniedReason; - } - - - - public void setVoteKickDeniedReason (VoteKickDeniedReasonEnumType value) { - this.voteKickDeniedReason = value; - } - - - - - public void initWithDefaults() { - - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(VoteKickDenied.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/VoteKickReplyMessage.java b/tests/src/pokerth_protocol/VoteKickReplyMessage.java deleted file mode 100644 index d280b4ce..00000000 --- a/tests/src/pokerth_protocol/VoteKickReplyMessage.java +++ /dev/null @@ -1,202 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "VoteKickReplyMessage" ) - public class VoteKickReplyMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "VoteKickReplyMessage" , isSet = false ) - public static class VoteKickReplyMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "petitionId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId petitionId = null; - - - - @ASN1PreparedElement - @ASN1Choice ( name = "voteKickReplyType" ) - public static class VoteKickReplyTypeChoiceType implements IASN1PreparedElement { - - @ASN1Element ( name = "voteKickAck", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false ) - - private VoteKickAck voteKickAck = null; - - - @ASN1Element ( name = "voteKickDenied", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false ) - - private VoteKickDenied voteKickDenied = null; - - - - public VoteKickAck getVoteKickAck () { - return this.voteKickAck; - } - - public boolean isVoteKickAckSelected () { - return this.voteKickAck != null; - } - - private void setVoteKickAck (VoteKickAck value) { - this.voteKickAck = value; - } - - - public void selectVoteKickAck (VoteKickAck value) { - this.voteKickAck = value; - - setVoteKickDenied(null); - - } - - - - - public VoteKickDenied getVoteKickDenied () { - return this.voteKickDenied; - } - - public boolean isVoteKickDeniedSelected () { - return this.voteKickDenied != null; - } - - private void setVoteKickDenied (VoteKickDenied value) { - this.voteKickDenied = value; - } - - - public void selectVoteKickDenied (VoteKickDenied value) { - this.voteKickDenied = value; - - setVoteKickAck(null); - - } - - - - - public void initWithDefaults() { - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_VoteKickReplyTypeChoiceType; - } - - private static IASN1PreparedElementData preparedData_VoteKickReplyTypeChoiceType = CoderFactory.getInstance().newPreparedElementData(VoteKickReplyTypeChoiceType.class); - - } - - - @ASN1Element ( name = "voteKickReplyType", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private VoteKickReplyTypeChoiceType voteKickReplyType = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NonZeroId getPetitionId () { - return this.petitionId; - } - - - - public void setPetitionId (NonZeroId value) { - this.petitionId = value; - } - - - - public VoteKickReplyTypeChoiceType getVoteKickReplyType () { - return this.voteKickReplyType; - } - - - - public void setVoteKickReplyType (VoteKickReplyTypeChoiceType value) { - this.voteKickReplyType = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_VoteKickReplyMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_VoteKickReplyMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(VoteKickReplyMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "VoteKickReplyMessage", isOptional = false , hasTag = true, tag = 68, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private VoteKickReplyMessageSequenceType value; - - - - public VoteKickReplyMessage () { - } - - - - public void setValue(VoteKickReplyMessageSequenceType value) { - this.value = value; - } - - - - public VoteKickReplyMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(VoteKickReplyMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/VoteKickRequestMessage.java b/tests/src/pokerth_protocol/VoteKickRequestMessage.java deleted file mode 100644 index 9f4c3a87..00000000 --- a/tests/src/pokerth_protocol/VoteKickRequestMessage.java +++ /dev/null @@ -1,129 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "VoteKickRequestMessage" ) - public class VoteKickRequestMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "VoteKickRequestMessage" , isSet = false ) - public static class VoteKickRequestMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "petitionId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId petitionId = null; - - @ASN1Boolean( name = "" ) - - @ASN1Element ( name = "voteKick", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private Boolean voteKick = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NonZeroId getPetitionId () { - return this.petitionId; - } - - - - public void setPetitionId (NonZeroId value) { - this.petitionId = value; - } - - - - public Boolean getVoteKick () { - return this.voteKick; - } - - - - public void setVoteKick (Boolean value) { - this.voteKick = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_VoteKickRequestMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_VoteKickRequestMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(VoteKickRequestMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "VoteKickRequestMessage", isOptional = false , hasTag = true, tag = 67, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private VoteKickRequestMessageSequenceType value; - - - - public VoteKickRequestMessage () { - } - - - - public void setValue(VoteKickRequestMessageSequenceType value) { - this.value = value; - } - - - - public VoteKickRequestMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(VoteKickRequestMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_protocol/YourActionRejectedMessage.java b/tests/src/pokerth_protocol/YourActionRejectedMessage.java deleted file mode 100644 index 720288c6..00000000 --- a/tests/src/pokerth_protocol/YourActionRejectedMessage.java +++ /dev/null @@ -1,207 +0,0 @@ - -package pokerth_protocol; -// -// This file was generated by the BinaryNotes compiler. -// See http://bnotes.sourceforge.net -// Any modifications to this file will be lost upon recompilation of the source ASN.1. -// - -import org.bn.*; -import org.bn.annotations.*; -import org.bn.annotations.constraints.*; -import org.bn.coders.*; -import org.bn.types.*; - - - - - @ASN1PreparedElement - @ASN1BoxedType ( name = "YourActionRejectedMessage" ) - public class YourActionRejectedMessage implements IASN1PreparedElement { - - - - @ASN1PreparedElement - @ASN1Sequence ( name = "YourActionRejectedMessage" , isSet = false ) - public static class YourActionRejectedMessageSequenceType implements IASN1PreparedElement { - - @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NonZeroId gameId = null; - - - @ASN1Element ( name = "gameState", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NetGameState gameState = null; - - - @ASN1Element ( name = "yourAction", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private NetPlayerAction yourAction = null; - - - @ASN1Element ( name = "yourRelativeBet", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private AmountOfMoney yourRelativeBet = null; - - - - @ASN1PreparedElement - @ASN1Enum ( - name = "RejectionReasonEnumType" - ) - public static class RejectionReasonEnumType implements IASN1PreparedElement { - public enum EnumType { - - @ASN1EnumItem ( name = "rejectedInvalidGameState", hasTag = true , tag = 1 ) - rejectedInvalidGameState , - @ASN1EnumItem ( name = "rejectedNotYourTurn", hasTag = true , tag = 2 ) - rejectedNotYourTurn , - @ASN1EnumItem ( name = "rejectedActionNotAllowed", hasTag = true , tag = 3 ) - rejectedActionNotAllowed , - } - - private EnumType value; - private Integer integerForm; - - public EnumType getValue() { - return this.value; - } - - public void setValue(EnumType value) { - this.value = value; - } - - public Integer getIntegerForm() { - return integerForm; - } - - public void setIntegerForm(Integer value) { - integerForm = value; - } - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(RejectionReasonEnumType.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - } - - @ASN1Element ( name = "rejectionReason", isOptional = false , hasTag = false , hasDefaultValue = false ) - - private RejectionReasonEnumType rejectionReason = null; - - - - public NonZeroId getGameId () { - return this.gameId; - } - - - - public void setGameId (NonZeroId value) { - this.gameId = value; - } - - - - public NetGameState getGameState () { - return this.gameState; - } - - - - public void setGameState (NetGameState value) { - this.gameState = value; - } - - - - public NetPlayerAction getYourAction () { - return this.yourAction; - } - - - - public void setYourAction (NetPlayerAction value) { - this.yourAction = value; - } - - - - public AmountOfMoney getYourRelativeBet () { - return this.yourRelativeBet; - } - - - - public void setYourRelativeBet (AmountOfMoney value) { - this.yourRelativeBet = value; - } - - - - public RejectionReasonEnumType getRejectionReason () { - return this.rejectionReason; - } - - - - public void setRejectionReason (RejectionReasonEnumType value) { - this.rejectionReason = value; - } - - - - - public void initWithDefaults() { - - } - - public IASN1PreparedElementData getPreparedData() { - return preparedData_YourActionRejectedMessageSequenceType; - } - - private static IASN1PreparedElementData preparedData_YourActionRejectedMessageSequenceType = CoderFactory.getInstance().newPreparedElementData(YourActionRejectedMessageSequenceType.class); - - } - - - - @ASN1Element ( name = "YourActionRejectedMessage", isOptional = false , hasTag = true, tag = 26, - tagClass = TagClass.Application , hasDefaultValue = false ) - - private YourActionRejectedMessageSequenceType value; - - - - public YourActionRejectedMessage () { - } - - - - public void setValue(YourActionRejectedMessageSequenceType value) { - this.value = value; - } - - - - public YourActionRejectedMessageSequenceType getValue() { - return this.value; - } - - - public void initWithDefaults() { - } - - private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(YourActionRejectedMessage.class); - public IASN1PreparedElementData getPreparedData() { - return preparedData; - } - - - } - \ No newline at end of file diff --git a/tests/src/pokerth_test/ChatTest.java b/tests/src/pokerth_test/ChatTest.java deleted file mode 100644 index 94941ef6..00000000 --- a/tests/src/pokerth_test/ChatTest.java +++ /dev/null @@ -1,290 +0,0 @@ -/* PokerTH automated tests. - Copyright (C) 2010 Lothar May - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as - published by the Free Software Foundation, either version 3 of the - License, or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . -*/ - -package pokerth_test; - -import static org.junit.Assert.*; - -import java.net.Socket; -import java.util.ArrayList; -import java.util.Collection; - -import org.junit.Test; - -import pokerth_protocol.ChatRequestMessage; -import pokerth_protocol.ChatRequestTypeGame; -import pokerth_protocol.ChatRequestTypeLobby; -import pokerth_protocol.ChatRequestTypePrivate; -import pokerth_protocol.NetGameInfo; -import pokerth_protocol.NonZeroId; -import pokerth_protocol.PokerTHMessage; -import pokerth_protocol.StartEvent; -import pokerth_protocol.StartEventAckMessage; -import pokerth_protocol.StartEventMessage; -import pokerth_protocol.ChatRequestMessage.ChatRequestMessageSequenceType; -import pokerth_protocol.ChatRequestMessage.ChatRequestMessageSequenceType.ChatRequestTypeChoiceType; -import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType; -import pokerth_protocol.NetGameInfo.NetGameTypeEnumType; -import pokerth_protocol.StartEventAckMessage.StartEventAckMessageSequenceType; -import pokerth_protocol.StartEventMessage.StartEventMessageSequenceType; -import pokerth_protocol.StartEventMessage.StartEventMessageSequenceType.StartEventTypeChoiceType; -import pokerth_protocol.InitialNonZeroAmountOfMoney; - - -public class ChatTest extends TestBase { - - final String ChatText = "Hello World ÖÄÜöäüẞ€"; - - PokerTHMessage createLobbyChatMsg(String chatText) { - ChatRequestTypeLobby chatLobby = new ChatRequestTypeLobby(); - ChatRequestTypeChoiceType chatType = new ChatRequestTypeChoiceType(); - chatType.selectChatRequestTypeLobby(chatLobby); - ChatRequestMessageSequenceType chatSeq = new ChatRequestMessageSequenceType(); - chatSeq.setChatRequestType(chatType); - chatSeq.setChatText(chatText); - ChatRequestMessage chatRequest = new ChatRequestMessage(); - chatRequest.setValue(chatSeq); - PokerTHMessage msg = new PokerTHMessage(); - msg.selectChatRequestMessage(chatRequest); - return msg; - } - - PokerTHMessage createGameChatMsg(String chatText, long gameId) { - ChatRequestTypeGame chatGame = new ChatRequestTypeGame(); - chatGame.setGameId(new NonZeroId(gameId)); - ChatRequestTypeChoiceType chatType = new ChatRequestTypeChoiceType(); - chatType.selectChatRequestTypeGame(chatGame); - ChatRequestMessageSequenceType chatSeq = new ChatRequestMessageSequenceType(); - chatSeq.setChatRequestType(chatType); - chatSeq.setChatText(chatText); - ChatRequestMessage chatRequest = new ChatRequestMessage(); - chatRequest.setValue(chatSeq); - PokerTHMessage msg = new PokerTHMessage(); - msg.selectChatRequestMessage(chatRequest); - return msg; - } - - PokerTHMessage createPrivateChatMsg(String chatText, long playerId) { - ChatRequestTypePrivate chatPrivate = new ChatRequestTypePrivate(); - chatPrivate.setTargetPlayerId(new NonZeroId(playerId)); - ChatRequestTypeChoiceType chatType = new ChatRequestTypeChoiceType(); - chatType.selectChatRequestTypePrivate(chatPrivate); - ChatRequestMessageSequenceType chatSeq = new ChatRequestMessageSequenceType(); - chatSeq.setChatRequestType(chatType); - chatSeq.setChatText(chatText); - ChatRequestMessage chatRequest = new ChatRequestMessage(); - chatRequest.setValue(chatSeq); - PokerTHMessage msg = new PokerTHMessage(); - msg.selectChatRequestMessage(chatRequest); - return msg; - } - - @Test - public void testChat() throws Exception { - guestInit(); - - Socket s[] = new Socket[8]; - long playerId[] = new long[8]; - for (int i = 0; i < 8; i++) { - s[i] = new Socket("localhost", 7234); - String username = "test" + (i+1); - String password = username; - playerId[i] = userInit(s[i], username, password); - } - - PokerTHMessage msg = createLobbyChatMsg(ChatText + 1); - // Message as guest user should be rejected. - sendMessage(msg); - do { - msg = receiveMessage(); - } while (msg.isPlayerListMessageSelected()); - assertTrue(msg.isChatRejectMessageSelected()); - assertEquals(ChatText + 1, msg.getChatRejectMessage().getValue().getChatText()); - - // Message as registered user should be sent to other users and guests. - msg = createLobbyChatMsg(ChatText + 2); - sendMessage(msg, s[0]); - - msg = receiveMessage(); - assertTrue(msg.isChatMessageSelected()); - assertEquals(ChatText + 2, msg.getChatMessage().getValue().getChatText()); - assertTrue(msg.getChatMessage().getValue().getChatType().isChatTypeLobbySelected()); - assertEquals(playerId[0], msg.getChatMessage().getValue().getChatType().getChatTypeLobby().getPlayerId().getValue().longValue()); - - for (int i = 0; i < 8; i++) { - do { - msg = receiveMessage(s[i]); - } while (msg.isPlayerListMessageSelected()); - assertTrue(msg.isChatMessageSelected()); - assertEquals(ChatText + 2, msg.getChatMessage().getValue().getChatText()); - assertTrue(msg.getChatMessage().getValue().getChatType().isChatTypeLobbySelected()); - assertEquals(playerId[0], msg.getChatMessage().getValue().getChatType().getChatTypeLobby().getPlayerId().getValue().longValue()); - } - - // A game chat message, if not within a game, should be rejected. - msg = createGameChatMsg(ChatText + 3, 1); - sendMessage(msg); - - msg = receiveMessage(); - assertTrue(msg.isChatRejectMessageSelected()); - assertEquals(ChatText + 3, msg.getChatRejectMessage().getValue().getChatText()); - - msg = createGameChatMsg(ChatText + 4, 1); - sendMessage(msg, s[0]); - - msg = receiveMessage(s[0]); - assertTrue(msg.isChatRejectMessageSelected()); - assertEquals(ChatText + 4, msg.getChatRejectMessage().getValue().getChatText()); - - // Guests are not allowed to send private messages in the lobby. - msg = createPrivateChatMsg(ChatText + 5, playerId[1]); - sendMessage(msg); - - msg = receiveMessage(); - assertTrue(msg.isChatRejectMessageSelected()); - assertEquals(ChatText + 5, msg.getChatRejectMessage().getValue().getChatText()); - - // Registered users are allowed to send private messages in the lobby. - msg = createPrivateChatMsg(ChatText + 6, playerId[1]); - sendMessage(msg, s[0]); - - msg = receiveMessage(s[1]); - assertTrue(msg.isChatMessageSelected()); - assertEquals(ChatText + 6, msg.getChatMessage().getValue().getChatText()); - assertTrue(msg.getChatMessage().getValue().getChatType().isChatTypePrivateSelected()); - assertEquals(playerId[0], msg.getChatMessage().getValue().getChatType().getChatTypePrivate().getPlayerId().getValue().longValue()); - - // Game messages can be sent by registered users within a game. - Collection l = new ArrayList(); - NetGameInfo gameInfo = createGameInfo(5, EndRaiseModeEnumType.EnumType.doubleBlinds, 0, 100, GuestUser + " game list normal game", l, 10, 0, 2, 2000); - sendMessage(createGameRequestMsg( - gameInfo, - NetGameTypeEnumType.EnumType.normalGame, - 10, - 5, - "", - false)); - do { - msg = receiveMessage(); - failOnErrorMessage(msg); - } while (!msg.isJoinGameReplyMessageSelected()); - assertTrue(msg.getJoinGameReplyMessage().getValue().getJoinGameResult().isJoinGameAckSelected()); - long gameId = msg.getJoinGameReplyMessage().getValue().getGameId().getValue().longValue(); - - // Let 8 players join the game, and test game chat. - for (int i = 0; i < 8; i++) { - sendMessage(joinGameRequestMsg(gameId, "", false), s[i]); - do { - msg = receiveMessage(s[i]); - failOnErrorMessage(msg); - } while (!msg.isJoinGameReplyMessageSelected()); - assertTrue(msg.getJoinGameReplyMessage().getValue().getJoinGameResult().isJoinGameAckSelected()); - } - - StartEvent startEvent = new StartEvent(); - startEvent.setFillWithComputerPlayers(false); - StartEventTypeChoiceType eventType = new StartEventTypeChoiceType(); - eventType.selectStartEvent(startEvent); - StartEventMessageSequenceType gameStartType = new StartEventMessageSequenceType(); - gameStartType.setGameId(new NonZeroId(gameId)); - gameStartType.setStartEventType(eventType); - StartEventMessage startMsg = new StartEventMessage(); - startMsg.setValue(gameStartType); - msg = new PokerTHMessage(); - msg.selectStartEventMessage(startMsg); - sendMessage(msg); - - // Server should confirm start event. - do { - msg = receiveMessage(); - failOnErrorMessage(msg); - } while (!msg.isStartEventMessageSelected()); - - // Acknowledge start event. - StartEventAckMessageSequenceType startType = new StartEventAckMessageSequenceType(); - startType.setGameId(new NonZeroId(gameId)); - StartEventAckMessage startAck = new StartEventAckMessage(); - startAck.setValue(startType); - msg = new PokerTHMessage(); - msg.selectStartEventAckMessage(startAck); - sendMessage(msg); - - for (int i = 0; i < 8; i++) { - sendMessage(msg, s[i]); - } - - // Server should game start. - do { - msg = receiveMessage(); - failOnErrorMessage(msg); - } while (!msg.isGameStartMessageSelected()); - - - // Guest user: not allowed. - msg = createGameChatMsg(ChatText + 7, gameId); - sendMessage(msg); - do { - msg = receiveMessage(); - failOnErrorMessage(msg); - assertFalse(msg.isChatMessageSelected()); - } while (!msg.isChatRejectMessageSelected()); - assertEquals(ChatText + 7, msg.getChatRejectMessage().getValue().getChatText()); - - // Other users: allowed. - for (int c = 0; c < 8; c++) { - msg = createGameChatMsg(ChatText + "c" + c, gameId); - sendMessage(msg, s[c]); - do { - msg = receiveMessage(s[c]); - failOnErrorMessage(msg); - assertFalse(msg.isChatRejectMessageSelected()); - } while (!msg.isChatMessageSelected()); - - assertEquals(ChatText + "c" + c, msg.getChatMessage().getValue().getChatText()); - assertTrue(msg.getChatMessage().getValue().getChatType().isChatTypeGameSelected()); - assertEquals(playerId[c], msg.getChatMessage().getValue().getChatType().getChatTypeGame().getPlayerId().getValue().longValue()); - assertEquals(gameId, msg.getChatMessage().getValue().getChatType().getChatTypeGame().getGameId().getValue().longValue()); - - for (int i = 0; i < 8; i++) { - if (i != c) { - do { - msg = receiveMessage(s[i]); - failOnErrorMessage(msg); - assertFalse(msg.isChatRejectMessageSelected()); - } while (!msg.isChatMessageSelected()); - assertEquals(ChatText + "c" + c, msg.getChatMessage().getValue().getChatText()); - assertTrue(msg.getChatMessage().getValue().getChatType().isChatTypeGameSelected()); - assertEquals(playerId[c], msg.getChatMessage().getValue().getChatType().getChatTypeGame().getPlayerId().getValue().longValue()); - assertEquals(gameId, msg.getChatMessage().getValue().getChatType().getChatTypeGame().getGameId().getValue().longValue()); - } - } - } - - // Private chat message should now be rejected. - msg = createPrivateChatMsg(ChatText + 8, playerId[1]); - sendMessage(msg, s[0]); - do { - msg = receiveMessage(s[0]); - failOnErrorMessage(msg); - assertFalse(msg.isChatMessageSelected()); - } while (!msg.isChatRejectMessageSelected()); - - for (int i = 0; i < 8; i++) { - s[i].close(); - } - } -} diff --git a/tests/src/pokerth_test/CreateGameTest.java b/tests/src/pokerth_test/CreateGameTest.java deleted file mode 100644 index 86260e0c..00000000 --- a/tests/src/pokerth_test/CreateGameTest.java +++ /dev/null @@ -1,102 +0,0 @@ -/* PokerTH automated tests. - Copyright (C) 2010 Lothar May - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as - published by the Free Software Foundation, either version 3 of the - License, or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . -*/ - -package pokerth_test; - -import static org.junit.Assert.*; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; - -import org.junit.Test; - -import pokerth_protocol.*; -import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType; -import pokerth_protocol.NetGameInfo.NetGameTypeEnumType; - -public class CreateGameTest extends TestBase { - - @Test - public void testJoinGameRequestMessage() throws Exception { - guestInit(); - - Collection l = new ArrayList(); - l.add(new InitialNonZeroAmountOfMoney(250)); - l.add(new InitialNonZeroAmountOfMoney(600)); - l.add(new InitialNonZeroAmountOfMoney(1000)); - NetGameInfo gameInfo = createGameInfo(8, EndRaiseModeEnumType.EnumType.raiseByEndValue, 1000, 100, GuestUser + " create test game", l, 10, 0, 7, 2000); - sendMessage(createGameRequestMsg( - gameInfo, - NetGameTypeEnumType.EnumType.normalGame, - 20, - 7, - GamePassword, - false)); - - PokerTHMessage msg; - msg = receiveMessage(); - if (!msg.isPlayerListMessageSelected()) { - failOnErrorMessage(msg); - fail("Invalid message."); - } - - msg = receiveMessage(); - if (!msg.isGameListMessageSelected()) { - failOnErrorMessage(msg); - fail("Invalid message."); - } - - msg = receiveMessage(); - if (msg.isJoinGameReplyMessageSelected()) - { - if (msg.getJoinGameReplyMessage().getValue().getJoinGameResult().isJoinGameAckSelected()) - { - assertTrue(msg.getJoinGameReplyMessage().getValue().getGameId().getValue() != 0); - NetGameInfo receivedGameInfo = msg.getJoinGameReplyMessage().getValue().getJoinGameResult().getJoinGameAck().getGameInfo(); - assertEquals(receivedGameInfo.getDelayBetweenHands(), gameInfo.getDelayBetweenHands()); - assertEquals(receivedGameInfo.getEndRaiseMode().getValue(), gameInfo.getEndRaiseMode().getValue()); - assertEquals(receivedGameInfo.getEndRaiseSmallBlindValue().getValue(), gameInfo.getEndRaiseSmallBlindValue().getValue()); - assertEquals(receivedGameInfo.getFirstSmallBlind(), gameInfo.getFirstSmallBlind()); - assertEquals(receivedGameInfo.getGameName(), gameInfo.getGameName()); - assertEquals(receivedGameInfo.getManualBlinds().size(), gameInfo.getManualBlinds().size()); - for (Iterator rec_it = receivedGameInfo.getManualBlinds().iterator(), - game_it = gameInfo.getManualBlinds().iterator(); - rec_it.hasNext() && game_it.hasNext();) - { - assertEquals(rec_it.next().getValue(), game_it.next().getValue()); - } - assertEquals(receivedGameInfo.getMaxNumPlayers(), gameInfo.getMaxNumPlayers()); - assertEquals(receivedGameInfo.getNetGameType().getValue(), gameInfo.getNetGameType().getValue()); - assertEquals(receivedGameInfo.getPlayerActionTimeout(), gameInfo.getPlayerActionTimeout()); - assertEquals(receivedGameInfo.getProposedGuiSpeed(), gameInfo.getProposedGuiSpeed()); - assertEquals(receivedGameInfo.getRaiseIntervalMode().getRaiseEveryHands(), gameInfo.getRaiseIntervalMode().getRaiseEveryHands()); - assertEquals(receivedGameInfo.getRaiseIntervalMode().getRaiseEveryMinutes(), gameInfo.getRaiseIntervalMode().getRaiseEveryMinutes()); - assertEquals(receivedGameInfo.getStartMoney().getValue(), gameInfo.getStartMoney().getValue()); - } - else - { - fail("Game creation failed!"); - } - } - else { - failOnErrorMessage(msg); - fail("Invalid message."); - } - } - -} diff --git a/tests/src/pokerth_test/TestBase.java b/tests/src/pokerth_test/TestBase.java deleted file mode 100644 index 900cb75e..00000000 --- a/tests/src/pokerth_test/TestBase.java +++ /dev/null @@ -1,382 +0,0 @@ -/* PokerTH automated tests. - Copyright (C) 2010 Lothar May - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as - published by the Free Software Foundation, either version 3 of the - License, or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . -*/ - -package pokerth_test; - -import static org.junit.Assert.*; - -import org.bn.*; -import org.junit.After; -import org.junit.Before; -import org.w3c.dom.Document; -import org.w3c.dom.Element; - -import pokerth_protocol.*; -import pokerth_protocol.AnnounceMessage.AnnounceMessageSequenceType.ServerTypeEnumType; -import pokerth_protocol.AuthMessage.AuthMessageChoiceType; -import pokerth_protocol.InitMessage.InitMessageSequenceType; -import pokerth_protocol.InitMessage.InitMessageSequenceType.LoginChoiceType; -import pokerth_protocol.JoinGameRequestMessage.JoinGameRequestMessageSequenceType; -import pokerth_protocol.JoinGameRequestMessage.JoinGameRequestMessageSequenceType.JoinGameActionChoiceType; -import pokerth_protocol.NetGameInfo.EndRaiseModeEnumType; -import pokerth_protocol.NetGameInfo.NetGameTypeEnumType; -import pokerth_protocol.NetGameInfo.RaiseIntervalModeChoiceType; - -import java.io.*; -import java.net.*; -import java.security.MessageDigest; -import java.sql.Connection; -import java.sql.DriverManager; -import java.util.Collection; - -import javax.crypto.Cipher; -import javax.crypto.spec.IvParameterSpec; -import javax.crypto.spec.SecretKeySpec; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; - -public abstract class TestBase { - - public final int PROTOCOL_VERSION_MAJOR = 5; - public final int PROTOCOL_VERSION_MINOR = 1; - public final String AuthUser = "user"; - public final String AuthPassword = "pencil"; - public final String GuestUser = "Guest112233"; - public final String GamePassword = "äöü?ßÄÖÜ"; - - protected IEncoder encoder; - protected IDecoder decoder; - protected Socket sock; - protected Connection dbConn; - protected long lastRejoinGameId = 0; - - @Before - public void dbInit() throws Exception { - String configFileName = System.getProperty("user.home"); - if (System.getProperty("os.name").toLowerCase().indexOf("linux") > -1) { - configFileName += "/.pokerth/config.xml"; - } else { - configFileName += "/AppData/Roaming/pokerth/config.xml"; - } - File file = new File(configFileName); - DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); - DocumentBuilder db = dbf.newDocumentBuilder(); - Document doc = db.parse(file); - doc.getDocumentElement().normalize(); - Element configNode = (Element)doc.getElementsByTagName("Configuration").item(0); - - Element dbAddressNode = (Element)configNode.getElementsByTagName("DBServerAddress").item(0); - String dbAddress = dbAddressNode.getAttribute("value"); - - Element dbUserNode = (Element)configNode.getElementsByTagName("DBServerUser").item(0); - String dbUser = dbUserNode.getAttribute("value"); - - Element dbPasswordNode = (Element)configNode.getElementsByTagName("DBServerPassword").item(0); - String dbPassword = dbPasswordNode.getAttribute("value"); - - Element dbNameNode = (Element)configNode.getElementsByTagName("DBServerDatabaseName").item(0); - String dbName = dbNameNode.getAttribute("value"); - - final String dbUrl = "jdbc:mysql://" + dbAddress + ":3306/" + dbName; - Class.forName("com.mysql.jdbc.Driver").newInstance (); - dbConn = DriverManager.getConnection(dbUrl, dbUser, dbPassword); - } - - @After - public void dbClose() throws Exception { - dbConn.close(); - } - - @Before - public void setUp() throws Exception { - Thread.sleep(2000); - sock = new Socket("localhost", 7234); - encoder = CoderFactory.getInstance().newEncoder("BER"); - decoder = CoderFactory.getInstance().newDecoder("BER"); - } - - @After - public void tearDown() throws IOException { - sock.close(); - } - - public void sendMessage(PokerTHMessage msg) throws Exception { - sendMessage(msg, sock); - } - - public void sendMessage(PokerTHMessage msg, Socket s) throws Exception { - encoder.encode(msg, s.getOutputStream()); - } - - public PokerTHMessage receiveMessage() throws Exception { - return receiveMessage(sock); - } - - public PokerTHMessage receiveMessage(Socket s) throws Exception { - return decoder.decode(s.getInputStream(), PokerTHMessage.class); - } - - public long guestInit() throws Exception { - return guestInit(sock); - } - - public long guestInit(Socket s) throws Exception { - long playerId = 0; - PokerTHMessage msg = receiveMessage(s); - assertTrue(msg.isAnnounceMessageSelected()); - - Version requestedVersion = new Version(); - requestedVersion.setMajor(PROTOCOL_VERSION_MAJOR); - requestedVersion.setMinor(PROTOCOL_VERSION_MINOR); - GuestLogin guestLogin = new GuestLogin(); - guestLogin.setNickName(GuestUser); - LoginChoiceType loginType = new LoginChoiceType(); - loginType.selectGuestLogin(guestLogin); - InitMessageSequenceType msgType = new InitMessageSequenceType(); - msgType.setBuildId(0L); - msgType.setLogin(loginType); - msgType.setRequestedVersion(requestedVersion); - InitMessage init = new InitMessage(); - init.setValue(msgType); - msg = new PokerTHMessage(); - msg.selectInitMessage(init); - sendMessage(msg, s); - - msg = receiveMessage(s); - if (msg.isInitAckMessageSelected()) { - InitAckMessage initAck = msg.getInitAckMessage(); - assertTrue(initAck.getValue().getYourPlayerId().getValue() != 0L); - assertTrue(!initAck.getValue().isYourAvatarPresent()); - playerId = initAck.getValue().getYourPlayerId().getValue(); - } - else { - failOnErrorMessage(msg); - fail("Invalid message."); - } - return playerId; - } - - public long userInit() throws Exception { - return userInit(sock, AuthUser, AuthPassword); - } - - public long userInit(Socket s, String user, String password) throws Exception { - return userInit(s, user, password, null, null); - } - - public long userInit(Socket s, String user, String password, byte[] avatarData, Guid lastSessionId) throws Exception { - long playerId = 0; - PokerTHMessage msg = receiveMessage(s); - AnnounceMessage announce = msg.getAnnounceMessage(); - assertTrue(announce.getValue().getServerType().getValue() == ServerTypeEnumType.EnumType.serverTypeInternetAuth); - - ScramSha1 scramAuth = new ScramSha1(); - - // Send challenge. - Version requestedVersion = new Version(); - requestedVersion.setMajor(PROTOCOL_VERSION_MAJOR); - requestedVersion.setMinor(PROTOCOL_VERSION_MINOR); - AuthenticatedLogin authLogin = new AuthenticatedLogin(); - AvatarHash avatar = null; - if (avatarData != null) { - avatar = new AvatarHash(avatarData); - } - authLogin.setAvatar(avatar); - authLogin.setClientUserData(scramAuth.executeStep1(user).getBytes()); - LoginChoiceType loginType = new LoginChoiceType(); - loginType.selectAuthenticatedLogin(authLogin); - InitMessageSequenceType msgType = new InitMessageSequenceType(); - msgType.setBuildId(0L); - msgType.setLogin(loginType); - msgType.setRequestedVersion(requestedVersion); - if (lastSessionId != null && lastSessionId.getValue() != null) - { - msgType.setMyLastSessionId(lastSessionId); - } - InitMessage init = new InitMessage(); - init.setValue(msgType); - msg = new PokerTHMessage(); - msg.selectInitMessage(init); - sendMessage(msg, s); - - msg = receiveMessage(s); - - if (msg.isAuthMessageSelected() && msg.getAuthMessage().getValue().isAuthServerChallengeSelected()) - { - String serverFirstMessage = new String(msg.getAuthMessage().getValue().getAuthServerChallenge().getServerChallenge()); - AuthClientResponse authClient = new AuthClientResponse(); - authClient.setClientResponse(scramAuth.executeStep2(password, serverFirstMessage).getBytes()); - AuthMessageChoiceType authChoice = new AuthMessageChoiceType(); - authChoice.selectAuthClientResponse(authClient); - AuthMessage authResponse = new AuthMessage(); - authResponse.setValue(authChoice); - - msg = new PokerTHMessage(); - msg.selectAuthMessage(authResponse); - sendMessage(msg, s); - } - failOnErrorMessage(msg); - - msg = receiveMessage(s); - failOnErrorMessage(msg); - - msg = receiveMessage(s); - if (msg.isInitAckMessageSelected()) { - InitAckMessage initAck = msg.getInitAckMessage(); - assertTrue(initAck.getValue().getYourPlayerId().getValue() != 0L); - assertTrue(!initAck.getValue().isYourAvatarPresent()); - playerId = initAck.getValue().getYourPlayerId().getValue(); - if (lastSessionId != null) { - lastSessionId.setValue(initAck.getValue().getYourSessionId().getValue()); - } - if (initAck.getValue().isRejoinGameIdPresent()) { - lastRejoinGameId = initAck.getValue().getRejoinGameId().getValue(); - } - else { - lastRejoinGameId = 0; - } - } - else { - failOnErrorMessage(msg); - fail("Invalid message."); - } - return playerId; - } - - public PokerTHMessage createGameRequestMsg(NetGameInfo gameInfo, NetGameTypeEnumType.EnumType type, int playerActionTimeout, int guiSpeed, String password, boolean autoLeave) { - NetGameTypeEnumType gameType = new NetGameTypeEnumType(); - gameType.setValue(type); - gameInfo.setNetGameType(gameType); - gameInfo.setPlayerActionTimeout(playerActionTimeout); - gameInfo.setProposedGuiSpeed(guiSpeed); - JoinNewGame joinNew = new JoinNewGame(); - joinNew.setGameInfo(gameInfo); - if (!password.isEmpty()) { - joinNew.setPassword(password); - } - JoinGameActionChoiceType joinAction = new JoinGameActionChoiceType(); - joinAction.selectJoinNewGame(joinNew); - JoinGameRequestMessageSequenceType joinType = new JoinGameRequestMessageSequenceType(); - joinType.setJoinGameAction(joinAction); - joinType.setAutoLeave(autoLeave); - JoinGameRequestMessage joinRequest = new JoinGameRequestMessage(); - joinRequest.setValue(joinType); - - PokerTHMessage msg = new PokerTHMessage(); - msg.selectJoinGameRequestMessage(joinRequest); - return msg; - } - - public PokerTHMessage joinGameRequestMsg(long gameId, String password, boolean autoLeave) { - JoinExistingGame joinExisting = new JoinExistingGame(); - joinExisting.setGameId(new NonZeroId(gameId)); - if (!password.isEmpty()) { - joinExisting.setPassword(password); - } - JoinGameActionChoiceType joinAction = new JoinGameActionChoiceType(); - joinAction.selectJoinExistingGame(joinExisting); - JoinGameRequestMessageSequenceType joinType = new JoinGameRequestMessageSequenceType(); - joinType.setJoinGameAction(joinAction); - joinType.setAutoLeave(autoLeave); - - JoinGameRequestMessage joinRequest = new JoinGameRequestMessage(); - joinRequest.setValue(joinType); - - PokerTHMessage msg = new PokerTHMessage(); - msg.selectJoinGameRequestMessage(joinRequest); - return msg; - } - - public PokerTHMessage rejoinGameRequestMsg(long gameId, boolean autoLeave) { - RejoinExistingGame rejoinExisting = new RejoinExistingGame(); - rejoinExisting.setGameId(new NonZeroId(gameId)); - JoinGameActionChoiceType joinAction = new JoinGameActionChoiceType(); - joinAction.selectRejoinExistingGame(rejoinExisting); - JoinGameRequestMessageSequenceType joinType = new JoinGameRequestMessageSequenceType(); - joinType.setJoinGameAction(joinAction); - joinType.setAutoLeave(autoLeave); - - JoinGameRequestMessage joinRequest = new JoinGameRequestMessage(); - joinRequest.setValue(joinType); - - PokerTHMessage msg = new PokerTHMessage(); - msg.selectJoinGameRequestMessage(joinRequest); - return msg; - } - - public NetGameInfo createGameInfo(int delayBetweenHands, EndRaiseModeEnumType.EnumType endMode, int endRaiseValue, int sb, String gameName, - Collection manualBlinds, int maxNumPlayers, int raiseEveryMinutes, int raiseEveryHands, int startMoney) { - NetGameInfo gameInfo = new NetGameInfo(); - EndRaiseModeEnumType endRaise = new EndRaiseModeEnumType(); - endRaise.setValue(endMode); - gameInfo.setDelayBetweenHands(delayBetweenHands); - gameInfo.setEndRaiseMode(endRaise); - gameInfo.setEndRaiseSmallBlindValue(new InitialAmountOfMoney(endRaiseValue)); - gameInfo.setFirstSmallBlind(sb); - gameInfo.setGameName(gameName); - gameInfo.setManualBlinds(manualBlinds); - gameInfo.setMaxNumPlayers(maxNumPlayers); - RaiseIntervalModeChoiceType raiseInterval = new RaiseIntervalModeChoiceType(); - if (raiseEveryMinutes > 0) { - raiseInterval.selectRaiseEveryMinutes(raiseEveryMinutes); - } - else { - raiseInterval.selectRaiseEveryHands(raiseEveryHands); - } - gameInfo.setRaiseIntervalMode(raiseInterval); - gameInfo.setStartMoney(new InitialNonZeroAmountOfMoney(startMoney)); - - return gameInfo; - } - - void failOnErrorMessage(PokerTHMessage msg) { - if (msg.isErrorMessageSelected()) - { - ErrorMessage error = msg.getErrorMessage(); - fail("Received error: " + error.getValue().getErrorReason().getValue().toString()); - } - } - - public byte[] decryptCards(final String password, final byte[] ciphertext) throws Exception - { - final MessageDigest shaDigest = MessageDigest.getInstance("SHA-1"); - byte[] pw1 = password.getBytes("UTF-8"); - - byte[] keyHash1 = shaDigest.digest(pw1); - keyHash1 = shaDigest.digest(keyHash1); - byte[] pw2 = new byte[keyHash1.length + pw1.length]; - System.arraycopy(keyHash1, 0, pw2, 0, keyHash1.length); - System.arraycopy(pw1, 0, pw2, keyHash1.length, pw1.length); - byte[] keyHash2 = shaDigest.digest(pw2); - keyHash2 = shaDigest.digest(keyHash2); - - byte[] key = new byte[16]; - System.arraycopy(keyHash1, 0, key, 0, key.length); - byte[] iv = new byte[16]; - System.arraycopy(keyHash1, 16, iv, 0, 4); - System.arraycopy(keyHash2, 0, iv, 4, 12); - - Cipher cipher = Cipher.getInstance("AES/CBC/NoPadding"); - - cipher.init( - Cipher.DECRYPT_MODE, - new SecretKeySpec(key, "AES"), - new IvParameterSpec(iv)); - - return cipher.doFinal(ciphertext); - } -}