diff --git a/.gitignore b/.gitignore index bafdd72c4..f60bec992 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ *.bin *.lock serverlogic/src/main/java/com/ljsd/jieling/protocols -*.class \ No newline at end of file +*.class +out \ No newline at end of file diff --git a/serverlogic/src/main/java/com/ljsd/jieling/protocols/CommonProto.java b/serverlogic/src/main/java/com/ljsd/jieling/protocols/CommonProto.java deleted file mode 100644 index 150b76b8c..000000000 --- a/serverlogic/src/main/java/com/ljsd/jieling/protocols/CommonProto.java +++ /dev/null @@ -1,8548 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: CommonProto.proto - -package com.ljsd.jieling.protocols; - -public final class CommonProto { - private CommonProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface CommonOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.Common} - */ - public static final class Common extends - com.google.protobuf.GeneratedMessage - implements CommonOrBuilder { - // Use Common.newBuilder() to construct. - private Common(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Common(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Common defaultInstance; - public static Common getDefaultInstance() { - return defaultInstance; - } - - public Common getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Common( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.class, com.ljsd.jieling.protocols.CommonProto.Common.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Common parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Common(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public interface PlayerOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional int32 uid = 1; - /** - * optional int32 uid = 1; - */ - boolean hasUid(); - /** - * optional int32 uid = 1; - */ - int getUid(); - - // optional string nicknime = 2; - /** - * optional string nicknime = 2; - */ - boolean hasNicknime(); - /** - * optional string nicknime = 2; - */ - java.lang.String getNicknime(); - /** - * optional string nicknime = 2; - */ - com.google.protobuf.ByteString - getNicknimeBytes(); - - // optional int32 level = 3; - /** - * optional int32 level = 3; - */ - boolean hasLevel(); - /** - * optional int32 level = 3; - */ - int getLevel(); - - // optional int32 exp = 4; - /** - * optional int32 exp = 4; - */ - boolean hasExp(); - /** - * optional int32 exp = 4; - */ - int getExp(); - - // optional int32 vipLevel = 5; - /** - * optional int32 vipLevel = 5; - */ - boolean hasVipLevel(); - /** - * optional int32 vipLevel = 5; - */ - int getVipLevel(); - - // optional string familyId = 6; - /** - * optional string familyId = 6; - */ - boolean hasFamilyId(); - /** - * optional string familyId = 6; - */ - java.lang.String getFamilyId(); - /** - * optional string familyId = 6; - */ - com.google.protobuf.ByteString - getFamilyIdBytes(); - - // optional string head = 7; - /** - * optional string head = 7; - */ - boolean hasHead(); - /** - * optional string head = 7; - */ - java.lang.String getHead(); - /** - * optional string head = 7; - */ - com.google.protobuf.ByteString - getHeadBytes(); - - // optional int32 gold = 8; - /** - * optional int32 gold = 8; - */ - boolean hasGold(); - /** - * optional int32 gold = 8; - */ - int getGold(); - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.Common.Player} - */ - public static final class Player extends - com.google.protobuf.GeneratedMessage - implements PlayerOrBuilder { - // Use Player.newBuilder() to construct. - private Player(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Player(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Player defaultInstance; - public static Player getDefaultInstance() { - return defaultInstance; - } - - public Player getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Player( - 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: { - bitField0_ |= 0x00000001; - uid_ = input.readInt32(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - nicknime_ = input.readBytes(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - level_ = input.readInt32(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - exp_ = input.readInt32(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - vipLevel_ = input.readInt32(); - break; - } - case 50: { - bitField0_ |= 0x00000020; - familyId_ = input.readBytes(); - break; - } - case 58: { - bitField0_ |= 0x00000040; - head_ = input.readBytes(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - gold_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Player_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Player_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Player.class, com.ljsd.jieling.protocols.CommonProto.Common.Player.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Player parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Player(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional int32 uid = 1; - public static final int UID_FIELD_NUMBER = 1; - private int uid_; - /** - * optional int32 uid = 1; - */ - public boolean hasUid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 uid = 1; - */ - public int getUid() { - return uid_; - } - - // optional string nicknime = 2; - public static final int NICKNIME_FIELD_NUMBER = 2; - private java.lang.Object nicknime_; - /** - * optional string nicknime = 2; - */ - public boolean hasNicknime() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string nicknime = 2; - */ - public java.lang.String getNicknime() { - java.lang.Object ref = nicknime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - nicknime_ = s; - } - return s; - } - } - /** - * optional string nicknime = 2; - */ - public com.google.protobuf.ByteString - getNicknimeBytes() { - java.lang.Object ref = nicknime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nicknime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional int32 level = 3; - public static final int LEVEL_FIELD_NUMBER = 3; - private int level_; - /** - * optional int32 level = 3; - */ - public boolean hasLevel() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 level = 3; - */ - public int getLevel() { - return level_; - } - - // optional int32 exp = 4; - public static final int EXP_FIELD_NUMBER = 4; - private int exp_; - /** - * optional int32 exp = 4; - */ - public boolean hasExp() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 exp = 4; - */ - public int getExp() { - return exp_; - } - - // optional int32 vipLevel = 5; - public static final int VIPLEVEL_FIELD_NUMBER = 5; - private int vipLevel_; - /** - * optional int32 vipLevel = 5; - */ - public boolean hasVipLevel() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 vipLevel = 5; - */ - public int getVipLevel() { - return vipLevel_; - } - - // optional string familyId = 6; - public static final int FAMILYID_FIELD_NUMBER = 6; - private java.lang.Object familyId_; - /** - * optional string familyId = 6; - */ - public boolean hasFamilyId() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string familyId = 6; - */ - public java.lang.String getFamilyId() { - java.lang.Object ref = familyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - familyId_ = s; - } - return s; - } - } - /** - * optional string familyId = 6; - */ - public com.google.protobuf.ByteString - getFamilyIdBytes() { - java.lang.Object ref = familyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - familyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string head = 7; - public static final int HEAD_FIELD_NUMBER = 7; - private java.lang.Object head_; - /** - * optional string head = 7; - */ - public boolean hasHead() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string head = 7; - */ - public java.lang.String getHead() { - java.lang.Object ref = head_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - head_ = s; - } - return s; - } - } - /** - * optional string head = 7; - */ - public com.google.protobuf.ByteString - getHeadBytes() { - java.lang.Object ref = head_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - head_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional int32 gold = 8; - public static final int GOLD_FIELD_NUMBER = 8; - private int gold_; - /** - * optional int32 gold = 8; - */ - public boolean hasGold() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional int32 gold = 8; - */ - public int getGold() { - return gold_; - } - - private void initFields() { - uid_ = 0; - nicknime_ = ""; - level_ = 0; - exp_ = 0; - vipLevel_ = 0; - familyId_ = ""; - head_ = ""; - gold_ = 0; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, uid_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNicknimeBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt32(3, level_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt32(4, exp_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeInt32(5, vipLevel_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getFamilyIdBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getHeadBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeInt32(8, gold_); - } - 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 - .computeInt32Size(1, uid_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNicknimeBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, level_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, exp_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, vipLevel_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getFamilyIdBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getHeadBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(8, gold_); - } - 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.ljsd.jieling.protocols.CommonProto.Common.Player parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Player 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.ljsd.jieling.protocols.CommonProto.Common.Player 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.ljsd.jieling.protocols.Common.Player} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.CommonProto.Common.PlayerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Player_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Player_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Player.class, com.ljsd.jieling.protocols.CommonProto.Common.Player.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Player.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(); - uid_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - nicknime_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - level_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - exp_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - vipLevel_ = 0; - bitField0_ = (bitField0_ & ~0x00000010); - familyId_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - head_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); - gold_ = 0; - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Player_descriptor; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Player getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.CommonProto.Common.Player.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Player build() { - com.ljsd.jieling.protocols.CommonProto.Common.Player result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Player buildPartial() { - com.ljsd.jieling.protocols.CommonProto.Common.Player result = new com.ljsd.jieling.protocols.CommonProto.Common.Player(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.uid_ = uid_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.nicknime_ = nicknime_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.level_ = level_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.exp_ = exp_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.vipLevel_ = vipLevel_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.familyId_ = familyId_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.head_ = head_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.gold_ = gold_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Player) { - return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Player)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Player other) { - if (other == com.ljsd.jieling.protocols.CommonProto.Common.Player.getDefaultInstance()) return this; - if (other.hasUid()) { - setUid(other.getUid()); - } - if (other.hasNicknime()) { - bitField0_ |= 0x00000002; - nicknime_ = other.nicknime_; - onChanged(); - } - if (other.hasLevel()) { - setLevel(other.getLevel()); - } - if (other.hasExp()) { - setExp(other.getExp()); - } - if (other.hasVipLevel()) { - setVipLevel(other.getVipLevel()); - } - if (other.hasFamilyId()) { - bitField0_ |= 0x00000020; - familyId_ = other.familyId_; - onChanged(); - } - if (other.hasHead()) { - bitField0_ |= 0x00000040; - head_ = other.head_; - onChanged(); - } - if (other.hasGold()) { - setGold(other.getGold()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.CommonProto.Common.Player parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Player) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional int32 uid = 1; - private int uid_ ; - /** - * optional int32 uid = 1; - */ - public boolean hasUid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 uid = 1; - */ - public int getUid() { - return uid_; - } - /** - * optional int32 uid = 1; - */ - public Builder setUid(int value) { - bitField0_ |= 0x00000001; - uid_ = value; - onChanged(); - return this; - } - /** - * optional int32 uid = 1; - */ - public Builder clearUid() { - bitField0_ = (bitField0_ & ~0x00000001); - uid_ = 0; - onChanged(); - return this; - } - - // optional string nicknime = 2; - private java.lang.Object nicknime_ = ""; - /** - * optional string nicknime = 2; - */ - public boolean hasNicknime() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string nicknime = 2; - */ - public java.lang.String getNicknime() { - java.lang.Object ref = nicknime_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - nicknime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string nicknime = 2; - */ - public com.google.protobuf.ByteString - getNicknimeBytes() { - java.lang.Object ref = nicknime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nicknime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string nicknime = 2; - */ - public Builder setNicknime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - nicknime_ = value; - onChanged(); - return this; - } - /** - * optional string nicknime = 2; - */ - public Builder clearNicknime() { - bitField0_ = (bitField0_ & ~0x00000002); - nicknime_ = getDefaultInstance().getNicknime(); - onChanged(); - return this; - } - /** - * optional string nicknime = 2; - */ - public Builder setNicknimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - nicknime_ = value; - onChanged(); - return this; - } - - // optional int32 level = 3; - private int level_ ; - /** - * optional int32 level = 3; - */ - public boolean hasLevel() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 level = 3; - */ - public int getLevel() { - return level_; - } - /** - * optional int32 level = 3; - */ - public Builder setLevel(int value) { - bitField0_ |= 0x00000004; - level_ = value; - onChanged(); - return this; - } - /** - * optional int32 level = 3; - */ - public Builder clearLevel() { - bitField0_ = (bitField0_ & ~0x00000004); - level_ = 0; - onChanged(); - return this; - } - - // optional int32 exp = 4; - private int exp_ ; - /** - * optional int32 exp = 4; - */ - public boolean hasExp() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 exp = 4; - */ - public int getExp() { - return exp_; - } - /** - * optional int32 exp = 4; - */ - public Builder setExp(int value) { - bitField0_ |= 0x00000008; - exp_ = value; - onChanged(); - return this; - } - /** - * optional int32 exp = 4; - */ - public Builder clearExp() { - bitField0_ = (bitField0_ & ~0x00000008); - exp_ = 0; - onChanged(); - return this; - } - - // optional int32 vipLevel = 5; - private int vipLevel_ ; - /** - * optional int32 vipLevel = 5; - */ - public boolean hasVipLevel() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 vipLevel = 5; - */ - public int getVipLevel() { - return vipLevel_; - } - /** - * optional int32 vipLevel = 5; - */ - public Builder setVipLevel(int value) { - bitField0_ |= 0x00000010; - vipLevel_ = value; - onChanged(); - return this; - } - /** - * optional int32 vipLevel = 5; - */ - public Builder clearVipLevel() { - bitField0_ = (bitField0_ & ~0x00000010); - vipLevel_ = 0; - onChanged(); - return this; - } - - // optional string familyId = 6; - private java.lang.Object familyId_ = ""; - /** - * optional string familyId = 6; - */ - public boolean hasFamilyId() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string familyId = 6; - */ - public java.lang.String getFamilyId() { - java.lang.Object ref = familyId_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - familyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string familyId = 6; - */ - public com.google.protobuf.ByteString - getFamilyIdBytes() { - java.lang.Object ref = familyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - familyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string familyId = 6; - */ - public Builder setFamilyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - familyId_ = value; - onChanged(); - return this; - } - /** - * optional string familyId = 6; - */ - public Builder clearFamilyId() { - bitField0_ = (bitField0_ & ~0x00000020); - familyId_ = getDefaultInstance().getFamilyId(); - onChanged(); - return this; - } - /** - * optional string familyId = 6; - */ - public Builder setFamilyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - familyId_ = value; - onChanged(); - return this; - } - - // optional string head = 7; - private java.lang.Object head_ = ""; - /** - * optional string head = 7; - */ - public boolean hasHead() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string head = 7; - */ - public java.lang.String getHead() { - java.lang.Object ref = head_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - head_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string head = 7; - */ - public com.google.protobuf.ByteString - getHeadBytes() { - java.lang.Object ref = head_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - head_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string head = 7; - */ - public Builder setHead( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - head_ = value; - onChanged(); - return this; - } - /** - * optional string head = 7; - */ - public Builder clearHead() { - bitField0_ = (bitField0_ & ~0x00000040); - head_ = getDefaultInstance().getHead(); - onChanged(); - return this; - } - /** - * optional string head = 7; - */ - public Builder setHeadBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - head_ = value; - onChanged(); - return this; - } - - // optional int32 gold = 8; - private int gold_ ; - /** - * optional int32 gold = 8; - */ - public boolean hasGold() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional int32 gold = 8; - */ - public int getGold() { - return gold_; - } - /** - * optional int32 gold = 8; - */ - public Builder setGold(int value) { - bitField0_ |= 0x00000080; - gold_ = value; - onChanged(); - return this; - } - /** - * optional int32 gold = 8; - */ - public Builder clearGold() { - bitField0_ = (bitField0_ & ~0x00000080); - gold_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Player) - } - - static { - defaultInstance = new Player(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Player) - } - - public interface ItemOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string id = 1; - /** - * optional string id = 1; - */ - boolean hasId(); - /** - * optional string id = 1; - */ - java.lang.String getId(); - /** - * optional string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - // optional int32 itemId = 2; - /** - * optional int32 itemId = 2; - */ - boolean hasItemId(); - /** - * optional int32 itemId = 2; - */ - int getItemId(); - - // optional int32 itemNum = 3; - /** - * optional int32 itemNum = 3; - */ - boolean hasItemNum(); - /** - * optional int32 itemNum = 3; - */ - int getItemNum(); - - // optional int32 itemType = 4; - /** - * optional int32 itemType = 4; - */ - boolean hasItemType(); - /** - * optional int32 itemType = 4; - */ - int getItemType(); - - // optional int32 itemQuality = 5; - /** - * optional int32 itemQuality = 5; - */ - boolean hasItemQuality(); - /** - * optional int32 itemQuality = 5; - */ - int getItemQuality(); - - // optional bool isStacking = 6; - /** - * optional bool isStacking = 6; - */ - boolean hasIsStacking(); - /** - * optional bool isStacking = 6; - */ - boolean getIsStacking(); - - // optional int32 endingTime = 7; - /** - * optional int32 endingTime = 7; - */ - boolean hasEndingTime(); - /** - * optional int32 endingTime = 7; - */ - int getEndingTime(); - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.Common.Item} - */ - public static final class Item extends - com.google.protobuf.GeneratedMessage - implements ItemOrBuilder { - // Use Item.newBuilder() to construct. - private Item(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Item(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Item defaultInstance; - public static Item getDefaultInstance() { - return defaultInstance; - } - - public Item getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Item( - 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: { - bitField0_ |= 0x00000001; - id_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - itemId_ = input.readInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - itemNum_ = input.readInt32(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - itemType_ = input.readInt32(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - itemQuality_ = input.readInt32(); - break; - } - case 48: { - bitField0_ |= 0x00000020; - isStacking_ = input.readBool(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - endingTime_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Item_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Item_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Item.class, com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Item parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Item(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string id = 1; - public static final int ID_FIELD_NUMBER = 1; - private java.lang.Object id_; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional int32 itemId = 2; - public static final int ITEMID_FIELD_NUMBER = 2; - private int itemId_; - /** - * optional int32 itemId = 2; - */ - public boolean hasItemId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 itemId = 2; - */ - public int getItemId() { - return itemId_; - } - - // optional int32 itemNum = 3; - public static final int ITEMNUM_FIELD_NUMBER = 3; - private int itemNum_; - /** - * optional int32 itemNum = 3; - */ - public boolean hasItemNum() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 itemNum = 3; - */ - public int getItemNum() { - return itemNum_; - } - - // optional int32 itemType = 4; - public static final int ITEMTYPE_FIELD_NUMBER = 4; - private int itemType_; - /** - * optional int32 itemType = 4; - */ - public boolean hasItemType() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 itemType = 4; - */ - public int getItemType() { - return itemType_; - } - - // optional int32 itemQuality = 5; - public static final int ITEMQUALITY_FIELD_NUMBER = 5; - private int itemQuality_; - /** - * optional int32 itemQuality = 5; - */ - public boolean hasItemQuality() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 itemQuality = 5; - */ - public int getItemQuality() { - return itemQuality_; - } - - // optional bool isStacking = 6; - public static final int ISSTACKING_FIELD_NUMBER = 6; - private boolean isStacking_; - /** - * optional bool isStacking = 6; - */ - public boolean hasIsStacking() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional bool isStacking = 6; - */ - public boolean getIsStacking() { - return isStacking_; - } - - // optional int32 endingTime = 7; - public static final int ENDINGTIME_FIELD_NUMBER = 7; - private int endingTime_; - /** - * optional int32 endingTime = 7; - */ - public boolean hasEndingTime() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional int32 endingTime = 7; - */ - public int getEndingTime() { - return endingTime_; - } - - private void initFields() { - id_ = ""; - itemId_ = 0; - itemNum_ = 0; - itemType_ = 0; - itemQuality_ = 0; - isStacking_ = false; - endingTime_ = 0; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, itemId_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt32(3, itemNum_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt32(4, itemType_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeInt32(5, itemQuality_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBool(6, isStacking_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeInt32(7, endingTime_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, itemId_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, itemNum_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, itemType_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, itemQuality_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, isStacking_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, endingTime_); - } - 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.ljsd.jieling.protocols.CommonProto.Common.Item parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Item 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.ljsd.jieling.protocols.CommonProto.Common.Item 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.ljsd.jieling.protocols.Common.Item} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.CommonProto.Common.ItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Item_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Item_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Item.class, com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Item.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(); - id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - itemId_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - itemNum_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - itemType_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - itemQuality_ = 0; - bitField0_ = (bitField0_ & ~0x00000010); - isStacking_ = false; - bitField0_ = (bitField0_ & ~0x00000020); - endingTime_ = 0; - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Item_descriptor; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Item getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.CommonProto.Common.Item.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Item build() { - com.ljsd.jieling.protocols.CommonProto.Common.Item result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Item buildPartial() { - com.ljsd.jieling.protocols.CommonProto.Common.Item result = new com.ljsd.jieling.protocols.CommonProto.Common.Item(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.itemId_ = itemId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.itemNum_ = itemNum_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.itemType_ = itemType_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.itemQuality_ = itemQuality_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.isStacking_ = isStacking_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.endingTime_ = endingTime_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Item) { - return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Item)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Item other) { - if (other == com.ljsd.jieling.protocols.CommonProto.Common.Item.getDefaultInstance()) return this; - if (other.hasId()) { - bitField0_ |= 0x00000001; - id_ = other.id_; - onChanged(); - } - if (other.hasItemId()) { - setItemId(other.getItemId()); - } - if (other.hasItemNum()) { - setItemNum(other.getItemNum()); - } - if (other.hasItemType()) { - setItemType(other.getItemType()); - } - if (other.hasItemQuality()) { - setItemQuality(other.getItemQuality()); - } - if (other.hasIsStacking()) { - setIsStacking(other.getIsStacking()); - } - if (other.hasEndingTime()) { - setEndingTime(other.getEndingTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.CommonProto.Common.Item parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Item) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string id = 1; - private java.lang.Object id_ = ""; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - - // optional int32 itemId = 2; - private int itemId_ ; - /** - * optional int32 itemId = 2; - */ - public boolean hasItemId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 itemId = 2; - */ - public int getItemId() { - return itemId_; - } - /** - * optional int32 itemId = 2; - */ - public Builder setItemId(int value) { - bitField0_ |= 0x00000002; - itemId_ = value; - onChanged(); - return this; - } - /** - * optional int32 itemId = 2; - */ - public Builder clearItemId() { - bitField0_ = (bitField0_ & ~0x00000002); - itemId_ = 0; - onChanged(); - return this; - } - - // optional int32 itemNum = 3; - private int itemNum_ ; - /** - * optional int32 itemNum = 3; - */ - public boolean hasItemNum() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 itemNum = 3; - */ - public int getItemNum() { - return itemNum_; - } - /** - * optional int32 itemNum = 3; - */ - public Builder setItemNum(int value) { - bitField0_ |= 0x00000004; - itemNum_ = value; - onChanged(); - return this; - } - /** - * optional int32 itemNum = 3; - */ - public Builder clearItemNum() { - bitField0_ = (bitField0_ & ~0x00000004); - itemNum_ = 0; - onChanged(); - return this; - } - - // optional int32 itemType = 4; - private int itemType_ ; - /** - * optional int32 itemType = 4; - */ - public boolean hasItemType() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 itemType = 4; - */ - public int getItemType() { - return itemType_; - } - /** - * optional int32 itemType = 4; - */ - public Builder setItemType(int value) { - bitField0_ |= 0x00000008; - itemType_ = value; - onChanged(); - return this; - } - /** - * optional int32 itemType = 4; - */ - public Builder clearItemType() { - bitField0_ = (bitField0_ & ~0x00000008); - itemType_ = 0; - onChanged(); - return this; - } - - // optional int32 itemQuality = 5; - private int itemQuality_ ; - /** - * optional int32 itemQuality = 5; - */ - public boolean hasItemQuality() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 itemQuality = 5; - */ - public int getItemQuality() { - return itemQuality_; - } - /** - * optional int32 itemQuality = 5; - */ - public Builder setItemQuality(int value) { - bitField0_ |= 0x00000010; - itemQuality_ = value; - onChanged(); - return this; - } - /** - * optional int32 itemQuality = 5; - */ - public Builder clearItemQuality() { - bitField0_ = (bitField0_ & ~0x00000010); - itemQuality_ = 0; - onChanged(); - return this; - } - - // optional bool isStacking = 6; - private boolean isStacking_ ; - /** - * optional bool isStacking = 6; - */ - public boolean hasIsStacking() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional bool isStacking = 6; - */ - public boolean getIsStacking() { - return isStacking_; - } - /** - * optional bool isStacking = 6; - */ - public Builder setIsStacking(boolean value) { - bitField0_ |= 0x00000020; - isStacking_ = value; - onChanged(); - return this; - } - /** - * optional bool isStacking = 6; - */ - public Builder clearIsStacking() { - bitField0_ = (bitField0_ & ~0x00000020); - isStacking_ = false; - onChanged(); - return this; - } - - // optional int32 endingTime = 7; - private int endingTime_ ; - /** - * optional int32 endingTime = 7; - */ - public boolean hasEndingTime() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional int32 endingTime = 7; - */ - public int getEndingTime() { - return endingTime_; - } - /** - * optional int32 endingTime = 7; - */ - public Builder setEndingTime(int value) { - bitField0_ |= 0x00000040; - endingTime_ = value; - onChanged(); - return this; - } - /** - * optional int32 endingTime = 7; - */ - public Builder clearEndingTime() { - bitField0_ = (bitField0_ & ~0x00000040); - endingTime_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Item) - } - - static { - defaultInstance = new Item(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Item) - } - - public interface HeroOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string id = 1; - /** - * optional string id = 1; - */ - boolean hasId(); - /** - * optional string id = 1; - */ - java.lang.String getId(); - /** - * optional string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - // optional int32 heroId = 2; - /** - * optional int32 heroId = 2; - */ - boolean hasHeroId(); - /** - * optional int32 heroId = 2; - */ - int getHeroId(); - - // optional int32 heroType = 3; - /** - * optional int32 heroType = 3; - */ - boolean hasHeroType(); - /** - * optional int32 heroType = 3; - */ - int getHeroType(); - - // optional int32 level = 4; - /** - * optional int32 level = 4; - */ - boolean hasLevel(); - /** - * optional int32 level = 4; - */ - int getLevel(); - - // optional int32 star = 5; - /** - * optional int32 star = 5; - */ - boolean hasStar(); - /** - * optional int32 star = 5; - */ - int getStar(); - - // optional int32 quality = 6; - /** - * optional int32 quality = 6; - */ - boolean hasQuality(); - /** - * optional int32 quality = 6; - */ - int getQuality(); - - // optional int32 hp = 7; - /** - * optional int32 hp = 7; - */ - boolean hasHp(); - /** - * optional int32 hp = 7; - */ - int getHp(); - - // optional int32 attack = 8; - /** - * optional int32 attack = 8; - */ - boolean hasAttack(); - /** - * optional int32 attack = 8; - */ - int getAttack(); - - // optional int32 pDefence = 9; - /** - * optional int32 pDefence = 9; - */ - boolean hasPDefence(); - /** - * optional int32 pDefence = 9; - */ - int getPDefence(); - - // optional int32 mDefence = 10; - /** - * optional int32 mDefence = 10; - */ - boolean hasMDefence(); - /** - * optional int32 mDefence = 10; - */ - int getMDefence(); - - // optional int32 speed = 11; - /** - * optional int32 speed = 11; - */ - boolean hasSpeed(); - /** - * optional int32 speed = 11; - */ - int getSpeed(); - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.Common.Hero} - */ - public static final class Hero extends - com.google.protobuf.GeneratedMessage - implements HeroOrBuilder { - // Use Hero.newBuilder() to construct. - private Hero(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Hero(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Hero defaultInstance; - public static Hero getDefaultInstance() { - return defaultInstance; - } - - public Hero getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Hero( - 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: { - bitField0_ |= 0x00000001; - id_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - heroId_ = input.readInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - heroType_ = input.readInt32(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - level_ = input.readInt32(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - star_ = input.readInt32(); - break; - } - case 48: { - bitField0_ |= 0x00000020; - quality_ = input.readInt32(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - hp_ = input.readInt32(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - attack_ = input.readInt32(); - break; - } - case 72: { - bitField0_ |= 0x00000100; - pDefence_ = input.readInt32(); - break; - } - case 80: { - bitField0_ |= 0x00000200; - mDefence_ = input.readInt32(); - break; - } - case 88: { - bitField0_ |= 0x00000400; - speed_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Hero_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Hero_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Hero.class, com.ljsd.jieling.protocols.CommonProto.Common.Hero.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Hero parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Hero(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string id = 1; - public static final int ID_FIELD_NUMBER = 1; - private java.lang.Object id_; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional int32 heroId = 2; - public static final int HEROID_FIELD_NUMBER = 2; - private int heroId_; - /** - * optional int32 heroId = 2; - */ - public boolean hasHeroId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 heroId = 2; - */ - public int getHeroId() { - return heroId_; - } - - // optional int32 heroType = 3; - public static final int HEROTYPE_FIELD_NUMBER = 3; - private int heroType_; - /** - * optional int32 heroType = 3; - */ - public boolean hasHeroType() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 heroType = 3; - */ - public int getHeroType() { - return heroType_; - } - - // optional int32 level = 4; - public static final int LEVEL_FIELD_NUMBER = 4; - private int level_; - /** - * optional int32 level = 4; - */ - public boolean hasLevel() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 level = 4; - */ - public int getLevel() { - return level_; - } - - // optional int32 star = 5; - public static final int STAR_FIELD_NUMBER = 5; - private int star_; - /** - * optional int32 star = 5; - */ - public boolean hasStar() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 star = 5; - */ - public int getStar() { - return star_; - } - - // optional int32 quality = 6; - public static final int QUALITY_FIELD_NUMBER = 6; - private int quality_; - /** - * optional int32 quality = 6; - */ - public boolean hasQuality() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional int32 quality = 6; - */ - public int getQuality() { - return quality_; - } - - // optional int32 hp = 7; - public static final int HP_FIELD_NUMBER = 7; - private int hp_; - /** - * optional int32 hp = 7; - */ - public boolean hasHp() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional int32 hp = 7; - */ - public int getHp() { - return hp_; - } - - // optional int32 attack = 8; - public static final int ATTACK_FIELD_NUMBER = 8; - private int attack_; - /** - * optional int32 attack = 8; - */ - public boolean hasAttack() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional int32 attack = 8; - */ - public int getAttack() { - return attack_; - } - - // optional int32 pDefence = 9; - public static final int PDEFENCE_FIELD_NUMBER = 9; - private int pDefence_; - /** - * optional int32 pDefence = 9; - */ - public boolean hasPDefence() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional int32 pDefence = 9; - */ - public int getPDefence() { - return pDefence_; - } - - // optional int32 mDefence = 10; - public static final int MDEFENCE_FIELD_NUMBER = 10; - private int mDefence_; - /** - * optional int32 mDefence = 10; - */ - public boolean hasMDefence() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional int32 mDefence = 10; - */ - public int getMDefence() { - return mDefence_; - } - - // optional int32 speed = 11; - public static final int SPEED_FIELD_NUMBER = 11; - private int speed_; - /** - * optional int32 speed = 11; - */ - public boolean hasSpeed() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional int32 speed = 11; - */ - public int getSpeed() { - return speed_; - } - - private void initFields() { - id_ = ""; - heroId_ = 0; - heroType_ = 0; - level_ = 0; - star_ = 0; - quality_ = 0; - hp_ = 0; - attack_ = 0; - pDefence_ = 0; - mDefence_ = 0; - speed_ = 0; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, heroId_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt32(3, heroType_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt32(4, level_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeInt32(5, star_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeInt32(6, quality_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeInt32(7, hp_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeInt32(8, attack_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeInt32(9, pDefence_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeInt32(10, mDefence_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeInt32(11, speed_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, heroId_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, heroType_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, level_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, star_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, quality_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, hp_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(8, attack_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, pDefence_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(10, mDefence_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(11, speed_); - } - 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.ljsd.jieling.protocols.CommonProto.Common.Hero parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Hero 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.ljsd.jieling.protocols.CommonProto.Common.Hero 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.ljsd.jieling.protocols.Common.Hero} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.CommonProto.Common.HeroOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Hero_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Hero_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Hero.class, com.ljsd.jieling.protocols.CommonProto.Common.Hero.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Hero.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(); - id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - heroId_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - heroType_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - level_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - star_ = 0; - bitField0_ = (bitField0_ & ~0x00000010); - quality_ = 0; - bitField0_ = (bitField0_ & ~0x00000020); - hp_ = 0; - bitField0_ = (bitField0_ & ~0x00000040); - attack_ = 0; - bitField0_ = (bitField0_ & ~0x00000080); - pDefence_ = 0; - bitField0_ = (bitField0_ & ~0x00000100); - mDefence_ = 0; - bitField0_ = (bitField0_ & ~0x00000200); - speed_ = 0; - bitField0_ = (bitField0_ & ~0x00000400); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Hero_descriptor; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Hero getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.CommonProto.Common.Hero.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Hero build() { - com.ljsd.jieling.protocols.CommonProto.Common.Hero result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Hero buildPartial() { - com.ljsd.jieling.protocols.CommonProto.Common.Hero result = new com.ljsd.jieling.protocols.CommonProto.Common.Hero(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.heroId_ = heroId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.heroType_ = heroType_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.level_ = level_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.star_ = star_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.quality_ = quality_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.hp_ = hp_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.attack_ = attack_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.pDefence_ = pDefence_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - result.mDefence_ = mDefence_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000400; - } - result.speed_ = speed_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Hero) { - return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Hero)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Hero other) { - if (other == com.ljsd.jieling.protocols.CommonProto.Common.Hero.getDefaultInstance()) return this; - if (other.hasId()) { - bitField0_ |= 0x00000001; - id_ = other.id_; - onChanged(); - } - if (other.hasHeroId()) { - setHeroId(other.getHeroId()); - } - if (other.hasHeroType()) { - setHeroType(other.getHeroType()); - } - if (other.hasLevel()) { - setLevel(other.getLevel()); - } - if (other.hasStar()) { - setStar(other.getStar()); - } - if (other.hasQuality()) { - setQuality(other.getQuality()); - } - if (other.hasHp()) { - setHp(other.getHp()); - } - if (other.hasAttack()) { - setAttack(other.getAttack()); - } - if (other.hasPDefence()) { - setPDefence(other.getPDefence()); - } - if (other.hasMDefence()) { - setMDefence(other.getMDefence()); - } - if (other.hasSpeed()) { - setSpeed(other.getSpeed()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.CommonProto.Common.Hero parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Hero) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string id = 1; - private java.lang.Object id_ = ""; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - - // optional int32 heroId = 2; - private int heroId_ ; - /** - * optional int32 heroId = 2; - */ - public boolean hasHeroId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 heroId = 2; - */ - public int getHeroId() { - return heroId_; - } - /** - * optional int32 heroId = 2; - */ - public Builder setHeroId(int value) { - bitField0_ |= 0x00000002; - heroId_ = value; - onChanged(); - return this; - } - /** - * optional int32 heroId = 2; - */ - public Builder clearHeroId() { - bitField0_ = (bitField0_ & ~0x00000002); - heroId_ = 0; - onChanged(); - return this; - } - - // optional int32 heroType = 3; - private int heroType_ ; - /** - * optional int32 heroType = 3; - */ - public boolean hasHeroType() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 heroType = 3; - */ - public int getHeroType() { - return heroType_; - } - /** - * optional int32 heroType = 3; - */ - public Builder setHeroType(int value) { - bitField0_ |= 0x00000004; - heroType_ = value; - onChanged(); - return this; - } - /** - * optional int32 heroType = 3; - */ - public Builder clearHeroType() { - bitField0_ = (bitField0_ & ~0x00000004); - heroType_ = 0; - onChanged(); - return this; - } - - // optional int32 level = 4; - private int level_ ; - /** - * optional int32 level = 4; - */ - public boolean hasLevel() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 level = 4; - */ - public int getLevel() { - return level_; - } - /** - * optional int32 level = 4; - */ - public Builder setLevel(int value) { - bitField0_ |= 0x00000008; - level_ = value; - onChanged(); - return this; - } - /** - * optional int32 level = 4; - */ - public Builder clearLevel() { - bitField0_ = (bitField0_ & ~0x00000008); - level_ = 0; - onChanged(); - return this; - } - - // optional int32 star = 5; - private int star_ ; - /** - * optional int32 star = 5; - */ - public boolean hasStar() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 star = 5; - */ - public int getStar() { - return star_; - } - /** - * optional int32 star = 5; - */ - public Builder setStar(int value) { - bitField0_ |= 0x00000010; - star_ = value; - onChanged(); - return this; - } - /** - * optional int32 star = 5; - */ - public Builder clearStar() { - bitField0_ = (bitField0_ & ~0x00000010); - star_ = 0; - onChanged(); - return this; - } - - // optional int32 quality = 6; - private int quality_ ; - /** - * optional int32 quality = 6; - */ - public boolean hasQuality() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional int32 quality = 6; - */ - public int getQuality() { - return quality_; - } - /** - * optional int32 quality = 6; - */ - public Builder setQuality(int value) { - bitField0_ |= 0x00000020; - quality_ = value; - onChanged(); - return this; - } - /** - * optional int32 quality = 6; - */ - public Builder clearQuality() { - bitField0_ = (bitField0_ & ~0x00000020); - quality_ = 0; - onChanged(); - return this; - } - - // optional int32 hp = 7; - private int hp_ ; - /** - * optional int32 hp = 7; - */ - public boolean hasHp() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional int32 hp = 7; - */ - public int getHp() { - return hp_; - } - /** - * optional int32 hp = 7; - */ - public Builder setHp(int value) { - bitField0_ |= 0x00000040; - hp_ = value; - onChanged(); - return this; - } - /** - * optional int32 hp = 7; - */ - public Builder clearHp() { - bitField0_ = (bitField0_ & ~0x00000040); - hp_ = 0; - onChanged(); - return this; - } - - // optional int32 attack = 8; - private int attack_ ; - /** - * optional int32 attack = 8; - */ - public boolean hasAttack() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional int32 attack = 8; - */ - public int getAttack() { - return attack_; - } - /** - * optional int32 attack = 8; - */ - public Builder setAttack(int value) { - bitField0_ |= 0x00000080; - attack_ = value; - onChanged(); - return this; - } - /** - * optional int32 attack = 8; - */ - public Builder clearAttack() { - bitField0_ = (bitField0_ & ~0x00000080); - attack_ = 0; - onChanged(); - return this; - } - - // optional int32 pDefence = 9; - private int pDefence_ ; - /** - * optional int32 pDefence = 9; - */ - public boolean hasPDefence() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional int32 pDefence = 9; - */ - public int getPDefence() { - return pDefence_; - } - /** - * optional int32 pDefence = 9; - */ - public Builder setPDefence(int value) { - bitField0_ |= 0x00000100; - pDefence_ = value; - onChanged(); - return this; - } - /** - * optional int32 pDefence = 9; - */ - public Builder clearPDefence() { - bitField0_ = (bitField0_ & ~0x00000100); - pDefence_ = 0; - onChanged(); - return this; - } - - // optional int32 mDefence = 10; - private int mDefence_ ; - /** - * optional int32 mDefence = 10; - */ - public boolean hasMDefence() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional int32 mDefence = 10; - */ - public int getMDefence() { - return mDefence_; - } - /** - * optional int32 mDefence = 10; - */ - public Builder setMDefence(int value) { - bitField0_ |= 0x00000200; - mDefence_ = value; - onChanged(); - return this; - } - /** - * optional int32 mDefence = 10; - */ - public Builder clearMDefence() { - bitField0_ = (bitField0_ & ~0x00000200); - mDefence_ = 0; - onChanged(); - return this; - } - - // optional int32 speed = 11; - private int speed_ ; - /** - * optional int32 speed = 11; - */ - public boolean hasSpeed() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional int32 speed = 11; - */ - public int getSpeed() { - return speed_; - } - /** - * optional int32 speed = 11; - */ - public Builder setSpeed(int value) { - bitField0_ |= 0x00000400; - speed_ = value; - onChanged(); - return this; - } - /** - * optional int32 speed = 11; - */ - public Builder clearSpeed() { - bitField0_ = (bitField0_ & ~0x00000400); - speed_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Hero) - } - - static { - defaultInstance = new Hero(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Hero) - } - - public interface SkillOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string id = 1; - /** - * optional string id = 1; - */ - boolean hasId(); - /** - * optional string id = 1; - */ - java.lang.String getId(); - /** - * optional string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - // optional int32 skillId = 2; - /** - * optional int32 skillId = 2; - */ - boolean hasSkillId(); - /** - * optional int32 skillId = 2; - */ - int getSkillId(); - - // optional int32 skillType = 3; - /** - * optional int32 skillType = 3; - */ - boolean hasSkillType(); - /** - * optional int32 skillType = 3; - */ - int getSkillType(); - - // optional int32 level = 4; - /** - * optional int32 level = 4; - */ - boolean hasLevel(); - /** - * optional int32 level = 4; - */ - int getLevel(); - - // optional int32 star = 5; - /** - * optional int32 star = 5; - */ - boolean hasStar(); - /** - * optional int32 star = 5; - */ - int getStar(); - - // optional int32 cd = 6; - /** - * optional int32 cd = 6; - */ - boolean hasCd(); - /** - * optional int32 cd = 6; - */ - int getCd(); - - // repeated int32 effectId = 7; - /** - * repeated int32 effectId = 7; - */ - java.util.List getEffectIdList(); - /** - * repeated int32 effectId = 7; - */ - int getEffectIdCount(); - /** - * repeated int32 effectId = 7; - */ - int getEffectId(int index); - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.Common.Skill} - */ - public static final class Skill extends - com.google.protobuf.GeneratedMessage - implements SkillOrBuilder { - // Use Skill.newBuilder() to construct. - private Skill(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Skill(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Skill defaultInstance; - public static Skill getDefaultInstance() { - return defaultInstance; - } - - public Skill getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Skill( - 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: { - bitField0_ |= 0x00000001; - id_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - skillId_ = input.readInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - skillType_ = input.readInt32(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - level_ = input.readInt32(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - star_ = input.readInt32(); - break; - } - case 48: { - bitField0_ |= 0x00000020; - cd_ = input.readInt32(); - break; - } - case 56: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - effectId_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - effectId_.add(input.readInt32()); - break; - } - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { - effectId_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - while (input.getBytesUntilLimit() > 0) { - effectId_.add(input.readInt32()); - } - input.popLimit(limit); - 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_ & 0x00000040) == 0x00000040)) { - effectId_ = java.util.Collections.unmodifiableList(effectId_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Skill_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Skill_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Skill.class, com.ljsd.jieling.protocols.CommonProto.Common.Skill.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Skill parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Skill(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string id = 1; - public static final int ID_FIELD_NUMBER = 1; - private java.lang.Object id_; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional int32 skillId = 2; - public static final int SKILLID_FIELD_NUMBER = 2; - private int skillId_; - /** - * optional int32 skillId = 2; - */ - public boolean hasSkillId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 skillId = 2; - */ - public int getSkillId() { - return skillId_; - } - - // optional int32 skillType = 3; - public static final int SKILLTYPE_FIELD_NUMBER = 3; - private int skillType_; - /** - * optional int32 skillType = 3; - */ - public boolean hasSkillType() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 skillType = 3; - */ - public int getSkillType() { - return skillType_; - } - - // optional int32 level = 4; - public static final int LEVEL_FIELD_NUMBER = 4; - private int level_; - /** - * optional int32 level = 4; - */ - public boolean hasLevel() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 level = 4; - */ - public int getLevel() { - return level_; - } - - // optional int32 star = 5; - public static final int STAR_FIELD_NUMBER = 5; - private int star_; - /** - * optional int32 star = 5; - */ - public boolean hasStar() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 star = 5; - */ - public int getStar() { - return star_; - } - - // optional int32 cd = 6; - public static final int CD_FIELD_NUMBER = 6; - private int cd_; - /** - * optional int32 cd = 6; - */ - public boolean hasCd() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional int32 cd = 6; - */ - public int getCd() { - return cd_; - } - - // repeated int32 effectId = 7; - public static final int EFFECTID_FIELD_NUMBER = 7; - private java.util.List effectId_; - /** - * repeated int32 effectId = 7; - */ - public java.util.List - getEffectIdList() { - return effectId_; - } - /** - * repeated int32 effectId = 7; - */ - public int getEffectIdCount() { - return effectId_.size(); - } - /** - * repeated int32 effectId = 7; - */ - public int getEffectId(int index) { - return effectId_.get(index); - } - - private void initFields() { - id_ = ""; - skillId_ = 0; - skillType_ = 0; - level_ = 0; - star_ = 0; - cd_ = 0; - effectId_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, skillId_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt32(3, skillType_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt32(4, level_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeInt32(5, star_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeInt32(6, cd_); - } - for (int i = 0; i < effectId_.size(); i++) { - output.writeInt32(7, effectId_.get(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, skillId_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, skillType_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, level_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, star_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, cd_); - } - { - int dataSize = 0; - for (int i = 0; i < effectId_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(effectId_.get(i)); - } - size += dataSize; - size += 1 * getEffectIdList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Skill 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.ljsd.jieling.protocols.CommonProto.Common.Skill 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.ljsd.jieling.protocols.Common.Skill} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.CommonProto.Common.SkillOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Skill_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Skill_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Skill.class, com.ljsd.jieling.protocols.CommonProto.Common.Skill.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Skill.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(); - id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - skillId_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - skillType_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - level_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - star_ = 0; - bitField0_ = (bitField0_ & ~0x00000010); - cd_ = 0; - bitField0_ = (bitField0_ & ~0x00000020); - effectId_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Skill_descriptor; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Skill getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.CommonProto.Common.Skill.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Skill build() { - com.ljsd.jieling.protocols.CommonProto.Common.Skill result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Skill buildPartial() { - com.ljsd.jieling.protocols.CommonProto.Common.Skill result = new com.ljsd.jieling.protocols.CommonProto.Common.Skill(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.skillId_ = skillId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.skillType_ = skillType_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.level_ = level_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.star_ = star_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.cd_ = cd_; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - effectId_ = java.util.Collections.unmodifiableList(effectId_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.effectId_ = effectId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Skill) { - return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Skill)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Skill other) { - if (other == com.ljsd.jieling.protocols.CommonProto.Common.Skill.getDefaultInstance()) return this; - if (other.hasId()) { - bitField0_ |= 0x00000001; - id_ = other.id_; - onChanged(); - } - if (other.hasSkillId()) { - setSkillId(other.getSkillId()); - } - if (other.hasSkillType()) { - setSkillType(other.getSkillType()); - } - if (other.hasLevel()) { - setLevel(other.getLevel()); - } - if (other.hasStar()) { - setStar(other.getStar()); - } - if (other.hasCd()) { - setCd(other.getCd()); - } - if (!other.effectId_.isEmpty()) { - if (effectId_.isEmpty()) { - effectId_ = other.effectId_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureEffectIdIsMutable(); - effectId_.addAll(other.effectId_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.CommonProto.Common.Skill parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Skill) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string id = 1; - private java.lang.Object id_ = ""; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - - // optional int32 skillId = 2; - private int skillId_ ; - /** - * optional int32 skillId = 2; - */ - public boolean hasSkillId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 skillId = 2; - */ - public int getSkillId() { - return skillId_; - } - /** - * optional int32 skillId = 2; - */ - public Builder setSkillId(int value) { - bitField0_ |= 0x00000002; - skillId_ = value; - onChanged(); - return this; - } - /** - * optional int32 skillId = 2; - */ - public Builder clearSkillId() { - bitField0_ = (bitField0_ & ~0x00000002); - skillId_ = 0; - onChanged(); - return this; - } - - // optional int32 skillType = 3; - private int skillType_ ; - /** - * optional int32 skillType = 3; - */ - public boolean hasSkillType() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 skillType = 3; - */ - public int getSkillType() { - return skillType_; - } - /** - * optional int32 skillType = 3; - */ - public Builder setSkillType(int value) { - bitField0_ |= 0x00000004; - skillType_ = value; - onChanged(); - return this; - } - /** - * optional int32 skillType = 3; - */ - public Builder clearSkillType() { - bitField0_ = (bitField0_ & ~0x00000004); - skillType_ = 0; - onChanged(); - return this; - } - - // optional int32 level = 4; - private int level_ ; - /** - * optional int32 level = 4; - */ - public boolean hasLevel() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 level = 4; - */ - public int getLevel() { - return level_; - } - /** - * optional int32 level = 4; - */ - public Builder setLevel(int value) { - bitField0_ |= 0x00000008; - level_ = value; - onChanged(); - return this; - } - /** - * optional int32 level = 4; - */ - public Builder clearLevel() { - bitField0_ = (bitField0_ & ~0x00000008); - level_ = 0; - onChanged(); - return this; - } - - // optional int32 star = 5; - private int star_ ; - /** - * optional int32 star = 5; - */ - public boolean hasStar() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 star = 5; - */ - public int getStar() { - return star_; - } - /** - * optional int32 star = 5; - */ - public Builder setStar(int value) { - bitField0_ |= 0x00000010; - star_ = value; - onChanged(); - return this; - } - /** - * optional int32 star = 5; - */ - public Builder clearStar() { - bitField0_ = (bitField0_ & ~0x00000010); - star_ = 0; - onChanged(); - return this; - } - - // optional int32 cd = 6; - private int cd_ ; - /** - * optional int32 cd = 6; - */ - public boolean hasCd() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional int32 cd = 6; - */ - public int getCd() { - return cd_; - } - /** - * optional int32 cd = 6; - */ - public Builder setCd(int value) { - bitField0_ |= 0x00000020; - cd_ = value; - onChanged(); - return this; - } - /** - * optional int32 cd = 6; - */ - public Builder clearCd() { - bitField0_ = (bitField0_ & ~0x00000020); - cd_ = 0; - onChanged(); - return this; - } - - // repeated int32 effectId = 7; - private java.util.List effectId_ = java.util.Collections.emptyList(); - private void ensureEffectIdIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { - effectId_ = new java.util.ArrayList(effectId_); - bitField0_ |= 0x00000040; - } - } - /** - * repeated int32 effectId = 7; - */ - public java.util.List - getEffectIdList() { - return java.util.Collections.unmodifiableList(effectId_); - } - /** - * repeated int32 effectId = 7; - */ - public int getEffectIdCount() { - return effectId_.size(); - } - /** - * repeated int32 effectId = 7; - */ - public int getEffectId(int index) { - return effectId_.get(index); - } - /** - * repeated int32 effectId = 7; - */ - public Builder setEffectId( - int index, int value) { - ensureEffectIdIsMutable(); - effectId_.set(index, value); - onChanged(); - return this; - } - /** - * repeated int32 effectId = 7; - */ - public Builder addEffectId(int value) { - ensureEffectIdIsMutable(); - effectId_.add(value); - onChanged(); - return this; - } - /** - * repeated int32 effectId = 7; - */ - public Builder addAllEffectId( - java.lang.Iterable values) { - ensureEffectIdIsMutable(); - super.addAll(values, effectId_); - onChanged(); - return this; - } - /** - * repeated int32 effectId = 7; - */ - public Builder clearEffectId() { - effectId_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Skill) - } - - static { - defaultInstance = new Skill(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Skill) - } - - public interface MailOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string id = 1; - /** - * optional string id = 1; - */ - boolean hasId(); - /** - * optional string id = 1; - */ - java.lang.String getId(); - /** - * optional string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - // optional int32 itemId = 2; - /** - * optional int32 itemId = 2; - */ - boolean hasItemId(); - /** - * optional int32 itemId = 2; - */ - int getItemId(); - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.Common.Mail} - */ - public static final class Mail extends - com.google.protobuf.GeneratedMessage - implements MailOrBuilder { - // Use Mail.newBuilder() to construct. - private Mail(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Mail(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Mail defaultInstance; - public static Mail getDefaultInstance() { - return defaultInstance; - } - - public Mail getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Mail( - 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: { - bitField0_ |= 0x00000001; - id_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - itemId_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mail_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Mail.class, com.ljsd.jieling.protocols.CommonProto.Common.Mail.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Mail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Mail(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string id = 1; - public static final int ID_FIELD_NUMBER = 1; - private java.lang.Object id_; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional int32 itemId = 2; - public static final int ITEMID_FIELD_NUMBER = 2; - private int itemId_; - /** - * optional int32 itemId = 2; - */ - public boolean hasItemId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 itemId = 2; - */ - public int getItemId() { - return itemId_; - } - - private void initFields() { - id_ = ""; - itemId_ = 0; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, itemId_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, itemId_); - } - 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.ljsd.jieling.protocols.CommonProto.Common.Mail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mail 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.ljsd.jieling.protocols.CommonProto.Common.Mail 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.ljsd.jieling.protocols.Common.Mail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.CommonProto.Common.MailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mail_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Mail.class, com.ljsd.jieling.protocols.CommonProto.Common.Mail.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Mail.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(); - id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - itemId_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mail_descriptor; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Mail getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.CommonProto.Common.Mail.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Mail build() { - com.ljsd.jieling.protocols.CommonProto.Common.Mail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Mail buildPartial() { - com.ljsd.jieling.protocols.CommonProto.Common.Mail result = new com.ljsd.jieling.protocols.CommonProto.Common.Mail(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.itemId_ = itemId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Mail) { - return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Mail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Mail other) { - if (other == com.ljsd.jieling.protocols.CommonProto.Common.Mail.getDefaultInstance()) return this; - if (other.hasId()) { - bitField0_ |= 0x00000001; - id_ = other.id_; - onChanged(); - } - if (other.hasItemId()) { - setItemId(other.getItemId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.CommonProto.Common.Mail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Mail) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string id = 1; - private java.lang.Object id_ = ""; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - - // optional int32 itemId = 2; - private int itemId_ ; - /** - * optional int32 itemId = 2; - */ - public boolean hasItemId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 itemId = 2; - */ - public int getItemId() { - return itemId_; - } - /** - * optional int32 itemId = 2; - */ - public Builder setItemId(int value) { - bitField0_ |= 0x00000002; - itemId_ = value; - onChanged(); - return this; - } - /** - * optional int32 itemId = 2; - */ - public Builder clearItemId() { - bitField0_ = (bitField0_ & ~0x00000002); - itemId_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Mail) - } - - static { - defaultInstance = new Mail(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Mail) - } - - public interface MapOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional int32 mapId = 1; - /** - * optional int32 mapId = 1; - */ - boolean hasMapId(); - /** - * optional int32 mapId = 1; - */ - int getMapId(); - - // repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - java.util.List - getCellListList(); - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - com.ljsd.jieling.protocols.CommonProto.Common.Cell getCellList(int index); - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - int getCellListCount(); - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - java.util.List - getCellListOrBuilderList(); - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - com.ljsd.jieling.protocols.CommonProto.Common.CellOrBuilder getCellListOrBuilder( - int index); - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.Common.Map} - */ - public static final class Map extends - com.google.protobuf.GeneratedMessage - implements MapOrBuilder { - // Use Map.newBuilder() to construct. - private Map(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Map(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Map defaultInstance; - public static Map getDefaultInstance() { - return defaultInstance; - } - - public Map getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Map( - 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: { - bitField0_ |= 0x00000001; - mapId_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - cellList_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - cellList_.add(input.readMessage(com.ljsd.jieling.protocols.CommonProto.Common.Cell.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_ & 0x00000002) == 0x00000002)) { - cellList_ = java.util.Collections.unmodifiableList(cellList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Map_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Map_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Map.class, com.ljsd.jieling.protocols.CommonProto.Common.Map.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Map parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Map(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional int32 mapId = 1; - public static final int MAPID_FIELD_NUMBER = 1; - private int mapId_; - /** - * optional int32 mapId = 1; - */ - public boolean hasMapId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 mapId = 1; - */ - public int getMapId() { - return mapId_; - } - - // repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - public static final int CELLLIST_FIELD_NUMBER = 2; - private java.util.List cellList_; - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public java.util.List getCellListList() { - return cellList_; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public java.util.List - getCellListOrBuilderList() { - return cellList_; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public int getCellListCount() { - return cellList_.size(); - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.Cell getCellList(int index) { - return cellList_.get(index); - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.CellOrBuilder getCellListOrBuilder( - int index) { - return cellList_.get(index); - } - - private void initFields() { - mapId_ = 0; - cellList_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, mapId_); - } - for (int i = 0; i < cellList_.size(); i++) { - output.writeMessage(2, cellList_.get(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, mapId_); - } - for (int i = 0; i < cellList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, cellList_.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.ljsd.jieling.protocols.CommonProto.Common.Map parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Map 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.ljsd.jieling.protocols.CommonProto.Common.Map 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.ljsd.jieling.protocols.Common.Map} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.CommonProto.Common.MapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Map_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Map_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Map.class, com.ljsd.jieling.protocols.CommonProto.Common.Map.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Map.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getCellListFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - mapId_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - if (cellListBuilder_ == null) { - cellList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - cellListBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Map_descriptor; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Map getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.CommonProto.Common.Map.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Map build() { - com.ljsd.jieling.protocols.CommonProto.Common.Map result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Map buildPartial() { - com.ljsd.jieling.protocols.CommonProto.Common.Map result = new com.ljsd.jieling.protocols.CommonProto.Common.Map(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.mapId_ = mapId_; - if (cellListBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - cellList_ = java.util.Collections.unmodifiableList(cellList_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.cellList_ = cellList_; - } else { - result.cellList_ = cellListBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Map) { - return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Map)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Map other) { - if (other == com.ljsd.jieling.protocols.CommonProto.Common.Map.getDefaultInstance()) return this; - if (other.hasMapId()) { - setMapId(other.getMapId()); - } - if (cellListBuilder_ == null) { - if (!other.cellList_.isEmpty()) { - if (cellList_.isEmpty()) { - cellList_ = other.cellList_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCellListIsMutable(); - cellList_.addAll(other.cellList_); - } - onChanged(); - } - } else { - if (!other.cellList_.isEmpty()) { - if (cellListBuilder_.isEmpty()) { - cellListBuilder_.dispose(); - cellListBuilder_ = null; - cellList_ = other.cellList_; - bitField0_ = (bitField0_ & ~0x00000002); - cellListBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getCellListFieldBuilder() : null; - } else { - cellListBuilder_.addAllMessages(other.cellList_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.CommonProto.Common.Map parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Map) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional int32 mapId = 1; - private int mapId_ ; - /** - * optional int32 mapId = 1; - */ - public boolean hasMapId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 mapId = 1; - */ - public int getMapId() { - return mapId_; - } - /** - * optional int32 mapId = 1; - */ - public Builder setMapId(int value) { - bitField0_ |= 0x00000001; - mapId_ = value; - onChanged(); - return this; - } - /** - * optional int32 mapId = 1; - */ - public Builder clearMapId() { - bitField0_ = (bitField0_ & ~0x00000001); - mapId_ = 0; - onChanged(); - return this; - } - - // repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - private java.util.List cellList_ = - java.util.Collections.emptyList(); - private void ensureCellListIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - cellList_ = new java.util.ArrayList(cellList_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.ljsd.jieling.protocols.CommonProto.Common.Cell, com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder, com.ljsd.jieling.protocols.CommonProto.Common.CellOrBuilder> cellListBuilder_; - - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public java.util.List getCellListList() { - if (cellListBuilder_ == null) { - return java.util.Collections.unmodifiableList(cellList_); - } else { - return cellListBuilder_.getMessageList(); - } - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public int getCellListCount() { - if (cellListBuilder_ == null) { - return cellList_.size(); - } else { - return cellListBuilder_.getCount(); - } - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.Cell getCellList(int index) { - if (cellListBuilder_ == null) { - return cellList_.get(index); - } else { - return cellListBuilder_.getMessage(index); - } - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public Builder setCellList( - int index, com.ljsd.jieling.protocols.CommonProto.Common.Cell value) { - if (cellListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCellListIsMutable(); - cellList_.set(index, value); - onChanged(); - } else { - cellListBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public Builder setCellList( - int index, com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder builderForValue) { - if (cellListBuilder_ == null) { - ensureCellListIsMutable(); - cellList_.set(index, builderForValue.build()); - onChanged(); - } else { - cellListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public Builder addCellList(com.ljsd.jieling.protocols.CommonProto.Common.Cell value) { - if (cellListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCellListIsMutable(); - cellList_.add(value); - onChanged(); - } else { - cellListBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public Builder addCellList( - int index, com.ljsd.jieling.protocols.CommonProto.Common.Cell value) { - if (cellListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCellListIsMutable(); - cellList_.add(index, value); - onChanged(); - } else { - cellListBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public Builder addCellList( - com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder builderForValue) { - if (cellListBuilder_ == null) { - ensureCellListIsMutable(); - cellList_.add(builderForValue.build()); - onChanged(); - } else { - cellListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public Builder addCellList( - int index, com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder builderForValue) { - if (cellListBuilder_ == null) { - ensureCellListIsMutable(); - cellList_.add(index, builderForValue.build()); - onChanged(); - } else { - cellListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public Builder addAllCellList( - java.lang.Iterable values) { - if (cellListBuilder_ == null) { - ensureCellListIsMutable(); - super.addAll(values, cellList_); - onChanged(); - } else { - cellListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public Builder clearCellList() { - if (cellListBuilder_ == null) { - cellList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - cellListBuilder_.clear(); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public Builder removeCellList(int index) { - if (cellListBuilder_ == null) { - ensureCellListIsMutable(); - cellList_.remove(index); - onChanged(); - } else { - cellListBuilder_.remove(index); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder getCellListBuilder( - int index) { - return getCellListFieldBuilder().getBuilder(index); - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.CellOrBuilder getCellListOrBuilder( - int index) { - if (cellListBuilder_ == null) { - return cellList_.get(index); } else { - return cellListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public java.util.List - getCellListOrBuilderList() { - if (cellListBuilder_ != null) { - return cellListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(cellList_); - } - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder addCellListBuilder() { - return getCellListFieldBuilder().addBuilder( - com.ljsd.jieling.protocols.CommonProto.Common.Cell.getDefaultInstance()); - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder addCellListBuilder( - int index) { - return getCellListFieldBuilder().addBuilder( - index, com.ljsd.jieling.protocols.CommonProto.Common.Cell.getDefaultInstance()); - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; - */ - public java.util.List - getCellListBuilderList() { - return getCellListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.ljsd.jieling.protocols.CommonProto.Common.Cell, com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder, com.ljsd.jieling.protocols.CommonProto.Common.CellOrBuilder> - getCellListFieldBuilder() { - if (cellListBuilder_ == null) { - cellListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.ljsd.jieling.protocols.CommonProto.Common.Cell, com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder, com.ljsd.jieling.protocols.CommonProto.Common.CellOrBuilder>( - cellList_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - cellList_ = null; - } - return cellListBuilder_; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Map) - } - - static { - defaultInstance = new Map(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Map) - } - - public interface CellOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional int32 cellId = 1; - /** - * optional int32 cellId = 1; - */ - boolean hasCellId(); - /** - * optional int32 cellId = 1; - */ - int getCellId(); - - // optional bool canGo = 2; - /** - * optional bool canGo = 2; - */ - boolean hasCanGo(); - /** - * optional bool canGo = 2; - */ - boolean getCanGo(); - - // optional bool isFoggy = 3; - /** - * optional bool isFoggy = 3; - */ - boolean hasIsFoggy(); - /** - * optional bool isFoggy = 3; - */ - boolean getIsFoggy(); - - // repeated int32 eventList = 4; - /** - * repeated int32 eventList = 4; - */ - java.util.List getEventListList(); - /** - * repeated int32 eventList = 4; - */ - int getEventListCount(); - /** - * repeated int32 eventList = 4; - */ - int getEventList(int index); - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.Common.Cell} - */ - public static final class Cell extends - com.google.protobuf.GeneratedMessage - implements CellOrBuilder { - // Use Cell.newBuilder() to construct. - private Cell(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Cell(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Cell defaultInstance; - public static Cell getDefaultInstance() { - return defaultInstance; - } - - public Cell getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Cell( - 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: { - bitField0_ |= 0x00000001; - cellId_ = input.readInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - canGo_ = input.readBool(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - isFoggy_ = input.readBool(); - break; - } - case 32: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - eventList_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - eventList_.add(input.readInt32()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { - eventList_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - while (input.getBytesUntilLimit() > 0) { - eventList_.add(input.readInt32()); - } - input.popLimit(limit); - 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_ & 0x00000008) == 0x00000008)) { - eventList_ = java.util.Collections.unmodifiableList(eventList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Cell_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Cell_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Cell.class, com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Cell parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Cell(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional int32 cellId = 1; - public static final int CELLID_FIELD_NUMBER = 1; - private int cellId_; - /** - * optional int32 cellId = 1; - */ - public boolean hasCellId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 cellId = 1; - */ - public int getCellId() { - return cellId_; - } - - // optional bool canGo = 2; - public static final int CANGO_FIELD_NUMBER = 2; - private boolean canGo_; - /** - * optional bool canGo = 2; - */ - public boolean hasCanGo() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bool canGo = 2; - */ - public boolean getCanGo() { - return canGo_; - } - - // optional bool isFoggy = 3; - public static final int ISFOGGY_FIELD_NUMBER = 3; - private boolean isFoggy_; - /** - * optional bool isFoggy = 3; - */ - public boolean hasIsFoggy() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bool isFoggy = 3; - */ - public boolean getIsFoggy() { - return isFoggy_; - } - - // repeated int32 eventList = 4; - public static final int EVENTLIST_FIELD_NUMBER = 4; - private java.util.List eventList_; - /** - * repeated int32 eventList = 4; - */ - public java.util.List - getEventListList() { - return eventList_; - } - /** - * repeated int32 eventList = 4; - */ - public int getEventListCount() { - return eventList_.size(); - } - /** - * repeated int32 eventList = 4; - */ - public int getEventList(int index) { - return eventList_.get(index); - } - - private void initFields() { - cellId_ = 0; - canGo_ = false; - isFoggy_ = false; - eventList_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, cellId_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBool(2, canGo_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBool(3, isFoggy_); - } - for (int i = 0; i < eventList_.size(); i++) { - output.writeInt32(4, eventList_.get(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, cellId_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, canGo_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isFoggy_); - } - { - int dataSize = 0; - for (int i = 0; i < eventList_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(eventList_.get(i)); - } - size += dataSize; - size += 1 * getEventListList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Cell 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.ljsd.jieling.protocols.CommonProto.Common.Cell 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.ljsd.jieling.protocols.Common.Cell} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.CommonProto.Common.CellOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Cell_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Cell_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Cell.class, com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Cell.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(); - cellId_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - canGo_ = false; - bitField0_ = (bitField0_ & ~0x00000002); - isFoggy_ = false; - bitField0_ = (bitField0_ & ~0x00000004); - eventList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Cell_descriptor; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Cell getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.CommonProto.Common.Cell.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Cell build() { - com.ljsd.jieling.protocols.CommonProto.Common.Cell result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Cell buildPartial() { - com.ljsd.jieling.protocols.CommonProto.Common.Cell result = new com.ljsd.jieling.protocols.CommonProto.Common.Cell(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.cellId_ = cellId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.canGo_ = canGo_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.isFoggy_ = isFoggy_; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - eventList_ = java.util.Collections.unmodifiableList(eventList_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.eventList_ = eventList_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Cell) { - return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Cell)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Cell other) { - if (other == com.ljsd.jieling.protocols.CommonProto.Common.Cell.getDefaultInstance()) return this; - if (other.hasCellId()) { - setCellId(other.getCellId()); - } - if (other.hasCanGo()) { - setCanGo(other.getCanGo()); - } - if (other.hasIsFoggy()) { - setIsFoggy(other.getIsFoggy()); - } - if (!other.eventList_.isEmpty()) { - if (eventList_.isEmpty()) { - eventList_ = other.eventList_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureEventListIsMutable(); - eventList_.addAll(other.eventList_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.CommonProto.Common.Cell parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Cell) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional int32 cellId = 1; - private int cellId_ ; - /** - * optional int32 cellId = 1; - */ - public boolean hasCellId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 cellId = 1; - */ - public int getCellId() { - return cellId_; - } - /** - * optional int32 cellId = 1; - */ - public Builder setCellId(int value) { - bitField0_ |= 0x00000001; - cellId_ = value; - onChanged(); - return this; - } - /** - * optional int32 cellId = 1; - */ - public Builder clearCellId() { - bitField0_ = (bitField0_ & ~0x00000001); - cellId_ = 0; - onChanged(); - return this; - } - - // optional bool canGo = 2; - private boolean canGo_ ; - /** - * optional bool canGo = 2; - */ - public boolean hasCanGo() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bool canGo = 2; - */ - public boolean getCanGo() { - return canGo_; - } - /** - * optional bool canGo = 2; - */ - public Builder setCanGo(boolean value) { - bitField0_ |= 0x00000002; - canGo_ = value; - onChanged(); - return this; - } - /** - * optional bool canGo = 2; - */ - public Builder clearCanGo() { - bitField0_ = (bitField0_ & ~0x00000002); - canGo_ = false; - onChanged(); - return this; - } - - // optional bool isFoggy = 3; - private boolean isFoggy_ ; - /** - * optional bool isFoggy = 3; - */ - public boolean hasIsFoggy() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bool isFoggy = 3; - */ - public boolean getIsFoggy() { - return isFoggy_; - } - /** - * optional bool isFoggy = 3; - */ - public Builder setIsFoggy(boolean value) { - bitField0_ |= 0x00000004; - isFoggy_ = value; - onChanged(); - return this; - } - /** - * optional bool isFoggy = 3; - */ - public Builder clearIsFoggy() { - bitField0_ = (bitField0_ & ~0x00000004); - isFoggy_ = false; - onChanged(); - return this; - } - - // repeated int32 eventList = 4; - private java.util.List eventList_ = java.util.Collections.emptyList(); - private void ensureEventListIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - eventList_ = new java.util.ArrayList(eventList_); - bitField0_ |= 0x00000008; - } - } - /** - * repeated int32 eventList = 4; - */ - public java.util.List - getEventListList() { - return java.util.Collections.unmodifiableList(eventList_); - } - /** - * repeated int32 eventList = 4; - */ - public int getEventListCount() { - return eventList_.size(); - } - /** - * repeated int32 eventList = 4; - */ - public int getEventList(int index) { - return eventList_.get(index); - } - /** - * repeated int32 eventList = 4; - */ - public Builder setEventList( - int index, int value) { - ensureEventListIsMutable(); - eventList_.set(index, value); - onChanged(); - return this; - } - /** - * repeated int32 eventList = 4; - */ - public Builder addEventList(int value) { - ensureEventListIsMutable(); - eventList_.add(value); - onChanged(); - return this; - } - /** - * repeated int32 eventList = 4; - */ - public Builder addAllEventList( - java.lang.Iterable values) { - ensureEventListIsMutable(); - super.addAll(values, eventList_); - onChanged(); - return this; - } - /** - * repeated int32 eventList = 4; - */ - public Builder clearEventList() { - eventList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Cell) - } - - static { - defaultInstance = new Cell(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Cell) - } - - public interface MissionOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string id = 1; - /** - * optional string id = 1; - */ - boolean hasId(); - /** - * optional string id = 1; - */ - java.lang.String getId(); - /** - * optional string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - // optional int32 itemId = 2; - /** - * optional int32 itemId = 2; - */ - boolean hasItemId(); - /** - * optional int32 itemId = 2; - */ - int getItemId(); - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.Common.Mission} - */ - public static final class Mission extends - com.google.protobuf.GeneratedMessage - implements MissionOrBuilder { - // Use Mission.newBuilder() to construct. - private Mission(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Mission(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Mission defaultInstance; - public static Mission getDefaultInstance() { - return defaultInstance; - } - - public Mission getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Mission( - 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: { - bitField0_ |= 0x00000001; - id_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - itemId_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mission_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mission_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Mission.class, com.ljsd.jieling.protocols.CommonProto.Common.Mission.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Mission parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Mission(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string id = 1; - public static final int ID_FIELD_NUMBER = 1; - private java.lang.Object id_; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional int32 itemId = 2; - public static final int ITEMID_FIELD_NUMBER = 2; - private int itemId_; - /** - * optional int32 itemId = 2; - */ - public boolean hasItemId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 itemId = 2; - */ - public int getItemId() { - return itemId_; - } - - private void initFields() { - id_ = ""; - itemId_ = 0; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, itemId_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, itemId_); - } - 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.ljsd.jieling.protocols.CommonProto.Common.Mission parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Mission 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.ljsd.jieling.protocols.CommonProto.Common.Mission 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.ljsd.jieling.protocols.Common.Mission} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.CommonProto.Common.MissionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mission_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mission_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Mission.class, com.ljsd.jieling.protocols.CommonProto.Common.Mission.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Mission.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(); - id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - itemId_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mission_descriptor; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Mission getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.CommonProto.Common.Mission.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Mission build() { - com.ljsd.jieling.protocols.CommonProto.Common.Mission result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Mission buildPartial() { - com.ljsd.jieling.protocols.CommonProto.Common.Mission result = new com.ljsd.jieling.protocols.CommonProto.Common.Mission(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.itemId_ = itemId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Mission) { - return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Mission)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Mission other) { - if (other == com.ljsd.jieling.protocols.CommonProto.Common.Mission.getDefaultInstance()) return this; - if (other.hasId()) { - bitField0_ |= 0x00000001; - id_ = other.id_; - onChanged(); - } - if (other.hasItemId()) { - setItemId(other.getItemId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.CommonProto.Common.Mission parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Mission) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string id = 1; - private java.lang.Object id_ = ""; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - - // optional int32 itemId = 2; - private int itemId_ ; - /** - * optional int32 itemId = 2; - */ - public boolean hasItemId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 itemId = 2; - */ - public int getItemId() { - return itemId_; - } - /** - * optional int32 itemId = 2; - */ - public Builder setItemId(int value) { - bitField0_ |= 0x00000002; - itemId_ = value; - onChanged(); - return this; - } - /** - * optional int32 itemId = 2; - */ - public Builder clearItemId() { - bitField0_ = (bitField0_ & ~0x00000002); - itemId_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Mission) - } - - static { - defaultInstance = new Mission(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Mission) - } - - public interface EquipOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string id = 1; - /** - * optional string id = 1; - */ - boolean hasId(); - /** - * optional string id = 1; - */ - java.lang.String getId(); - /** - * optional string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - // optional int32 itemId = 2; - /** - * optional int32 itemId = 2; - */ - boolean hasItemId(); - /** - * optional int32 itemId = 2; - */ - int getItemId(); - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.Common.Equip} - */ - public static final class Equip extends - com.google.protobuf.GeneratedMessage - implements EquipOrBuilder { - // Use Equip.newBuilder() to construct. - private Equip(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Equip(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Equip defaultInstance; - public static Equip getDefaultInstance() { - return defaultInstance; - } - - public Equip getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Equip( - 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: { - bitField0_ |= 0x00000001; - id_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - itemId_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Equip_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Equip_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Equip.class, com.ljsd.jieling.protocols.CommonProto.Common.Equip.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Equip parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Equip(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string id = 1; - public static final int ID_FIELD_NUMBER = 1; - private java.lang.Object id_; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional int32 itemId = 2; - public static final int ITEMID_FIELD_NUMBER = 2; - private int itemId_; - /** - * optional int32 itemId = 2; - */ - public boolean hasItemId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 itemId = 2; - */ - public int getItemId() { - return itemId_; - } - - private void initFields() { - id_ = ""; - itemId_ = 0; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, itemId_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, itemId_); - } - 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.ljsd.jieling.protocols.CommonProto.Common.Equip parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Equip 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.ljsd.jieling.protocols.CommonProto.Common.Equip 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.ljsd.jieling.protocols.Common.Equip} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.CommonProto.Common.EquipOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Equip_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Equip_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Equip.class, com.ljsd.jieling.protocols.CommonProto.Common.Equip.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Equip.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(); - id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - itemId_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Equip_descriptor; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Equip getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.CommonProto.Common.Equip.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Equip build() { - com.ljsd.jieling.protocols.CommonProto.Common.Equip result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Equip buildPartial() { - com.ljsd.jieling.protocols.CommonProto.Common.Equip result = new com.ljsd.jieling.protocols.CommonProto.Common.Equip(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.itemId_ = itemId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Equip) { - return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Equip)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Equip other) { - if (other == com.ljsd.jieling.protocols.CommonProto.Common.Equip.getDefaultInstance()) return this; - if (other.hasId()) { - bitField0_ |= 0x00000001; - id_ = other.id_; - onChanged(); - } - if (other.hasItemId()) { - setItemId(other.getItemId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.CommonProto.Common.Equip parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Equip) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string id = 1; - private java.lang.Object id_ = ""; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - - // optional int32 itemId = 2; - private int itemId_ ; - /** - * optional int32 itemId = 2; - */ - public boolean hasItemId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 itemId = 2; - */ - public int getItemId() { - return itemId_; - } - /** - * optional int32 itemId = 2; - */ - public Builder setItemId(int value) { - bitField0_ |= 0x00000002; - itemId_ = value; - onChanged(); - return this; - } - /** - * optional int32 itemId = 2; - */ - public Builder clearItemId() { - bitField0_ = (bitField0_ & ~0x00000002); - itemId_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Equip) - } - - static { - defaultInstance = new Equip(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Equip) - } - - public interface FamilyOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string id = 1; - /** - * optional string id = 1; - */ - boolean hasId(); - /** - * optional string id = 1; - */ - java.lang.String getId(); - /** - * optional string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.Common.Family} - */ - public static final class Family extends - com.google.protobuf.GeneratedMessage - implements FamilyOrBuilder { - // Use Family.newBuilder() to construct. - private Family(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Family(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Family defaultInstance; - public static Family getDefaultInstance() { - return defaultInstance; - } - - public Family getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Family( - 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: { - bitField0_ |= 0x00000001; - id_ = input.readBytes(); - 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.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Family_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Family_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Family.class, com.ljsd.jieling.protocols.CommonProto.Common.Family.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Family parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Family(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string id = 1; - public static final int ID_FIELD_NUMBER = 1; - private java.lang.Object id_; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - id_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); - } - 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.ljsd.jieling.protocols.CommonProto.Common.Family parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common.Family 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.ljsd.jieling.protocols.CommonProto.Common.Family 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.ljsd.jieling.protocols.Common.Family} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.CommonProto.Common.FamilyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Family_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Family_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.Family.class, com.ljsd.jieling.protocols.CommonProto.Common.Family.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Family.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(); - id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Family_descriptor; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Family getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.CommonProto.Common.Family.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Family build() { - com.ljsd.jieling.protocols.CommonProto.Common.Family result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.CommonProto.Common.Family buildPartial() { - com.ljsd.jieling.protocols.CommonProto.Common.Family result = new com.ljsd.jieling.protocols.CommonProto.Common.Family(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Family) { - return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Family)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Family other) { - if (other == com.ljsd.jieling.protocols.CommonProto.Common.Family.getDefaultInstance()) return this; - if (other.hasId()) { - bitField0_ |= 0x00000001; - id_ = other.id_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.CommonProto.Common.Family parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Family) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string id = 1; - private java.lang.Object id_ = ""; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Family) - } - - static { - defaultInstance = new Family(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Family) - } - - private void initFields() { - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static com.ljsd.jieling.protocols.CommonProto.Common parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.CommonProto.Common parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.CommonProto.Common parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.CommonProto.Common 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.ljsd.jieling.protocols.CommonProto.Common 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.ljsd.jieling.protocols.Common} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.CommonProto.CommonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.CommonProto.Common.class, com.ljsd.jieling.protocols.CommonProto.Common.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.CommonProto.Common.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_descriptor; - } - - public com.ljsd.jieling.protocols.CommonProto.Common getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.CommonProto.Common.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.CommonProto.Common build() { - com.ljsd.jieling.protocols.CommonProto.Common result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.CommonProto.Common buildPartial() { - com.ljsd.jieling.protocols.CommonProto.Common result = new com.ljsd.jieling.protocols.CommonProto.Common(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common) { - return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common other) { - if (other == com.ljsd.jieling.protocols.CommonProto.Common.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.CommonProto.Common parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common) - } - - static { - defaultInstance = new Common(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_Common_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_Common_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_Common_Player_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_Common_Player_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_Common_Item_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_Common_Item_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_Common_Hero_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_Common_Hero_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_Common_Skill_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_Common_Skill_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_Common_Mail_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_Common_Mail_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_Common_Map_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_Common_Map_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_Common_Cell_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_Common_Cell_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_Common_Mission_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_Common_Mission_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_Common_Equip_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_Common_Equip_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_Common_Family_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_Common_Family_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\021CommonProto.proto\022\032com.ljsd.jieling.pr" + - "otocols\"\335\006\n\006Common\032\203\001\n\006Player\022\013\n\003uid\030\001 \001" + - "(\005\022\020\n\010nicknime\030\002 \001(\t\022\r\n\005level\030\003 \001(\005\022\013\n\003e" + - "xp\030\004 \001(\005\022\020\n\010vipLevel\030\005 \001(\005\022\020\n\010familyId\030\006" + - " \001(\t\022\014\n\004head\030\007 \001(\t\022\014\n\004gold\030\010 \001(\005\032\202\001\n\004Ite" + - "m\022\n\n\002id\030\001 \001(\t\022\016\n\006itemId\030\002 \001(\005\022\017\n\007itemNum" + - "\030\003 \001(\005\022\020\n\010itemType\030\004 \001(\005\022\023\n\013itemQuality\030" + - "\005 \001(\005\022\022\n\nisStacking\030\006 \001(\010\022\022\n\nendingTime\030" + - "\007 \001(\005\032\261\001\n\004Hero\022\n\n\002id\030\001 \001(\t\022\016\n\006heroId\030\002 \001" + - "(\005\022\020\n\010heroType\030\003 \001(\005\022\r\n\005level\030\004 \001(\005\022\014\n\004s", - "tar\030\005 \001(\005\022\017\n\007quality\030\006 \001(\005\022\n\n\002hp\030\007 \001(\005\022\016" + - "\n\006attack\030\010 \001(\005\022\020\n\010pDefence\030\t \001(\005\022\020\n\010mDef" + - "ence\030\n \001(\005\022\r\n\005speed\030\013 \001(\005\032r\n\005Skill\022\n\n\002id" + - "\030\001 \001(\t\022\017\n\007skillId\030\002 \001(\005\022\021\n\tskillType\030\003 \001" + - "(\005\022\r\n\005level\030\004 \001(\005\022\014\n\004star\030\005 \001(\005\022\n\n\002cd\030\006 " + - "\001(\005\022\020\n\010effectId\030\007 \003(\005\032\"\n\004Mail\022\n\n\002id\030\001 \001(" + - "\t\022\016\n\006itemId\030\002 \001(\005\032O\n\003Map\022\r\n\005mapId\030\001 \001(\005\022" + - "9\n\010cellList\030\002 \003(\0132\'.com.ljsd.jieling.pro" + - "tocols.Common.Cell\032I\n\004Cell\022\016\n\006cellId\030\001 \001" + - "(\005\022\r\n\005canGo\030\002 \001(\010\022\017\n\007isFoggy\030\003 \001(\010\022\021\n\tev", - "entList\030\004 \003(\005\032%\n\007Mission\022\n\n\002id\030\001 \001(\t\022\016\n\006" + - "itemId\030\002 \001(\005\032#\n\005Equip\022\n\n\002id\030\001 \001(\t\022\016\n\006ite" + - "mId\030\002 \001(\005\032\024\n\006Family\022\n\n\002id\030\001 \001(\tB\002H\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - internal_static_com_ljsd_jieling_protocols_Common_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_com_ljsd_jieling_protocols_Common_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_Common_descriptor, - new java.lang.String[] { }); - internal_static_com_ljsd_jieling_protocols_Common_Player_descriptor = - internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(0); - internal_static_com_ljsd_jieling_protocols_Common_Player_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_Common_Player_descriptor, - new java.lang.String[] { "Uid", "Nicknime", "Level", "Exp", "VipLevel", "FamilyId", "Head", "Gold", }); - internal_static_com_ljsd_jieling_protocols_Common_Item_descriptor = - internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(1); - internal_static_com_ljsd_jieling_protocols_Common_Item_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_Common_Item_descriptor, - new java.lang.String[] { "Id", "ItemId", "ItemNum", "ItemType", "ItemQuality", "IsStacking", "EndingTime", }); - internal_static_com_ljsd_jieling_protocols_Common_Hero_descriptor = - internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(2); - internal_static_com_ljsd_jieling_protocols_Common_Hero_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_Common_Hero_descriptor, - new java.lang.String[] { "Id", "HeroId", "HeroType", "Level", "Star", "Quality", "Hp", "Attack", "PDefence", "MDefence", "Speed", }); - internal_static_com_ljsd_jieling_protocols_Common_Skill_descriptor = - internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(3); - internal_static_com_ljsd_jieling_protocols_Common_Skill_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_Common_Skill_descriptor, - new java.lang.String[] { "Id", "SkillId", "SkillType", "Level", "Star", "Cd", "EffectId", }); - internal_static_com_ljsd_jieling_protocols_Common_Mail_descriptor = - internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(4); - internal_static_com_ljsd_jieling_protocols_Common_Mail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_Common_Mail_descriptor, - new java.lang.String[] { "Id", "ItemId", }); - internal_static_com_ljsd_jieling_protocols_Common_Map_descriptor = - internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(5); - internal_static_com_ljsd_jieling_protocols_Common_Map_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_Common_Map_descriptor, - new java.lang.String[] { "MapId", "CellList", }); - internal_static_com_ljsd_jieling_protocols_Common_Cell_descriptor = - internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(6); - internal_static_com_ljsd_jieling_protocols_Common_Cell_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_Common_Cell_descriptor, - new java.lang.String[] { "CellId", "CanGo", "IsFoggy", "EventList", }); - internal_static_com_ljsd_jieling_protocols_Common_Mission_descriptor = - internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(7); - internal_static_com_ljsd_jieling_protocols_Common_Mission_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_Common_Mission_descriptor, - new java.lang.String[] { "Id", "ItemId", }); - internal_static_com_ljsd_jieling_protocols_Common_Equip_descriptor = - internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(8); - internal_static_com_ljsd_jieling_protocols_Common_Equip_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_Common_Equip_descriptor, - new java.lang.String[] { "Id", "ItemId", }); - internal_static_com_ljsd_jieling_protocols_Common_Family_descriptor = - internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(9); - internal_static_com_ljsd_jieling_protocols_Common_Family_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_Common_Family_descriptor, - new java.lang.String[] { "Id", }); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/serverlogic/src/main/java/com/ljsd/jieling/protocols/MessageTypeProto.java b/serverlogic/src/main/java/com/ljsd/jieling/protocols/MessageTypeProto.java deleted file mode 100644 index df9f67610..000000000 --- a/serverlogic/src/main/java/com/ljsd/jieling/protocols/MessageTypeProto.java +++ /dev/null @@ -1,367 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: MessageTypeProto.proto - -package com.ljsd.jieling.protocols; - -public final class MessageTypeProto { - private MessageTypeProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - /** - * Protobuf enum {@code com.ljsd.jieling.protocols.MessageType} - */ - public enum MessageType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * HEART_BEAT_REQUEST = 1000; - * - *
-     * 系统内部协议1000--9999
-     * 
- */ - HEART_BEAT_REQUEST(0, 1000), - /** - * HEART_BEAT_RESPONSE = 1001; - * - *
-     * 
-     * 
- */ - HEART_BEAT_RESPONSE(1, 1001), - /** - * LOGIN_REQUEST = 10000; - * - *
-     * 正式协议从10000开始
-     * 
- */ - LOGIN_REQUEST(2, 10000), - /** - * LOGIN_RESPONSE = 10001; - */ - LOGIN_RESPONSE(3, 10001), - /** - * GET_PLAYERINFO_REQUEST = 10002; - * - *
-     * 
- */ - GET_PLAYERINFO_REQUEST(4, 10002), - /** - * GET_PLAYERINFO_RESPONSE = 10003; - */ - GET_PLAYERINFO_RESPONSE(5, 10003), - /** - * GET_HEROINFO_REQUEST = 10004; - * - *
-     * 
- */ - GET_HEROINFO_REQUEST(6, 10004), - /** - * GET_HEROINFO_RESPONSE = 10005; - */ - GET_HEROINFO_RESPONSE(7, 10005), - /** - * GET_ITEMINFO_REQUEST = 10006; - * - *
-     * 
- */ - GET_ITEMINFO_REQUEST(8, 10006), - /** - * GET_ITEMINFO_RESPONSE = 10007; - */ - GET_ITEMINFO_RESPONSE(9, 10007), - /** - * ENTER_MAP_REQUEST = 10008; - * - *
-     * 
- */ - ENTER_MAP_REQUEST(10, 10008), - /** - * ENTER_MAP_RESPONSE = 10009; - */ - ENTER_MAP_RESPONSE(11, 10009), - /** - * START_FIGHT_REQUEST = 10010; - * - *
-     * 
- */ - START_FIGHT_REQUEST(12, 10010), - /** - * START_FIGHT_RESPONSE = 10011; - */ - START_FIGHT_RESPONSE(13, 10011), - /** - * END_FIGHT_REQUEST = 10012; - * - *
-     * 
- */ - END_FIGHT_REQUEST(14, 10012), - /** - * END_FIGHT_RESPONSE = 10013; - */ - END_FIGHT_RESPONSE(15, 10013), - /** - * TRIGGER_EVENT_REQUEST = 10014; - * - *
-     * 
- */ - TRIGGER_EVENT_REQUEST(16, 10014), - /** - * TRIGGER_EVENT_RESPONSE = 10015; - */ - TRIGGER_EVENT_RESPONSE(17, 10015), - /** - * OUT_MAP_REQUEST = 10016; - * - *
-     * 
- */ - OUT_MAP_REQUEST(18, 10016), - /** - * OUT_MAP_RESPONSE = 10017; - */ - OUT_MAP_RESPONSE(19, 10017), - ; - - /** - * HEART_BEAT_REQUEST = 1000; - * - *
-     * 系统内部协议1000--9999
-     * 
- */ - public static final int HEART_BEAT_REQUEST_VALUE = 1000; - /** - * HEART_BEAT_RESPONSE = 1001; - * - *
-     * 
-     * 
- */ - public static final int HEART_BEAT_RESPONSE_VALUE = 1001; - /** - * LOGIN_REQUEST = 10000; - * - *
-     * 正式协议从10000开始
-     * 
- */ - public static final int LOGIN_REQUEST_VALUE = 10000; - /** - * LOGIN_RESPONSE = 10001; - */ - public static final int LOGIN_RESPONSE_VALUE = 10001; - /** - * GET_PLAYERINFO_REQUEST = 10002; - * - *
-     * 
- */ - public static final int GET_PLAYERINFO_REQUEST_VALUE = 10002; - /** - * GET_PLAYERINFO_RESPONSE = 10003; - */ - public static final int GET_PLAYERINFO_RESPONSE_VALUE = 10003; - /** - * GET_HEROINFO_REQUEST = 10004; - * - *
-     * 
- */ - public static final int GET_HEROINFO_REQUEST_VALUE = 10004; - /** - * GET_HEROINFO_RESPONSE = 10005; - */ - public static final int GET_HEROINFO_RESPONSE_VALUE = 10005; - /** - * GET_ITEMINFO_REQUEST = 10006; - * - *
-     * 
- */ - public static final int GET_ITEMINFO_REQUEST_VALUE = 10006; - /** - * GET_ITEMINFO_RESPONSE = 10007; - */ - public static final int GET_ITEMINFO_RESPONSE_VALUE = 10007; - /** - * ENTER_MAP_REQUEST = 10008; - * - *
-     * 
- */ - public static final int ENTER_MAP_REQUEST_VALUE = 10008; - /** - * ENTER_MAP_RESPONSE = 10009; - */ - public static final int ENTER_MAP_RESPONSE_VALUE = 10009; - /** - * START_FIGHT_REQUEST = 10010; - * - *
-     * 
- */ - public static final int START_FIGHT_REQUEST_VALUE = 10010; - /** - * START_FIGHT_RESPONSE = 10011; - */ - public static final int START_FIGHT_RESPONSE_VALUE = 10011; - /** - * END_FIGHT_REQUEST = 10012; - * - *
-     * 
- */ - public static final int END_FIGHT_REQUEST_VALUE = 10012; - /** - * END_FIGHT_RESPONSE = 10013; - */ - public static final int END_FIGHT_RESPONSE_VALUE = 10013; - /** - * TRIGGER_EVENT_REQUEST = 10014; - * - *
-     * 
- */ - public static final int TRIGGER_EVENT_REQUEST_VALUE = 10014; - /** - * TRIGGER_EVENT_RESPONSE = 10015; - */ - public static final int TRIGGER_EVENT_RESPONSE_VALUE = 10015; - /** - * OUT_MAP_REQUEST = 10016; - * - *
-     * 
- */ - public static final int OUT_MAP_REQUEST_VALUE = 10016; - /** - * OUT_MAP_RESPONSE = 10017; - */ - public static final int OUT_MAP_RESPONSE_VALUE = 10017; - - - public final int getNumber() { return value; } - - public static MessageType valueOf(int value) { - switch (value) { - case 1000: return HEART_BEAT_REQUEST; - case 1001: return HEART_BEAT_RESPONSE; - case 10000: return LOGIN_REQUEST; - case 10001: return LOGIN_RESPONSE; - case 10002: return GET_PLAYERINFO_REQUEST; - case 10003: return GET_PLAYERINFO_RESPONSE; - case 10004: return GET_HEROINFO_REQUEST; - case 10005: return GET_HEROINFO_RESPONSE; - case 10006: return GET_ITEMINFO_REQUEST; - case 10007: return GET_ITEMINFO_RESPONSE; - case 10008: return ENTER_MAP_REQUEST; - case 10009: return ENTER_MAP_RESPONSE; - case 10010: return START_FIGHT_REQUEST; - case 10011: return START_FIGHT_RESPONSE; - case 10012: return END_FIGHT_REQUEST; - case 10013: return END_FIGHT_RESPONSE; - case 10014: return TRIGGER_EVENT_REQUEST; - case 10015: return TRIGGER_EVENT_RESPONSE; - case 10016: return OUT_MAP_REQUEST; - case 10017: return OUT_MAP_RESPONSE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MessageType findValueByNumber(int number) { - return MessageType.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.ljsd.jieling.protocols.MessageTypeProto.getDescriptor().getEnumTypes().get(0); - } - - private static final MessageType[] VALUES = values(); - - public static MessageType 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 MessageType(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:com.ljsd.jieling.protocols.MessageType) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026MessageTypeProto.proto\022\032com.ljsd.jieli" + - "ng.protocols*\217\004\n\013MessageType\022\027\n\022HEART_BE" + - "AT_REQUEST\020\350\007\022\030\n\023HEART_BEAT_RESPONSE\020\351\007\022" + - "\022\n\rLOGIN_REQUEST\020\220N\022\023\n\016LOGIN_RESPONSE\020\221N" + - "\022\033\n\026GET_PLAYERINFO_REQUEST\020\222N\022\034\n\027GET_PLA" + - "YERINFO_RESPONSE\020\223N\022\031\n\024GET_HEROINFO_REQU" + - "EST\020\224N\022\032\n\025GET_HEROINFO_RESPONSE\020\225N\022\031\n\024GE" + - "T_ITEMINFO_REQUEST\020\226N\022\032\n\025GET_ITEMINFO_RE" + - "SPONSE\020\227N\022\026\n\021ENTER_MAP_REQUEST\020\230N\022\027\n\022ENT" + - "ER_MAP_RESPONSE\020\231N\022\030\n\023START_FIGHT_REQUES", - "T\020\232N\022\031\n\024START_FIGHT_RESPONSE\020\233N\022\026\n\021END_F" + - "IGHT_REQUEST\020\234N\022\027\n\022END_FIGHT_RESPONSE\020\235N" + - "\022\032\n\025TRIGGER_EVENT_REQUEST\020\236N\022\033\n\026TRIGGER_" + - "EVENT_RESPONSE\020\237N\022\024\n\017OUT_MAP_REQUEST\020\240N\022" + - "\025\n\020OUT_MAP_RESPONSE\020\241NB\002H\001" - }; - 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[] { - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/serverlogic/src/main/java/com/ljsd/jieling/protocols/PlayerInfoProto.java b/serverlogic/src/main/java/com/ljsd/jieling/protocols/PlayerInfoProto.java deleted file mode 100644 index 0bdd590b9..000000000 --- a/serverlogic/src/main/java/com/ljsd/jieling/protocols/PlayerInfoProto.java +++ /dev/null @@ -1,3824 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: PlayerInfoProto.proto - -package com.ljsd.jieling.protocols; - -public final class PlayerInfoProto { - private PlayerInfoProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface PlayerInfoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.PlayerInfo} - */ - public static final class PlayerInfo extends - com.google.protobuf.GeneratedMessage - implements PlayerInfoOrBuilder { - // Use PlayerInfo.newBuilder() to construct. - private PlayerInfo(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private PlayerInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final PlayerInfo defaultInstance; - public static PlayerInfo getDefaultInstance() { - return defaultInstance; - } - - public PlayerInfo getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PlayerInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PlayerInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public interface LoginRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional int32 num = 1; - /** - * optional int32 num = 1; - */ - boolean hasNum(); - /** - * optional int32 num = 1; - */ - int getNum(); - - // optional string str = 2; - /** - * optional string str = 2; - */ - boolean hasStr(); - /** - * optional string str = 2; - */ - java.lang.String getStr(); - /** - * optional string str = 2; - */ - com.google.protobuf.ByteString - getStrBytes(); - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.PlayerInfo.LoginRequest} - */ - public static final class LoginRequest extends - com.google.protobuf.GeneratedMessage - implements LoginRequestOrBuilder { - // Use LoginRequest.newBuilder() to construct. - private LoginRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private LoginRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final LoginRequest defaultInstance; - public static LoginRequest getDefaultInstance() { - return defaultInstance; - } - - public LoginRequest getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LoginRequest( - 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: { - bitField0_ |= 0x00000001; - num_ = input.readInt32(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - str_ = input.readBytes(); - 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.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public LoginRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LoginRequest(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional int32 num = 1; - public static final int NUM_FIELD_NUMBER = 1; - private int num_; - /** - * optional int32 num = 1; - */ - public boolean hasNum() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 num = 1; - */ - public int getNum() { - return num_; - } - - // optional string str = 2; - public static final int STR_FIELD_NUMBER = 2; - private java.lang.Object str_; - /** - * optional string str = 2; - */ - public boolean hasStr() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string str = 2; - */ - public java.lang.String getStr() { - java.lang.Object ref = str_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - str_ = s; - } - return s; - } - } - /** - * optional string str = 2; - */ - public com.google.protobuf.ByteString - getStrBytes() { - java.lang.Object ref = str_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - str_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - num_ = 0; - str_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, num_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getStrBytes()); - } - 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 - .computeInt32Size(1, num_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getStrBytes()); - } - 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.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest 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.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest 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.ljsd.jieling.protocols.PlayerInfo.LoginRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest.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(); - num_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - str_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_descriptor; - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest build() { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest buildPartial() { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest result = new com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.num_ = num_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.str_ = str_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest) { - return mergeFrom((com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest other) { - if (other == com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest.getDefaultInstance()) return this; - if (other.hasNum()) { - setNum(other.getNum()); - } - if (other.hasStr()) { - bitField0_ |= 0x00000002; - str_ = other.str_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional int32 num = 1; - private int num_ ; - /** - * optional int32 num = 1; - */ - public boolean hasNum() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 num = 1; - */ - public int getNum() { - return num_; - } - /** - * optional int32 num = 1; - */ - public Builder setNum(int value) { - bitField0_ |= 0x00000001; - num_ = value; - onChanged(); - return this; - } - /** - * optional int32 num = 1; - */ - public Builder clearNum() { - bitField0_ = (bitField0_ & ~0x00000001); - num_ = 0; - onChanged(); - return this; - } - - // optional string str = 2; - private java.lang.Object str_ = ""; - /** - * optional string str = 2; - */ - public boolean hasStr() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string str = 2; - */ - public java.lang.String getStr() { - java.lang.Object ref = str_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - str_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string str = 2; - */ - public com.google.protobuf.ByteString - getStrBytes() { - java.lang.Object ref = str_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - str_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string str = 2; - */ - public Builder setStr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - str_ = value; - onChanged(); - return this; - } - /** - * optional string str = 2; - */ - public Builder clearStr() { - bitField0_ = (bitField0_ & ~0x00000002); - str_ = getDefaultInstance().getStr(); - onChanged(); - return this; - } - /** - * optional string str = 2; - */ - public Builder setStrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - str_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.PlayerInfo.LoginRequest) - } - - static { - defaultInstance = new LoginRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.PlayerInfo.LoginRequest) - } - - public interface LoginResponseOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional int32 resultCode = 1; - /** - * optional int32 resultCode = 1; - */ - boolean hasResultCode(); - /** - * optional int32 resultCode = 1; - */ - int getResultCode(); - - // optional string newToken = 2; - /** - * optional string newToken = 2; - */ - boolean hasNewToken(); - /** - * optional string newToken = 2; - */ - java.lang.String getNewToken(); - /** - * optional string newToken = 2; - */ - com.google.protobuf.ByteString - getNewTokenBytes(); - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.PlayerInfo.LoginResponse} - */ - public static final class LoginResponse extends - com.google.protobuf.GeneratedMessage - implements LoginResponseOrBuilder { - // Use LoginResponse.newBuilder() to construct. - private LoginResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private LoginResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final LoginResponse defaultInstance; - public static LoginResponse getDefaultInstance() { - return defaultInstance; - } - - public LoginResponse getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LoginResponse( - 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: { - bitField0_ |= 0x00000001; - resultCode_ = input.readInt32(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - newToken_ = input.readBytes(); - 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.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public LoginResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LoginResponse(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional int32 resultCode = 1; - public static final int RESULTCODE_FIELD_NUMBER = 1; - private int resultCode_; - /** - * optional int32 resultCode = 1; - */ - public boolean hasResultCode() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 resultCode = 1; - */ - public int getResultCode() { - return resultCode_; - } - - // optional string newToken = 2; - public static final int NEWTOKEN_FIELD_NUMBER = 2; - private java.lang.Object newToken_; - /** - * optional string newToken = 2; - */ - public boolean hasNewToken() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string newToken = 2; - */ - public java.lang.String getNewToken() { - java.lang.Object ref = newToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - newToken_ = s; - } - return s; - } - } - /** - * optional string newToken = 2; - */ - public com.google.protobuf.ByteString - getNewTokenBytes() { - java.lang.Object ref = newToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - newToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - resultCode_ = 0; - newToken_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, resultCode_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNewTokenBytes()); - } - 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 - .computeInt32Size(1, resultCode_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNewTokenBytes()); - } - 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.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse 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.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse 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.ljsd.jieling.protocols.PlayerInfo.LoginResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse.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(); - resultCode_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - newToken_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_descriptor; - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse build() { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse buildPartial() { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse result = new com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.resultCode_ = resultCode_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.newToken_ = newToken_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse) { - return mergeFrom((com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse other) { - if (other == com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse.getDefaultInstance()) return this; - if (other.hasResultCode()) { - setResultCode(other.getResultCode()); - } - if (other.hasNewToken()) { - bitField0_ |= 0x00000002; - newToken_ = other.newToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional int32 resultCode = 1; - private int resultCode_ ; - /** - * optional int32 resultCode = 1; - */ - public boolean hasResultCode() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 resultCode = 1; - */ - public int getResultCode() { - return resultCode_; - } - /** - * optional int32 resultCode = 1; - */ - public Builder setResultCode(int value) { - bitField0_ |= 0x00000001; - resultCode_ = value; - onChanged(); - return this; - } - /** - * optional int32 resultCode = 1; - */ - public Builder clearResultCode() { - bitField0_ = (bitField0_ & ~0x00000001); - resultCode_ = 0; - onChanged(); - return this; - } - - // optional string newToken = 2; - private java.lang.Object newToken_ = ""; - /** - * optional string newToken = 2; - */ - public boolean hasNewToken() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string newToken = 2; - */ - public java.lang.String getNewToken() { - java.lang.Object ref = newToken_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - newToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string newToken = 2; - */ - public com.google.protobuf.ByteString - getNewTokenBytes() { - java.lang.Object ref = newToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - newToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string newToken = 2; - */ - public Builder setNewToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - newToken_ = value; - onChanged(); - return this; - } - /** - * optional string newToken = 2; - */ - public Builder clearNewToken() { - bitField0_ = (bitField0_ & ~0x00000002); - newToken_ = getDefaultInstance().getNewToken(); - onChanged(); - return this; - } - /** - * optional string newToken = 2; - */ - public Builder setNewTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - newToken_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.PlayerInfo.LoginResponse) - } - - static { - defaultInstance = new LoginResponse(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.PlayerInfo.LoginResponse) - } - - public interface GetPlayerInfoRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional int32 num = 1; - /** - * optional int32 num = 1; - */ - boolean hasNum(); - /** - * optional int32 num = 1; - */ - int getNum(); - - // optional string str = 2; - /** - * optional string str = 2; - */ - boolean hasStr(); - /** - * optional string str = 2; - */ - java.lang.String getStr(); - /** - * optional string str = 2; - */ - com.google.protobuf.ByteString - getStrBytes(); - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.PlayerInfo.GetPlayerInfoRequest} - */ - public static final class GetPlayerInfoRequest extends - com.google.protobuf.GeneratedMessage - implements GetPlayerInfoRequestOrBuilder { - // Use GetPlayerInfoRequest.newBuilder() to construct. - private GetPlayerInfoRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetPlayerInfoRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetPlayerInfoRequest defaultInstance; - public static GetPlayerInfoRequest getDefaultInstance() { - return defaultInstance; - } - - public GetPlayerInfoRequest getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetPlayerInfoRequest( - 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: { - bitField0_ |= 0x00000001; - num_ = input.readInt32(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - str_ = input.readBytes(); - 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.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetPlayerInfoRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPlayerInfoRequest(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional int32 num = 1; - public static final int NUM_FIELD_NUMBER = 1; - private int num_; - /** - * optional int32 num = 1; - */ - public boolean hasNum() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 num = 1; - */ - public int getNum() { - return num_; - } - - // optional string str = 2; - public static final int STR_FIELD_NUMBER = 2; - private java.lang.Object str_; - /** - * optional string str = 2; - */ - public boolean hasStr() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string str = 2; - */ - public java.lang.String getStr() { - java.lang.Object ref = str_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - str_ = s; - } - return s; - } - } - /** - * optional string str = 2; - */ - public com.google.protobuf.ByteString - getStrBytes() { - java.lang.Object ref = str_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - str_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - num_ = 0; - str_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, num_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getStrBytes()); - } - 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 - .computeInt32Size(1, num_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getStrBytes()); - } - 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.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest 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.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest 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.ljsd.jieling.protocols.PlayerInfo.GetPlayerInfoRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest.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(); - num_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - str_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoRequest_descriptor; - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest build() { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest buildPartial() { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest result = new com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.num_ = num_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.str_ = str_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest) { - return mergeFrom((com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest other) { - if (other == com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest.getDefaultInstance()) return this; - if (other.hasNum()) { - setNum(other.getNum()); - } - if (other.hasStr()) { - bitField0_ |= 0x00000002; - str_ = other.str_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional int32 num = 1; - private int num_ ; - /** - * optional int32 num = 1; - */ - public boolean hasNum() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 num = 1; - */ - public int getNum() { - return num_; - } - /** - * optional int32 num = 1; - */ - public Builder setNum(int value) { - bitField0_ |= 0x00000001; - num_ = value; - onChanged(); - return this; - } - /** - * optional int32 num = 1; - */ - public Builder clearNum() { - bitField0_ = (bitField0_ & ~0x00000001); - num_ = 0; - onChanged(); - return this; - } - - // optional string str = 2; - private java.lang.Object str_ = ""; - /** - * optional string str = 2; - */ - public boolean hasStr() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string str = 2; - */ - public java.lang.String getStr() { - java.lang.Object ref = str_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - str_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string str = 2; - */ - public com.google.protobuf.ByteString - getStrBytes() { - java.lang.Object ref = str_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - str_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string str = 2; - */ - public Builder setStr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - str_ = value; - onChanged(); - return this; - } - /** - * optional string str = 2; - */ - public Builder clearStr() { - bitField0_ = (bitField0_ & ~0x00000002); - str_ = getDefaultInstance().getStr(); - onChanged(); - return this; - } - /** - * optional string str = 2; - */ - public Builder setStrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - str_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.PlayerInfo.GetPlayerInfoRequest) - } - - static { - defaultInstance = new GetPlayerInfoRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.PlayerInfo.GetPlayerInfoRequest) - } - - public interface GetPlayerInfoResponseOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .com.ljsd.jieling.protocols.Common.Player player = 1; - /** - * optional .com.ljsd.jieling.protocols.Common.Player player = 1; - */ - boolean hasPlayer(); - /** - * optional .com.ljsd.jieling.protocols.Common.Player player = 1; - */ - com.ljsd.jieling.protocols.CommonProto.Common.Player getPlayer(); - /** - * optional .com.ljsd.jieling.protocols.Common.Player player = 1; - */ - com.ljsd.jieling.protocols.CommonProto.Common.PlayerOrBuilder getPlayerOrBuilder(); - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.PlayerInfo.GetPlayerInfoResponse} - */ - public static final class GetPlayerInfoResponse extends - com.google.protobuf.GeneratedMessage - implements GetPlayerInfoResponseOrBuilder { - // Use GetPlayerInfoResponse.newBuilder() to construct. - private GetPlayerInfoResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetPlayerInfoResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetPlayerInfoResponse defaultInstance; - public static GetPlayerInfoResponse getDefaultInstance() { - return defaultInstance; - } - - public GetPlayerInfoResponse getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetPlayerInfoResponse( - 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.ljsd.jieling.protocols.CommonProto.Common.Player.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = player_.toBuilder(); - } - player_ = input.readMessage(com.ljsd.jieling.protocols.CommonProto.Common.Player.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(player_); - player_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - 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.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetPlayerInfoResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPlayerInfoResponse(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional .com.ljsd.jieling.protocols.Common.Player player = 1; - public static final int PLAYER_FIELD_NUMBER = 1; - private com.ljsd.jieling.protocols.CommonProto.Common.Player player_; - /** - * optional .com.ljsd.jieling.protocols.Common.Player player = 1; - */ - public boolean hasPlayer() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .com.ljsd.jieling.protocols.Common.Player player = 1; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.Player getPlayer() { - return player_; - } - /** - * optional .com.ljsd.jieling.protocols.Common.Player player = 1; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.PlayerOrBuilder getPlayerOrBuilder() { - return player_; - } - - private void initFields() { - player_ = com.ljsd.jieling.protocols.CommonProto.Common.Player.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, player_); - } - 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, player_); - } - 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.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse 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.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse 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.ljsd.jieling.protocols.PlayerInfo.GetPlayerInfoResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPlayerFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (playerBuilder_ == null) { - player_ = com.ljsd.jieling.protocols.CommonProto.Common.Player.getDefaultInstance(); - } else { - playerBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoResponse_descriptor; - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse build() { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse buildPartial() { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse result = new com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (playerBuilder_ == null) { - result.player_ = player_; - } else { - result.player_ = playerBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse) { - return mergeFrom((com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse other) { - if (other == com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse.getDefaultInstance()) return this; - if (other.hasPlayer()) { - mergePlayer(other.getPlayer()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional .com.ljsd.jieling.protocols.Common.Player player = 1; - private com.ljsd.jieling.protocols.CommonProto.Common.Player player_ = com.ljsd.jieling.protocols.CommonProto.Common.Player.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - com.ljsd.jieling.protocols.CommonProto.Common.Player, com.ljsd.jieling.protocols.CommonProto.Common.Player.Builder, com.ljsd.jieling.protocols.CommonProto.Common.PlayerOrBuilder> playerBuilder_; - /** - * optional .com.ljsd.jieling.protocols.Common.Player player = 1; - */ - public boolean hasPlayer() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .com.ljsd.jieling.protocols.Common.Player player = 1; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.Player getPlayer() { - if (playerBuilder_ == null) { - return player_; - } else { - return playerBuilder_.getMessage(); - } - } - /** - * optional .com.ljsd.jieling.protocols.Common.Player player = 1; - */ - public Builder setPlayer(com.ljsd.jieling.protocols.CommonProto.Common.Player value) { - if (playerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - player_ = value; - onChanged(); - } else { - playerBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .com.ljsd.jieling.protocols.Common.Player player = 1; - */ - public Builder setPlayer( - com.ljsd.jieling.protocols.CommonProto.Common.Player.Builder builderForValue) { - if (playerBuilder_ == null) { - player_ = builderForValue.build(); - onChanged(); - } else { - playerBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .com.ljsd.jieling.protocols.Common.Player player = 1; - */ - public Builder mergePlayer(com.ljsd.jieling.protocols.CommonProto.Common.Player value) { - if (playerBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - player_ != com.ljsd.jieling.protocols.CommonProto.Common.Player.getDefaultInstance()) { - player_ = - com.ljsd.jieling.protocols.CommonProto.Common.Player.newBuilder(player_).mergeFrom(value).buildPartial(); - } else { - player_ = value; - } - onChanged(); - } else { - playerBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .com.ljsd.jieling.protocols.Common.Player player = 1; - */ - public Builder clearPlayer() { - if (playerBuilder_ == null) { - player_ = com.ljsd.jieling.protocols.CommonProto.Common.Player.getDefaultInstance(); - onChanged(); - } else { - playerBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .com.ljsd.jieling.protocols.Common.Player player = 1; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.Player.Builder getPlayerBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPlayerFieldBuilder().getBuilder(); - } - /** - * optional .com.ljsd.jieling.protocols.Common.Player player = 1; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.PlayerOrBuilder getPlayerOrBuilder() { - if (playerBuilder_ != null) { - return playerBuilder_.getMessageOrBuilder(); - } else { - return player_; - } - } - /** - * optional .com.ljsd.jieling.protocols.Common.Player player = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - com.ljsd.jieling.protocols.CommonProto.Common.Player, com.ljsd.jieling.protocols.CommonProto.Common.Player.Builder, com.ljsd.jieling.protocols.CommonProto.Common.PlayerOrBuilder> - getPlayerFieldBuilder() { - if (playerBuilder_ == null) { - playerBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.ljsd.jieling.protocols.CommonProto.Common.Player, com.ljsd.jieling.protocols.CommonProto.Common.Player.Builder, com.ljsd.jieling.protocols.CommonProto.Common.PlayerOrBuilder>( - player_, - getParentForChildren(), - isClean()); - player_ = null; - } - return playerBuilder_; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.PlayerInfo.GetPlayerInfoResponse) - } - - static { - defaultInstance = new GetPlayerInfoResponse(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.PlayerInfo.GetPlayerInfoResponse) - } - - public interface GetItemInfoRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional int32 num = 1; - /** - * optional int32 num = 1; - */ - boolean hasNum(); - /** - * optional int32 num = 1; - */ - int getNum(); - - // optional string str = 2; - /** - * optional string str = 2; - */ - boolean hasStr(); - /** - * optional string str = 2; - */ - java.lang.String getStr(); - /** - * optional string str = 2; - */ - com.google.protobuf.ByteString - getStrBytes(); - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.PlayerInfo.GetItemInfoRequest} - */ - public static final class GetItemInfoRequest extends - com.google.protobuf.GeneratedMessage - implements GetItemInfoRequestOrBuilder { - // Use GetItemInfoRequest.newBuilder() to construct. - private GetItemInfoRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetItemInfoRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetItemInfoRequest defaultInstance; - public static GetItemInfoRequest getDefaultInstance() { - return defaultInstance; - } - - public GetItemInfoRequest getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetItemInfoRequest( - 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: { - bitField0_ |= 0x00000001; - num_ = input.readInt32(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - str_ = input.readBytes(); - 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.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetItemInfoRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetItemInfoRequest(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional int32 num = 1; - public static final int NUM_FIELD_NUMBER = 1; - private int num_; - /** - * optional int32 num = 1; - */ - public boolean hasNum() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 num = 1; - */ - public int getNum() { - return num_; - } - - // optional string str = 2; - public static final int STR_FIELD_NUMBER = 2; - private java.lang.Object str_; - /** - * optional string str = 2; - */ - public boolean hasStr() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string str = 2; - */ - public java.lang.String getStr() { - java.lang.Object ref = str_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - str_ = s; - } - return s; - } - } - /** - * optional string str = 2; - */ - public com.google.protobuf.ByteString - getStrBytes() { - java.lang.Object ref = str_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - str_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - num_ = 0; - str_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, num_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getStrBytes()); - } - 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 - .computeInt32Size(1, num_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getStrBytes()); - } - 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.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest 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.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest 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.ljsd.jieling.protocols.PlayerInfo.GetItemInfoRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest.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(); - num_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - str_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_descriptor; - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest build() { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest buildPartial() { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest result = new com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.num_ = num_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.str_ = str_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest) { - return mergeFrom((com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest other) { - if (other == com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest.getDefaultInstance()) return this; - if (other.hasNum()) { - setNum(other.getNum()); - } - if (other.hasStr()) { - bitField0_ |= 0x00000002; - str_ = other.str_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional int32 num = 1; - private int num_ ; - /** - * optional int32 num = 1; - */ - public boolean hasNum() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 num = 1; - */ - public int getNum() { - return num_; - } - /** - * optional int32 num = 1; - */ - public Builder setNum(int value) { - bitField0_ |= 0x00000001; - num_ = value; - onChanged(); - return this; - } - /** - * optional int32 num = 1; - */ - public Builder clearNum() { - bitField0_ = (bitField0_ & ~0x00000001); - num_ = 0; - onChanged(); - return this; - } - - // optional string str = 2; - private java.lang.Object str_ = ""; - /** - * optional string str = 2; - */ - public boolean hasStr() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string str = 2; - */ - public java.lang.String getStr() { - java.lang.Object ref = str_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - str_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string str = 2; - */ - public com.google.protobuf.ByteString - getStrBytes() { - java.lang.Object ref = str_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - str_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string str = 2; - */ - public Builder setStr( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - str_ = value; - onChanged(); - return this; - } - /** - * optional string str = 2; - */ - public Builder clearStr() { - bitField0_ = (bitField0_ & ~0x00000002); - str_ = getDefaultInstance().getStr(); - onChanged(); - return this; - } - /** - * optional string str = 2; - */ - public Builder setStrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - str_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.PlayerInfo.GetItemInfoRequest) - } - - static { - defaultInstance = new GetItemInfoRequest(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.PlayerInfo.GetItemInfoRequest) - } - - public interface GetItemInfoResponseOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - java.util.List - getItemlistList(); - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - com.ljsd.jieling.protocols.CommonProto.Common.Item getItemlist(int index); - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - int getItemlistCount(); - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - java.util.List - getItemlistOrBuilderList(); - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - com.ljsd.jieling.protocols.CommonProto.Common.ItemOrBuilder getItemlistOrBuilder( - int index); - } - /** - * Protobuf type {@code com.ljsd.jieling.protocols.PlayerInfo.GetItemInfoResponse} - */ - public static final class GetItemInfoResponse extends - com.google.protobuf.GeneratedMessage - implements GetItemInfoResponseOrBuilder { - // Use GetItemInfoResponse.newBuilder() to construct. - private GetItemInfoResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetItemInfoResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetItemInfoResponse defaultInstance; - public static GetItemInfoResponse getDefaultInstance() { - return defaultInstance; - } - - public GetItemInfoResponse getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetItemInfoResponse( - 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)) { - itemlist_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - itemlist_.add(input.readMessage(com.ljsd.jieling.protocols.CommonProto.Common.Item.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)) { - itemlist_ = java.util.Collections.unmodifiableList(itemlist_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetItemInfoResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetItemInfoResponse(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - // repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - public static final int ITEMLIST_FIELD_NUMBER = 1; - private java.util.List itemlist_; - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public java.util.List getItemlistList() { - return itemlist_; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public java.util.List - getItemlistOrBuilderList() { - return itemlist_; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public int getItemlistCount() { - return itemlist_.size(); - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.Item getItemlist(int index) { - return itemlist_.get(index); - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.ItemOrBuilder getItemlistOrBuilder( - int index) { - return itemlist_.get(index); - } - - private void initFields() { - itemlist_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - for (int i = 0; i < itemlist_.size(); i++) { - output.writeMessage(1, itemlist_.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 < itemlist_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, itemlist_.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.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse 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.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse 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.ljsd.jieling.protocols.PlayerInfo.GetItemInfoResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getItemlistFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (itemlistBuilder_ == null) { - itemlist_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - itemlistBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_descriptor; - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse build() { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse buildPartial() { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse result = new com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse(this); - int from_bitField0_ = bitField0_; - if (itemlistBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - itemlist_ = java.util.Collections.unmodifiableList(itemlist_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.itemlist_ = itemlist_; - } else { - result.itemlist_ = itemlistBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse) { - return mergeFrom((com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse other) { - if (other == com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse.getDefaultInstance()) return this; - if (itemlistBuilder_ == null) { - if (!other.itemlist_.isEmpty()) { - if (itemlist_.isEmpty()) { - itemlist_ = other.itemlist_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureItemlistIsMutable(); - itemlist_.addAll(other.itemlist_); - } - onChanged(); - } - } else { - if (!other.itemlist_.isEmpty()) { - if (itemlistBuilder_.isEmpty()) { - itemlistBuilder_.dispose(); - itemlistBuilder_ = null; - itemlist_ = other.itemlist_; - bitField0_ = (bitField0_ & ~0x00000001); - itemlistBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getItemlistFieldBuilder() : null; - } else { - itemlistBuilder_.addAllMessages(other.itemlist_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - private java.util.List itemlist_ = - java.util.Collections.emptyList(); - private void ensureItemlistIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - itemlist_ = new java.util.ArrayList(itemlist_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.ljsd.jieling.protocols.CommonProto.Common.Item, com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder, com.ljsd.jieling.protocols.CommonProto.Common.ItemOrBuilder> itemlistBuilder_; - - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public java.util.List getItemlistList() { - if (itemlistBuilder_ == null) { - return java.util.Collections.unmodifiableList(itemlist_); - } else { - return itemlistBuilder_.getMessageList(); - } - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public int getItemlistCount() { - if (itemlistBuilder_ == null) { - return itemlist_.size(); - } else { - return itemlistBuilder_.getCount(); - } - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.Item getItemlist(int index) { - if (itemlistBuilder_ == null) { - return itemlist_.get(index); - } else { - return itemlistBuilder_.getMessage(index); - } - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public Builder setItemlist( - int index, com.ljsd.jieling.protocols.CommonProto.Common.Item value) { - if (itemlistBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemlistIsMutable(); - itemlist_.set(index, value); - onChanged(); - } else { - itemlistBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public Builder setItemlist( - int index, com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder builderForValue) { - if (itemlistBuilder_ == null) { - ensureItemlistIsMutable(); - itemlist_.set(index, builderForValue.build()); - onChanged(); - } else { - itemlistBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public Builder addItemlist(com.ljsd.jieling.protocols.CommonProto.Common.Item value) { - if (itemlistBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemlistIsMutable(); - itemlist_.add(value); - onChanged(); - } else { - itemlistBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public Builder addItemlist( - int index, com.ljsd.jieling.protocols.CommonProto.Common.Item value) { - if (itemlistBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemlistIsMutable(); - itemlist_.add(index, value); - onChanged(); - } else { - itemlistBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public Builder addItemlist( - com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder builderForValue) { - if (itemlistBuilder_ == null) { - ensureItemlistIsMutable(); - itemlist_.add(builderForValue.build()); - onChanged(); - } else { - itemlistBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public Builder addItemlist( - int index, com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder builderForValue) { - if (itemlistBuilder_ == null) { - ensureItemlistIsMutable(); - itemlist_.add(index, builderForValue.build()); - onChanged(); - } else { - itemlistBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public Builder addAllItemlist( - java.lang.Iterable values) { - if (itemlistBuilder_ == null) { - ensureItemlistIsMutable(); - super.addAll(values, itemlist_); - onChanged(); - } else { - itemlistBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public Builder clearItemlist() { - if (itemlistBuilder_ == null) { - itemlist_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - itemlistBuilder_.clear(); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public Builder removeItemlist(int index) { - if (itemlistBuilder_ == null) { - ensureItemlistIsMutable(); - itemlist_.remove(index); - onChanged(); - } else { - itemlistBuilder_.remove(index); - } - return this; - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder getItemlistBuilder( - int index) { - return getItemlistFieldBuilder().getBuilder(index); - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.ItemOrBuilder getItemlistOrBuilder( - int index) { - if (itemlistBuilder_ == null) { - return itemlist_.get(index); } else { - return itemlistBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public java.util.List - getItemlistOrBuilderList() { - if (itemlistBuilder_ != null) { - return itemlistBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(itemlist_); - } - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder addItemlistBuilder() { - return getItemlistFieldBuilder().addBuilder( - com.ljsd.jieling.protocols.CommonProto.Common.Item.getDefaultInstance()); - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder addItemlistBuilder( - int index) { - return getItemlistFieldBuilder().addBuilder( - index, com.ljsd.jieling.protocols.CommonProto.Common.Item.getDefaultInstance()); - } - /** - * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; - */ - public java.util.List - getItemlistBuilderList() { - return getItemlistFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.ljsd.jieling.protocols.CommonProto.Common.Item, com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder, com.ljsd.jieling.protocols.CommonProto.Common.ItemOrBuilder> - getItemlistFieldBuilder() { - if (itemlistBuilder_ == null) { - itemlistBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.ljsd.jieling.protocols.CommonProto.Common.Item, com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder, com.ljsd.jieling.protocols.CommonProto.Common.ItemOrBuilder>( - itemlist_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - itemlist_ = null; - } - return itemlistBuilder_; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.PlayerInfo.GetItemInfoResponse) - } - - static { - defaultInstance = new GetItemInfoResponse(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.PlayerInfo.GetItemInfoResponse) - } - - private void initFields() { - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo 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.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo 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.ljsd.jieling.protocols.PlayerInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.Builder.class); - } - - // Construct using com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor; - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo getDefaultInstanceForType() { - return com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.getDefaultInstance(); - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo build() { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo buildPartial() { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo result = new com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo) { - return mergeFrom((com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo other) { - if (other == com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.PlayerInfo) - } - - static { - defaultInstance = new PlayerInfo(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.PlayerInfo) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_PlayerInfo_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoRequest_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_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\025PlayerInfoProto.proto\022\032com.ljsd.jielin" + - "g.protocols\032\021CommonProto.proto\"\365\002\n\nPlaye" + - "rInfo\032(\n\014LoginRequest\022\013\n\003num\030\001 \001(\005\022\013\n\003st" + - "r\030\002 \001(\t\0325\n\rLoginResponse\022\022\n\nresultCode\030\001" + - " \001(\005\022\020\n\010newToken\030\002 \001(\t\0320\n\024GetPlayerInfoR" + - "equest\022\013\n\003num\030\001 \001(\005\022\013\n\003str\030\002 \001(\t\032R\n\025GetP" + - "layerInfoResponse\0229\n\006player\030\001 \001(\0132).com." + - "ljsd.jieling.protocols.Common.Player\032.\n\022" + - "GetItemInfoRequest\022\013\n\003num\030\001 \001(\005\022\013\n\003str\030\002" + - " \001(\t\032P\n\023GetItemInfoResponse\0229\n\010itemlist\030", - "\001 \003(\0132\'.com.ljsd.jieling.protocols.Commo" + - "n.ItemB\002H\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_com_ljsd_jieling_protocols_PlayerInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor, - new java.lang.String[] { }); - internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_descriptor = - internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor.getNestedTypes().get(0); - internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_descriptor, - new java.lang.String[] { "Num", "Str", }); - internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_descriptor = - internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor.getNestedTypes().get(1); - internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_descriptor, - new java.lang.String[] { "ResultCode", "NewToken", }); - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoRequest_descriptor = - internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor.getNestedTypes().get(2); - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoRequest_descriptor, - new java.lang.String[] { "Num", "Str", }); - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoResponse_descriptor = - internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor.getNestedTypes().get(3); - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoResponse_descriptor, - new java.lang.String[] { "Player", }); - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_descriptor = - internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor.getNestedTypes().get(4); - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_descriptor, - new java.lang.String[] { "Num", "Str", }); - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_descriptor = - internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor.getNestedTypes().get(5); - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_descriptor, - new java.lang.String[] { "Itemlist", }); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.ljsd.jieling.protocols.CommonProto.getDescriptor(), - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -}