// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: moveList.proto
package com.protos;
public final class HAOutboundProto {
private HAOutboundProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface ActionOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.protos.Action)
com.google.protobuf.MessageOrBuilder {
/**
* <code>required .com.protos.Action.Verb verb = 1;</code>
*/
boolean hasVerb();
/**
* <code>required .com.protos.Action.Verb verb = 1;</code>
*/
com.protos.HAOutboundProto.Action.Verb getVerb();
/**
* <code>required .com.protos.Action.PlayerSide actionPerformerPlayerSide = 2;</code>
*/
boolean hasActionPerformerPlayerSide();
/**
* <code>required .com.protos.Action.PlayerSide actionPerformerPlayerSide = 2;</code>
*/
com.protos.HAOutboundProto.Action.PlayerSide getActionPerformerPlayerSide();
/**
* <code>required int32 cardOrCharacterIndex = 3;</code>
*/
boolean hasCardOrCharacterIndex();
/**
* <code>required int32 cardOrCharacterIndex = 3;</code>
*/
int getCardOrCharacterIndex();
/**
* <code>optional .com.protos.Action.PlayerSide targetPlayerSide = 4;</code>
*/
boolean hasTargetPlayerSide();
/**
* <code>optional .com.protos.Action.PlayerSide targetPlayerSide = 4;</code>
*/
com.protos.HAOutboundProto.Action.PlayerSide getTargetPlayerSide();
/**
* <code>optional .com.protos.Action.CharacterIndex targetCharacterIndex = 5;</code>
*/
boolean hasTargetCharacterIndex();
/**
* <code>optional .com.protos.Action.CharacterIndex targetCharacterIndex = 5;</code>
*/
com.protos.HAOutboundProto.Action.CharacterIndex getTargetCharacterIndex();
}
/**
* Protobuf type {@code com.protos.Action}
*/
public static final class Action extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:com.protos.Action)
ActionOrBuilder {
// Use Action.newBuilder() to construct.
private Action(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Action(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Action defaultInstance;
public static Action getDefaultInstance() {
return defaultInstance;
}
public Action getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Action(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
com.protos.HAOutboundProto.Action.Verb value = com.protos.HAOutboundProto.Action.Verb.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
verb_ = value;
}
break;
}
case 16: {
int rawValue = input.readEnum();
com.protos.HAOutboundProto.Action.PlayerSide value = com.protos.HAOutboundProto.Action.PlayerSide.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
actionPerformerPlayerSide_ = value;
}
break;
}
case 24: {
bitField0_ |= 0x00000004;
cardOrCharacterIndex_ = input.readInt32();
break;
}
case 32: {
int rawValue = input.readEnum();
com.protos.HAOutboundProto.Action.PlayerSide value = com.protos.HAOutboundProto.Action.PlayerSide.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(4, rawValue);
} else {
bitField0_ |= 0x00000008;
targetPlayerSide_ = value;
}
break;
}
case 40: {
int rawValue = input.readEnum();
com.protos.HAOutboundProto.Action.CharacterIndex value = com.protos.HAOutboundProto.Action.CharacterIndex.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(5, rawValue);
} else {
bitField0_ |= 0x00000010;
targetCharacterIndex_ = value;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.protos.HAOutboundProto.internal_static_com_protos_Action_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.protos.HAOutboundProto.internal_static_com_protos_Action_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.protos.HAOutboundProto.Action.class, com.protos.HAOutboundProto.Action.Builder.class);
}
public static com.google.protobuf.Parser<Action> PARSER =
new com.google.protobuf.AbstractParser<Action>() {
public Action parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Action(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Action> getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code com.protos.Action.Verb}
*/
public enum Verb
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>USE_CARD = 1;</code>
*/
USE_CARD(0, 1),
/**
* <code>HERO_ABILITY = 2;</code>
*/
HERO_ABILITY(1, 2),
/**
* <code>ATTACK = 3;</code>
*/
ATTACK(2, 3),
/**
* <code>UNTARGETABLE_BATTLECRY = 4;</code>
*/
UNTARGETABLE_BATTLECRY(3, 4),
/**
* <code>TARGETABLE_BATTLECRY = 5;</code>
*/
TARGETABLE_BATTLECRY(4, 5),
/**
* <code>START_TURN = 6;</code>
*/
START_TURN(5, 6),
/**
* <code>END_TURN = 7;</code>
*/
END_TURN(6, 7),
/**
* <code>DO_NOT_USE_CARD = 8;</code>
*/
DO_NOT_USE_CARD(7, 8),
/**
* <code>DO_NOT_ATTACK = 9;</code>
*/
DO_NOT_ATTACK(8, 9),
/**
* <code>DO_NOT_USE_HEROPOWER = 10;</code>
*/
DO_NOT_USE_HEROPOWER(9, 10),
/**
* <code>RNG = 11;</code>
*/
RNG(10, 11),
/**
* <code>DRAW_CARDS = 12;</code>
*/
DRAW_CARDS(11, 12),
;
/**
* <code>USE_CARD = 1;</code>
*/
public static final int USE_CARD_VALUE = 1;
/**
* <code>HERO_ABILITY = 2;</code>
*/
public static final int HERO_ABILITY_VALUE = 2;
/**
* <code>ATTACK = 3;</code>
*/
public static final int ATTACK_VALUE = 3;
/**
* <code>UNTARGETABLE_BATTLECRY = 4;</code>
*/
public static final int UNTARGETABLE_BATTLECRY_VALUE = 4;
/**
* <code>TARGETABLE_BATTLECRY = 5;</code>
*/
public static final int TARGETABLE_BATTLECRY_VALUE = 5;
/**
* <code>START_TURN = 6;</code>
*/
public static final int START_TURN_VALUE = 6;
/**
* <code>END_TURN = 7;</code>
*/
public static final int END_TURN_VALUE = 7;
/**
* <code>DO_NOT_USE_CARD = 8;</code>
*/
public static final int DO_NOT_USE_CARD_VALUE = 8;
/**
* <code>DO_NOT_ATTACK = 9;</code>
*/
public static final int DO_NOT_ATTACK_VALUE = 9;
/**
* <code>DO_NOT_USE_HEROPOWER = 10;</code>
*/
public static final int DO_NOT_USE_HEROPOWER_VALUE = 10;
/**
* <code>RNG = 11;</code>
*/
public static final int RNG_VALUE = 11;
/**
* <code>DRAW_CARDS = 12;</code>
*/
public static final int DRAW_CARDS_VALUE = 12;
public final int getNumber() { return value; }
public static Verb valueOf(int value) {
switch (value) {
case 1: return USE_CARD;
case 2: return HERO_ABILITY;
case 3: return ATTACK;
case 4: return UNTARGETABLE_BATTLECRY;
case 5: return TARGETABLE_BATTLECRY;
case 6: return START_TURN;
case 7: return END_TURN;
case 8: return DO_NOT_USE_CARD;
case 9: return DO_NOT_ATTACK;
case 10: return DO_NOT_USE_HEROPOWER;
case 11: return RNG;
case 12: return DRAW_CARDS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<Verb>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<Verb>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<Verb>() {
public Verb findValueByNumber(int number) {
return Verb.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.protos.HAOutboundProto.Action.getDescriptor().getEnumTypes().get(0);
}
private static final Verb[] VALUES = values();
public static Verb 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 Verb(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.protos.Action.Verb)
}
/**
* Protobuf enum {@code com.protos.Action.PlayerSide}
*/
public enum PlayerSide
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>CURRENT_PLAYER = 1;</code>
*/
CURRENT_PLAYER(0, 1),
/**
* <code>WAITING_PLAYER = 2;</code>
*/
WAITING_PLAYER(1, 2),
;
/**
* <code>CURRENT_PLAYER = 1;</code>
*/
public static final int CURRENT_PLAYER_VALUE = 1;
/**
* <code>WAITING_PLAYER = 2;</code>
*/
public static final int WAITING_PLAYER_VALUE = 2;
public final int getNumber() { return value; }
public static PlayerSide valueOf(int value) {
switch (value) {
case 1: return CURRENT_PLAYER;
case 2: return WAITING_PLAYER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<PlayerSide>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<PlayerSide>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<PlayerSide>() {
public PlayerSide findValueByNumber(int number) {
return PlayerSide.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.protos.HAOutboundProto.Action.getDescriptor().getEnumTypes().get(1);
}
private static final PlayerSide[] VALUES = values();
public static PlayerSide 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 PlayerSide(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.protos.Action.PlayerSide)
}
/**
* Protobuf enum {@code com.protos.Action.CharacterIndex}
*/
public enum CharacterIndex
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>HERO = 0;</code>
*/
HERO(0, 0),
/**
* <code>MINION_1 = 1;</code>
*/
MINION_1(1, 1),
/**
* <code>MINION_2 = 2;</code>
*/
MINION_2(2, 2),
/**
* <code>MINION_3 = 3;</code>
*/
MINION_3(3, 3),
/**
* <code>MINION_4 = 4;</code>
*/
MINION_4(4, 4),
/**
* <code>MINION_5 = 5;</code>
*/
MINION_5(5, 5),
/**
* <code>MINION_6 = 6;</code>
*/
MINION_6(6, 6),
/**
* <code>MINION_7 = 7;</code>
*/
MINION_7(7, 7),
/**
* <code>MINION_8 = 8;</code>
*/
MINION_8(8, 8),
/**
* <code>MINION_9 = 9;</code>
*/
MINION_9(9, 9),
/**
* <code>UNKNOWN = 99;</code>
*/
UNKNOWN(10, 99),
;
/**
* <code>HERO = 0;</code>
*/
public static final int HERO_VALUE = 0;
/**
* <code>MINION_1 = 1;</code>
*/
public static final int MINION_1_VALUE = 1;
/**
* <code>MINION_2 = 2;</code>
*/
public static final int MINION_2_VALUE = 2;
/**
* <code>MINION_3 = 3;</code>
*/
public static final int MINION_3_VALUE = 3;
/**
* <code>MINION_4 = 4;</code>
*/
public static final int MINION_4_VALUE = 4;
/**
* <code>MINION_5 = 5;</code>
*/
public static final int MINION_5_VALUE = 5;
/**
* <code>MINION_6 = 6;</code>
*/
public static final int MINION_6_VALUE = 6;
/**
* <code>MINION_7 = 7;</code>
*/
public static final int MINION_7_VALUE = 7;
/**
* <code>MINION_8 = 8;</code>
*/
public static final int MINION_8_VALUE = 8;
/**
* <code>MINION_9 = 9;</code>
*/
public static final int MINION_9_VALUE = 9;
/**
* <code>UNKNOWN = 99;</code>
*/
public static final int UNKNOWN_VALUE = 99;
public final int getNumber() { return value; }
public static CharacterIndex valueOf(int value) {
switch (value) {
case 0: return HERO;
case 1: return MINION_1;
case 2: return MINION_2;
case 3: return MINION_3;
case 4: return MINION_4;
case 5: return MINION_5;
case 6: return MINION_6;
case 7: return MINION_7;
case 8: return MINION_8;
case 9: return MINION_9;
case 99: return UNKNOWN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<CharacterIndex>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<CharacterIndex>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<CharacterIndex>() {
public CharacterIndex findValueByNumber(int number) {
return CharacterIndex.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.protos.HAOutboundProto.Action.getDescriptor().getEnumTypes().get(2);
}
private static final CharacterIndex[] VALUES = values();
public static CharacterIndex 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 CharacterIndex(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.protos.Action.CharacterIndex)
}
private int bitField0_;
public static final int VERB_FIELD_NUMBER = 1;
private com.protos.HAOutboundProto.Action.Verb verb_;
/**
* <code>required .com.protos.Action.Verb verb = 1;</code>
*/
public boolean hasVerb() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .com.protos.Action.Verb verb = 1;</code>
*/
public com.protos.HAOutboundProto.Action.Verb getVerb() {
return verb_;
}
public static final int ACTIONPERFORMERPLAYERSIDE_FIELD_NUMBER = 2;
private com.protos.HAOutboundProto.Action.PlayerSide actionPerformerPlayerSide_;
/**
* <code>required .com.protos.Action.PlayerSide actionPerformerPlayerSide = 2;</code>
*/
public boolean hasActionPerformerPlayerSide() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required .com.protos.Action.PlayerSide actionPerformerPlayerSide = 2;</code>
*/
public com.protos.HAOutboundProto.Action.PlayerSide getActionPerformerPlayerSide() {
return actionPerformerPlayerSide_;
}
public static final int CARDORCHARACTERINDEX_FIELD_NUMBER = 3;
private int cardOrCharacterIndex_;
/**
* <code>required int32 cardOrCharacterIndex = 3;</code>
*/
public boolean hasCardOrCharacterIndex() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>required int32 cardOrCharacterIndex = 3;</code>
*/
public int getCardOrCharacterIndex() {
return cardOrCharacterIndex_;
}
public static final int TARGETPLAYERSIDE_FIELD_NUMBER = 4;
private com.protos.HAOutboundProto.Action.PlayerSide targetPlayerSide_;
/**
* <code>optional .com.protos.Action.PlayerSide targetPlayerSide = 4;</code>
*/
public boolean hasTargetPlayerSide() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .com.protos.Action.PlayerSide targetPlayerSide = 4;</code>
*/
public com.protos.HAOutboundProto.Action.PlayerSide getTargetPlayerSide() {
return targetPlayerSide_;
}
public static final int TARGETCHARACTERINDEX_FIELD_NUMBER = 5;
private com.protos.HAOutboundProto.Action.CharacterIndex targetCharacterIndex_;
/**
* <code>optional .com.protos.Action.CharacterIndex targetCharacterIndex = 5;</code>
*/
public boolean hasTargetCharacterIndex() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .com.protos.Action.CharacterIndex targetCharacterIndex = 5;</code>
*/
public com.protos.HAOutboundProto.Action.CharacterIndex getTargetCharacterIndex() {
return targetCharacterIndex_;
}
private void initFields() {
verb_ = com.protos.HAOutboundProto.Action.Verb.USE_CARD;
actionPerformerPlayerSide_ = com.protos.HAOutboundProto.Action.PlayerSide.CURRENT_PLAYER;
cardOrCharacterIndex_ = 0;
targetPlayerSide_ = com.protos.HAOutboundProto.Action.PlayerSide.CURRENT_PLAYER;
targetCharacterIndex_ = com.protos.HAOutboundProto.Action.CharacterIndex.HERO;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasVerb()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasActionPerformerPlayerSide()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasCardOrCharacterIndex()) {
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, verb_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(2, actionPerformerPlayerSide_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, cardOrCharacterIndex_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeEnum(4, targetPlayerSide_.getNumber());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeEnum(5, targetCharacterIndex_.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, verb_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, actionPerformerPlayerSide_.getNumber());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, cardOrCharacterIndex_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, targetPlayerSide_.getNumber());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, targetCharacterIndex_.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 com.protos.HAOutboundProto.Action parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.protos.HAOutboundProto.Action parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.protos.HAOutboundProto.Action parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.protos.HAOutboundProto.Action parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.protos.HAOutboundProto.Action parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.protos.HAOutboundProto.Action parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.protos.HAOutboundProto.Action parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.protos.HAOutboundProto.Action parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.protos.HAOutboundProto.Action parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.protos.HAOutboundProto.Action parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.protos.HAOutboundProto.Action 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;
}
/**
* Protobuf type {@code com.protos.Action}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:com.protos.Action)
com.protos.HAOutboundProto.ActionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.protos.HAOutboundProto.internal_static_com_protos_Action_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.protos.HAOutboundProto.internal_static_com_protos_Action_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.protos.HAOutboundProto.Action.class, com.protos.HAOutboundProto.Action.Builder.class);
}
// Construct using com.protos.HAOutboundProto.Action.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.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();
verb_ = com.protos.HAOutboundProto.Action.Verb.USE_CARD;
bitField0_ = (bitField0_ & ~0x00000001);
actionPerformerPlayerSide_ = com.protos.HAOutboundProto.Action.PlayerSide.CURRENT_PLAYER;
bitField0_ = (bitField0_ & ~0x00000002);
cardOrCharacterIndex_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
targetPlayerSide_ = com.protos.HAOutboundProto.Action.PlayerSide.CURRENT_PLAYER;
bitField0_ = (bitField0_ & ~0x00000008);
targetCharacterIndex_ = com.protos.HAOutboundProto.Action.CharacterIndex.HERO;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.protos.HAOutboundProto.internal_static_com_protos_Action_descriptor;
}
public com.protos.HAOutboundProto.Action getDefaultInstanceForType() {
return com.protos.HAOutboundProto.Action.getDefaultInstance();
}
public com.protos.HAOutboundProto.Action build() {
com.protos.HAOutboundProto.Action result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.protos.HAOutboundProto.Action buildPartial() {
com.protos.HAOutboundProto.Action result = new com.protos.HAOutboundProto.Action(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.verb_ = verb_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.actionPerformerPlayerSide_ = actionPerformerPlayerSide_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.cardOrCharacterIndex_ = cardOrCharacterIndex_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.targetPlayerSide_ = targetPlayerSide_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.targetCharacterIndex_ = targetCharacterIndex_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.protos.HAOutboundProto.Action) {
return mergeFrom((com.protos.HAOutboundProto.Action)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.protos.HAOutboundProto.Action other) {
if (other == com.protos.HAOutboundProto.Action.getDefaultInstance()) return this;
if (other.hasVerb()) {
setVerb(other.getVerb());
}
if (other.hasActionPerformerPlayerSide()) {
setActionPerformerPlayerSide(other.getActionPerformerPlayerSide());
}
if (other.hasCardOrCharacterIndex()) {
setCardOrCharacterIndex(other.getCardOrCharacterIndex());
}
if (other.hasTargetPlayerSide()) {
setTargetPlayerSide(other.getTargetPlayerSide());
}
if (other.hasTargetCharacterIndex()) {
setTargetCharacterIndex(other.getTargetCharacterIndex());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasVerb()) {
return false;
}
if (!hasActionPerformerPlayerSide()) {
return false;
}
if (!hasCardOrCharacterIndex()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.protos.HAOutboundProto.Action parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.protos.HAOutboundProto.Action) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.protos.HAOutboundProto.Action.Verb verb_ = com.protos.HAOutboundProto.Action.Verb.USE_CARD;
/**
* <code>required .com.protos.Action.Verb verb = 1;</code>
*/
public boolean hasVerb() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .com.protos.Action.Verb verb = 1;</code>
*/
public com.protos.HAOutboundProto.Action.Verb getVerb() {
return verb_;
}
/**
* <code>required .com.protos.Action.Verb verb = 1;</code>
*/
public Builder setVerb(com.protos.HAOutboundProto.Action.Verb value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
verb_ = value;
onChanged();
return this;
}
/**
* <code>required .com.protos.Action.Verb verb = 1;</code>
*/
public Builder clearVerb() {
bitField0_ = (bitField0_ & ~0x00000001);
verb_ = com.protos.HAOutboundProto.Action.Verb.USE_CARD;
onChanged();
return this;
}
private com.protos.HAOutboundProto.Action.PlayerSide actionPerformerPlayerSide_ = com.protos.HAOutboundProto.Action.PlayerSide.CURRENT_PLAYER;
/**
* <code>required .com.protos.Action.PlayerSide actionPerformerPlayerSide = 2;</code>
*/
public boolean hasActionPerformerPlayerSide() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required .com.protos.Action.PlayerSide actionPerformerPlayerSide = 2;</code>
*/
public com.protos.HAOutboundProto.Action.PlayerSide getActionPerformerPlayerSide() {
return actionPerformerPlayerSide_;
}
/**
* <code>required .com.protos.Action.PlayerSide actionPerformerPlayerSide = 2;</code>
*/
public Builder setActionPerformerPlayerSide(com.protos.HAOutboundProto.Action.PlayerSide value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
actionPerformerPlayerSide_ = value;
onChanged();
return this;
}
/**
* <code>required .com.protos.Action.PlayerSide actionPerformerPlayerSide = 2;</code>
*/
public Builder clearActionPerformerPlayerSide() {
bitField0_ = (bitField0_ & ~0x00000002);
actionPerformerPlayerSide_ = com.protos.HAOutboundProto.Action.PlayerSide.CURRENT_PLAYER;
onChanged();
return this;
}
private int cardOrCharacterIndex_ ;
/**
* <code>required int32 cardOrCharacterIndex = 3;</code>
*/
public boolean hasCardOrCharacterIndex() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>required int32 cardOrCharacterIndex = 3;</code>
*/
public int getCardOrCharacterIndex() {
return cardOrCharacterIndex_;
}
/**
* <code>required int32 cardOrCharacterIndex = 3;</code>
*/
public Builder setCardOrCharacterIndex(int value) {
bitField0_ |= 0x00000004;
cardOrCharacterIndex_ = value;
onChanged();
return this;
}
/**
* <code>required int32 cardOrCharacterIndex = 3;</code>
*/
public Builder clearCardOrCharacterIndex() {
bitField0_ = (bitField0_ & ~0x00000004);
cardOrCharacterIndex_ = 0;
onChanged();
return this;
}
private com.protos.HAOutboundProto.Action.PlayerSide targetPlayerSide_ = com.protos.HAOutboundProto.Action.PlayerSide.CURRENT_PLAYER;
/**
* <code>optional .com.protos.Action.PlayerSide targetPlayerSide = 4;</code>
*/
public boolean hasTargetPlayerSide() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional .com.protos.Action.PlayerSide targetPlayerSide = 4;</code>
*/
public com.protos.HAOutboundProto.Action.PlayerSide getTargetPlayerSide() {
return targetPlayerSide_;
}
/**
* <code>optional .com.protos.Action.PlayerSide targetPlayerSide = 4;</code>
*/
public Builder setTargetPlayerSide(com.protos.HAOutboundProto.Action.PlayerSide value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
targetPlayerSide_ = value;
onChanged();
return this;
}
/**
* <code>optional .com.protos.Action.PlayerSide targetPlayerSide = 4;</code>
*/
public Builder clearTargetPlayerSide() {
bitField0_ = (bitField0_ & ~0x00000008);
targetPlayerSide_ = com.protos.HAOutboundProto.Action.PlayerSide.CURRENT_PLAYER;
onChanged();
return this;
}
private com.protos.HAOutboundProto.Action.CharacterIndex targetCharacterIndex_ = com.protos.HAOutboundProto.Action.CharacterIndex.HERO;
/**
* <code>optional .com.protos.Action.CharacterIndex targetCharacterIndex = 5;</code>
*/
public boolean hasTargetCharacterIndex() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional .com.protos.Action.CharacterIndex targetCharacterIndex = 5;</code>
*/
public com.protos.HAOutboundProto.Action.CharacterIndex getTargetCharacterIndex() {
return targetCharacterIndex_;
}
/**
* <code>optional .com.protos.Action.CharacterIndex targetCharacterIndex = 5;</code>
*/
public Builder setTargetCharacterIndex(com.protos.HAOutboundProto.Action.CharacterIndex value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
targetCharacterIndex_ = value;
onChanged();
return this;
}
/**
* <code>optional .com.protos.Action.CharacterIndex targetCharacterIndex = 5;</code>
*/
public Builder clearTargetCharacterIndex() {
bitField0_ = (bitField0_ & ~0x00000010);
targetCharacterIndex_ = com.protos.HAOutboundProto.Action.CharacterIndex.HERO;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.protos.Action)
}
static {
defaultInstance = new Action(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.protos.Action)
}
public interface BoardOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.protos.Board)
com.google.protobuf.MessageOrBuilder {
/**
* <code>required .com.protos.PlayerModel currentPlayer = 1;</code>
*/
boolean hasCurrentPlayer();
/**
* <code>required .com.protos.PlayerModel currentPlayer = 1;</code>
*/
com.protos.PlayerModelProto.PlayerModel getCurrentPlayer();
/**
* <code>required .com.protos.PlayerModel currentPlayer = 1;</code>
*/
com.protos.PlayerModelProto.PlayerModelOrBuilder getCurrentPlayerOrBuilder();
/**
* <code>required .com.protos.PlayerModel waitingPlayer = 2;</code>
*/
boolean hasWaitingPlayer();
/**
* <code>required .com.protos.PlayerModel waitingPlayer = 2;</code>
*/
com.protos.PlayerModelProto.PlayerModel getWaitingPlayer();
/**
* <code>required .com.protos.PlayerModel waitingPlayer = 2;</code>
*/
com.protos.PlayerModelProto.PlayerModelOrBuilder getWaitingPlayerOrBuilder();
}
/**
* Protobuf type {@code com.protos.Board}
*/
public static final class Board extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:com.protos.Board)
BoardOrBuilder {
// Use Board.newBuilder() to construct.
private Board(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Board(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Board defaultInstance;
public static Board getDefaultInstance() {
return defaultInstance;
}
public Board getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Board(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.protos.PlayerModelProto.PlayerModel.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = currentPlayer_.toBuilder();
}
currentPlayer_ = input.readMessage(com.protos.PlayerModelProto.PlayerModel.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(currentPlayer_);
currentPlayer_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
com.protos.PlayerModelProto.PlayerModel.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = waitingPlayer_.toBuilder();
}
waitingPlayer_ = input.readMessage(com.protos.PlayerModelProto.PlayerModel.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(waitingPlayer_);
waitingPlayer_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.protos.HAOutboundProto.internal_static_com_protos_Board_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.protos.HAOutboundProto.internal_static_com_protos_Board_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.protos.HAOutboundProto.Board.class, com.protos.HAOutboundProto.Board.Builder.class);
}
public static com.google.protobuf.Parser<Board> PARSER =
new com.google.protobuf.AbstractParser<Board>() {
public Board parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Board(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Board> getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int CURRENTPLAYER_FIELD_NUMBER = 1;
private com.protos.PlayerModelProto.PlayerModel currentPlayer_;
/**
* <code>required .com.protos.PlayerModel currentPlayer = 1;</code>
*/
public boolean hasCurrentPlayer() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .com.protos.PlayerModel currentPlayer = 1;</code>
*/
public com.protos.PlayerModelProto.PlayerModel getCurrentPlayer() {
return currentPlayer_;
}
/**
* <code>required .com.protos.PlayerModel currentPlayer = 1;</code>
*/
public com.protos.PlayerModelProto.PlayerModelOrBuilder getCurrentPlayerOrBuilder() {
return currentPlayer_;
}
public static final int WAITINGPLAYER_FIELD_NUMBER = 2;
private com.protos.PlayerModelProto.PlayerModel waitingPlayer_;
/**
* <code>required .com.protos.PlayerModel waitingPlayer = 2;</code>
*/
public boolean hasWaitingPlayer() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required .com.protos.PlayerModel waitingPlayer = 2;</code>
*/
public com.protos.PlayerModelProto.PlayerModel getWaitingPlayer() {
return waitingPlayer_;
}
/**
* <code>required .com.protos.PlayerModel waitingPlayer = 2;</code>
*/
public com.protos.PlayerModelProto.PlayerModelOrBuilder getWaitingPlayerOrBuilder() {
return waitingPlayer_;
}
private void initFields() {
currentPlayer_ = com.protos.PlayerModelProto.PlayerModel.getDefaultInstance();
waitingPlayer_ = com.protos.PlayerModelProto.PlayerModel.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasCurrentPlayer()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasWaitingPlayer()) {
memoizedIsInitialized = 0;
return false;
}
if (!getCurrentPlayer().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (!getWaitingPlayer().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, currentPlayer_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, waitingPlayer_);
}
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, currentPlayer_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, waitingPlayer_);
}
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 com.protos.HAOutboundProto.Board parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.protos.HAOutboundProto.Board parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.protos.HAOutboundProto.Board parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.protos.HAOutboundProto.Board parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.protos.HAOutboundProto.Board parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.protos.HAOutboundProto.Board parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.protos.HAOutboundProto.Board parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.protos.HAOutboundProto.Board parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.protos.HAOutboundProto.Board parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.protos.HAOutboundProto.Board parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.protos.HAOutboundProto.Board 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;
}
/**
* Protobuf type {@code com.protos.Board}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:com.protos.Board)
com.protos.HAOutboundProto.BoardOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.protos.HAOutboundProto.internal_static_com_protos_Board_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.protos.HAOutboundProto.internal_static_com_protos_Board_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.protos.HAOutboundProto.Board.class, com.protos.HAOutboundProto.Board.Builder.class);
}
// Construct using com.protos.HAOutboundProto.Board.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getCurrentPlayerFieldBuilder();
getWaitingPlayerFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (currentPlayerBuilder_ == null) {
currentPlayer_ = com.protos.PlayerModelProto.PlayerModel.getDefaultInstance();
} else {
currentPlayerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (waitingPlayerBuilder_ == null) {
waitingPlayer_ = com.protos.PlayerModelProto.PlayerModel.getDefaultInstance();
} else {
waitingPlayerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.protos.HAOutboundProto.internal_static_com_protos_Board_descriptor;
}
public com.protos.HAOutboundProto.Board getDefaultInstanceForType() {
return com.protos.HAOutboundProto.Board.getDefaultInstance();
}
public com.protos.HAOutboundProto.Board build() {
com.protos.HAOutboundProto.Board result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.protos.HAOutboundProto.Board buildPartial() {
com.protos.HAOutboundProto.Board result = new com.protos.HAOutboundProto.Board(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (currentPlayerBuilder_ == null) {
result.currentPlayer_ = currentPlayer_;
} else {
result.currentPlayer_ = currentPlayerBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (waitingPlayerBuilder_ == null) {
result.waitingPlayer_ = waitingPlayer_;
} else {
result.waitingPlayer_ = waitingPlayerBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.protos.HAOutboundProto.Board) {
return mergeFrom((com.protos.HAOutboundProto.Board)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.protos.HAOutboundProto.Board other) {
if (other == com.protos.HAOutboundProto.Board.getDefaultInstance()) return this;
if (other.hasCurrentPlayer()) {
mergeCurrentPlayer(other.getCurrentPlayer());
}
if (other.hasWaitingPlayer()) {
mergeWaitingPlayer(other.getWaitingPlayer());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasCurrentPlayer()) {
return false;
}
if (!hasWaitingPlayer()) {
return false;
}
if (!getCurrentPlayer().isInitialized()) {
return false;
}
if (!getWaitingPlayer().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.protos.HAOutboundProto.Board parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.protos.HAOutboundProto.Board) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.protos.PlayerModelProto.PlayerModel currentPlayer_ = com.protos.PlayerModelProto.PlayerModel.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.protos.PlayerModelProto.PlayerModel, com.protos.PlayerModelProto.PlayerModel.Builder, com.protos.PlayerModelProto.PlayerModelOrBuilder> currentPlayerBuilder_;
/**
* <code>required .com.protos.PlayerModel currentPlayer = 1;</code>
*/
public boolean hasCurrentPlayer() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .com.protos.PlayerModel currentPlayer = 1;</code>
*/
public com.protos.PlayerModelProto.PlayerModel getCurrentPlayer() {
if (currentPlayerBuilder_ == null) {
return currentPlayer_;
} else {
return currentPlayerBuilder_.getMessage();
}
}
/**
* <code>required .com.protos.PlayerModel currentPlayer = 1;</code>
*/
public Builder setCurrentPlayer(com.protos.PlayerModelProto.PlayerModel value) {
if (currentPlayerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
currentPlayer_ = value;
onChanged();
} else {
currentPlayerBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>required .com.protos.PlayerModel currentPlayer = 1;</code>
*/
public Builder setCurrentPlayer(
com.protos.PlayerModelProto.PlayerModel.Builder builderForValue) {
if (currentPlayerBuilder_ == null) {
currentPlayer_ = builderForValue.build();
onChanged();
} else {
currentPlayerBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>required .com.protos.PlayerModel currentPlayer = 1;</code>
*/
public Builder mergeCurrentPlayer(com.protos.PlayerModelProto.PlayerModel value) {
if (currentPlayerBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
currentPlayer_ != com.protos.PlayerModelProto.PlayerModel.getDefaultInstance()) {
currentPlayer_ =
com.protos.PlayerModelProto.PlayerModel.newBuilder(currentPlayer_).mergeFrom(value).buildPartial();
} else {
currentPlayer_ = value;
}
onChanged();
} else {
currentPlayerBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>required .com.protos.PlayerModel currentPlayer = 1;</code>
*/
public Builder clearCurrentPlayer() {
if (currentPlayerBuilder_ == null) {
currentPlayer_ = com.protos.PlayerModelProto.PlayerModel.getDefaultInstance();
onChanged();
} else {
currentPlayerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* <code>required .com.protos.PlayerModel currentPlayer = 1;</code>
*/
public com.protos.PlayerModelProto.PlayerModel.Builder getCurrentPlayerBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getCurrentPlayerFieldBuilder().getBuilder();
}
/**
* <code>required .com.protos.PlayerModel currentPlayer = 1;</code>
*/
public com.protos.PlayerModelProto.PlayerModelOrBuilder getCurrentPlayerOrBuilder() {
if (currentPlayerBuilder_ != null) {
return currentPlayerBuilder_.getMessageOrBuilder();
} else {
return currentPlayer_;
}
}
/**
* <code>required .com.protos.PlayerModel currentPlayer = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.protos.PlayerModelProto.PlayerModel, com.protos.PlayerModelProto.PlayerModel.Builder, com.protos.PlayerModelProto.PlayerModelOrBuilder>
getCurrentPlayerFieldBuilder() {
if (currentPlayerBuilder_ == null) {
currentPlayerBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.protos.PlayerModelProto.PlayerModel, com.protos.PlayerModelProto.PlayerModel.Builder, com.protos.PlayerModelProto.PlayerModelOrBuilder>(
getCurrentPlayer(),
getParentForChildren(),
isClean());
currentPlayer_ = null;
}
return currentPlayerBuilder_;
}
private com.protos.PlayerModelProto.PlayerModel waitingPlayer_ = com.protos.PlayerModelProto.PlayerModel.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.protos.PlayerModelProto.PlayerModel, com.protos.PlayerModelProto.PlayerModel.Builder, com.protos.PlayerModelProto.PlayerModelOrBuilder> waitingPlayerBuilder_;
/**
* <code>required .com.protos.PlayerModel waitingPlayer = 2;</code>
*/
public boolean hasWaitingPlayer() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required .com.protos.PlayerModel waitingPlayer = 2;</code>
*/
public com.protos.PlayerModelProto.PlayerModel getWaitingPlayer() {
if (waitingPlayerBuilder_ == null) {
return waitingPlayer_;
} else {
return waitingPlayerBuilder_.getMessage();
}
}
/**
* <code>required .com.protos.PlayerModel waitingPlayer = 2;</code>
*/
public Builder setWaitingPlayer(com.protos.PlayerModelProto.PlayerModel value) {
if (waitingPlayerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
waitingPlayer_ = value;
onChanged();
} else {
waitingPlayerBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>required .com.protos.PlayerModel waitingPlayer = 2;</code>
*/
public Builder setWaitingPlayer(
com.protos.PlayerModelProto.PlayerModel.Builder builderForValue) {
if (waitingPlayerBuilder_ == null) {
waitingPlayer_ = builderForValue.build();
onChanged();
} else {
waitingPlayerBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>required .com.protos.PlayerModel waitingPlayer = 2;</code>
*/
public Builder mergeWaitingPlayer(com.protos.PlayerModelProto.PlayerModel value) {
if (waitingPlayerBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
waitingPlayer_ != com.protos.PlayerModelProto.PlayerModel.getDefaultInstance()) {
waitingPlayer_ =
com.protos.PlayerModelProto.PlayerModel.newBuilder(waitingPlayer_).mergeFrom(value).buildPartial();
} else {
waitingPlayer_ = value;
}
onChanged();
} else {
waitingPlayerBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>required .com.protos.PlayerModel waitingPlayer = 2;</code>
*/
public Builder clearWaitingPlayer() {
if (waitingPlayerBuilder_ == null) {
waitingPlayer_ = com.protos.PlayerModelProto.PlayerModel.getDefaultInstance();
onChanged();
} else {
waitingPlayerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* <code>required .com.protos.PlayerModel waitingPlayer = 2;</code>
*/
public com.protos.PlayerModelProto.PlayerModel.Builder getWaitingPlayerBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getWaitingPlayerFieldBuilder().getBuilder();
}
/**
* <code>required .com.protos.PlayerModel waitingPlayer = 2;</code>
*/
public com.protos.PlayerModelProto.PlayerModelOrBuilder getWaitingPlayerOrBuilder() {
if (waitingPlayerBuilder_ != null) {
return waitingPlayerBuilder_.getMessageOrBuilder();
} else {
return waitingPlayer_;
}
}
/**
* <code>required .com.protos.PlayerModel waitingPlayer = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.protos.PlayerModelProto.PlayerModel, com.protos.PlayerModelProto.PlayerModel.Builder, com.protos.PlayerModelProto.PlayerModelOrBuilder>
getWaitingPlayerFieldBuilder() {
if (waitingPlayerBuilder_ == null) {
waitingPlayerBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.protos.PlayerModelProto.PlayerModel, com.protos.PlayerModelProto.PlayerModel.Builder, com.protos.PlayerModelProto.PlayerModelOrBuilder>(
getWaitingPlayer(),
getParentForChildren(),
isClean());
waitingPlayer_ = null;
}
return waitingPlayerBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.protos.Board)
}
static {
defaultInstance = new Board(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.protos.Board)
}
public interface HABPOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.protos.HABP)
com.google.protobuf.MessageOrBuilder {
/**
* <code>required .com.protos.Board board = 1;</code>
*/
boolean hasBoard();
/**
* <code>required .com.protos.Board board = 1;</code>
*/
com.protos.HAOutboundProto.Board getBoard();
/**
* <code>required .com.protos.Board board = 1;</code>
*/
com.protos.HAOutboundProto.BoardOrBuilder getBoardOrBuilder();
/**
* <code>optional .com.protos.Action action = 2;</code>
*/
boolean hasAction();
/**
* <code>optional .com.protos.Action action = 2;</code>
*/
com.protos.HAOutboundProto.Action getAction();
/**
* <code>optional .com.protos.Action action = 2;</code>
*/
com.protos.HAOutboundProto.ActionOrBuilder getActionOrBuilder();
}
/**
* Protobuf type {@code com.protos.HABP}
*/
public static final class HABP extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:com.protos.HABP)
HABPOrBuilder {
// Use HABP.newBuilder() to construct.
private HABP(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private HABP(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final HABP defaultInstance;
public static HABP getDefaultInstance() {
return defaultInstance;
}
public HABP getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HABP(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.protos.HAOutboundProto.Board.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = board_.toBuilder();
}
board_ = input.readMessage(com.protos.HAOutboundProto.Board.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(board_);
board_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
com.protos.HAOutboundProto.Action.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = action_.toBuilder();
}
action_ = input.readMessage(com.protos.HAOutboundProto.Action.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(action_);
action_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.protos.HAOutboundProto.internal_static_com_protos_HABP_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.protos.HAOutboundProto.internal_static_com_protos_HABP_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.protos.HAOutboundProto.HABP.class, com.protos.HAOutboundProto.HABP.Builder.class);
}
public static com.google.protobuf.Parser<HABP> PARSER =
new com.google.protobuf.AbstractParser<HABP>() {
public HABP parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HABP(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<HABP> getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int BOARD_FIELD_NUMBER = 1;
private com.protos.HAOutboundProto.Board board_;
/**
* <code>required .com.protos.Board board = 1;</code>
*/
public boolean hasBoard() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .com.protos.Board board = 1;</code>
*/
public com.protos.HAOutboundProto.Board getBoard() {
return board_;
}
/**
* <code>required .com.protos.Board board = 1;</code>
*/
public com.protos.HAOutboundProto.BoardOrBuilder getBoardOrBuilder() {
return board_;
}
public static final int ACTION_FIELD_NUMBER = 2;
private com.protos.HAOutboundProto.Action action_;
/**
* <code>optional .com.protos.Action action = 2;</code>
*/
public boolean hasAction() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.protos.Action action = 2;</code>
*/
public com.protos.HAOutboundProto.Action getAction() {
return action_;
}
/**
* <code>optional .com.protos.Action action = 2;</code>
*/
public com.protos.HAOutboundProto.ActionOrBuilder getActionOrBuilder() {
return action_;
}
private void initFields() {
board_ = com.protos.HAOutboundProto.Board.getDefaultInstance();
action_ = com.protos.HAOutboundProto.Action.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasBoard()) {
memoizedIsInitialized = 0;
return false;
}
if (!getBoard().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (hasAction()) {
if (!getAction().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, board_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, action_);
}
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, board_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, action_);
}
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 com.protos.HAOutboundProto.HABP parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.protos.HAOutboundProto.HABP parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.protos.HAOutboundProto.HABP parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.protos.HAOutboundProto.HABP parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.protos.HAOutboundProto.HABP parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.protos.HAOutboundProto.HABP parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.protos.HAOutboundProto.HABP parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.protos.HAOutboundProto.HABP parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.protos.HAOutboundProto.HABP parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.protos.HAOutboundProto.HABP parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.protos.HAOutboundProto.HABP 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;
}
/**
* Protobuf type {@code com.protos.HABP}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:com.protos.HABP)
com.protos.HAOutboundProto.HABPOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.protos.HAOutboundProto.internal_static_com_protos_HABP_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.protos.HAOutboundProto.internal_static_com_protos_HABP_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.protos.HAOutboundProto.HABP.class, com.protos.HAOutboundProto.HABP.Builder.class);
}
// Construct using com.protos.HAOutboundProto.HABP.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getBoardFieldBuilder();
getActionFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (boardBuilder_ == null) {
board_ = com.protos.HAOutboundProto.Board.getDefaultInstance();
} else {
boardBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (actionBuilder_ == null) {
action_ = com.protos.HAOutboundProto.Action.getDefaultInstance();
} else {
actionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.protos.HAOutboundProto.internal_static_com_protos_HABP_descriptor;
}
public com.protos.HAOutboundProto.HABP getDefaultInstanceForType() {
return com.protos.HAOutboundProto.HABP.getDefaultInstance();
}
public com.protos.HAOutboundProto.HABP build() {
com.protos.HAOutboundProto.HABP result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.protos.HAOutboundProto.HABP buildPartial() {
com.protos.HAOutboundProto.HABP result = new com.protos.HAOutboundProto.HABP(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (boardBuilder_ == null) {
result.board_ = board_;
} else {
result.board_ = boardBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (actionBuilder_ == null) {
result.action_ = action_;
} else {
result.action_ = actionBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.protos.HAOutboundProto.HABP) {
return mergeFrom((com.protos.HAOutboundProto.HABP)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.protos.HAOutboundProto.HABP other) {
if (other == com.protos.HAOutboundProto.HABP.getDefaultInstance()) return this;
if (other.hasBoard()) {
mergeBoard(other.getBoard());
}
if (other.hasAction()) {
mergeAction(other.getAction());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasBoard()) {
return false;
}
if (!getBoard().isInitialized()) {
return false;
}
if (hasAction()) {
if (!getAction().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.protos.HAOutboundProto.HABP parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.protos.HAOutboundProto.HABP) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.protos.HAOutboundProto.Board board_ = com.protos.HAOutboundProto.Board.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.protos.HAOutboundProto.Board, com.protos.HAOutboundProto.Board.Builder, com.protos.HAOutboundProto.BoardOrBuilder> boardBuilder_;
/**
* <code>required .com.protos.Board board = 1;</code>
*/
public boolean hasBoard() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required .com.protos.Board board = 1;</code>
*/
public com.protos.HAOutboundProto.Board getBoard() {
if (boardBuilder_ == null) {
return board_;
} else {
return boardBuilder_.getMessage();
}
}
/**
* <code>required .com.protos.Board board = 1;</code>
*/
public Builder setBoard(com.protos.HAOutboundProto.Board value) {
if (boardBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
board_ = value;
onChanged();
} else {
boardBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>required .com.protos.Board board = 1;</code>
*/
public Builder setBoard(
com.protos.HAOutboundProto.Board.Builder builderForValue) {
if (boardBuilder_ == null) {
board_ = builderForValue.build();
onChanged();
} else {
boardBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>required .com.protos.Board board = 1;</code>
*/
public Builder mergeBoard(com.protos.HAOutboundProto.Board value) {
if (boardBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
board_ != com.protos.HAOutboundProto.Board.getDefaultInstance()) {
board_ =
com.protos.HAOutboundProto.Board.newBuilder(board_).mergeFrom(value).buildPartial();
} else {
board_ = value;
}
onChanged();
} else {
boardBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* <code>required .com.protos.Board board = 1;</code>
*/
public Builder clearBoard() {
if (boardBuilder_ == null) {
board_ = com.protos.HAOutboundProto.Board.getDefaultInstance();
onChanged();
} else {
boardBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* <code>required .com.protos.Board board = 1;</code>
*/
public com.protos.HAOutboundProto.Board.Builder getBoardBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBoardFieldBuilder().getBuilder();
}
/**
* <code>required .com.protos.Board board = 1;</code>
*/
public com.protos.HAOutboundProto.BoardOrBuilder getBoardOrBuilder() {
if (boardBuilder_ != null) {
return boardBuilder_.getMessageOrBuilder();
} else {
return board_;
}
}
/**
* <code>required .com.protos.Board board = 1;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.protos.HAOutboundProto.Board, com.protos.HAOutboundProto.Board.Builder, com.protos.HAOutboundProto.BoardOrBuilder>
getBoardFieldBuilder() {
if (boardBuilder_ == null) {
boardBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.protos.HAOutboundProto.Board, com.protos.HAOutboundProto.Board.Builder, com.protos.HAOutboundProto.BoardOrBuilder>(
getBoard(),
getParentForChildren(),
isClean());
board_ = null;
}
return boardBuilder_;
}
private com.protos.HAOutboundProto.Action action_ = com.protos.HAOutboundProto.Action.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.protos.HAOutboundProto.Action, com.protos.HAOutboundProto.Action.Builder, com.protos.HAOutboundProto.ActionOrBuilder> actionBuilder_;
/**
* <code>optional .com.protos.Action action = 2;</code>
*/
public boolean hasAction() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional .com.protos.Action action = 2;</code>
*/
public com.protos.HAOutboundProto.Action getAction() {
if (actionBuilder_ == null) {
return action_;
} else {
return actionBuilder_.getMessage();
}
}
/**
* <code>optional .com.protos.Action action = 2;</code>
*/
public Builder setAction(com.protos.HAOutboundProto.Action value) {
if (actionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
action_ = value;
onChanged();
} else {
actionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.protos.Action action = 2;</code>
*/
public Builder setAction(
com.protos.HAOutboundProto.Action.Builder builderForValue) {
if (actionBuilder_ == null) {
action_ = builderForValue.build();
onChanged();
} else {
actionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.protos.Action action = 2;</code>
*/
public Builder mergeAction(com.protos.HAOutboundProto.Action value) {
if (actionBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
action_ != com.protos.HAOutboundProto.Action.getDefaultInstance()) {
action_ =
com.protos.HAOutboundProto.Action.newBuilder(action_).mergeFrom(value).buildPartial();
} else {
action_ = value;
}
onChanged();
} else {
actionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* <code>optional .com.protos.Action action = 2;</code>
*/
public Builder clearAction() {
if (actionBuilder_ == null) {
action_ = com.protos.HAOutboundProto.Action.getDefaultInstance();
onChanged();
} else {
actionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* <code>optional .com.protos.Action action = 2;</code>
*/
public com.protos.HAOutboundProto.Action.Builder getActionBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getActionFieldBuilder().getBuilder();
}
/**
* <code>optional .com.protos.Action action = 2;</code>
*/
public com.protos.HAOutboundProto.ActionOrBuilder getActionOrBuilder() {
if (actionBuilder_ != null) {
return actionBuilder_.getMessageOrBuilder();
} else {
return action_;
}
}
/**
* <code>optional .com.protos.Action action = 2;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.protos.HAOutboundProto.Action, com.protos.HAOutboundProto.Action.Builder, com.protos.HAOutboundProto.ActionOrBuilder>
getActionFieldBuilder() {
if (actionBuilder_ == null) {
actionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.protos.HAOutboundProto.Action, com.protos.HAOutboundProto.Action.Builder, com.protos.HAOutboundProto.ActionOrBuilder>(
getAction(),
getParentForChildren(),
isClean());
action_ = null;
}
return actionBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.protos.HABP)
}
static {
defaultInstance = new HABP(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.protos.HABP)
}
public interface MoveListOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.protos.MoveList)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
java.util.List<com.protos.HAOutboundProto.MoveList.HABPList>
getMoveList();
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
com.protos.HAOutboundProto.MoveList.HABPList getMove(int index);
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
int getMoveCount();
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
java.util.List<? extends com.protos.HAOutboundProto.MoveList.HABPListOrBuilder>
getMoveOrBuilderList();
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
com.protos.HAOutboundProto.MoveList.HABPListOrBuilder getMoveOrBuilder(
int index);
}
/**
* Protobuf type {@code com.protos.MoveList}
*/
public static final class MoveList extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:com.protos.MoveList)
MoveListOrBuilder {
// Use MoveList.newBuilder() to construct.
private MoveList(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private MoveList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final MoveList defaultInstance;
public static MoveList getDefaultInstance() {
return defaultInstance;
}
public MoveList getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MoveList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
move_ = new java.util.ArrayList<com.protos.HAOutboundProto.MoveList.HABPList>();
mutable_bitField0_ |= 0x00000001;
}
move_.add(input.readMessage(com.protos.HAOutboundProto.MoveList.HABPList.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
move_ = java.util.Collections.unmodifiableList(move_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.protos.HAOutboundProto.internal_static_com_protos_MoveList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.protos.HAOutboundProto.internal_static_com_protos_MoveList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.protos.HAOutboundProto.MoveList.class, com.protos.HAOutboundProto.MoveList.Builder.class);
}
public static com.google.protobuf.Parser<MoveList> PARSER =
new com.google.protobuf.AbstractParser<MoveList>() {
public MoveList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MoveList(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<MoveList> getParserForType() {
return PARSER;
}
public interface HABPListOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.protos.MoveList.HABPList)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
java.util.List<com.protos.HAOutboundProto.HABP>
getActionBoardPairList();
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
com.protos.HAOutboundProto.HABP getActionBoardPair(int index);
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
int getActionBoardPairCount();
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
java.util.List<? extends com.protos.HAOutboundProto.HABPOrBuilder>
getActionBoardPairOrBuilderList();
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
com.protos.HAOutboundProto.HABPOrBuilder getActionBoardPairOrBuilder(
int index);
}
/**
* Protobuf type {@code com.protos.MoveList.HABPList}
*/
public static final class HABPList extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:com.protos.MoveList.HABPList)
HABPListOrBuilder {
// Use HABPList.newBuilder() to construct.
private HABPList(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private HABPList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final HABPList defaultInstance;
public static HABPList getDefaultInstance() {
return defaultInstance;
}
public HABPList getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HABPList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
actionBoardPair_ = new java.util.ArrayList<com.protos.HAOutboundProto.HABP>();
mutable_bitField0_ |= 0x00000001;
}
actionBoardPair_.add(input.readMessage(com.protos.HAOutboundProto.HABP.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
actionBoardPair_ = java.util.Collections.unmodifiableList(actionBoardPair_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.protos.HAOutboundProto.internal_static_com_protos_MoveList_HABPList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.protos.HAOutboundProto.internal_static_com_protos_MoveList_HABPList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.protos.HAOutboundProto.MoveList.HABPList.class, com.protos.HAOutboundProto.MoveList.HABPList.Builder.class);
}
public static com.google.protobuf.Parser<HABPList> PARSER =
new com.google.protobuf.AbstractParser<HABPList>() {
public HABPList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HABPList(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<HABPList> getParserForType() {
return PARSER;
}
public static final int ACTIONBOARDPAIR_FIELD_NUMBER = 1;
private java.util.List<com.protos.HAOutboundProto.HABP> actionBoardPair_;
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public java.util.List<com.protos.HAOutboundProto.HABP> getActionBoardPairList() {
return actionBoardPair_;
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public java.util.List<? extends com.protos.HAOutboundProto.HABPOrBuilder>
getActionBoardPairOrBuilderList() {
return actionBoardPair_;
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public int getActionBoardPairCount() {
return actionBoardPair_.size();
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public com.protos.HAOutboundProto.HABP getActionBoardPair(int index) {
return actionBoardPair_.get(index);
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public com.protos.HAOutboundProto.HABPOrBuilder getActionBoardPairOrBuilder(
int index) {
return actionBoardPair_.get(index);
}
private void initFields() {
actionBoardPair_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getActionBoardPairCount(); i++) {
if (!getActionBoardPair(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 < actionBoardPair_.size(); i++) {
output.writeMessage(1, actionBoardPair_.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 < actionBoardPair_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, actionBoardPair_.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 com.protos.HAOutboundProto.MoveList.HABPList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.protos.HAOutboundProto.MoveList.HABPList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.protos.HAOutboundProto.MoveList.HABPList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.protos.HAOutboundProto.MoveList.HABPList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.protos.HAOutboundProto.MoveList.HABPList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.protos.HAOutboundProto.MoveList.HABPList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.protos.HAOutboundProto.MoveList.HABPList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.protos.HAOutboundProto.MoveList.HABPList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.protos.HAOutboundProto.MoveList.HABPList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.protos.HAOutboundProto.MoveList.HABPList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.protos.HAOutboundProto.MoveList.HABPList 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;
}
/**
* Protobuf type {@code com.protos.MoveList.HABPList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:com.protos.MoveList.HABPList)
com.protos.HAOutboundProto.MoveList.HABPListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.protos.HAOutboundProto.internal_static_com_protos_MoveList_HABPList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.protos.HAOutboundProto.internal_static_com_protos_MoveList_HABPList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.protos.HAOutboundProto.MoveList.HABPList.class, com.protos.HAOutboundProto.MoveList.HABPList.Builder.class);
}
// Construct using com.protos.HAOutboundProto.MoveList.HABPList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getActionBoardPairFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (actionBoardPairBuilder_ == null) {
actionBoardPair_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
actionBoardPairBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.protos.HAOutboundProto.internal_static_com_protos_MoveList_HABPList_descriptor;
}
public com.protos.HAOutboundProto.MoveList.HABPList getDefaultInstanceForType() {
return com.protos.HAOutboundProto.MoveList.HABPList.getDefaultInstance();
}
public com.protos.HAOutboundProto.MoveList.HABPList build() {
com.protos.HAOutboundProto.MoveList.HABPList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.protos.HAOutboundProto.MoveList.HABPList buildPartial() {
com.protos.HAOutboundProto.MoveList.HABPList result = new com.protos.HAOutboundProto.MoveList.HABPList(this);
int from_bitField0_ = bitField0_;
if (actionBoardPairBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
actionBoardPair_ = java.util.Collections.unmodifiableList(actionBoardPair_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.actionBoardPair_ = actionBoardPair_;
} else {
result.actionBoardPair_ = actionBoardPairBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.protos.HAOutboundProto.MoveList.HABPList) {
return mergeFrom((com.protos.HAOutboundProto.MoveList.HABPList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.protos.HAOutboundProto.MoveList.HABPList other) {
if (other == com.protos.HAOutboundProto.MoveList.HABPList.getDefaultInstance()) return this;
if (actionBoardPairBuilder_ == null) {
if (!other.actionBoardPair_.isEmpty()) {
if (actionBoardPair_.isEmpty()) {
actionBoardPair_ = other.actionBoardPair_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureActionBoardPairIsMutable();
actionBoardPair_.addAll(other.actionBoardPair_);
}
onChanged();
}
} else {
if (!other.actionBoardPair_.isEmpty()) {
if (actionBoardPairBuilder_.isEmpty()) {
actionBoardPairBuilder_.dispose();
actionBoardPairBuilder_ = null;
actionBoardPair_ = other.actionBoardPair_;
bitField0_ = (bitField0_ & ~0x00000001);
actionBoardPairBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getActionBoardPairFieldBuilder() : null;
} else {
actionBoardPairBuilder_.addAllMessages(other.actionBoardPair_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getActionBoardPairCount(); i++) {
if (!getActionBoardPair(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.protos.HAOutboundProto.MoveList.HABPList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.protos.HAOutboundProto.MoveList.HABPList) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List<com.protos.HAOutboundProto.HABP> actionBoardPair_ =
java.util.Collections.emptyList();
private void ensureActionBoardPairIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
actionBoardPair_ = new java.util.ArrayList<com.protos.HAOutboundProto.HABP>(actionBoardPair_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.protos.HAOutboundProto.HABP, com.protos.HAOutboundProto.HABP.Builder, com.protos.HAOutboundProto.HABPOrBuilder> actionBoardPairBuilder_;
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public java.util.List<com.protos.HAOutboundProto.HABP> getActionBoardPairList() {
if (actionBoardPairBuilder_ == null) {
return java.util.Collections.unmodifiableList(actionBoardPair_);
} else {
return actionBoardPairBuilder_.getMessageList();
}
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public int getActionBoardPairCount() {
if (actionBoardPairBuilder_ == null) {
return actionBoardPair_.size();
} else {
return actionBoardPairBuilder_.getCount();
}
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public com.protos.HAOutboundProto.HABP getActionBoardPair(int index) {
if (actionBoardPairBuilder_ == null) {
return actionBoardPair_.get(index);
} else {
return actionBoardPairBuilder_.getMessage(index);
}
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public Builder setActionBoardPair(
int index, com.protos.HAOutboundProto.HABP value) {
if (actionBoardPairBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureActionBoardPairIsMutable();
actionBoardPair_.set(index, value);
onChanged();
} else {
actionBoardPairBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public Builder setActionBoardPair(
int index, com.protos.HAOutboundProto.HABP.Builder builderForValue) {
if (actionBoardPairBuilder_ == null) {
ensureActionBoardPairIsMutable();
actionBoardPair_.set(index, builderForValue.build());
onChanged();
} else {
actionBoardPairBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public Builder addActionBoardPair(com.protos.HAOutboundProto.HABP value) {
if (actionBoardPairBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureActionBoardPairIsMutable();
actionBoardPair_.add(value);
onChanged();
} else {
actionBoardPairBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public Builder addActionBoardPair(
int index, com.protos.HAOutboundProto.HABP value) {
if (actionBoardPairBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureActionBoardPairIsMutable();
actionBoardPair_.add(index, value);
onChanged();
} else {
actionBoardPairBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public Builder addActionBoardPair(
com.protos.HAOutboundProto.HABP.Builder builderForValue) {
if (actionBoardPairBuilder_ == null) {
ensureActionBoardPairIsMutable();
actionBoardPair_.add(builderForValue.build());
onChanged();
} else {
actionBoardPairBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public Builder addActionBoardPair(
int index, com.protos.HAOutboundProto.HABP.Builder builderForValue) {
if (actionBoardPairBuilder_ == null) {
ensureActionBoardPairIsMutable();
actionBoardPair_.add(index, builderForValue.build());
onChanged();
} else {
actionBoardPairBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public Builder addAllActionBoardPair(
java.lang.Iterable<? extends com.protos.HAOutboundProto.HABP> values) {
if (actionBoardPairBuilder_ == null) {
ensureActionBoardPairIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, actionBoardPair_);
onChanged();
} else {
actionBoardPairBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public Builder clearActionBoardPair() {
if (actionBoardPairBuilder_ == null) {
actionBoardPair_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
actionBoardPairBuilder_.clear();
}
return this;
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public Builder removeActionBoardPair(int index) {
if (actionBoardPairBuilder_ == null) {
ensureActionBoardPairIsMutable();
actionBoardPair_.remove(index);
onChanged();
} else {
actionBoardPairBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public com.protos.HAOutboundProto.HABP.Builder getActionBoardPairBuilder(
int index) {
return getActionBoardPairFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public com.protos.HAOutboundProto.HABPOrBuilder getActionBoardPairOrBuilder(
int index) {
if (actionBoardPairBuilder_ == null) {
return actionBoardPair_.get(index); } else {
return actionBoardPairBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public java.util.List<? extends com.protos.HAOutboundProto.HABPOrBuilder>
getActionBoardPairOrBuilderList() {
if (actionBoardPairBuilder_ != null) {
return actionBoardPairBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(actionBoardPair_);
}
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public com.protos.HAOutboundProto.HABP.Builder addActionBoardPairBuilder() {
return getActionBoardPairFieldBuilder().addBuilder(
com.protos.HAOutboundProto.HABP.getDefaultInstance());
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public com.protos.HAOutboundProto.HABP.Builder addActionBoardPairBuilder(
int index) {
return getActionBoardPairFieldBuilder().addBuilder(
index, com.protos.HAOutboundProto.HABP.getDefaultInstance());
}
/**
* <code>repeated .com.protos.HABP actionBoardPair = 1;</code>
*/
public java.util.List<com.protos.HAOutboundProto.HABP.Builder>
getActionBoardPairBuilderList() {
return getActionBoardPairFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.protos.HAOutboundProto.HABP, com.protos.HAOutboundProto.HABP.Builder, com.protos.HAOutboundProto.HABPOrBuilder>
getActionBoardPairFieldBuilder() {
if (actionBoardPairBuilder_ == null) {
actionBoardPairBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.protos.HAOutboundProto.HABP, com.protos.HAOutboundProto.HABP.Builder, com.protos.HAOutboundProto.HABPOrBuilder>(
actionBoardPair_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
actionBoardPair_ = null;
}
return actionBoardPairBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.protos.MoveList.HABPList)
}
static {
defaultInstance = new HABPList(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.protos.MoveList.HABPList)
}
public static final int MOVE_FIELD_NUMBER = 1;
private java.util.List<com.protos.HAOutboundProto.MoveList.HABPList> move_;
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public java.util.List<com.protos.HAOutboundProto.MoveList.HABPList> getMoveList() {
return move_;
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public java.util.List<? extends com.protos.HAOutboundProto.MoveList.HABPListOrBuilder>
getMoveOrBuilderList() {
return move_;
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public int getMoveCount() {
return move_.size();
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public com.protos.HAOutboundProto.MoveList.HABPList getMove(int index) {
return move_.get(index);
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public com.protos.HAOutboundProto.MoveList.HABPListOrBuilder getMoveOrBuilder(
int index) {
return move_.get(index);
}
private void initFields() {
move_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getMoveCount(); i++) {
if (!getMove(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 < move_.size(); i++) {
output.writeMessage(1, move_.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 < move_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, move_.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 com.protos.HAOutboundProto.MoveList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.protos.HAOutboundProto.MoveList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.protos.HAOutboundProto.MoveList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.protos.HAOutboundProto.MoveList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.protos.HAOutboundProto.MoveList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.protos.HAOutboundProto.MoveList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.protos.HAOutboundProto.MoveList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.protos.HAOutboundProto.MoveList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.protos.HAOutboundProto.MoveList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.protos.HAOutboundProto.MoveList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.protos.HAOutboundProto.MoveList 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;
}
/**
* Protobuf type {@code com.protos.MoveList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:com.protos.MoveList)
com.protos.HAOutboundProto.MoveListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.protos.HAOutboundProto.internal_static_com_protos_MoveList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.protos.HAOutboundProto.internal_static_com_protos_MoveList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.protos.HAOutboundProto.MoveList.class, com.protos.HAOutboundProto.MoveList.Builder.class);
}
// Construct using com.protos.HAOutboundProto.MoveList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getMoveFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (moveBuilder_ == null) {
move_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
moveBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.protos.HAOutboundProto.internal_static_com_protos_MoveList_descriptor;
}
public com.protos.HAOutboundProto.MoveList getDefaultInstanceForType() {
return com.protos.HAOutboundProto.MoveList.getDefaultInstance();
}
public com.protos.HAOutboundProto.MoveList build() {
com.protos.HAOutboundProto.MoveList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.protos.HAOutboundProto.MoveList buildPartial() {
com.protos.HAOutboundProto.MoveList result = new com.protos.HAOutboundProto.MoveList(this);
int from_bitField0_ = bitField0_;
if (moveBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
move_ = java.util.Collections.unmodifiableList(move_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.move_ = move_;
} else {
result.move_ = moveBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.protos.HAOutboundProto.MoveList) {
return mergeFrom((com.protos.HAOutboundProto.MoveList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.protos.HAOutboundProto.MoveList other) {
if (other == com.protos.HAOutboundProto.MoveList.getDefaultInstance()) return this;
if (moveBuilder_ == null) {
if (!other.move_.isEmpty()) {
if (move_.isEmpty()) {
move_ = other.move_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureMoveIsMutable();
move_.addAll(other.move_);
}
onChanged();
}
} else {
if (!other.move_.isEmpty()) {
if (moveBuilder_.isEmpty()) {
moveBuilder_.dispose();
moveBuilder_ = null;
move_ = other.move_;
bitField0_ = (bitField0_ & ~0x00000001);
moveBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getMoveFieldBuilder() : null;
} else {
moveBuilder_.addAllMessages(other.move_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getMoveCount(); i++) {
if (!getMove(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.protos.HAOutboundProto.MoveList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.protos.HAOutboundProto.MoveList) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List<com.protos.HAOutboundProto.MoveList.HABPList> move_ =
java.util.Collections.emptyList();
private void ensureMoveIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
move_ = new java.util.ArrayList<com.protos.HAOutboundProto.MoveList.HABPList>(move_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
com.protos.HAOutboundProto.MoveList.HABPList, com.protos.HAOutboundProto.MoveList.HABPList.Builder, com.protos.HAOutboundProto.MoveList.HABPListOrBuilder> moveBuilder_;
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public java.util.List<com.protos.HAOutboundProto.MoveList.HABPList> getMoveList() {
if (moveBuilder_ == null) {
return java.util.Collections.unmodifiableList(move_);
} else {
return moveBuilder_.getMessageList();
}
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public int getMoveCount() {
if (moveBuilder_ == null) {
return move_.size();
} else {
return moveBuilder_.getCount();
}
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public com.protos.HAOutboundProto.MoveList.HABPList getMove(int index) {
if (moveBuilder_ == null) {
return move_.get(index);
} else {
return moveBuilder_.getMessage(index);
}
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public Builder setMove(
int index, com.protos.HAOutboundProto.MoveList.HABPList value) {
if (moveBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMoveIsMutable();
move_.set(index, value);
onChanged();
} else {
moveBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public Builder setMove(
int index, com.protos.HAOutboundProto.MoveList.HABPList.Builder builderForValue) {
if (moveBuilder_ == null) {
ensureMoveIsMutable();
move_.set(index, builderForValue.build());
onChanged();
} else {
moveBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public Builder addMove(com.protos.HAOutboundProto.MoveList.HABPList value) {
if (moveBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMoveIsMutable();
move_.add(value);
onChanged();
} else {
moveBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public Builder addMove(
int index, com.protos.HAOutboundProto.MoveList.HABPList value) {
if (moveBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMoveIsMutable();
move_.add(index, value);
onChanged();
} else {
moveBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public Builder addMove(
com.protos.HAOutboundProto.MoveList.HABPList.Builder builderForValue) {
if (moveBuilder_ == null) {
ensureMoveIsMutable();
move_.add(builderForValue.build());
onChanged();
} else {
moveBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public Builder addMove(
int index, com.protos.HAOutboundProto.MoveList.HABPList.Builder builderForValue) {
if (moveBuilder_ == null) {
ensureMoveIsMutable();
move_.add(index, builderForValue.build());
onChanged();
} else {
moveBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public Builder addAllMove(
java.lang.Iterable<? extends com.protos.HAOutboundProto.MoveList.HABPList> values) {
if (moveBuilder_ == null) {
ensureMoveIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, move_);
onChanged();
} else {
moveBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public Builder clearMove() {
if (moveBuilder_ == null) {
move_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
moveBuilder_.clear();
}
return this;
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public Builder removeMove(int index) {
if (moveBuilder_ == null) {
ensureMoveIsMutable();
move_.remove(index);
onChanged();
} else {
moveBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public com.protos.HAOutboundProto.MoveList.HABPList.Builder getMoveBuilder(
int index) {
return getMoveFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public com.protos.HAOutboundProto.MoveList.HABPListOrBuilder getMoveOrBuilder(
int index) {
if (moveBuilder_ == null) {
return move_.get(index); } else {
return moveBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public java.util.List<? extends com.protos.HAOutboundProto.MoveList.HABPListOrBuilder>
getMoveOrBuilderList() {
if (moveBuilder_ != null) {
return moveBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(move_);
}
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public com.protos.HAOutboundProto.MoveList.HABPList.Builder addMoveBuilder() {
return getMoveFieldBuilder().addBuilder(
com.protos.HAOutboundProto.MoveList.HABPList.getDefaultInstance());
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public com.protos.HAOutboundProto.MoveList.HABPList.Builder addMoveBuilder(
int index) {
return getMoveFieldBuilder().addBuilder(
index, com.protos.HAOutboundProto.MoveList.HABPList.getDefaultInstance());
}
/**
* <code>repeated .com.protos.MoveList.HABPList move = 1;</code>
*/
public java.util.List<com.protos.HAOutboundProto.MoveList.HABPList.Builder>
getMoveBuilderList() {
return getMoveFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
com.protos.HAOutboundProto.MoveList.HABPList, com.protos.HAOutboundProto.MoveList.HABPList.Builder, com.protos.HAOutboundProto.MoveList.HABPListOrBuilder>
getMoveFieldBuilder() {
if (moveBuilder_ == null) {
moveBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
com.protos.HAOutboundProto.MoveList.HABPList, com.protos.HAOutboundProto.MoveList.HABPList.Builder, com.protos.HAOutboundProto.MoveList.HABPListOrBuilder>(
move_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
move_ = null;
}
return moveBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.protos.MoveList)
}
static {
defaultInstance = new MoveList(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.protos.MoveList)
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_protos_Action_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_protos_Action_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_protos_Board_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_protos_Board_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_protos_HABP_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_protos_HABP_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_protos_MoveList_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_protos_MoveList_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_protos_MoveList_HABPList_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_protos_MoveList_HABPList_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\016moveList.proto\022\ncom.protos\032\022player_mod" +
"el.proto\"\313\005\n\006Action\022%\n\004verb\030\001 \002(\0162\027.com." +
"protos.Action.Verb\022@\n\031actionPerformerPla" +
"yerSide\030\002 \002(\0162\035.com.protos.Action.Player" +
"Side\022\034\n\024cardOrCharacterIndex\030\003 \002(\005\0227\n\020ta" +
"rgetPlayerSide\030\004 \001(\0162\035.com.protos.Action" +
".PlayerSide\022?\n\024targetCharacterIndex\030\005 \001(" +
"\0162!.com.protos.Action.CharacterIndex\"\341\001\n" +
"\004Verb\022\014\n\010USE_CARD\020\001\022\020\n\014HERO_ABILITY\020\002\022\n\n" +
"\006ATTACK\020\003\022\032\n\026UNTARGETABLE_BATTLECRY\020\004\022\030\n",
"\024TARGETABLE_BATTLECRY\020\005\022\016\n\nSTART_TURN\020\006\022" +
"\014\n\010END_TURN\020\007\022\023\n\017DO_NOT_USE_CARD\020\010\022\021\n\rDO" +
"_NOT_ATTACK\020\t\022\030\n\024DO_NOT_USE_HEROPOWER\020\n\022" +
"\007\n\003RNG\020\013\022\016\n\nDRAW_CARDS\020\014\"4\n\nPlayerSide\022\022" +
"\n\016CURRENT_PLAYER\020\001\022\022\n\016WAITING_PLAYER\020\002\"\245" +
"\001\n\016CharacterIndex\022\010\n\004HERO\020\000\022\014\n\010MINION_1\020" +
"\001\022\014\n\010MINION_2\020\002\022\014\n\010MINION_3\020\003\022\014\n\010MINION_" +
"4\020\004\022\014\n\010MINION_5\020\005\022\014\n\010MINION_6\020\006\022\014\n\010MINIO" +
"N_7\020\007\022\014\n\010MINION_8\020\010\022\014\n\010MINION_9\020\t\022\013\n\007UNK" +
"NOWN\020c\"g\n\005Board\022.\n\rcurrentPlayer\030\001 \002(\0132\027",
".com.protos.PlayerModel\022.\n\rwaitingPlayer" +
"\030\002 \002(\0132\027.com.protos.PlayerModel\"L\n\004HABP\022" +
" \n\005board\030\001 \002(\0132\021.com.protos.Board\022\"\n\006act" +
"ion\030\002 \001(\0132\022.com.protos.Action\"n\n\010MoveLis" +
"t\022+\n\004move\030\001 \003(\0132\035.com.protos.MoveList.HA" +
"BPList\0325\n\010HABPList\022)\n\017actionBoardPair\030\001 " +
"\003(\0132\020.com.protos.HABPB\035\n\ncom.protosB\017HAO" +
"utboundProto"
};
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;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.protos.PlayerModelProto.getDescriptor(),
}, assigner);
internal_static_com_protos_Action_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_protos_Action_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_protos_Action_descriptor,
new java.lang.String[] { "Verb", "ActionPerformerPlayerSide", "CardOrCharacterIndex", "TargetPlayerSide", "TargetCharacterIndex", });
internal_static_com_protos_Board_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_protos_Board_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_protos_Board_descriptor,
new java.lang.String[] { "CurrentPlayer", "WaitingPlayer", });
internal_static_com_protos_HABP_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_com_protos_HABP_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_protos_HABP_descriptor,
new java.lang.String[] { "Board", "Action", });
internal_static_com_protos_MoveList_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_com_protos_MoveList_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_protos_MoveList_descriptor,
new java.lang.String[] { "Move", });
internal_static_com_protos_MoveList_HABPList_descriptor =
internal_static_com_protos_MoveList_descriptor.getNestedTypes().get(0);
internal_static_com_protos_MoveList_HABPList_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_protos_MoveList_HABPList_descriptor,
new java.lang.String[] { "ActionBoardPair", });
com.protos.PlayerModelProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}