// Generated by the protocol buffer compiler. DO NOT EDIT! // source: wfcmessage_community.proto package cn.wildfirechat.proto; public final class WFCMessage { private WFCMessage() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface AddFriendRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string target_uid = 1; /** * required string target_uid = 1; */ boolean hasTargetUid(); /** * required string target_uid = 1; */ java.lang.String getTargetUid(); /** * required string target_uid = 1; */ com.google.protobuf.ByteString getTargetUidBytes(); // required string reason = 2; /** * required string reason = 2; */ boolean hasReason(); /** * required string reason = 2; */ java.lang.String getReason(); /** * required string reason = 2; */ com.google.protobuf.ByteString getReasonBytes(); // optional string extra = 3; /** * optional string extra = 3; */ boolean hasExtra(); /** * optional string extra = 3; */ java.lang.String getExtra(); /** * optional string extra = 3; */ com.google.protobuf.ByteString getExtraBytes(); } /** * Protobuf type {@code AddFriendRequest} */ public static final class AddFriendRequest extends com.google.protobuf.GeneratedMessage implements AddFriendRequestOrBuilder { // Use AddFriendRequest.newBuilder() to construct. private AddFriendRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AddFriendRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AddFriendRequest defaultInstance; public static AddFriendRequest getDefaultInstance() { return defaultInstance; } public AddFriendRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AddFriendRequest( 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; targetUid_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; reason_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; extra_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_AddFriendRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_AddFriendRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.AddFriendRequest.class, cn.wildfirechat.proto.WFCMessage.AddFriendRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AddFriendRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AddFriendRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string target_uid = 1; public static final int TARGET_UID_FIELD_NUMBER = 1; private java.lang.Object targetUid_; /** * required string target_uid = 1; */ public boolean hasTargetUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string target_uid = 1; */ public java.lang.String getTargetUid() { java.lang.Object ref = targetUid_; 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()) { targetUid_ = s; } return s; } } /** * required string target_uid = 1; */ public com.google.protobuf.ByteString getTargetUidBytes() { java.lang.Object ref = targetUid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string reason = 2; public static final int REASON_FIELD_NUMBER = 2; private java.lang.Object reason_; /** * required string reason = 2; */ public boolean hasReason() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string reason = 2; */ public java.lang.String getReason() { java.lang.Object ref = reason_; 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()) { reason_ = s; } return s; } } /** * required string reason = 2; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string extra = 3; public static final int EXTRA_FIELD_NUMBER = 3; private java.lang.Object extra_; /** * optional string extra = 3; */ public boolean hasExtra() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string extra = 3; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; 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()) { extra_ = s; } return s; } } /** * optional string extra = 3; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { targetUid_ = ""; reason_ = ""; extra_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasTargetUid()) { memoizedIsInitialized = 0; return false; } if (!hasReason()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getTargetUidBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getReasonBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getExtraBytes()); } 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, getTargetUidBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getReasonBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getExtraBytes()); } 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 cn.wildfirechat.proto.WFCMessage.AddFriendRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.AddFriendRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.AddFriendRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.AddFriendRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.AddFriendRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.AddFriendRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.AddFriendRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.AddFriendRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.AddFriendRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.AddFriendRequest 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(cn.wildfirechat.proto.WFCMessage.AddFriendRequest 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 AddFriendRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.AddFriendRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_AddFriendRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_AddFriendRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.AddFriendRequest.class, cn.wildfirechat.proto.WFCMessage.AddFriendRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.AddFriendRequest.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(); targetUid_ = ""; bitField0_ = (bitField0_ & ~0x00000001); reason_ = ""; bitField0_ = (bitField0_ & ~0x00000002); extra_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_AddFriendRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.AddFriendRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.AddFriendRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.AddFriendRequest build() { cn.wildfirechat.proto.WFCMessage.AddFriendRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.AddFriendRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.AddFriendRequest result = new cn.wildfirechat.proto.WFCMessage.AddFriendRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.targetUid_ = targetUid_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.reason_ = reason_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.extra_ = extra_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.AddFriendRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.AddFriendRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.AddFriendRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.AddFriendRequest.getDefaultInstance()) return this; if (other.hasTargetUid()) { bitField0_ |= 0x00000001; targetUid_ = other.targetUid_; onChanged(); } if (other.hasReason()) { bitField0_ |= 0x00000002; reason_ = other.reason_; onChanged(); } if (other.hasExtra()) { bitField0_ |= 0x00000004; extra_ = other.extra_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasTargetUid()) { return false; } if (!hasReason()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.AddFriendRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.AddFriendRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string target_uid = 1; private java.lang.Object targetUid_ = ""; /** * required string target_uid = 1; */ public boolean hasTargetUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string target_uid = 1; */ public java.lang.String getTargetUid() { java.lang.Object ref = targetUid_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); targetUid_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string target_uid = 1; */ public com.google.protobuf.ByteString getTargetUidBytes() { java.lang.Object ref = targetUid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string target_uid = 1; */ public Builder setTargetUid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; targetUid_ = value; onChanged(); return this; } /** * required string target_uid = 1; */ public Builder clearTargetUid() { bitField0_ = (bitField0_ & ~0x00000001); targetUid_ = getDefaultInstance().getTargetUid(); onChanged(); return this; } /** * required string target_uid = 1; */ public Builder setTargetUidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; targetUid_ = value; onChanged(); return this; } // required string reason = 2; private java.lang.Object reason_ = ""; /** * required string reason = 2; */ public boolean hasReason() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string reason = 2; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); reason_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string reason = 2; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string reason = 2; */ public Builder setReason( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; reason_ = value; onChanged(); return this; } /** * required string reason = 2; */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000002); reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** * required string reason = 2; */ public Builder setReasonBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; reason_ = value; onChanged(); return this; } // optional string extra = 3; private java.lang.Object extra_ = ""; /** * optional string extra = 3; */ public boolean hasExtra() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string extra = 3; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); extra_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string extra = 3; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string extra = 3; */ public Builder setExtra( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; extra_ = value; onChanged(); return this; } /** * optional string extra = 3; */ public Builder clearExtra() { bitField0_ = (bitField0_ & ~0x00000004); extra_ = getDefaultInstance().getExtra(); onChanged(); return this; } /** * optional string extra = 3; */ public Builder setExtraBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; extra_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:AddFriendRequest) } static { defaultInstance = new AddFriendRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:AddFriendRequest) } public interface ConversationOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int32 type = 1; /** * required int32 type = 1; */ boolean hasType(); /** * required int32 type = 1; */ int getType(); // required string target = 2; /** * required string target = 2; */ boolean hasTarget(); /** * required string target = 2; */ java.lang.String getTarget(); /** * required string target = 2; */ com.google.protobuf.ByteString getTargetBytes(); // required int32 line = 3; /** * required int32 line = 3; */ boolean hasLine(); /** * required int32 line = 3; */ int getLine(); } /** * Protobuf type {@code Conversation} */ public static final class Conversation extends com.google.protobuf.GeneratedMessage implements ConversationOrBuilder { // Use Conversation.newBuilder() to construct. private Conversation(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Conversation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Conversation defaultInstance; public static Conversation getDefaultInstance() { return defaultInstance; } public Conversation getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Conversation( 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; type_ = input.readInt32(); break; } case 18: { bitField0_ |= 0x00000002; target_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; line_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_Conversation_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_Conversation_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.Conversation.class, cn.wildfirechat.proto.WFCMessage.Conversation.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Conversation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Conversation(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required int32 type = 1; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * required int32 type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 type = 1; */ public int getType() { return type_; } // required string target = 2; public static final int TARGET_FIELD_NUMBER = 2; private java.lang.Object target_; /** * required string target = 2; */ public boolean hasTarget() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string target = 2; */ public java.lang.String getTarget() { java.lang.Object ref = target_; 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()) { target_ = s; } return s; } } /** * required string target = 2; */ public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); target_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 line = 3; public static final int LINE_FIELD_NUMBER = 3; private int line_; /** * required int32 line = 3; */ public boolean hasLine() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 line = 3; */ public int getLine() { return line_; } private void initFields() { type_ = 0; target_ = ""; line_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasType()) { memoizedIsInitialized = 0; return false; } if (!hasTarget()) { memoizedIsInitialized = 0; return false; } if (!hasLine()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getTargetBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, line_); } 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, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getTargetBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, line_); } 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 cn.wildfirechat.proto.WFCMessage.Conversation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.Conversation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Conversation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.Conversation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Conversation parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Conversation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Conversation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Conversation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Conversation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Conversation 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(cn.wildfirechat.proto.WFCMessage.Conversation 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 Conversation} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_Conversation_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_Conversation_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.Conversation.class, cn.wildfirechat.proto.WFCMessage.Conversation.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.Conversation.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(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); target_ = ""; bitField0_ = (bitField0_ & ~0x00000002); line_ = 0; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_Conversation_descriptor; } public cn.wildfirechat.proto.WFCMessage.Conversation getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.Conversation.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.Conversation build() { cn.wildfirechat.proto.WFCMessage.Conversation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.Conversation buildPartial() { cn.wildfirechat.proto.WFCMessage.Conversation result = new cn.wildfirechat.proto.WFCMessage.Conversation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.target_ = target_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.line_ = line_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.Conversation) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.Conversation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.Conversation other) { if (other == cn.wildfirechat.proto.WFCMessage.Conversation.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasTarget()) { bitField0_ |= 0x00000002; target_ = other.target_; onChanged(); } if (other.hasLine()) { setLine(other.getLine()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } if (!hasTarget()) { return false; } if (!hasLine()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.Conversation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.Conversation) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int32 type = 1; private int type_ ; /** * required int32 type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 type = 1; */ public int getType() { return type_; } /** * required int32 type = 1; */ public Builder setType(int value) { bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * required int32 type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } // required string target = 2; private java.lang.Object target_ = ""; /** * required string target = 2; */ public boolean hasTarget() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string target = 2; */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); target_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string target = 2; */ public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); target_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string target = 2; */ public Builder setTarget( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; target_ = value; onChanged(); return this; } /** * required string target = 2; */ public Builder clearTarget() { bitField0_ = (bitField0_ & ~0x00000002); target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** * required string target = 2; */ public Builder setTargetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; target_ = value; onChanged(); return this; } // required int32 line = 3; private int line_ ; /** * required int32 line = 3; */ public boolean hasLine() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 line = 3; */ public int getLine() { return line_; } /** * required int32 line = 3; */ public Builder setLine(int value) { bitField0_ |= 0x00000004; line_ = value; onChanged(); return this; } /** * required int32 line = 3; */ public Builder clearLine() { bitField0_ = (bitField0_ & ~0x00000004); line_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:Conversation) } static { defaultInstance = new Conversation(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:Conversation) } public interface GroupInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string target_id = 1; /** * optional string target_id = 1; */ boolean hasTargetId(); /** * optional string target_id = 1; */ java.lang.String getTargetId(); /** * optional string target_id = 1; */ com.google.protobuf.ByteString getTargetIdBytes(); // required string name = 2; /** * required string name = 2; */ boolean hasName(); /** * required string name = 2; */ java.lang.String getName(); /** * required string name = 2; */ com.google.protobuf.ByteString getNameBytes(); // optional string portrait = 3; /** * optional string portrait = 3; */ boolean hasPortrait(); /** * optional string portrait = 3; */ java.lang.String getPortrait(); /** * optional string portrait = 3; */ com.google.protobuf.ByteString getPortraitBytes(); // optional string owner = 4; /** * optional string owner = 4; */ boolean hasOwner(); /** * optional string owner = 4; */ java.lang.String getOwner(); /** * optional string owner = 4; */ com.google.protobuf.ByteString getOwnerBytes(); // required int32 type = 5; /** * required int32 type = 5; */ boolean hasType(); /** * required int32 type = 5; */ int getType(); // optional int32 member_count = 6; /** * optional int32 member_count = 6; */ boolean hasMemberCount(); /** * optional int32 member_count = 6; */ int getMemberCount(); // optional string extra = 7; /** * optional string extra = 7; */ boolean hasExtra(); /** * optional string extra = 7; */ java.lang.String getExtra(); /** * optional string extra = 7; */ com.google.protobuf.ByteString getExtraBytes(); // optional int64 update_dt = 8; /** * optional int64 update_dt = 8; */ boolean hasUpdateDt(); /** * optional int64 update_dt = 8; */ long getUpdateDt(); // optional int64 member_update_dt = 9; /** * optional int64 member_update_dt = 9; */ boolean hasMemberUpdateDt(); /** * optional int64 member_update_dt = 9; */ long getMemberUpdateDt(); // optional int32 mute = 10; /** * optional int32 mute = 10; */ boolean hasMute(); /** * optional int32 mute = 10; */ int getMute(); // optional int32 join_type = 11; /** * optional int32 join_type = 11; */ boolean hasJoinType(); /** * optional int32 join_type = 11; */ int getJoinType(); // optional int32 private_chat = 12; /** * optional int32 private_chat = 12; */ boolean hasPrivateChat(); /** * optional int32 private_chat = 12; */ int getPrivateChat(); // optional int32 searchable = 13; /** * optional int32 searchable = 13; */ boolean hasSearchable(); /** * optional int32 searchable = 13; */ int getSearchable(); // optional int32 max_member_count = 14; /** * optional int32 max_member_count = 14; */ boolean hasMaxMemberCount(); /** * optional int32 max_member_count = 14; */ int getMaxMemberCount(); // optional int32 history_message = 15; /** * optional int32 history_message = 15; */ boolean hasHistoryMessage(); /** * optional int32 history_message = 15; */ int getHistoryMessage(); // optional int32 super_group = 16; /** * optional int32 super_group = 16; */ boolean hasSuperGroup(); /** * optional int32 super_group = 16; */ int getSuperGroup(); // optional int32 deleted = 17; /** * optional int32 deleted = 17; */ boolean hasDeleted(); /** * optional int32 deleted = 17; */ int getDeleted(); } /** * Protobuf type {@code GroupInfo} */ public static final class GroupInfo extends com.google.protobuf.GeneratedMessage implements GroupInfoOrBuilder { // Use GroupInfo.newBuilder() to construct. private GroupInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GroupInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GroupInfo defaultInstance; public static GroupInfo getDefaultInstance() { return defaultInstance; } public GroupInfo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GroupInfo( 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; targetId_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; name_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; portrait_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; owner_ = input.readBytes(); break; } case 40: { bitField0_ |= 0x00000010; type_ = input.readInt32(); break; } case 48: { bitField0_ |= 0x00000020; memberCount_ = input.readInt32(); break; } case 58: { bitField0_ |= 0x00000040; extra_ = input.readBytes(); break; } case 64: { bitField0_ |= 0x00000080; updateDt_ = input.readInt64(); break; } case 72: { bitField0_ |= 0x00000100; memberUpdateDt_ = input.readInt64(); break; } case 80: { bitField0_ |= 0x00000200; mute_ = input.readInt32(); break; } case 88: { bitField0_ |= 0x00000400; joinType_ = input.readInt32(); break; } case 96: { bitField0_ |= 0x00000800; privateChat_ = input.readInt32(); break; } case 104: { bitField0_ |= 0x00001000; searchable_ = input.readInt32(); break; } case 112: { bitField0_ |= 0x00002000; maxMemberCount_ = input.readInt32(); break; } case 120: { bitField0_ |= 0x00004000; historyMessage_ = input.readInt32(); break; } case 128: { bitField0_ |= 0x00008000; superGroup_ = input.readInt32(); break; } case 136: { bitField0_ |= 0x00010000; deleted_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_GroupInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GroupInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GroupInfo.class, cn.wildfirechat.proto.WFCMessage.GroupInfo.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GroupInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GroupInfo(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string target_id = 1; public static final int TARGET_ID_FIELD_NUMBER = 1; private java.lang.Object targetId_; /** * optional string target_id = 1; */ public boolean hasTargetId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string target_id = 1; */ public java.lang.String getTargetId() { java.lang.Object ref = targetId_; 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()) { targetId_ = s; } return s; } } /** * optional string target_id = 1; */ public com.google.protobuf.ByteString getTargetIdBytes() { java.lang.Object ref = targetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string name = 2; public static final int NAME_FIELD_NUMBER = 2; private java.lang.Object name_; /** * required string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * required string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string portrait = 3; public static final int PORTRAIT_FIELD_NUMBER = 3; private java.lang.Object portrait_; /** * optional string portrait = 3; */ public boolean hasPortrait() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string portrait = 3; */ public java.lang.String getPortrait() { java.lang.Object ref = portrait_; 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()) { portrait_ = s; } return s; } } /** * optional string portrait = 3; */ public com.google.protobuf.ByteString getPortraitBytes() { java.lang.Object ref = portrait_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); portrait_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string owner = 4; public static final int OWNER_FIELD_NUMBER = 4; private java.lang.Object owner_; /** * optional string owner = 4; */ public boolean hasOwner() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string owner = 4; */ public java.lang.String getOwner() { java.lang.Object ref = owner_; 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()) { owner_ = s; } return s; } } /** * optional string owner = 4; */ public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 type = 5; public static final int TYPE_FIELD_NUMBER = 5; private int type_; /** * required int32 type = 5; */ public boolean hasType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * required int32 type = 5; */ public int getType() { return type_; } // optional int32 member_count = 6; public static final int MEMBER_COUNT_FIELD_NUMBER = 6; private int memberCount_; /** * optional int32 member_count = 6; */ public boolean hasMemberCount() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 member_count = 6; */ public int getMemberCount() { return memberCount_; } // optional string extra = 7; public static final int EXTRA_FIELD_NUMBER = 7; private java.lang.Object extra_; /** * optional string extra = 7; */ public boolean hasExtra() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string extra = 7; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; 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()) { extra_ = s; } return s; } } /** * optional string extra = 7; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int64 update_dt = 8; public static final int UPDATE_DT_FIELD_NUMBER = 8; private long updateDt_; /** * optional int64 update_dt = 8; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int64 update_dt = 8; */ public long getUpdateDt() { return updateDt_; } // optional int64 member_update_dt = 9; public static final int MEMBER_UPDATE_DT_FIELD_NUMBER = 9; private long memberUpdateDt_; /** * optional int64 member_update_dt = 9; */ public boolean hasMemberUpdateDt() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int64 member_update_dt = 9; */ public long getMemberUpdateDt() { return memberUpdateDt_; } // optional int32 mute = 10; public static final int MUTE_FIELD_NUMBER = 10; private int mute_; /** * optional int32 mute = 10; */ public boolean hasMute() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int32 mute = 10; */ public int getMute() { return mute_; } // optional int32 join_type = 11; public static final int JOIN_TYPE_FIELD_NUMBER = 11; private int joinType_; /** * optional int32 join_type = 11; */ public boolean hasJoinType() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int32 join_type = 11; */ public int getJoinType() { return joinType_; } // optional int32 private_chat = 12; public static final int PRIVATE_CHAT_FIELD_NUMBER = 12; private int privateChat_; /** * optional int32 private_chat = 12; */ public boolean hasPrivateChat() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional int32 private_chat = 12; */ public int getPrivateChat() { return privateChat_; } // optional int32 searchable = 13; public static final int SEARCHABLE_FIELD_NUMBER = 13; private int searchable_; /** * optional int32 searchable = 13; */ public boolean hasSearchable() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional int32 searchable = 13; */ public int getSearchable() { return searchable_; } // optional int32 max_member_count = 14; public static final int MAX_MEMBER_COUNT_FIELD_NUMBER = 14; private int maxMemberCount_; /** * optional int32 max_member_count = 14; */ public boolean hasMaxMemberCount() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int32 max_member_count = 14; */ public int getMaxMemberCount() { return maxMemberCount_; } // optional int32 history_message = 15; public static final int HISTORY_MESSAGE_FIELD_NUMBER = 15; private int historyMessage_; /** * optional int32 history_message = 15; */ public boolean hasHistoryMessage() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional int32 history_message = 15; */ public int getHistoryMessage() { return historyMessage_; } // optional int32 super_group = 16; public static final int SUPER_GROUP_FIELD_NUMBER = 16; private int superGroup_; /** * optional int32 super_group = 16; */ public boolean hasSuperGroup() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional int32 super_group = 16; */ public int getSuperGroup() { return superGroup_; } // optional int32 deleted = 17; public static final int DELETED_FIELD_NUMBER = 17; private int deleted_; /** * optional int32 deleted = 17; */ public boolean hasDeleted() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional int32 deleted = 17; */ public int getDeleted() { return deleted_; } private void initFields() { targetId_ = ""; name_ = ""; portrait_ = ""; owner_ = ""; type_ = 0; memberCount_ = 0; extra_ = ""; updateDt_ = 0L; memberUpdateDt_ = 0L; mute_ = 0; joinType_ = 0; privateChat_ = 0; searchable_ = 0; maxMemberCount_ = 0; historyMessage_ = 0; superGroup_ = 0; deleted_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasName()) { memoizedIsInitialized = 0; return false; } if (!hasType()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getTargetIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getPortraitBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getOwnerBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, type_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt32(6, memberCount_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(7, getExtraBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt64(8, updateDt_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeInt64(9, memberUpdateDt_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeInt32(10, mute_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeInt32(11, joinType_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeInt32(12, privateChat_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeInt32(13, searchable_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeInt32(14, maxMemberCount_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeInt32(15, historyMessage_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeInt32(16, superGroup_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeInt32(17, deleted_); } 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, getTargetIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getPortraitBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getOwnerBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, type_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, memberCount_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, getExtraBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, updateDt_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, memberUpdateDt_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, mute_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(11, joinType_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(12, privateChat_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(13, searchable_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(14, maxMemberCount_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(15, historyMessage_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(16, superGroup_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(17, deleted_); } 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 cn.wildfirechat.proto.WFCMessage.GroupInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GroupInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GroupInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GroupInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GroupInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GroupInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GroupInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GroupInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GroupInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GroupInfo 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(cn.wildfirechat.proto.WFCMessage.GroupInfo 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 GroupInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.GroupInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_GroupInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GroupInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GroupInfo.class, cn.wildfirechat.proto.WFCMessage.GroupInfo.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.GroupInfo.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(); targetId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); portrait_ = ""; bitField0_ = (bitField0_ & ~0x00000004); owner_ = ""; bitField0_ = (bitField0_ & ~0x00000008); type_ = 0; bitField0_ = (bitField0_ & ~0x00000010); memberCount_ = 0; bitField0_ = (bitField0_ & ~0x00000020); extra_ = ""; bitField0_ = (bitField0_ & ~0x00000040); updateDt_ = 0L; bitField0_ = (bitField0_ & ~0x00000080); memberUpdateDt_ = 0L; bitField0_ = (bitField0_ & ~0x00000100); mute_ = 0; bitField0_ = (bitField0_ & ~0x00000200); joinType_ = 0; bitField0_ = (bitField0_ & ~0x00000400); privateChat_ = 0; bitField0_ = (bitField0_ & ~0x00000800); searchable_ = 0; bitField0_ = (bitField0_ & ~0x00001000); maxMemberCount_ = 0; bitField0_ = (bitField0_ & ~0x00002000); historyMessage_ = 0; bitField0_ = (bitField0_ & ~0x00004000); superGroup_ = 0; bitField0_ = (bitField0_ & ~0x00008000); deleted_ = 0; bitField0_ = (bitField0_ & ~0x00010000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_GroupInfo_descriptor; } public cn.wildfirechat.proto.WFCMessage.GroupInfo getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.GroupInfo.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.GroupInfo build() { cn.wildfirechat.proto.WFCMessage.GroupInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.GroupInfo buildPartial() { cn.wildfirechat.proto.WFCMessage.GroupInfo result = new cn.wildfirechat.proto.WFCMessage.GroupInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.targetId_ = targetId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.portrait_ = portrait_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.owner_ = owner_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.type_ = type_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.memberCount_ = memberCount_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.extra_ = extra_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.updateDt_ = updateDt_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.memberUpdateDt_ = memberUpdateDt_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.mute_ = mute_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.joinType_ = joinType_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.privateChat_ = privateChat_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.searchable_ = searchable_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.maxMemberCount_ = maxMemberCount_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.historyMessage_ = historyMessage_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.superGroup_ = superGroup_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } result.deleted_ = deleted_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.GroupInfo) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.GroupInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.GroupInfo other) { if (other == cn.wildfirechat.proto.WFCMessage.GroupInfo.getDefaultInstance()) return this; if (other.hasTargetId()) { bitField0_ |= 0x00000001; targetId_ = other.targetId_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasPortrait()) { bitField0_ |= 0x00000004; portrait_ = other.portrait_; onChanged(); } if (other.hasOwner()) { bitField0_ |= 0x00000008; owner_ = other.owner_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (other.hasMemberCount()) { setMemberCount(other.getMemberCount()); } if (other.hasExtra()) { bitField0_ |= 0x00000040; extra_ = other.extra_; onChanged(); } if (other.hasUpdateDt()) { setUpdateDt(other.getUpdateDt()); } if (other.hasMemberUpdateDt()) { setMemberUpdateDt(other.getMemberUpdateDt()); } if (other.hasMute()) { setMute(other.getMute()); } if (other.hasJoinType()) { setJoinType(other.getJoinType()); } if (other.hasPrivateChat()) { setPrivateChat(other.getPrivateChat()); } if (other.hasSearchable()) { setSearchable(other.getSearchable()); } if (other.hasMaxMemberCount()) { setMaxMemberCount(other.getMaxMemberCount()); } if (other.hasHistoryMessage()) { setHistoryMessage(other.getHistoryMessage()); } if (other.hasSuperGroup()) { setSuperGroup(other.getSuperGroup()); } if (other.hasDeleted()) { setDeleted(other.getDeleted()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } if (!hasType()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.GroupInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.GroupInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string target_id = 1; private java.lang.Object targetId_ = ""; /** * optional string target_id = 1; */ public boolean hasTargetId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string target_id = 1; */ public java.lang.String getTargetId() { java.lang.Object ref = targetId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); targetId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string target_id = 1; */ public com.google.protobuf.ByteString getTargetIdBytes() { java.lang.Object ref = targetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string target_id = 1; */ public Builder setTargetId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; targetId_ = value; onChanged(); return this; } /** * optional string target_id = 1; */ public Builder clearTargetId() { bitField0_ = (bitField0_ & ~0x00000001); targetId_ = getDefaultInstance().getTargetId(); onChanged(); return this; } /** * optional string target_id = 1; */ public Builder setTargetIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; targetId_ = value; onChanged(); return this; } // required string name = 2; private java.lang.Object name_ = ""; /** * required string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * required string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } // optional string portrait = 3; private java.lang.Object portrait_ = ""; /** * optional string portrait = 3; */ public boolean hasPortrait() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string portrait = 3; */ public java.lang.String getPortrait() { java.lang.Object ref = portrait_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); portrait_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string portrait = 3; */ public com.google.protobuf.ByteString getPortraitBytes() { java.lang.Object ref = portrait_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); portrait_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string portrait = 3; */ public Builder setPortrait( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; portrait_ = value; onChanged(); return this; } /** * optional string portrait = 3; */ public Builder clearPortrait() { bitField0_ = (bitField0_ & ~0x00000004); portrait_ = getDefaultInstance().getPortrait(); onChanged(); return this; } /** * optional string portrait = 3; */ public Builder setPortraitBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; portrait_ = value; onChanged(); return this; } // optional string owner = 4; private java.lang.Object owner_ = ""; /** * optional string owner = 4; */ public boolean hasOwner() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string owner = 4; */ public java.lang.String getOwner() { java.lang.Object ref = owner_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); owner_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string owner = 4; */ public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string owner = 4; */ public Builder setOwner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; owner_ = value; onChanged(); return this; } /** * optional string owner = 4; */ public Builder clearOwner() { bitField0_ = (bitField0_ & ~0x00000008); owner_ = getDefaultInstance().getOwner(); onChanged(); return this; } /** * optional string owner = 4; */ public Builder setOwnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; owner_ = value; onChanged(); return this; } // required int32 type = 5; private int type_ ; /** * required int32 type = 5; */ public boolean hasType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * required int32 type = 5; */ public int getType() { return type_; } /** * required int32 type = 5; */ public Builder setType(int value) { bitField0_ |= 0x00000010; type_ = value; onChanged(); return this; } /** * required int32 type = 5; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000010); type_ = 0; onChanged(); return this; } // optional int32 member_count = 6; private int memberCount_ ; /** * optional int32 member_count = 6; */ public boolean hasMemberCount() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 member_count = 6; */ public int getMemberCount() { return memberCount_; } /** * optional int32 member_count = 6; */ public Builder setMemberCount(int value) { bitField0_ |= 0x00000020; memberCount_ = value; onChanged(); return this; } /** * optional int32 member_count = 6; */ public Builder clearMemberCount() { bitField0_ = (bitField0_ & ~0x00000020); memberCount_ = 0; onChanged(); return this; } // optional string extra = 7; private java.lang.Object extra_ = ""; /** * optional string extra = 7; */ public boolean hasExtra() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string extra = 7; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); extra_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string extra = 7; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string extra = 7; */ public Builder setExtra( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; extra_ = value; onChanged(); return this; } /** * optional string extra = 7; */ public Builder clearExtra() { bitField0_ = (bitField0_ & ~0x00000040); extra_ = getDefaultInstance().getExtra(); onChanged(); return this; } /** * optional string extra = 7; */ public Builder setExtraBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; extra_ = value; onChanged(); return this; } // optional int64 update_dt = 8; private long updateDt_ ; /** * optional int64 update_dt = 8; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int64 update_dt = 8; */ public long getUpdateDt() { return updateDt_; } /** * optional int64 update_dt = 8; */ public Builder setUpdateDt(long value) { bitField0_ |= 0x00000080; updateDt_ = value; onChanged(); return this; } /** * optional int64 update_dt = 8; */ public Builder clearUpdateDt() { bitField0_ = (bitField0_ & ~0x00000080); updateDt_ = 0L; onChanged(); return this; } // optional int64 member_update_dt = 9; private long memberUpdateDt_ ; /** * optional int64 member_update_dt = 9; */ public boolean hasMemberUpdateDt() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int64 member_update_dt = 9; */ public long getMemberUpdateDt() { return memberUpdateDt_; } /** * optional int64 member_update_dt = 9; */ public Builder setMemberUpdateDt(long value) { bitField0_ |= 0x00000100; memberUpdateDt_ = value; onChanged(); return this; } /** * optional int64 member_update_dt = 9; */ public Builder clearMemberUpdateDt() { bitField0_ = (bitField0_ & ~0x00000100); memberUpdateDt_ = 0L; onChanged(); return this; } // optional int32 mute = 10; private int mute_ ; /** * optional int32 mute = 10; */ public boolean hasMute() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int32 mute = 10; */ public int getMute() { return mute_; } /** * optional int32 mute = 10; */ public Builder setMute(int value) { bitField0_ |= 0x00000200; mute_ = value; onChanged(); return this; } /** * optional int32 mute = 10; */ public Builder clearMute() { bitField0_ = (bitField0_ & ~0x00000200); mute_ = 0; onChanged(); return this; } // optional int32 join_type = 11; private int joinType_ ; /** * optional int32 join_type = 11; */ public boolean hasJoinType() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int32 join_type = 11; */ public int getJoinType() { return joinType_; } /** * optional int32 join_type = 11; */ public Builder setJoinType(int value) { bitField0_ |= 0x00000400; joinType_ = value; onChanged(); return this; } /** * optional int32 join_type = 11; */ public Builder clearJoinType() { bitField0_ = (bitField0_ & ~0x00000400); joinType_ = 0; onChanged(); return this; } // optional int32 private_chat = 12; private int privateChat_ ; /** * optional int32 private_chat = 12; */ public boolean hasPrivateChat() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional int32 private_chat = 12; */ public int getPrivateChat() { return privateChat_; } /** * optional int32 private_chat = 12; */ public Builder setPrivateChat(int value) { bitField0_ |= 0x00000800; privateChat_ = value; onChanged(); return this; } /** * optional int32 private_chat = 12; */ public Builder clearPrivateChat() { bitField0_ = (bitField0_ & ~0x00000800); privateChat_ = 0; onChanged(); return this; } // optional int32 searchable = 13; private int searchable_ ; /** * optional int32 searchable = 13; */ public boolean hasSearchable() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional int32 searchable = 13; */ public int getSearchable() { return searchable_; } /** * optional int32 searchable = 13; */ public Builder setSearchable(int value) { bitField0_ |= 0x00001000; searchable_ = value; onChanged(); return this; } /** * optional int32 searchable = 13; */ public Builder clearSearchable() { bitField0_ = (bitField0_ & ~0x00001000); searchable_ = 0; onChanged(); return this; } // optional int32 max_member_count = 14; private int maxMemberCount_ ; /** * optional int32 max_member_count = 14; */ public boolean hasMaxMemberCount() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int32 max_member_count = 14; */ public int getMaxMemberCount() { return maxMemberCount_; } /** * optional int32 max_member_count = 14; */ public Builder setMaxMemberCount(int value) { bitField0_ |= 0x00002000; maxMemberCount_ = value; onChanged(); return this; } /** * optional int32 max_member_count = 14; */ public Builder clearMaxMemberCount() { bitField0_ = (bitField0_ & ~0x00002000); maxMemberCount_ = 0; onChanged(); return this; } // optional int32 history_message = 15; private int historyMessage_ ; /** * optional int32 history_message = 15; */ public boolean hasHistoryMessage() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional int32 history_message = 15; */ public int getHistoryMessage() { return historyMessage_; } /** * optional int32 history_message = 15; */ public Builder setHistoryMessage(int value) { bitField0_ |= 0x00004000; historyMessage_ = value; onChanged(); return this; } /** * optional int32 history_message = 15; */ public Builder clearHistoryMessage() { bitField0_ = (bitField0_ & ~0x00004000); historyMessage_ = 0; onChanged(); return this; } // optional int32 super_group = 16; private int superGroup_ ; /** * optional int32 super_group = 16; */ public boolean hasSuperGroup() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional int32 super_group = 16; */ public int getSuperGroup() { return superGroup_; } /** * optional int32 super_group = 16; */ public Builder setSuperGroup(int value) { bitField0_ |= 0x00008000; superGroup_ = value; onChanged(); return this; } /** * optional int32 super_group = 16; */ public Builder clearSuperGroup() { bitField0_ = (bitField0_ & ~0x00008000); superGroup_ = 0; onChanged(); return this; } // optional int32 deleted = 17; private int deleted_ ; /** * optional int32 deleted = 17; */ public boolean hasDeleted() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional int32 deleted = 17; */ public int getDeleted() { return deleted_; } /** * optional int32 deleted = 17; */ public Builder setDeleted(int value) { bitField0_ |= 0x00010000; deleted_ = value; onChanged(); return this; } /** * optional int32 deleted = 17; */ public Builder clearDeleted() { bitField0_ = (bitField0_ & ~0x00010000); deleted_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:GroupInfo) } static { defaultInstance = new GroupInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:GroupInfo) } public interface GroupMemberOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string member_id = 1; /** * required string member_id = 1; */ boolean hasMemberId(); /** * required string member_id = 1; */ java.lang.String getMemberId(); /** * required string member_id = 1; */ com.google.protobuf.ByteString getMemberIdBytes(); // optional string alias = 2; /** * optional string alias = 2; */ boolean hasAlias(); /** * optional string alias = 2; */ java.lang.String getAlias(); /** * optional string alias = 2; */ com.google.protobuf.ByteString getAliasBytes(); // required int32 type = 3; /** * required int32 type = 3; */ boolean hasType(); /** * required int32 type = 3; */ int getType(); // optional int64 update_dt = 4; /** * optional int64 update_dt = 4; */ boolean hasUpdateDt(); /** * optional int64 update_dt = 4; */ long getUpdateDt(); // optional int64 create_dt = 5; /** * optional int64 create_dt = 5; */ boolean hasCreateDt(); /** * optional int64 create_dt = 5; */ long getCreateDt(); // optional string extra = 6; /** * optional string extra = 6; */ boolean hasExtra(); /** * optional string extra = 6; */ java.lang.String getExtra(); /** * optional string extra = 6; */ com.google.protobuf.ByteString getExtraBytes(); } /** * Protobuf type {@code GroupMember} */ public static final class GroupMember extends com.google.protobuf.GeneratedMessage implements GroupMemberOrBuilder { // Use GroupMember.newBuilder() to construct. private GroupMember(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GroupMember(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GroupMember defaultInstance; public static GroupMember getDefaultInstance() { return defaultInstance; } public GroupMember getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GroupMember( 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; memberId_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; alias_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; type_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000008; updateDt_ = input.readInt64(); break; } case 40: { bitField0_ |= 0x00000010; createDt_ = input.readInt64(); break; } case 50: { bitField0_ |= 0x00000020; extra_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_GroupMember_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GroupMember_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GroupMember.class, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GroupMember parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GroupMember(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string member_id = 1; public static final int MEMBER_ID_FIELD_NUMBER = 1; private java.lang.Object memberId_; /** * required string member_id = 1; */ public boolean hasMemberId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string member_id = 1; */ public java.lang.String getMemberId() { java.lang.Object ref = memberId_; 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()) { memberId_ = s; } return s; } } /** * required string member_id = 1; */ public com.google.protobuf.ByteString getMemberIdBytes() { java.lang.Object ref = memberId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); memberId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string alias = 2; public static final int ALIAS_FIELD_NUMBER = 2; private java.lang.Object alias_; /** * optional string alias = 2; */ public boolean hasAlias() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string alias = 2; */ public java.lang.String getAlias() { java.lang.Object ref = alias_; 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()) { alias_ = s; } return s; } } /** * optional string alias = 2; */ public com.google.protobuf.ByteString getAliasBytes() { java.lang.Object ref = alias_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alias_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 type = 3; public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** * required int32 type = 3; */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 type = 3; */ public int getType() { return type_; } // optional int64 update_dt = 4; public static final int UPDATE_DT_FIELD_NUMBER = 4; private long updateDt_; /** * optional int64 update_dt = 4; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 update_dt = 4; */ public long getUpdateDt() { return updateDt_; } // optional int64 create_dt = 5; public static final int CREATE_DT_FIELD_NUMBER = 5; private long createDt_; /** * optional int64 create_dt = 5; */ public boolean hasCreateDt() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 create_dt = 5; */ public long getCreateDt() { return createDt_; } // optional string extra = 6; public static final int EXTRA_FIELD_NUMBER = 6; private java.lang.Object extra_; /** * optional string extra = 6; */ public boolean hasExtra() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string extra = 6; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; 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()) { extra_ = s; } return s; } } /** * optional string extra = 6; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { memberId_ = ""; alias_ = ""; type_ = 0; updateDt_ = 0L; createDt_ = 0L; extra_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasMemberId()) { memoizedIsInitialized = 0; return false; } if (!hasType()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getMemberIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getAliasBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, type_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, updateDt_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(5, createDt_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getExtraBytes()); } 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, getMemberIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getAliasBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, type_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, updateDt_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, createDt_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getExtraBytes()); } 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 cn.wildfirechat.proto.WFCMessage.GroupMember parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GroupMember parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GroupMember parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GroupMember parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GroupMember parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GroupMember parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GroupMember parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GroupMember parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GroupMember parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GroupMember 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(cn.wildfirechat.proto.WFCMessage.GroupMember 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 GroupMember} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_GroupMember_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GroupMember_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GroupMember.class, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.GroupMember.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(); memberId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); alias_ = ""; bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; bitField0_ = (bitField0_ & ~0x00000004); updateDt_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); createDt_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); extra_ = ""; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_GroupMember_descriptor; } public cn.wildfirechat.proto.WFCMessage.GroupMember getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.GroupMember.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.GroupMember build() { cn.wildfirechat.proto.WFCMessage.GroupMember result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.GroupMember buildPartial() { cn.wildfirechat.proto.WFCMessage.GroupMember result = new cn.wildfirechat.proto.WFCMessage.GroupMember(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.memberId_ = memberId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.alias_ = alias_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.type_ = type_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.updateDt_ = updateDt_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.createDt_ = createDt_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.extra_ = extra_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.GroupMember) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.GroupMember)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.GroupMember other) { if (other == cn.wildfirechat.proto.WFCMessage.GroupMember.getDefaultInstance()) return this; if (other.hasMemberId()) { bitField0_ |= 0x00000001; memberId_ = other.memberId_; onChanged(); } if (other.hasAlias()) { bitField0_ |= 0x00000002; alias_ = other.alias_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (other.hasUpdateDt()) { setUpdateDt(other.getUpdateDt()); } if (other.hasCreateDt()) { setCreateDt(other.getCreateDt()); } if (other.hasExtra()) { bitField0_ |= 0x00000020; extra_ = other.extra_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasMemberId()) { return false; } if (!hasType()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.GroupMember parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.GroupMember) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string member_id = 1; private java.lang.Object memberId_ = ""; /** * required string member_id = 1; */ public boolean hasMemberId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string member_id = 1; */ public java.lang.String getMemberId() { java.lang.Object ref = memberId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); memberId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string member_id = 1; */ public com.google.protobuf.ByteString getMemberIdBytes() { java.lang.Object ref = memberId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); memberId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string member_id = 1; */ public Builder setMemberId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; memberId_ = value; onChanged(); return this; } /** * required string member_id = 1; */ public Builder clearMemberId() { bitField0_ = (bitField0_ & ~0x00000001); memberId_ = getDefaultInstance().getMemberId(); onChanged(); return this; } /** * required string member_id = 1; */ public Builder setMemberIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; memberId_ = value; onChanged(); return this; } // optional string alias = 2; private java.lang.Object alias_ = ""; /** * optional string alias = 2; */ public boolean hasAlias() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string alias = 2; */ public java.lang.String getAlias() { java.lang.Object ref = alias_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); alias_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string alias = 2; */ public com.google.protobuf.ByteString getAliasBytes() { java.lang.Object ref = alias_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alias_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string alias = 2; */ public Builder setAlias( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; alias_ = value; onChanged(); return this; } /** * optional string alias = 2; */ public Builder clearAlias() { bitField0_ = (bitField0_ & ~0x00000002); alias_ = getDefaultInstance().getAlias(); onChanged(); return this; } /** * optional string alias = 2; */ public Builder setAliasBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; alias_ = value; onChanged(); return this; } // required int32 type = 3; private int type_ ; /** * required int32 type = 3; */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 type = 3; */ public int getType() { return type_; } /** * required int32 type = 3; */ public Builder setType(int value) { bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } /** * required int32 type = 3; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = 0; onChanged(); return this; } // optional int64 update_dt = 4; private long updateDt_ ; /** * optional int64 update_dt = 4; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 update_dt = 4; */ public long getUpdateDt() { return updateDt_; } /** * optional int64 update_dt = 4; */ public Builder setUpdateDt(long value) { bitField0_ |= 0x00000008; updateDt_ = value; onChanged(); return this; } /** * optional int64 update_dt = 4; */ public Builder clearUpdateDt() { bitField0_ = (bitField0_ & ~0x00000008); updateDt_ = 0L; onChanged(); return this; } // optional int64 create_dt = 5; private long createDt_ ; /** * optional int64 create_dt = 5; */ public boolean hasCreateDt() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 create_dt = 5; */ public long getCreateDt() { return createDt_; } /** * optional int64 create_dt = 5; */ public Builder setCreateDt(long value) { bitField0_ |= 0x00000010; createDt_ = value; onChanged(); return this; } /** * optional int64 create_dt = 5; */ public Builder clearCreateDt() { bitField0_ = (bitField0_ & ~0x00000010); createDt_ = 0L; onChanged(); return this; } // optional string extra = 6; private java.lang.Object extra_ = ""; /** * optional string extra = 6; */ public boolean hasExtra() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string extra = 6; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); extra_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string extra = 6; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string extra = 6; */ public Builder setExtra( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; extra_ = value; onChanged(); return this; } /** * optional string extra = 6; */ public Builder clearExtra() { bitField0_ = (bitField0_ & ~0x00000020); extra_ = getDefaultInstance().getExtra(); onChanged(); return this; } /** * optional string extra = 6; */ public Builder setExtraBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; extra_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:GroupMember) } static { defaultInstance = new GroupMember(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:GroupMember) } public interface GroupOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .GroupInfo group_info = 1; /** * required .GroupInfo group_info = 1; */ boolean hasGroupInfo(); /** * required .GroupInfo group_info = 1; */ cn.wildfirechat.proto.WFCMessage.GroupInfo getGroupInfo(); /** * required .GroupInfo group_info = 1; */ cn.wildfirechat.proto.WFCMessage.GroupInfoOrBuilder getGroupInfoOrBuilder(); // repeated .GroupMember members = 2; /** * repeated .GroupMember members = 2; */ java.util.List getMembersList(); /** * repeated .GroupMember members = 2; */ cn.wildfirechat.proto.WFCMessage.GroupMember getMembers(int index); /** * repeated .GroupMember members = 2; */ int getMembersCount(); /** * repeated .GroupMember members = 2; */ java.util.List getMembersOrBuilderList(); /** * repeated .GroupMember members = 2; */ cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder getMembersOrBuilder( int index); } /** * Protobuf type {@code Group} */ public static final class Group extends com.google.protobuf.GeneratedMessage implements GroupOrBuilder { // Use Group.newBuilder() to construct. private Group(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Group(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Group defaultInstance; public static Group getDefaultInstance() { return defaultInstance; } public Group getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Group( 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: { cn.wildfirechat.proto.WFCMessage.GroupInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = groupInfo_.toBuilder(); } groupInfo_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.GroupInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(groupInfo_); groupInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { members_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } members_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.GroupMember.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)) { members_ = java.util.Collections.unmodifiableList(members_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_Group_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_Group_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.Group.class, cn.wildfirechat.proto.WFCMessage.Group.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Group parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Group(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required .GroupInfo group_info = 1; public static final int GROUP_INFO_FIELD_NUMBER = 1; private cn.wildfirechat.proto.WFCMessage.GroupInfo groupInfo_; /** * required .GroupInfo group_info = 1; */ public boolean hasGroupInfo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .GroupInfo group_info = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupInfo getGroupInfo() { return groupInfo_; } /** * required .GroupInfo group_info = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupInfoOrBuilder getGroupInfoOrBuilder() { return groupInfo_; } // repeated .GroupMember members = 2; public static final int MEMBERS_FIELD_NUMBER = 2; private java.util.List members_; /** * repeated .GroupMember members = 2; */ public java.util.List getMembersList() { return members_; } /** * repeated .GroupMember members = 2; */ public java.util.List getMembersOrBuilderList() { return members_; } /** * repeated .GroupMember members = 2; */ public int getMembersCount() { return members_.size(); } /** * repeated .GroupMember members = 2; */ public cn.wildfirechat.proto.WFCMessage.GroupMember getMembers(int index) { return members_.get(index); } /** * repeated .GroupMember members = 2; */ public cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder getMembersOrBuilder( int index) { return members_.get(index); } private void initFields() { groupInfo_ = cn.wildfirechat.proto.WFCMessage.GroupInfo.getDefaultInstance(); members_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasGroupInfo()) { memoizedIsInitialized = 0; return false; } if (!getGroupInfo().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getMembersCount(); i++) { if (!getMembers(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, groupInfo_); } for (int i = 0; i < members_.size(); i++) { output.writeMessage(2, members_.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 .computeMessageSize(1, groupInfo_); } for (int i = 0; i < members_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, members_.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 cn.wildfirechat.proto.WFCMessage.Group parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.Group parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Group parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.Group parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Group parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Group parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Group parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Group parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Group parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Group 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(cn.wildfirechat.proto.WFCMessage.Group 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 Group} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.GroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_Group_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_Group_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.Group.class, cn.wildfirechat.proto.WFCMessage.Group.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.Group.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getGroupInfoFieldBuilder(); getMembersFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (groupInfoBuilder_ == null) { groupInfo_ = cn.wildfirechat.proto.WFCMessage.GroupInfo.getDefaultInstance(); } else { groupInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (membersBuilder_ == null) { members_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { membersBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_Group_descriptor; } public cn.wildfirechat.proto.WFCMessage.Group getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.Group.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.Group build() { cn.wildfirechat.proto.WFCMessage.Group result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.Group buildPartial() { cn.wildfirechat.proto.WFCMessage.Group result = new cn.wildfirechat.proto.WFCMessage.Group(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (groupInfoBuilder_ == null) { result.groupInfo_ = groupInfo_; } else { result.groupInfo_ = groupInfoBuilder_.build(); } if (membersBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { members_ = java.util.Collections.unmodifiableList(members_); bitField0_ = (bitField0_ & ~0x00000002); } result.members_ = members_; } else { result.members_ = membersBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.Group) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.Group)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.Group other) { if (other == cn.wildfirechat.proto.WFCMessage.Group.getDefaultInstance()) return this; if (other.hasGroupInfo()) { mergeGroupInfo(other.getGroupInfo()); } if (membersBuilder_ == null) { if (!other.members_.isEmpty()) { if (members_.isEmpty()) { members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMembersIsMutable(); members_.addAll(other.members_); } onChanged(); } } else { if (!other.members_.isEmpty()) { if (membersBuilder_.isEmpty()) { membersBuilder_.dispose(); membersBuilder_ = null; members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000002); membersBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getMembersFieldBuilder() : null; } else { membersBuilder_.addAllMessages(other.members_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasGroupInfo()) { return false; } if (!getGroupInfo().isInitialized()) { return false; } for (int i = 0; i < getMembersCount(); i++) { if (!getMembers(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.Group parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.Group) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .GroupInfo group_info = 1; private cn.wildfirechat.proto.WFCMessage.GroupInfo groupInfo_ = cn.wildfirechat.proto.WFCMessage.GroupInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.GroupInfo, cn.wildfirechat.proto.WFCMessage.GroupInfo.Builder, cn.wildfirechat.proto.WFCMessage.GroupInfoOrBuilder> groupInfoBuilder_; /** * required .GroupInfo group_info = 1; */ public boolean hasGroupInfo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .GroupInfo group_info = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupInfo getGroupInfo() { if (groupInfoBuilder_ == null) { return groupInfo_; } else { return groupInfoBuilder_.getMessage(); } } /** * required .GroupInfo group_info = 1; */ public Builder setGroupInfo(cn.wildfirechat.proto.WFCMessage.GroupInfo value) { if (groupInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } groupInfo_ = value; onChanged(); } else { groupInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .GroupInfo group_info = 1; */ public Builder setGroupInfo( cn.wildfirechat.proto.WFCMessage.GroupInfo.Builder builderForValue) { if (groupInfoBuilder_ == null) { groupInfo_ = builderForValue.build(); onChanged(); } else { groupInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .GroupInfo group_info = 1; */ public Builder mergeGroupInfo(cn.wildfirechat.proto.WFCMessage.GroupInfo value) { if (groupInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && groupInfo_ != cn.wildfirechat.proto.WFCMessage.GroupInfo.getDefaultInstance()) { groupInfo_ = cn.wildfirechat.proto.WFCMessage.GroupInfo.newBuilder(groupInfo_).mergeFrom(value).buildPartial(); } else { groupInfo_ = value; } onChanged(); } else { groupInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .GroupInfo group_info = 1; */ public Builder clearGroupInfo() { if (groupInfoBuilder_ == null) { groupInfo_ = cn.wildfirechat.proto.WFCMessage.GroupInfo.getDefaultInstance(); onChanged(); } else { groupInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .GroupInfo group_info = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupInfo.Builder getGroupInfoBuilder() { bitField0_ |= 0x00000001; onChanged(); return getGroupInfoFieldBuilder().getBuilder(); } /** * required .GroupInfo group_info = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupInfoOrBuilder getGroupInfoOrBuilder() { if (groupInfoBuilder_ != null) { return groupInfoBuilder_.getMessageOrBuilder(); } else { return groupInfo_; } } /** * required .GroupInfo group_info = 1; */ private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.GroupInfo, cn.wildfirechat.proto.WFCMessage.GroupInfo.Builder, cn.wildfirechat.proto.WFCMessage.GroupInfoOrBuilder> getGroupInfoFieldBuilder() { if (groupInfoBuilder_ == null) { groupInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.GroupInfo, cn.wildfirechat.proto.WFCMessage.GroupInfo.Builder, cn.wildfirechat.proto.WFCMessage.GroupInfoOrBuilder>( groupInfo_, getParentForChildren(), isClean()); groupInfo_ = null; } return groupInfoBuilder_; } // repeated .GroupMember members = 2; private java.util.List members_ = java.util.Collections.emptyList(); private void ensureMembersIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { members_ = new java.util.ArrayList(members_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.GroupMember, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder, cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder> membersBuilder_; /** * repeated .GroupMember members = 2; */ public java.util.List getMembersList() { if (membersBuilder_ == null) { return java.util.Collections.unmodifiableList(members_); } else { return membersBuilder_.getMessageList(); } } /** * repeated .GroupMember members = 2; */ public int getMembersCount() { if (membersBuilder_ == null) { return members_.size(); } else { return membersBuilder_.getCount(); } } /** * repeated .GroupMember members = 2; */ public cn.wildfirechat.proto.WFCMessage.GroupMember getMembers(int index) { if (membersBuilder_ == null) { return members_.get(index); } else { return membersBuilder_.getMessage(index); } } /** * repeated .GroupMember members = 2; */ public Builder setMembers( int index, cn.wildfirechat.proto.WFCMessage.GroupMember value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.set(index, value); onChanged(); } else { membersBuilder_.setMessage(index, value); } return this; } /** * repeated .GroupMember members = 2; */ public Builder setMembers( int index, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.set(index, builderForValue.build()); onChanged(); } else { membersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .GroupMember members = 2; */ public Builder addMembers(cn.wildfirechat.proto.WFCMessage.GroupMember value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(value); onChanged(); } else { membersBuilder_.addMessage(value); } return this; } /** * repeated .GroupMember members = 2; */ public Builder addMembers( int index, cn.wildfirechat.proto.WFCMessage.GroupMember value) { if (membersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(index, value); onChanged(); } else { membersBuilder_.addMessage(index, value); } return this; } /** * repeated .GroupMember members = 2; */ public Builder addMembers( cn.wildfirechat.proto.WFCMessage.GroupMember.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(builderForValue.build()); onChanged(); } else { membersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .GroupMember members = 2; */ public Builder addMembers( int index, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder builderForValue) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.add(index, builderForValue.build()); onChanged(); } else { membersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .GroupMember members = 2; */ public Builder addAllMembers( java.lang.Iterable values) { if (membersBuilder_ == null) { ensureMembersIsMutable(); super.addAll(values, members_); onChanged(); } else { membersBuilder_.addAllMessages(values); } return this; } /** * repeated .GroupMember members = 2; */ public Builder clearMembers() { if (membersBuilder_ == null) { members_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { membersBuilder_.clear(); } return this; } /** * repeated .GroupMember members = 2; */ public Builder removeMembers(int index) { if (membersBuilder_ == null) { ensureMembersIsMutable(); members_.remove(index); onChanged(); } else { membersBuilder_.remove(index); } return this; } /** * repeated .GroupMember members = 2; */ public cn.wildfirechat.proto.WFCMessage.GroupMember.Builder getMembersBuilder( int index) { return getMembersFieldBuilder().getBuilder(index); } /** * repeated .GroupMember members = 2; */ public cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder getMembersOrBuilder( int index) { if (membersBuilder_ == null) { return members_.get(index); } else { return membersBuilder_.getMessageOrBuilder(index); } } /** * repeated .GroupMember members = 2; */ public java.util.List getMembersOrBuilderList() { if (membersBuilder_ != null) { return membersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(members_); } } /** * repeated .GroupMember members = 2; */ public cn.wildfirechat.proto.WFCMessage.GroupMember.Builder addMembersBuilder() { return getMembersFieldBuilder().addBuilder( cn.wildfirechat.proto.WFCMessage.GroupMember.getDefaultInstance()); } /** * repeated .GroupMember members = 2; */ public cn.wildfirechat.proto.WFCMessage.GroupMember.Builder addMembersBuilder( int index) { return getMembersFieldBuilder().addBuilder( index, cn.wildfirechat.proto.WFCMessage.GroupMember.getDefaultInstance()); } /** * repeated .GroupMember members = 2; */ public java.util.List getMembersBuilderList() { return getMembersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.GroupMember, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder, cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder> getMembersFieldBuilder() { if (membersBuilder_ == null) { membersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.GroupMember, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder, cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder>( members_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); members_ = null; } return membersBuilder_; } // @@protoc_insertion_point(builder_scope:Group) } static { defaultInstance = new Group(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:Group) } public interface ChannelMenuOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string type = 1; /** * required string type = 1; */ boolean hasType(); /** * required string type = 1; */ java.lang.String getType(); /** * required string type = 1; */ com.google.protobuf.ByteString getTypeBytes(); // required string name = 2; /** * required string name = 2; */ boolean hasName(); /** * required string name = 2; */ java.lang.String getName(); /** * required string name = 2; */ com.google.protobuf.ByteString getNameBytes(); // optional string key = 3; /** * optional string key = 3; */ boolean hasKey(); /** * optional string key = 3; */ java.lang.String getKey(); /** * optional string key = 3; */ com.google.protobuf.ByteString getKeyBytes(); // optional string url = 4; /** * optional string url = 4; */ boolean hasUrl(); /** * optional string url = 4; */ java.lang.String getUrl(); /** * optional string url = 4; */ com.google.protobuf.ByteString getUrlBytes(); // optional string media_id = 5; /** * optional string media_id = 5; */ boolean hasMediaId(); /** * optional string media_id = 5; */ java.lang.String getMediaId(); /** * optional string media_id = 5; */ com.google.protobuf.ByteString getMediaIdBytes(); // optional string article_id = 6; /** * optional string article_id = 6; */ boolean hasArticleId(); /** * optional string article_id = 6; */ java.lang.String getArticleId(); /** * optional string article_id = 6; */ com.google.protobuf.ByteString getArticleIdBytes(); // optional string app_id = 7; /** * optional string app_id = 7; */ boolean hasAppId(); /** * optional string app_id = 7; */ java.lang.String getAppId(); /** * optional string app_id = 7; */ com.google.protobuf.ByteString getAppIdBytes(); // optional string app_page = 8; /** * optional string app_page = 8; */ boolean hasAppPage(); /** * optional string app_page = 8; */ java.lang.String getAppPage(); /** * optional string app_page = 8; */ com.google.protobuf.ByteString getAppPageBytes(); // repeated .ChannelMenu sub_menu = 9; /** * repeated .ChannelMenu sub_menu = 9; */ java.util.List getSubMenuList(); /** * repeated .ChannelMenu sub_menu = 9; */ cn.wildfirechat.proto.WFCMessage.ChannelMenu getSubMenu(int index); /** * repeated .ChannelMenu sub_menu = 9; */ int getSubMenuCount(); /** * repeated .ChannelMenu sub_menu = 9; */ java.util.List getSubMenuOrBuilderList(); /** * repeated .ChannelMenu sub_menu = 9; */ cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder getSubMenuOrBuilder( int index); // optional string menu_id = 10; /** * optional string menu_id = 10; */ boolean hasMenuId(); /** * optional string menu_id = 10; */ java.lang.String getMenuId(); /** * optional string menu_id = 10; */ com.google.protobuf.ByteString getMenuIdBytes(); // optional string extra = 11; /** * optional string extra = 11; */ boolean hasExtra(); /** * optional string extra = 11; */ java.lang.String getExtra(); /** * optional string extra = 11; */ com.google.protobuf.ByteString getExtraBytes(); } /** * Protobuf type {@code ChannelMenu} */ public static final class ChannelMenu extends com.google.protobuf.GeneratedMessage implements ChannelMenuOrBuilder { // Use ChannelMenu.newBuilder() to construct. private ChannelMenu(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ChannelMenu(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ChannelMenu defaultInstance; public static ChannelMenu getDefaultInstance() { return defaultInstance; } public ChannelMenu getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChannelMenu( 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; type_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; name_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; key_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; url_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000010; mediaId_ = input.readBytes(); break; } case 50: { bitField0_ |= 0x00000020; articleId_ = input.readBytes(); break; } case 58: { bitField0_ |= 0x00000040; appId_ = input.readBytes(); break; } case 66: { bitField0_ |= 0x00000080; appPage_ = input.readBytes(); break; } case 74: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { subMenu_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } subMenu_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.ChannelMenu.PARSER, extensionRegistry)); break; } case 82: { bitField0_ |= 0x00000100; menuId_ = input.readBytes(); break; } case 90: { bitField0_ |= 0x00000200; extra_ = 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 { if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { subMenu_ = java.util.Collections.unmodifiableList(subMenu_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelMenu_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelMenu_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ChannelMenu.class, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChannelMenu parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChannelMenu(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string type = 1; public static final int TYPE_FIELD_NUMBER = 1; private java.lang.Object type_; /** * required string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; 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()) { type_ = s; } return s; } } /** * required string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string name = 2; public static final int NAME_FIELD_NUMBER = 2; private java.lang.Object name_; /** * required string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * required string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string key = 3; public static final int KEY_FIELD_NUMBER = 3; private java.lang.Object key_; /** * optional string key = 3; */ public boolean hasKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string key = 3; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } } /** * optional string key = 3; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string url = 4; public static final int URL_FIELD_NUMBER = 4; private java.lang.Object url_; /** * optional string url = 4; */ public boolean hasUrl() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string url = 4; */ public java.lang.String getUrl() { java.lang.Object ref = url_; 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()) { url_ = s; } return s; } } /** * optional string url = 4; */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string media_id = 5; public static final int MEDIA_ID_FIELD_NUMBER = 5; private java.lang.Object mediaId_; /** * optional string media_id = 5; */ public boolean hasMediaId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string media_id = 5; */ public java.lang.String getMediaId() { java.lang.Object ref = mediaId_; 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()) { mediaId_ = s; } return s; } } /** * optional string media_id = 5; */ public com.google.protobuf.ByteString getMediaIdBytes() { java.lang.Object ref = mediaId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mediaId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string article_id = 6; public static final int ARTICLE_ID_FIELD_NUMBER = 6; private java.lang.Object articleId_; /** * optional string article_id = 6; */ public boolean hasArticleId() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string article_id = 6; */ public java.lang.String getArticleId() { java.lang.Object ref = articleId_; 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()) { articleId_ = s; } return s; } } /** * optional string article_id = 6; */ public com.google.protobuf.ByteString getArticleIdBytes() { java.lang.Object ref = articleId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); articleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string app_id = 7; public static final int APP_ID_FIELD_NUMBER = 7; private java.lang.Object appId_; /** * optional string app_id = 7; */ public boolean hasAppId() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string app_id = 7; */ public java.lang.String getAppId() { java.lang.Object ref = appId_; 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()) { appId_ = s; } return s; } } /** * optional string app_id = 7; */ public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string app_page = 8; public static final int APP_PAGE_FIELD_NUMBER = 8; private java.lang.Object appPage_; /** * optional string app_page = 8; */ public boolean hasAppPage() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string app_page = 8; */ public java.lang.String getAppPage() { java.lang.Object ref = appPage_; 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()) { appPage_ = s; } return s; } } /** * optional string app_page = 8; */ public com.google.protobuf.ByteString getAppPageBytes() { java.lang.Object ref = appPage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appPage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated .ChannelMenu sub_menu = 9; public static final int SUB_MENU_FIELD_NUMBER = 9; private java.util.List subMenu_; /** * repeated .ChannelMenu sub_menu = 9; */ public java.util.List getSubMenuList() { return subMenu_; } /** * repeated .ChannelMenu sub_menu = 9; */ public java.util.List getSubMenuOrBuilderList() { return subMenu_; } /** * repeated .ChannelMenu sub_menu = 9; */ public int getSubMenuCount() { return subMenu_.size(); } /** * repeated .ChannelMenu sub_menu = 9; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenu getSubMenu(int index) { return subMenu_.get(index); } /** * repeated .ChannelMenu sub_menu = 9; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder getSubMenuOrBuilder( int index) { return subMenu_.get(index); } // optional string menu_id = 10; public static final int MENU_ID_FIELD_NUMBER = 10; private java.lang.Object menuId_; /** * optional string menu_id = 10; */ public boolean hasMenuId() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional string menu_id = 10; */ public java.lang.String getMenuId() { java.lang.Object ref = menuId_; 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()) { menuId_ = s; } return s; } } /** * optional string menu_id = 10; */ public com.google.protobuf.ByteString getMenuIdBytes() { java.lang.Object ref = menuId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); menuId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string extra = 11; public static final int EXTRA_FIELD_NUMBER = 11; private java.lang.Object extra_; /** * optional string extra = 11; */ public boolean hasExtra() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional string extra = 11; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; 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()) { extra_ = s; } return s; } } /** * optional string extra = 11; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { type_ = ""; name_ = ""; key_ = ""; url_ = ""; mediaId_ = ""; articleId_ = ""; appId_ = ""; appPage_ = ""; subMenu_ = java.util.Collections.emptyList(); menuId_ = ""; extra_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasType()) { memoizedIsInitialized = 0; return false; } if (!hasName()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getSubMenuCount(); i++) { if (!getSubMenu(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getTypeBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getKeyBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getUrlBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getMediaIdBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getArticleIdBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(7, getAppIdBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(8, getAppPageBytes()); } for (int i = 0; i < subMenu_.size(); i++) { output.writeMessage(9, subMenu_.get(i)); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBytes(10, getMenuIdBytes()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBytes(11, getExtraBytes()); } 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, getTypeBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getKeyBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getUrlBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getMediaIdBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getArticleIdBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, getAppIdBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, getAppPageBytes()); } for (int i = 0; i < subMenu_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, subMenu_.get(i)); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, getMenuIdBytes()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(11, getExtraBytes()); } 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 cn.wildfirechat.proto.WFCMessage.ChannelMenu parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenu parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenu parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenu parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenu parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenu parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenu parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenu parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenu parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenu 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(cn.wildfirechat.proto.WFCMessage.ChannelMenu 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 ChannelMenu} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelMenu_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelMenu_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ChannelMenu.class, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.ChannelMenu.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getSubMenuFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); type_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); key_ = ""; bitField0_ = (bitField0_ & ~0x00000004); url_ = ""; bitField0_ = (bitField0_ & ~0x00000008); mediaId_ = ""; bitField0_ = (bitField0_ & ~0x00000010); articleId_ = ""; bitField0_ = (bitField0_ & ~0x00000020); appId_ = ""; bitField0_ = (bitField0_ & ~0x00000040); appPage_ = ""; bitField0_ = (bitField0_ & ~0x00000080); if (subMenuBuilder_ == null) { subMenu_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); } else { subMenuBuilder_.clear(); } menuId_ = ""; bitField0_ = (bitField0_ & ~0x00000200); extra_ = ""; bitField0_ = (bitField0_ & ~0x00000400); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelMenu_descriptor; } public cn.wildfirechat.proto.WFCMessage.ChannelMenu getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.ChannelMenu.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.ChannelMenu build() { cn.wildfirechat.proto.WFCMessage.ChannelMenu result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.ChannelMenu buildPartial() { cn.wildfirechat.proto.WFCMessage.ChannelMenu result = new cn.wildfirechat.proto.WFCMessage.ChannelMenu(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.key_ = key_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.url_ = url_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.mediaId_ = mediaId_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.articleId_ = articleId_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.appId_ = appId_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.appPage_ = appPage_; if (subMenuBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100)) { subMenu_ = java.util.Collections.unmodifiableList(subMenu_); bitField0_ = (bitField0_ & ~0x00000100); } result.subMenu_ = subMenu_; } else { result.subMenu_ = subMenuBuilder_.build(); } if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000100; } result.menuId_ = menuId_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000200; } result.extra_ = extra_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.ChannelMenu) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.ChannelMenu)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ChannelMenu other) { if (other == cn.wildfirechat.proto.WFCMessage.ChannelMenu.getDefaultInstance()) return this; if (other.hasType()) { bitField0_ |= 0x00000001; type_ = other.type_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasKey()) { bitField0_ |= 0x00000004; key_ = other.key_; onChanged(); } if (other.hasUrl()) { bitField0_ |= 0x00000008; url_ = other.url_; onChanged(); } if (other.hasMediaId()) { bitField0_ |= 0x00000010; mediaId_ = other.mediaId_; onChanged(); } if (other.hasArticleId()) { bitField0_ |= 0x00000020; articleId_ = other.articleId_; onChanged(); } if (other.hasAppId()) { bitField0_ |= 0x00000040; appId_ = other.appId_; onChanged(); } if (other.hasAppPage()) { bitField0_ |= 0x00000080; appPage_ = other.appPage_; onChanged(); } if (subMenuBuilder_ == null) { if (!other.subMenu_.isEmpty()) { if (subMenu_.isEmpty()) { subMenu_ = other.subMenu_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureSubMenuIsMutable(); subMenu_.addAll(other.subMenu_); } onChanged(); } } else { if (!other.subMenu_.isEmpty()) { if (subMenuBuilder_.isEmpty()) { subMenuBuilder_.dispose(); subMenuBuilder_ = null; subMenu_ = other.subMenu_; bitField0_ = (bitField0_ & ~0x00000100); subMenuBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getSubMenuFieldBuilder() : null; } else { subMenuBuilder_.addAllMessages(other.subMenu_); } } } if (other.hasMenuId()) { bitField0_ |= 0x00000200; menuId_ = other.menuId_; onChanged(); } if (other.hasExtra()) { bitField0_ |= 0x00000400; extra_ = other.extra_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } if (!hasName()) { return false; } for (int i = 0; i < getSubMenuCount(); i++) { if (!getSubMenu(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.ChannelMenu parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.ChannelMenu) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string type = 1; private java.lang.Object type_ = ""; /** * required string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string type = 1; */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * required string type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * required string type = 1; */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } // required string name = 2; private java.lang.Object name_ = ""; /** * required string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * required string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } // optional string key = 3; private java.lang.Object key_ = ""; /** * optional string key = 3; */ public boolean hasKey() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string key = 3; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string key = 3; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string key = 3; */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; key_ = value; onChanged(); return this; } /** * optional string key = 3; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000004); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * optional string key = 3; */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; key_ = value; onChanged(); return this; } // optional string url = 4; private java.lang.Object url_ = ""; /** * optional string url = 4; */ public boolean hasUrl() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string url = 4; */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); url_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string url = 4; */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string url = 4; */ public Builder setUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; url_ = value; onChanged(); return this; } /** * optional string url = 4; */ public Builder clearUrl() { bitField0_ = (bitField0_ & ~0x00000008); url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** * optional string url = 4; */ public Builder setUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; url_ = value; onChanged(); return this; } // optional string media_id = 5; private java.lang.Object mediaId_ = ""; /** * optional string media_id = 5; */ public boolean hasMediaId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string media_id = 5; */ public java.lang.String getMediaId() { java.lang.Object ref = mediaId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); mediaId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string media_id = 5; */ public com.google.protobuf.ByteString getMediaIdBytes() { java.lang.Object ref = mediaId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mediaId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string media_id = 5; */ public Builder setMediaId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; mediaId_ = value; onChanged(); return this; } /** * optional string media_id = 5; */ public Builder clearMediaId() { bitField0_ = (bitField0_ & ~0x00000010); mediaId_ = getDefaultInstance().getMediaId(); onChanged(); return this; } /** * optional string media_id = 5; */ public Builder setMediaIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; mediaId_ = value; onChanged(); return this; } // optional string article_id = 6; private java.lang.Object articleId_ = ""; /** * optional string article_id = 6; */ public boolean hasArticleId() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string article_id = 6; */ public java.lang.String getArticleId() { java.lang.Object ref = articleId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); articleId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string article_id = 6; */ public com.google.protobuf.ByteString getArticleIdBytes() { java.lang.Object ref = articleId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); articleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string article_id = 6; */ public Builder setArticleId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; articleId_ = value; onChanged(); return this; } /** * optional string article_id = 6; */ public Builder clearArticleId() { bitField0_ = (bitField0_ & ~0x00000020); articleId_ = getDefaultInstance().getArticleId(); onChanged(); return this; } /** * optional string article_id = 6; */ public Builder setArticleIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; articleId_ = value; onChanged(); return this; } // optional string app_id = 7; private java.lang.Object appId_ = ""; /** * optional string app_id = 7; */ public boolean hasAppId() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string app_id = 7; */ public java.lang.String getAppId() { java.lang.Object ref = appId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); appId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string app_id = 7; */ public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string app_id = 7; */ public Builder setAppId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; appId_ = value; onChanged(); return this; } /** * optional string app_id = 7; */ public Builder clearAppId() { bitField0_ = (bitField0_ & ~0x00000040); appId_ = getDefaultInstance().getAppId(); onChanged(); return this; } /** * optional string app_id = 7; */ public Builder setAppIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; appId_ = value; onChanged(); return this; } // optional string app_page = 8; private java.lang.Object appPage_ = ""; /** * optional string app_page = 8; */ public boolean hasAppPage() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string app_page = 8; */ public java.lang.String getAppPage() { java.lang.Object ref = appPage_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); appPage_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string app_page = 8; */ public com.google.protobuf.ByteString getAppPageBytes() { java.lang.Object ref = appPage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appPage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string app_page = 8; */ public Builder setAppPage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; appPage_ = value; onChanged(); return this; } /** * optional string app_page = 8; */ public Builder clearAppPage() { bitField0_ = (bitField0_ & ~0x00000080); appPage_ = getDefaultInstance().getAppPage(); onChanged(); return this; } /** * optional string app_page = 8; */ public Builder setAppPageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; appPage_ = value; onChanged(); return this; } // repeated .ChannelMenu sub_menu = 9; private java.util.List subMenu_ = java.util.Collections.emptyList(); private void ensureSubMenuIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { subMenu_ = new java.util.ArrayList(subMenu_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.ChannelMenu, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder, cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder> subMenuBuilder_; /** * repeated .ChannelMenu sub_menu = 9; */ public java.util.List getSubMenuList() { if (subMenuBuilder_ == null) { return java.util.Collections.unmodifiableList(subMenu_); } else { return subMenuBuilder_.getMessageList(); } } /** * repeated .ChannelMenu sub_menu = 9; */ public int getSubMenuCount() { if (subMenuBuilder_ == null) { return subMenu_.size(); } else { return subMenuBuilder_.getCount(); } } /** * repeated .ChannelMenu sub_menu = 9; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenu getSubMenu(int index) { if (subMenuBuilder_ == null) { return subMenu_.get(index); } else { return subMenuBuilder_.getMessage(index); } } /** * repeated .ChannelMenu sub_menu = 9; */ public Builder setSubMenu( int index, cn.wildfirechat.proto.WFCMessage.ChannelMenu value) { if (subMenuBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubMenuIsMutable(); subMenu_.set(index, value); onChanged(); } else { subMenuBuilder_.setMessage(index, value); } return this; } /** * repeated .ChannelMenu sub_menu = 9; */ public Builder setSubMenu( int index, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder builderForValue) { if (subMenuBuilder_ == null) { ensureSubMenuIsMutable(); subMenu_.set(index, builderForValue.build()); onChanged(); } else { subMenuBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ChannelMenu sub_menu = 9; */ public Builder addSubMenu(cn.wildfirechat.proto.WFCMessage.ChannelMenu value) { if (subMenuBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubMenuIsMutable(); subMenu_.add(value); onChanged(); } else { subMenuBuilder_.addMessage(value); } return this; } /** * repeated .ChannelMenu sub_menu = 9; */ public Builder addSubMenu( int index, cn.wildfirechat.proto.WFCMessage.ChannelMenu value) { if (subMenuBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSubMenuIsMutable(); subMenu_.add(index, value); onChanged(); } else { subMenuBuilder_.addMessage(index, value); } return this; } /** * repeated .ChannelMenu sub_menu = 9; */ public Builder addSubMenu( cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder builderForValue) { if (subMenuBuilder_ == null) { ensureSubMenuIsMutable(); subMenu_.add(builderForValue.build()); onChanged(); } else { subMenuBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ChannelMenu sub_menu = 9; */ public Builder addSubMenu( int index, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder builderForValue) { if (subMenuBuilder_ == null) { ensureSubMenuIsMutable(); subMenu_.add(index, builderForValue.build()); onChanged(); } else { subMenuBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ChannelMenu sub_menu = 9; */ public Builder addAllSubMenu( java.lang.Iterable values) { if (subMenuBuilder_ == null) { ensureSubMenuIsMutable(); super.addAll(values, subMenu_); onChanged(); } else { subMenuBuilder_.addAllMessages(values); } return this; } /** * repeated .ChannelMenu sub_menu = 9; */ public Builder clearSubMenu() { if (subMenuBuilder_ == null) { subMenu_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { subMenuBuilder_.clear(); } return this; } /** * repeated .ChannelMenu sub_menu = 9; */ public Builder removeSubMenu(int index) { if (subMenuBuilder_ == null) { ensureSubMenuIsMutable(); subMenu_.remove(index); onChanged(); } else { subMenuBuilder_.remove(index); } return this; } /** * repeated .ChannelMenu sub_menu = 9; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder getSubMenuBuilder( int index) { return getSubMenuFieldBuilder().getBuilder(index); } /** * repeated .ChannelMenu sub_menu = 9; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder getSubMenuOrBuilder( int index) { if (subMenuBuilder_ == null) { return subMenu_.get(index); } else { return subMenuBuilder_.getMessageOrBuilder(index); } } /** * repeated .ChannelMenu sub_menu = 9; */ public java.util.List getSubMenuOrBuilderList() { if (subMenuBuilder_ != null) { return subMenuBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(subMenu_); } } /** * repeated .ChannelMenu sub_menu = 9; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder addSubMenuBuilder() { return getSubMenuFieldBuilder().addBuilder( cn.wildfirechat.proto.WFCMessage.ChannelMenu.getDefaultInstance()); } /** * repeated .ChannelMenu sub_menu = 9; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder addSubMenuBuilder( int index) { return getSubMenuFieldBuilder().addBuilder( index, cn.wildfirechat.proto.WFCMessage.ChannelMenu.getDefaultInstance()); } /** * repeated .ChannelMenu sub_menu = 9; */ public java.util.List getSubMenuBuilderList() { return getSubMenuFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.ChannelMenu, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder, cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder> getSubMenuFieldBuilder() { if (subMenuBuilder_ == null) { subMenuBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.ChannelMenu, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder, cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder>( subMenu_, ((bitField0_ & 0x00000100) == 0x00000100), getParentForChildren(), isClean()); subMenu_ = null; } return subMenuBuilder_; } // optional string menu_id = 10; private java.lang.Object menuId_ = ""; /** * optional string menu_id = 10; */ public boolean hasMenuId() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional string menu_id = 10; */ public java.lang.String getMenuId() { java.lang.Object ref = menuId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); menuId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string menu_id = 10; */ public com.google.protobuf.ByteString getMenuIdBytes() { java.lang.Object ref = menuId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); menuId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string menu_id = 10; */ public Builder setMenuId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; menuId_ = value; onChanged(); return this; } /** * optional string menu_id = 10; */ public Builder clearMenuId() { bitField0_ = (bitField0_ & ~0x00000200); menuId_ = getDefaultInstance().getMenuId(); onChanged(); return this; } /** * optional string menu_id = 10; */ public Builder setMenuIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; menuId_ = value; onChanged(); return this; } // optional string extra = 11; private java.lang.Object extra_ = ""; /** * optional string extra = 11; */ public boolean hasExtra() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional string extra = 11; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); extra_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string extra = 11; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string extra = 11; */ public Builder setExtra( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; extra_ = value; onChanged(); return this; } /** * optional string extra = 11; */ public Builder clearExtra() { bitField0_ = (bitField0_ & ~0x00000400); extra_ = getDefaultInstance().getExtra(); onChanged(); return this; } /** * optional string extra = 11; */ public Builder setExtraBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; extra_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ChannelMenu) } static { defaultInstance = new ChannelMenu(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ChannelMenu) } public interface ChannelMenuListOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .ChannelMenu menu = 1; /** * repeated .ChannelMenu menu = 1; */ java.util.List getMenuList(); /** * repeated .ChannelMenu menu = 1; */ cn.wildfirechat.proto.WFCMessage.ChannelMenu getMenu(int index); /** * repeated .ChannelMenu menu = 1; */ int getMenuCount(); /** * repeated .ChannelMenu menu = 1; */ java.util.List getMenuOrBuilderList(); /** * repeated .ChannelMenu menu = 1; */ cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder getMenuOrBuilder( int index); } /** * Protobuf type {@code ChannelMenuList} */ public static final class ChannelMenuList extends com.google.protobuf.GeneratedMessage implements ChannelMenuListOrBuilder { // Use ChannelMenuList.newBuilder() to construct. private ChannelMenuList(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ChannelMenuList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ChannelMenuList defaultInstance; public static ChannelMenuList getDefaultInstance() { return defaultInstance; } public ChannelMenuList getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChannelMenuList( 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)) { menu_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } menu_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.ChannelMenu.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)) { menu_ = java.util.Collections.unmodifiableList(menu_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelMenuList_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelMenuList_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ChannelMenuList.class, cn.wildfirechat.proto.WFCMessage.ChannelMenuList.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChannelMenuList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChannelMenuList(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .ChannelMenu menu = 1; public static final int MENU_FIELD_NUMBER = 1; private java.util.List menu_; /** * repeated .ChannelMenu menu = 1; */ public java.util.List getMenuList() { return menu_; } /** * repeated .ChannelMenu menu = 1; */ public java.util.List getMenuOrBuilderList() { return menu_; } /** * repeated .ChannelMenu menu = 1; */ public int getMenuCount() { return menu_.size(); } /** * repeated .ChannelMenu menu = 1; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenu getMenu(int index) { return menu_.get(index); } /** * repeated .ChannelMenu menu = 1; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder getMenuOrBuilder( int index) { return menu_.get(index); } private void initFields() { menu_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getMenuCount(); i++) { if (!getMenu(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < menu_.size(); i++) { output.writeMessage(1, menu_.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 < menu_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, menu_.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 cn.wildfirechat.proto.WFCMessage.ChannelMenuList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenuList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenuList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenuList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenuList parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenuList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenuList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenuList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenuList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ChannelMenuList 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(cn.wildfirechat.proto.WFCMessage.ChannelMenuList 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 ChannelMenuList} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.ChannelMenuListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelMenuList_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelMenuList_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ChannelMenuList.class, cn.wildfirechat.proto.WFCMessage.ChannelMenuList.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.ChannelMenuList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getMenuFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (menuBuilder_ == null) { menu_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { menuBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelMenuList_descriptor; } public cn.wildfirechat.proto.WFCMessage.ChannelMenuList getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.ChannelMenuList.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.ChannelMenuList build() { cn.wildfirechat.proto.WFCMessage.ChannelMenuList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.ChannelMenuList buildPartial() { cn.wildfirechat.proto.WFCMessage.ChannelMenuList result = new cn.wildfirechat.proto.WFCMessage.ChannelMenuList(this); int from_bitField0_ = bitField0_; if (menuBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { menu_ = java.util.Collections.unmodifiableList(menu_); bitField0_ = (bitField0_ & ~0x00000001); } result.menu_ = menu_; } else { result.menu_ = menuBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.ChannelMenuList) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.ChannelMenuList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ChannelMenuList other) { if (other == cn.wildfirechat.proto.WFCMessage.ChannelMenuList.getDefaultInstance()) return this; if (menuBuilder_ == null) { if (!other.menu_.isEmpty()) { if (menu_.isEmpty()) { menu_ = other.menu_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMenuIsMutable(); menu_.addAll(other.menu_); } onChanged(); } } else { if (!other.menu_.isEmpty()) { if (menuBuilder_.isEmpty()) { menuBuilder_.dispose(); menuBuilder_ = null; menu_ = other.menu_; bitField0_ = (bitField0_ & ~0x00000001); menuBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getMenuFieldBuilder() : null; } else { menuBuilder_.addAllMessages(other.menu_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getMenuCount(); i++) { if (!getMenu(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.ChannelMenuList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.ChannelMenuList) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .ChannelMenu menu = 1; private java.util.List menu_ = java.util.Collections.emptyList(); private void ensureMenuIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { menu_ = new java.util.ArrayList(menu_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.ChannelMenu, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder, cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder> menuBuilder_; /** * repeated .ChannelMenu menu = 1; */ public java.util.List getMenuList() { if (menuBuilder_ == null) { return java.util.Collections.unmodifiableList(menu_); } else { return menuBuilder_.getMessageList(); } } /** * repeated .ChannelMenu menu = 1; */ public int getMenuCount() { if (menuBuilder_ == null) { return menu_.size(); } else { return menuBuilder_.getCount(); } } /** * repeated .ChannelMenu menu = 1; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenu getMenu(int index) { if (menuBuilder_ == null) { return menu_.get(index); } else { return menuBuilder_.getMessage(index); } } /** * repeated .ChannelMenu menu = 1; */ public Builder setMenu( int index, cn.wildfirechat.proto.WFCMessage.ChannelMenu value) { if (menuBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMenuIsMutable(); menu_.set(index, value); onChanged(); } else { menuBuilder_.setMessage(index, value); } return this; } /** * repeated .ChannelMenu menu = 1; */ public Builder setMenu( int index, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder builderForValue) { if (menuBuilder_ == null) { ensureMenuIsMutable(); menu_.set(index, builderForValue.build()); onChanged(); } else { menuBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ChannelMenu menu = 1; */ public Builder addMenu(cn.wildfirechat.proto.WFCMessage.ChannelMenu value) { if (menuBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMenuIsMutable(); menu_.add(value); onChanged(); } else { menuBuilder_.addMessage(value); } return this; } /** * repeated .ChannelMenu menu = 1; */ public Builder addMenu( int index, cn.wildfirechat.proto.WFCMessage.ChannelMenu value) { if (menuBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMenuIsMutable(); menu_.add(index, value); onChanged(); } else { menuBuilder_.addMessage(index, value); } return this; } /** * repeated .ChannelMenu menu = 1; */ public Builder addMenu( cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder builderForValue) { if (menuBuilder_ == null) { ensureMenuIsMutable(); menu_.add(builderForValue.build()); onChanged(); } else { menuBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ChannelMenu menu = 1; */ public Builder addMenu( int index, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder builderForValue) { if (menuBuilder_ == null) { ensureMenuIsMutable(); menu_.add(index, builderForValue.build()); onChanged(); } else { menuBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ChannelMenu menu = 1; */ public Builder addAllMenu( java.lang.Iterable values) { if (menuBuilder_ == null) { ensureMenuIsMutable(); super.addAll(values, menu_); onChanged(); } else { menuBuilder_.addAllMessages(values); } return this; } /** * repeated .ChannelMenu menu = 1; */ public Builder clearMenu() { if (menuBuilder_ == null) { menu_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { menuBuilder_.clear(); } return this; } /** * repeated .ChannelMenu menu = 1; */ public Builder removeMenu(int index) { if (menuBuilder_ == null) { ensureMenuIsMutable(); menu_.remove(index); onChanged(); } else { menuBuilder_.remove(index); } return this; } /** * repeated .ChannelMenu menu = 1; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder getMenuBuilder( int index) { return getMenuFieldBuilder().getBuilder(index); } /** * repeated .ChannelMenu menu = 1; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder getMenuOrBuilder( int index) { if (menuBuilder_ == null) { return menu_.get(index); } else { return menuBuilder_.getMessageOrBuilder(index); } } /** * repeated .ChannelMenu menu = 1; */ public java.util.List getMenuOrBuilderList() { if (menuBuilder_ != null) { return menuBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(menu_); } } /** * repeated .ChannelMenu menu = 1; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder addMenuBuilder() { return getMenuFieldBuilder().addBuilder( cn.wildfirechat.proto.WFCMessage.ChannelMenu.getDefaultInstance()); } /** * repeated .ChannelMenu menu = 1; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder addMenuBuilder( int index) { return getMenuFieldBuilder().addBuilder( index, cn.wildfirechat.proto.WFCMessage.ChannelMenu.getDefaultInstance()); } /** * repeated .ChannelMenu menu = 1; */ public java.util.List getMenuBuilderList() { return getMenuFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.ChannelMenu, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder, cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder> getMenuFieldBuilder() { if (menuBuilder_ == null) { menuBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.ChannelMenu, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder, cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder>( menu_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); menu_ = null; } return menuBuilder_; } // @@protoc_insertion_point(builder_scope:ChannelMenuList) } static { defaultInstance = new ChannelMenuList(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ChannelMenuList) } public interface ChannelInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string target_id = 1; /** * optional string target_id = 1; */ boolean hasTargetId(); /** * optional string target_id = 1; */ java.lang.String getTargetId(); /** * optional string target_id = 1; */ com.google.protobuf.ByteString getTargetIdBytes(); // required string name = 2; /** * required string name = 2; */ boolean hasName(); /** * required string name = 2; */ java.lang.String getName(); /** * required string name = 2; */ com.google.protobuf.ByteString getNameBytes(); // optional string portrait = 3; /** * optional string portrait = 3; */ boolean hasPortrait(); /** * optional string portrait = 3; */ java.lang.String getPortrait(); /** * optional string portrait = 3; */ com.google.protobuf.ByteString getPortraitBytes(); // optional string owner = 4; /** * optional string owner = 4; */ boolean hasOwner(); /** * optional string owner = 4; */ java.lang.String getOwner(); /** * optional string owner = 4; */ com.google.protobuf.ByteString getOwnerBytes(); // optional int32 status = 5; /** * optional int32 status = 5; * *
     *0, public; 1, private; 2 closed;
     * 
*/ boolean hasStatus(); /** * optional int32 status = 5; * *
     *0, public; 1, private; 2 closed;
     * 
*/ int getStatus(); // optional string desc = 6; /** * optional string desc = 6; */ boolean hasDesc(); /** * optional string desc = 6; */ java.lang.String getDesc(); /** * optional string desc = 6; */ com.google.protobuf.ByteString getDescBytes(); // optional string extra = 7; /** * optional string extra = 7; */ boolean hasExtra(); /** * optional string extra = 7; */ java.lang.String getExtra(); /** * optional string extra = 7; */ com.google.protobuf.ByteString getExtraBytes(); // optional int64 update_dt = 8; /** * optional int64 update_dt = 8; */ boolean hasUpdateDt(); /** * optional int64 update_dt = 8; */ long getUpdateDt(); // optional string secret = 9; /** * optional string secret = 9; */ boolean hasSecret(); /** * optional string secret = 9; */ java.lang.String getSecret(); /** * optional string secret = 9; */ com.google.protobuf.ByteString getSecretBytes(); // optional string callback = 10; /** * optional string callback = 10; */ boolean hasCallback(); /** * optional string callback = 10; */ java.lang.String getCallback(); /** * optional string callback = 10; */ com.google.protobuf.ByteString getCallbackBytes(); // optional int32 automatic = 11; /** * optional int32 automatic = 11; */ boolean hasAutomatic(); /** * optional int32 automatic = 11; */ int getAutomatic(); // repeated .ChannelMenu menu = 12; /** * repeated .ChannelMenu menu = 12; */ java.util.List getMenuList(); /** * repeated .ChannelMenu menu = 12; */ cn.wildfirechat.proto.WFCMessage.ChannelMenu getMenu(int index); /** * repeated .ChannelMenu menu = 12; */ int getMenuCount(); /** * repeated .ChannelMenu menu = 12; */ java.util.List getMenuOrBuilderList(); /** * repeated .ChannelMenu menu = 12; */ cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder getMenuOrBuilder( int index); } /** * Protobuf type {@code ChannelInfo} */ public static final class ChannelInfo extends com.google.protobuf.GeneratedMessage implements ChannelInfoOrBuilder { // Use ChannelInfo.newBuilder() to construct. private ChannelInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ChannelInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ChannelInfo defaultInstance; public static ChannelInfo getDefaultInstance() { return defaultInstance; } public ChannelInfo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChannelInfo( 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; targetId_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; name_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; portrait_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; owner_ = input.readBytes(); break; } case 40: { bitField0_ |= 0x00000010; status_ = input.readInt32(); break; } case 50: { bitField0_ |= 0x00000020; desc_ = input.readBytes(); break; } case 58: { bitField0_ |= 0x00000040; extra_ = input.readBytes(); break; } case 64: { bitField0_ |= 0x00000080; updateDt_ = input.readInt64(); break; } case 74: { bitField0_ |= 0x00000100; secret_ = input.readBytes(); break; } case 82: { bitField0_ |= 0x00000200; callback_ = input.readBytes(); break; } case 88: { bitField0_ |= 0x00000400; automatic_ = input.readInt32(); break; } case 98: { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { menu_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } menu_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.ChannelMenu.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_ & 0x00000800) == 0x00000800)) { menu_ = java.util.Collections.unmodifiableList(menu_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ChannelInfo.class, cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChannelInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChannelInfo(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string target_id = 1; public static final int TARGET_ID_FIELD_NUMBER = 1; private java.lang.Object targetId_; /** * optional string target_id = 1; */ public boolean hasTargetId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string target_id = 1; */ public java.lang.String getTargetId() { java.lang.Object ref = targetId_; 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()) { targetId_ = s; } return s; } } /** * optional string target_id = 1; */ public com.google.protobuf.ByteString getTargetIdBytes() { java.lang.Object ref = targetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string name = 2; public static final int NAME_FIELD_NUMBER = 2; private java.lang.Object name_; /** * required string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * required string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string portrait = 3; public static final int PORTRAIT_FIELD_NUMBER = 3; private java.lang.Object portrait_; /** * optional string portrait = 3; */ public boolean hasPortrait() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string portrait = 3; */ public java.lang.String getPortrait() { java.lang.Object ref = portrait_; 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()) { portrait_ = s; } return s; } } /** * optional string portrait = 3; */ public com.google.protobuf.ByteString getPortraitBytes() { java.lang.Object ref = portrait_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); portrait_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string owner = 4; public static final int OWNER_FIELD_NUMBER = 4; private java.lang.Object owner_; /** * optional string owner = 4; */ public boolean hasOwner() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string owner = 4; */ public java.lang.String getOwner() { java.lang.Object ref = owner_; 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()) { owner_ = s; } return s; } } /** * optional string owner = 4; */ public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 status = 5; public static final int STATUS_FIELD_NUMBER = 5; private int status_; /** * optional int32 status = 5; * *
     *0, public; 1, private; 2 closed;
     * 
*/ public boolean hasStatus() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 status = 5; * *
     *0, public; 1, private; 2 closed;
     * 
*/ public int getStatus() { return status_; } // optional string desc = 6; public static final int DESC_FIELD_NUMBER = 6; private java.lang.Object desc_; /** * optional string desc = 6; */ public boolean hasDesc() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string desc = 6; */ public java.lang.String getDesc() { java.lang.Object ref = desc_; 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()) { desc_ = s; } return s; } } /** * optional string desc = 6; */ public com.google.protobuf.ByteString getDescBytes() { java.lang.Object ref = desc_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); desc_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string extra = 7; public static final int EXTRA_FIELD_NUMBER = 7; private java.lang.Object extra_; /** * optional string extra = 7; */ public boolean hasExtra() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string extra = 7; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; 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()) { extra_ = s; } return s; } } /** * optional string extra = 7; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int64 update_dt = 8; public static final int UPDATE_DT_FIELD_NUMBER = 8; private long updateDt_; /** * optional int64 update_dt = 8; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int64 update_dt = 8; */ public long getUpdateDt() { return updateDt_; } // optional string secret = 9; public static final int SECRET_FIELD_NUMBER = 9; private java.lang.Object secret_; /** * optional string secret = 9; */ public boolean hasSecret() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional string secret = 9; */ public java.lang.String getSecret() { java.lang.Object ref = secret_; 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()) { secret_ = s; } return s; } } /** * optional string secret = 9; */ public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secret_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string callback = 10; public static final int CALLBACK_FIELD_NUMBER = 10; private java.lang.Object callback_; /** * optional string callback = 10; */ public boolean hasCallback() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional string callback = 10; */ public java.lang.String getCallback() { java.lang.Object ref = callback_; 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()) { callback_ = s; } return s; } } /** * optional string callback = 10; */ public com.google.protobuf.ByteString getCallbackBytes() { java.lang.Object ref = callback_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callback_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 automatic = 11; public static final int AUTOMATIC_FIELD_NUMBER = 11; private int automatic_; /** * optional int32 automatic = 11; */ public boolean hasAutomatic() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int32 automatic = 11; */ public int getAutomatic() { return automatic_; } // repeated .ChannelMenu menu = 12; public static final int MENU_FIELD_NUMBER = 12; private java.util.List menu_; /** * repeated .ChannelMenu menu = 12; */ public java.util.List getMenuList() { return menu_; } /** * repeated .ChannelMenu menu = 12; */ public java.util.List getMenuOrBuilderList() { return menu_; } /** * repeated .ChannelMenu menu = 12; */ public int getMenuCount() { return menu_.size(); } /** * repeated .ChannelMenu menu = 12; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenu getMenu(int index) { return menu_.get(index); } /** * repeated .ChannelMenu menu = 12; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder getMenuOrBuilder( int index) { return menu_.get(index); } private void initFields() { targetId_ = ""; name_ = ""; portrait_ = ""; owner_ = ""; status_ = 0; desc_ = ""; extra_ = ""; updateDt_ = 0L; secret_ = ""; callback_ = ""; automatic_ = 0; menu_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasName()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getMenuCount(); i++) { if (!getMenu(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getTargetIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getPortraitBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getOwnerBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, status_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getDescBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(7, getExtraBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt64(8, updateDt_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBytes(9, getSecretBytes()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBytes(10, getCallbackBytes()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeInt32(11, automatic_); } for (int i = 0; i < menu_.size(); i++) { output.writeMessage(12, menu_.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, getTargetIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getPortraitBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getOwnerBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, status_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getDescBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, getExtraBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, updateDt_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, getSecretBytes()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, getCallbackBytes()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(11, automatic_); } for (int i = 0; i < menu_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, menu_.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 cn.wildfirechat.proto.WFCMessage.ChannelInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ChannelInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChannelInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ChannelInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChannelInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ChannelInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChannelInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ChannelInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChannelInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ChannelInfo 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(cn.wildfirechat.proto.WFCMessage.ChannelInfo 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 ChannelInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.ChannelInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ChannelInfo.class, cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.ChannelInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getMenuFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); targetId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); portrait_ = ""; bitField0_ = (bitField0_ & ~0x00000004); owner_ = ""; bitField0_ = (bitField0_ & ~0x00000008); status_ = 0; bitField0_ = (bitField0_ & ~0x00000010); desc_ = ""; bitField0_ = (bitField0_ & ~0x00000020); extra_ = ""; bitField0_ = (bitField0_ & ~0x00000040); updateDt_ = 0L; bitField0_ = (bitField0_ & ~0x00000080); secret_ = ""; bitField0_ = (bitField0_ & ~0x00000100); callback_ = ""; bitField0_ = (bitField0_ & ~0x00000200); automatic_ = 0; bitField0_ = (bitField0_ & ~0x00000400); if (menuBuilder_ == null) { menu_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); } else { menuBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChannelInfo_descriptor; } public cn.wildfirechat.proto.WFCMessage.ChannelInfo getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.ChannelInfo.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.ChannelInfo build() { cn.wildfirechat.proto.WFCMessage.ChannelInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.ChannelInfo buildPartial() { cn.wildfirechat.proto.WFCMessage.ChannelInfo result = new cn.wildfirechat.proto.WFCMessage.ChannelInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.targetId_ = targetId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.portrait_ = portrait_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.owner_ = owner_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.status_ = status_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.desc_ = desc_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.extra_ = extra_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.updateDt_ = updateDt_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.secret_ = secret_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.callback_ = callback_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.automatic_ = automatic_; if (menuBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800)) { menu_ = java.util.Collections.unmodifiableList(menu_); bitField0_ = (bitField0_ & ~0x00000800); } result.menu_ = menu_; } else { result.menu_ = menuBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.ChannelInfo) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.ChannelInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ChannelInfo other) { if (other == cn.wildfirechat.proto.WFCMessage.ChannelInfo.getDefaultInstance()) return this; if (other.hasTargetId()) { bitField0_ |= 0x00000001; targetId_ = other.targetId_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasPortrait()) { bitField0_ |= 0x00000004; portrait_ = other.portrait_; onChanged(); } if (other.hasOwner()) { bitField0_ |= 0x00000008; owner_ = other.owner_; onChanged(); } if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasDesc()) { bitField0_ |= 0x00000020; desc_ = other.desc_; onChanged(); } if (other.hasExtra()) { bitField0_ |= 0x00000040; extra_ = other.extra_; onChanged(); } if (other.hasUpdateDt()) { setUpdateDt(other.getUpdateDt()); } if (other.hasSecret()) { bitField0_ |= 0x00000100; secret_ = other.secret_; onChanged(); } if (other.hasCallback()) { bitField0_ |= 0x00000200; callback_ = other.callback_; onChanged(); } if (other.hasAutomatic()) { setAutomatic(other.getAutomatic()); } if (menuBuilder_ == null) { if (!other.menu_.isEmpty()) { if (menu_.isEmpty()) { menu_ = other.menu_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureMenuIsMutable(); menu_.addAll(other.menu_); } onChanged(); } } else { if (!other.menu_.isEmpty()) { if (menuBuilder_.isEmpty()) { menuBuilder_.dispose(); menuBuilder_ = null; menu_ = other.menu_; bitField0_ = (bitField0_ & ~0x00000800); menuBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getMenuFieldBuilder() : null; } else { menuBuilder_.addAllMessages(other.menu_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasName()) { return false; } for (int i = 0; i < getMenuCount(); i++) { if (!getMenu(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.ChannelInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.ChannelInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string target_id = 1; private java.lang.Object targetId_ = ""; /** * optional string target_id = 1; */ public boolean hasTargetId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string target_id = 1; */ public java.lang.String getTargetId() { java.lang.Object ref = targetId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); targetId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string target_id = 1; */ public com.google.protobuf.ByteString getTargetIdBytes() { java.lang.Object ref = targetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string target_id = 1; */ public Builder setTargetId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; targetId_ = value; onChanged(); return this; } /** * optional string target_id = 1; */ public Builder clearTargetId() { bitField0_ = (bitField0_ & ~0x00000001); targetId_ = getDefaultInstance().getTargetId(); onChanged(); return this; } /** * optional string target_id = 1; */ public Builder setTargetIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; targetId_ = value; onChanged(); return this; } // required string name = 2; private java.lang.Object name_ = ""; /** * required string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * required string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * required string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } // optional string portrait = 3; private java.lang.Object portrait_ = ""; /** * optional string portrait = 3; */ public boolean hasPortrait() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string portrait = 3; */ public java.lang.String getPortrait() { java.lang.Object ref = portrait_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); portrait_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string portrait = 3; */ public com.google.protobuf.ByteString getPortraitBytes() { java.lang.Object ref = portrait_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); portrait_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string portrait = 3; */ public Builder setPortrait( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; portrait_ = value; onChanged(); return this; } /** * optional string portrait = 3; */ public Builder clearPortrait() { bitField0_ = (bitField0_ & ~0x00000004); portrait_ = getDefaultInstance().getPortrait(); onChanged(); return this; } /** * optional string portrait = 3; */ public Builder setPortraitBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; portrait_ = value; onChanged(); return this; } // optional string owner = 4; private java.lang.Object owner_ = ""; /** * optional string owner = 4; */ public boolean hasOwner() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string owner = 4; */ public java.lang.String getOwner() { java.lang.Object ref = owner_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); owner_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string owner = 4; */ public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string owner = 4; */ public Builder setOwner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; owner_ = value; onChanged(); return this; } /** * optional string owner = 4; */ public Builder clearOwner() { bitField0_ = (bitField0_ & ~0x00000008); owner_ = getDefaultInstance().getOwner(); onChanged(); return this; } /** * optional string owner = 4; */ public Builder setOwnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; owner_ = value; onChanged(); return this; } // optional int32 status = 5; private int status_ ; /** * optional int32 status = 5; * *
       *0, public; 1, private; 2 closed;
       * 
*/ public boolean hasStatus() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 status = 5; * *
       *0, public; 1, private; 2 closed;
       * 
*/ public int getStatus() { return status_; } /** * optional int32 status = 5; * *
       *0, public; 1, private; 2 closed;
       * 
*/ public Builder setStatus(int value) { bitField0_ |= 0x00000010; status_ = value; onChanged(); return this; } /** * optional int32 status = 5; * *
       *0, public; 1, private; 2 closed;
       * 
*/ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000010); status_ = 0; onChanged(); return this; } // optional string desc = 6; private java.lang.Object desc_ = ""; /** * optional string desc = 6; */ public boolean hasDesc() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string desc = 6; */ public java.lang.String getDesc() { java.lang.Object ref = desc_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); desc_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string desc = 6; */ public com.google.protobuf.ByteString getDescBytes() { java.lang.Object ref = desc_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); desc_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string desc = 6; */ public Builder setDesc( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; desc_ = value; onChanged(); return this; } /** * optional string desc = 6; */ public Builder clearDesc() { bitField0_ = (bitField0_ & ~0x00000020); desc_ = getDefaultInstance().getDesc(); onChanged(); return this; } /** * optional string desc = 6; */ public Builder setDescBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; desc_ = value; onChanged(); return this; } // optional string extra = 7; private java.lang.Object extra_ = ""; /** * optional string extra = 7; */ public boolean hasExtra() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string extra = 7; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); extra_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string extra = 7; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string extra = 7; */ public Builder setExtra( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; extra_ = value; onChanged(); return this; } /** * optional string extra = 7; */ public Builder clearExtra() { bitField0_ = (bitField0_ & ~0x00000040); extra_ = getDefaultInstance().getExtra(); onChanged(); return this; } /** * optional string extra = 7; */ public Builder setExtraBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; extra_ = value; onChanged(); return this; } // optional int64 update_dt = 8; private long updateDt_ ; /** * optional int64 update_dt = 8; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int64 update_dt = 8; */ public long getUpdateDt() { return updateDt_; } /** * optional int64 update_dt = 8; */ public Builder setUpdateDt(long value) { bitField0_ |= 0x00000080; updateDt_ = value; onChanged(); return this; } /** * optional int64 update_dt = 8; */ public Builder clearUpdateDt() { bitField0_ = (bitField0_ & ~0x00000080); updateDt_ = 0L; onChanged(); return this; } // optional string secret = 9; private java.lang.Object secret_ = ""; /** * optional string secret = 9; */ public boolean hasSecret() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional string secret = 9; */ public java.lang.String getSecret() { java.lang.Object ref = secret_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); secret_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string secret = 9; */ public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secret_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string secret = 9; */ public Builder setSecret( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; secret_ = value; onChanged(); return this; } /** * optional string secret = 9; */ public Builder clearSecret() { bitField0_ = (bitField0_ & ~0x00000100); secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** * optional string secret = 9; */ public Builder setSecretBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; secret_ = value; onChanged(); return this; } // optional string callback = 10; private java.lang.Object callback_ = ""; /** * optional string callback = 10; */ public boolean hasCallback() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional string callback = 10; */ public java.lang.String getCallback() { java.lang.Object ref = callback_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); callback_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string callback = 10; */ public com.google.protobuf.ByteString getCallbackBytes() { java.lang.Object ref = callback_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callback_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string callback = 10; */ public Builder setCallback( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; callback_ = value; onChanged(); return this; } /** * optional string callback = 10; */ public Builder clearCallback() { bitField0_ = (bitField0_ & ~0x00000200); callback_ = getDefaultInstance().getCallback(); onChanged(); return this; } /** * optional string callback = 10; */ public Builder setCallbackBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; callback_ = value; onChanged(); return this; } // optional int32 automatic = 11; private int automatic_ ; /** * optional int32 automatic = 11; */ public boolean hasAutomatic() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int32 automatic = 11; */ public int getAutomatic() { return automatic_; } /** * optional int32 automatic = 11; */ public Builder setAutomatic(int value) { bitField0_ |= 0x00000400; automatic_ = value; onChanged(); return this; } /** * optional int32 automatic = 11; */ public Builder clearAutomatic() { bitField0_ = (bitField0_ & ~0x00000400); automatic_ = 0; onChanged(); return this; } // repeated .ChannelMenu menu = 12; private java.util.List menu_ = java.util.Collections.emptyList(); private void ensureMenuIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { menu_ = new java.util.ArrayList(menu_); bitField0_ |= 0x00000800; } } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.ChannelMenu, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder, cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder> menuBuilder_; /** * repeated .ChannelMenu menu = 12; */ public java.util.List getMenuList() { if (menuBuilder_ == null) { return java.util.Collections.unmodifiableList(menu_); } else { return menuBuilder_.getMessageList(); } } /** * repeated .ChannelMenu menu = 12; */ public int getMenuCount() { if (menuBuilder_ == null) { return menu_.size(); } else { return menuBuilder_.getCount(); } } /** * repeated .ChannelMenu menu = 12; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenu getMenu(int index) { if (menuBuilder_ == null) { return menu_.get(index); } else { return menuBuilder_.getMessage(index); } } /** * repeated .ChannelMenu menu = 12; */ public Builder setMenu( int index, cn.wildfirechat.proto.WFCMessage.ChannelMenu value) { if (menuBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMenuIsMutable(); menu_.set(index, value); onChanged(); } else { menuBuilder_.setMessage(index, value); } return this; } /** * repeated .ChannelMenu menu = 12; */ public Builder setMenu( int index, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder builderForValue) { if (menuBuilder_ == null) { ensureMenuIsMutable(); menu_.set(index, builderForValue.build()); onChanged(); } else { menuBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ChannelMenu menu = 12; */ public Builder addMenu(cn.wildfirechat.proto.WFCMessage.ChannelMenu value) { if (menuBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMenuIsMutable(); menu_.add(value); onChanged(); } else { menuBuilder_.addMessage(value); } return this; } /** * repeated .ChannelMenu menu = 12; */ public Builder addMenu( int index, cn.wildfirechat.proto.WFCMessage.ChannelMenu value) { if (menuBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMenuIsMutable(); menu_.add(index, value); onChanged(); } else { menuBuilder_.addMessage(index, value); } return this; } /** * repeated .ChannelMenu menu = 12; */ public Builder addMenu( cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder builderForValue) { if (menuBuilder_ == null) { ensureMenuIsMutable(); menu_.add(builderForValue.build()); onChanged(); } else { menuBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ChannelMenu menu = 12; */ public Builder addMenu( int index, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder builderForValue) { if (menuBuilder_ == null) { ensureMenuIsMutable(); menu_.add(index, builderForValue.build()); onChanged(); } else { menuBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ChannelMenu menu = 12; */ public Builder addAllMenu( java.lang.Iterable values) { if (menuBuilder_ == null) { ensureMenuIsMutable(); super.addAll(values, menu_); onChanged(); } else { menuBuilder_.addAllMessages(values); } return this; } /** * repeated .ChannelMenu menu = 12; */ public Builder clearMenu() { if (menuBuilder_ == null) { menu_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { menuBuilder_.clear(); } return this; } /** * repeated .ChannelMenu menu = 12; */ public Builder removeMenu(int index) { if (menuBuilder_ == null) { ensureMenuIsMutable(); menu_.remove(index); onChanged(); } else { menuBuilder_.remove(index); } return this; } /** * repeated .ChannelMenu menu = 12; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder getMenuBuilder( int index) { return getMenuFieldBuilder().getBuilder(index); } /** * repeated .ChannelMenu menu = 12; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder getMenuOrBuilder( int index) { if (menuBuilder_ == null) { return menu_.get(index); } else { return menuBuilder_.getMessageOrBuilder(index); } } /** * repeated .ChannelMenu menu = 12; */ public java.util.List getMenuOrBuilderList() { if (menuBuilder_ != null) { return menuBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(menu_); } } /** * repeated .ChannelMenu menu = 12; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder addMenuBuilder() { return getMenuFieldBuilder().addBuilder( cn.wildfirechat.proto.WFCMessage.ChannelMenu.getDefaultInstance()); } /** * repeated .ChannelMenu menu = 12; */ public cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder addMenuBuilder( int index) { return getMenuFieldBuilder().addBuilder( index, cn.wildfirechat.proto.WFCMessage.ChannelMenu.getDefaultInstance()); } /** * repeated .ChannelMenu menu = 12; */ public java.util.List getMenuBuilderList() { return getMenuFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.ChannelMenu, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder, cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder> getMenuFieldBuilder() { if (menuBuilder_ == null) { menuBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.ChannelMenu, cn.wildfirechat.proto.WFCMessage.ChannelMenu.Builder, cn.wildfirechat.proto.WFCMessage.ChannelMenuOrBuilder>( menu_, ((bitField0_ & 0x00000800) == 0x00000800), getParentForChildren(), isClean()); menu_ = null; } return menuBuilder_; } // @@protoc_insertion_point(builder_scope:ChannelInfo) } static { defaultInstance = new ChannelInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ChannelInfo) } public interface ModifyChannelInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string channel_id = 1; /** * required string channel_id = 1; */ boolean hasChannelId(); /** * required string channel_id = 1; */ java.lang.String getChannelId(); /** * required string channel_id = 1; */ com.google.protobuf.ByteString getChannelIdBytes(); // required int32 type = 2; /** * required int32 type = 2; */ boolean hasType(); /** * required int32 type = 2; */ int getType(); // required string value = 3; /** * required string value = 3; */ boolean hasValue(); /** * required string value = 3; */ java.lang.String getValue(); /** * required string value = 3; */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code ModifyChannelInfo} */ public static final class ModifyChannelInfo extends com.google.protobuf.GeneratedMessage implements ModifyChannelInfoOrBuilder { // Use ModifyChannelInfo.newBuilder() to construct. private ModifyChannelInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ModifyChannelInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ModifyChannelInfo defaultInstance; public static ModifyChannelInfo getDefaultInstance() { return defaultInstance; } public ModifyChannelInfo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ModifyChannelInfo( 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; channelId_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; type_ = input.readInt32(); break; } case 26: { bitField0_ |= 0x00000004; value_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_ModifyChannelInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyChannelInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo.class, cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ModifyChannelInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ModifyChannelInfo(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string channel_id = 1; public static final int CHANNEL_ID_FIELD_NUMBER = 1; private java.lang.Object channelId_; /** * required string channel_id = 1; */ public boolean hasChannelId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string channel_id = 1; */ public java.lang.String getChannelId() { java.lang.Object ref = channelId_; 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()) { channelId_ = s; } return s; } } /** * required string channel_id = 1; */ public com.google.protobuf.ByteString getChannelIdBytes() { java.lang.Object ref = channelId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 type = 2; public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** * required int32 type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 type = 2; */ public int getType() { return type_; } // required string value = 3; public static final int VALUE_FIELD_NUMBER = 3; private java.lang.Object value_; /** * required string value = 3; */ public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string value = 3; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * required string value = 3; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { channelId_ = ""; type_ = 0; value_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasChannelId()) { memoizedIsInitialized = 0; return false; } if (!hasType()) { memoizedIsInitialized = 0; return false; } if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getChannelIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getValueBytes()); } 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, getChannelIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getValueBytes()); } 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 cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo 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(cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo 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 ModifyChannelInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.ModifyChannelInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyChannelInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyChannelInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo.class, cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo.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(); channelId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; bitField0_ = (bitField0_ & ~0x00000002); value_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyChannelInfo_descriptor; } public cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo build() { cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo buildPartial() { cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo result = new cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.channelId_ = channelId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo other) { if (other == cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo.getDefaultInstance()) return this; if (other.hasChannelId()) { bitField0_ |= 0x00000001; channelId_ = other.channelId_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (other.hasValue()) { bitField0_ |= 0x00000004; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasChannelId()) { return false; } if (!hasType()) { return false; } if (!hasValue()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.ModifyChannelInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string channel_id = 1; private java.lang.Object channelId_ = ""; /** * required string channel_id = 1; */ public boolean hasChannelId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string channel_id = 1; */ public java.lang.String getChannelId() { java.lang.Object ref = channelId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); channelId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string channel_id = 1; */ public com.google.protobuf.ByteString getChannelIdBytes() { java.lang.Object ref = channelId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string channel_id = 1; */ public Builder setChannelId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; channelId_ = value; onChanged(); return this; } /** * required string channel_id = 1; */ public Builder clearChannelId() { bitField0_ = (bitField0_ & ~0x00000001); channelId_ = getDefaultInstance().getChannelId(); onChanged(); return this; } /** * required string channel_id = 1; */ public Builder setChannelIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; channelId_ = value; onChanged(); return this; } // required int32 type = 2; private int type_ ; /** * required int32 type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 type = 2; */ public int getType() { return type_; } /** * required int32 type = 2; */ public Builder setType(int value) { bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } /** * required int32 type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; } // required string value = 3; private java.lang.Object value_ = ""; /** * required string value = 3; */ public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string value = 3; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string value = 3; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string value = 3; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; value_ = value; onChanged(); return this; } /** * required string value = 3; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000004); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required string value = 3; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; value_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ModifyChannelInfo) } static { defaultInstance = new ModifyChannelInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ModifyChannelInfo) } public interface TransferChannelOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string channel_id = 1; /** * required string channel_id = 1; */ boolean hasChannelId(); /** * required string channel_id = 1; */ java.lang.String getChannelId(); /** * required string channel_id = 1; */ com.google.protobuf.ByteString getChannelIdBytes(); // required string new_owner = 2; /** * required string new_owner = 2; */ boolean hasNewOwner(); /** * required string new_owner = 2; */ java.lang.String getNewOwner(); /** * required string new_owner = 2; */ com.google.protobuf.ByteString getNewOwnerBytes(); } /** * Protobuf type {@code TransferChannel} */ public static final class TransferChannel extends com.google.protobuf.GeneratedMessage implements TransferChannelOrBuilder { // Use TransferChannel.newBuilder() to construct. private TransferChannel(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TransferChannel(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TransferChannel defaultInstance; public static TransferChannel getDefaultInstance() { return defaultInstance; } public TransferChannel getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransferChannel( 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; channelId_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; newOwner_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_TransferChannel_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_TransferChannel_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.TransferChannel.class, cn.wildfirechat.proto.WFCMessage.TransferChannel.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TransferChannel parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransferChannel(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string channel_id = 1; public static final int CHANNEL_ID_FIELD_NUMBER = 1; private java.lang.Object channelId_; /** * required string channel_id = 1; */ public boolean hasChannelId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string channel_id = 1; */ public java.lang.String getChannelId() { java.lang.Object ref = channelId_; 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()) { channelId_ = s; } return s; } } /** * required string channel_id = 1; */ public com.google.protobuf.ByteString getChannelIdBytes() { java.lang.Object ref = channelId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string new_owner = 2; public static final int NEW_OWNER_FIELD_NUMBER = 2; private java.lang.Object newOwner_; /** * required string new_owner = 2; */ public boolean hasNewOwner() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string new_owner = 2; */ public java.lang.String getNewOwner() { java.lang.Object ref = newOwner_; 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()) { newOwner_ = s; } return s; } } /** * required string new_owner = 2; */ public com.google.protobuf.ByteString getNewOwnerBytes() { java.lang.Object ref = newOwner_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newOwner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { channelId_ = ""; newOwner_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasChannelId()) { memoizedIsInitialized = 0; return false; } if (!hasNewOwner()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getChannelIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNewOwnerBytes()); } 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, getChannelIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getNewOwnerBytes()); } 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 cn.wildfirechat.proto.WFCMessage.TransferChannel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.TransferChannel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.TransferChannel 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(cn.wildfirechat.proto.WFCMessage.TransferChannel 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 TransferChannel} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.TransferChannelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_TransferChannel_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_TransferChannel_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.TransferChannel.class, cn.wildfirechat.proto.WFCMessage.TransferChannel.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.TransferChannel.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(); channelId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); newOwner_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_TransferChannel_descriptor; } public cn.wildfirechat.proto.WFCMessage.TransferChannel getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.TransferChannel.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.TransferChannel build() { cn.wildfirechat.proto.WFCMessage.TransferChannel result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.TransferChannel buildPartial() { cn.wildfirechat.proto.WFCMessage.TransferChannel result = new cn.wildfirechat.proto.WFCMessage.TransferChannel(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.channelId_ = channelId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.newOwner_ = newOwner_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.TransferChannel) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.TransferChannel)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.TransferChannel other) { if (other == cn.wildfirechat.proto.WFCMessage.TransferChannel.getDefaultInstance()) return this; if (other.hasChannelId()) { bitField0_ |= 0x00000001; channelId_ = other.channelId_; onChanged(); } if (other.hasNewOwner()) { bitField0_ |= 0x00000002; newOwner_ = other.newOwner_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasChannelId()) { return false; } if (!hasNewOwner()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.TransferChannel parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.TransferChannel) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string channel_id = 1; private java.lang.Object channelId_ = ""; /** * required string channel_id = 1; */ public boolean hasChannelId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string channel_id = 1; */ public java.lang.String getChannelId() { java.lang.Object ref = channelId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); channelId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string channel_id = 1; */ public com.google.protobuf.ByteString getChannelIdBytes() { java.lang.Object ref = channelId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string channel_id = 1; */ public Builder setChannelId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; channelId_ = value; onChanged(); return this; } /** * required string channel_id = 1; */ public Builder clearChannelId() { bitField0_ = (bitField0_ & ~0x00000001); channelId_ = getDefaultInstance().getChannelId(); onChanged(); return this; } /** * required string channel_id = 1; */ public Builder setChannelIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; channelId_ = value; onChanged(); return this; } // required string new_owner = 2; private java.lang.Object newOwner_ = ""; /** * required string new_owner = 2; */ public boolean hasNewOwner() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string new_owner = 2; */ public java.lang.String getNewOwner() { java.lang.Object ref = newOwner_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); newOwner_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string new_owner = 2; */ public com.google.protobuf.ByteString getNewOwnerBytes() { java.lang.Object ref = newOwner_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newOwner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string new_owner = 2; */ public Builder setNewOwner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; newOwner_ = value; onChanged(); return this; } /** * required string new_owner = 2; */ public Builder clearNewOwner() { bitField0_ = (bitField0_ & ~0x00000002); newOwner_ = getDefaultInstance().getNewOwner(); onChanged(); return this; } /** * required string new_owner = 2; */ public Builder setNewOwnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; newOwner_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:TransferChannel) } static { defaultInstance = new TransferChannel(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:TransferChannel) } public interface PullChannelInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string channel_id = 1; /** * required string channel_id = 1; */ boolean hasChannelId(); /** * required string channel_id = 1; */ java.lang.String getChannelId(); /** * required string channel_id = 1; */ com.google.protobuf.ByteString getChannelIdBytes(); // required int64 head = 2; /** * required int64 head = 2; */ boolean hasHead(); /** * required int64 head = 2; */ long getHead(); } /** * Protobuf type {@code PullChannelInfo} */ public static final class PullChannelInfo extends com.google.protobuf.GeneratedMessage implements PullChannelInfoOrBuilder { // Use PullChannelInfo.newBuilder() to construct. private PullChannelInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PullChannelInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PullChannelInfo defaultInstance; public static PullChannelInfo getDefaultInstance() { return defaultInstance; } public PullChannelInfo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PullChannelInfo( 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; channelId_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; head_ = input.readInt64(); 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 cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullChannelInfo.class, cn.wildfirechat.proto.WFCMessage.PullChannelInfo.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PullChannelInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PullChannelInfo(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string channel_id = 1; public static final int CHANNEL_ID_FIELD_NUMBER = 1; private java.lang.Object channelId_; /** * required string channel_id = 1; */ public boolean hasChannelId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string channel_id = 1; */ public java.lang.String getChannelId() { java.lang.Object ref = channelId_; 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()) { channelId_ = s; } return s; } } /** * required string channel_id = 1; */ public com.google.protobuf.ByteString getChannelIdBytes() { java.lang.Object ref = channelId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int64 head = 2; public static final int HEAD_FIELD_NUMBER = 2; private long head_; /** * required int64 head = 2; */ public boolean hasHead() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int64 head = 2; */ public long getHead() { return head_; } private void initFields() { channelId_ = ""; head_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasChannelId()) { memoizedIsInitialized = 0; return false; } if (!hasHead()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getChannelIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, head_); } 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, getChannelIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, head_); } 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 cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullChannelInfo 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(cn.wildfirechat.proto.WFCMessage.PullChannelInfo 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 PullChannelInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.PullChannelInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullChannelInfo.class, cn.wildfirechat.proto.WFCMessage.PullChannelInfo.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.PullChannelInfo.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(); channelId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); head_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelInfo_descriptor; } public cn.wildfirechat.proto.WFCMessage.PullChannelInfo getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.PullChannelInfo.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.PullChannelInfo build() { cn.wildfirechat.proto.WFCMessage.PullChannelInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.PullChannelInfo buildPartial() { cn.wildfirechat.proto.WFCMessage.PullChannelInfo result = new cn.wildfirechat.proto.WFCMessage.PullChannelInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.channelId_ = channelId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.head_ = head_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.PullChannelInfo) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.PullChannelInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.PullChannelInfo other) { if (other == cn.wildfirechat.proto.WFCMessage.PullChannelInfo.getDefaultInstance()) return this; if (other.hasChannelId()) { bitField0_ |= 0x00000001; channelId_ = other.channelId_; onChanged(); } if (other.hasHead()) { setHead(other.getHead()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasChannelId()) { return false; } if (!hasHead()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.PullChannelInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.PullChannelInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string channel_id = 1; private java.lang.Object channelId_ = ""; /** * required string channel_id = 1; */ public boolean hasChannelId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string channel_id = 1; */ public java.lang.String getChannelId() { java.lang.Object ref = channelId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); channelId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string channel_id = 1; */ public com.google.protobuf.ByteString getChannelIdBytes() { java.lang.Object ref = channelId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string channel_id = 1; */ public Builder setChannelId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; channelId_ = value; onChanged(); return this; } /** * required string channel_id = 1; */ public Builder clearChannelId() { bitField0_ = (bitField0_ & ~0x00000001); channelId_ = getDefaultInstance().getChannelId(); onChanged(); return this; } /** * required string channel_id = 1; */ public Builder setChannelIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; channelId_ = value; onChanged(); return this; } // required int64 head = 2; private long head_ ; /** * required int64 head = 2; */ public boolean hasHead() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int64 head = 2; */ public long getHead() { return head_; } /** * required int64 head = 2; */ public Builder setHead(long value) { bitField0_ |= 0x00000002; head_ = value; onChanged(); return this; } /** * required int64 head = 2; */ public Builder clearHead() { bitField0_ = (bitField0_ & ~0x00000002); head_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:PullChannelInfo) } static { defaultInstance = new PullChannelInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:PullChannelInfo) } public interface PullChannelListenerOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string channel_id = 1; /** * required string channel_id = 1; */ boolean hasChannelId(); /** * required string channel_id = 1; */ java.lang.String getChannelId(); /** * required string channel_id = 1; */ com.google.protobuf.ByteString getChannelIdBytes(); // required int32 offset = 2; /** * required int32 offset = 2; */ boolean hasOffset(); /** * required int32 offset = 2; */ int getOffset(); // required int32 count = 3; /** * required int32 count = 3; */ boolean hasCount(); /** * required int32 count = 3; */ int getCount(); } /** * Protobuf type {@code PullChannelListener} */ public static final class PullChannelListener extends com.google.protobuf.GeneratedMessage implements PullChannelListenerOrBuilder { // Use PullChannelListener.newBuilder() to construct. private PullChannelListener(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PullChannelListener(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PullChannelListener defaultInstance; public static PullChannelListener getDefaultInstance() { return defaultInstance; } public PullChannelListener getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PullChannelListener( 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; channelId_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; offset_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; count_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListener_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListener_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullChannelListener.class, cn.wildfirechat.proto.WFCMessage.PullChannelListener.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PullChannelListener parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PullChannelListener(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string channel_id = 1; public static final int CHANNEL_ID_FIELD_NUMBER = 1; private java.lang.Object channelId_; /** * required string channel_id = 1; */ public boolean hasChannelId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string channel_id = 1; */ public java.lang.String getChannelId() { java.lang.Object ref = channelId_; 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()) { channelId_ = s; } return s; } } /** * required string channel_id = 1; */ public com.google.protobuf.ByteString getChannelIdBytes() { java.lang.Object ref = channelId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 offset = 2; public static final int OFFSET_FIELD_NUMBER = 2; private int offset_; /** * required int32 offset = 2; */ public boolean hasOffset() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 offset = 2; */ public int getOffset() { return offset_; } // required int32 count = 3; public static final int COUNT_FIELD_NUMBER = 3; private int count_; /** * required int32 count = 3; */ public boolean hasCount() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 count = 3; */ public int getCount() { return count_; } private void initFields() { channelId_ = ""; offset_ = 0; count_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasChannelId()) { memoizedIsInitialized = 0; return false; } if (!hasOffset()) { memoizedIsInitialized = 0; return false; } if (!hasCount()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getChannelIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, offset_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, count_); } 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, getChannelIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, offset_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, count_); } 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 cn.wildfirechat.proto.WFCMessage.PullChannelListener parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListener parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListener 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(cn.wildfirechat.proto.WFCMessage.PullChannelListener 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 PullChannelListener} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.PullChannelListenerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListener_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListener_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullChannelListener.class, cn.wildfirechat.proto.WFCMessage.PullChannelListener.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.PullChannelListener.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(); channelId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); offset_ = 0; bitField0_ = (bitField0_ & ~0x00000002); count_ = 0; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListener_descriptor; } public cn.wildfirechat.proto.WFCMessage.PullChannelListener getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.PullChannelListener.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.PullChannelListener build() { cn.wildfirechat.proto.WFCMessage.PullChannelListener result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.PullChannelListener buildPartial() { cn.wildfirechat.proto.WFCMessage.PullChannelListener result = new cn.wildfirechat.proto.WFCMessage.PullChannelListener(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.channelId_ = channelId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.offset_ = offset_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.count_ = count_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.PullChannelListener) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.PullChannelListener)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.PullChannelListener other) { if (other == cn.wildfirechat.proto.WFCMessage.PullChannelListener.getDefaultInstance()) return this; if (other.hasChannelId()) { bitField0_ |= 0x00000001; channelId_ = other.channelId_; onChanged(); } if (other.hasOffset()) { setOffset(other.getOffset()); } if (other.hasCount()) { setCount(other.getCount()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasChannelId()) { return false; } if (!hasOffset()) { return false; } if (!hasCount()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.PullChannelListener parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.PullChannelListener) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string channel_id = 1; private java.lang.Object channelId_ = ""; /** * required string channel_id = 1; */ public boolean hasChannelId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string channel_id = 1; */ public java.lang.String getChannelId() { java.lang.Object ref = channelId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); channelId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string channel_id = 1; */ public com.google.protobuf.ByteString getChannelIdBytes() { java.lang.Object ref = channelId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string channel_id = 1; */ public Builder setChannelId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; channelId_ = value; onChanged(); return this; } /** * required string channel_id = 1; */ public Builder clearChannelId() { bitField0_ = (bitField0_ & ~0x00000001); channelId_ = getDefaultInstance().getChannelId(); onChanged(); return this; } /** * required string channel_id = 1; */ public Builder setChannelIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; channelId_ = value; onChanged(); return this; } // required int32 offset = 2; private int offset_ ; /** * required int32 offset = 2; */ public boolean hasOffset() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 offset = 2; */ public int getOffset() { return offset_; } /** * required int32 offset = 2; */ public Builder setOffset(int value) { bitField0_ |= 0x00000002; offset_ = value; onChanged(); return this; } /** * required int32 offset = 2; */ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000002); offset_ = 0; onChanged(); return this; } // required int32 count = 3; private int count_ ; /** * required int32 count = 3; */ public boolean hasCount() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 count = 3; */ public int getCount() { return count_; } /** * required int32 count = 3; */ public Builder setCount(int value) { bitField0_ |= 0x00000004; count_ = value; onChanged(); return this; } /** * required int32 count = 3; */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000004); count_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:PullChannelListener) } static { defaultInstance = new PullChannelListener(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:PullChannelListener) } public interface PullChannelListenerResultOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int32 total_count = 1; /** * required int32 total_count = 1; */ boolean hasTotalCount(); /** * required int32 total_count = 1; */ int getTotalCount(); // required int32 offset = 2; /** * required int32 offset = 2; */ boolean hasOffset(); /** * required int32 offset = 2; */ int getOffset(); // repeated string listener = 3; /** * repeated string listener = 3; */ java.util.List getListenerList(); /** * repeated string listener = 3; */ int getListenerCount(); /** * repeated string listener = 3; */ java.lang.String getListener(int index); /** * repeated string listener = 3; */ com.google.protobuf.ByteString getListenerBytes(int index); } /** * Protobuf type {@code PullChannelListenerResult} */ public static final class PullChannelListenerResult extends com.google.protobuf.GeneratedMessage implements PullChannelListenerResultOrBuilder { // Use PullChannelListenerResult.newBuilder() to construct. private PullChannelListenerResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PullChannelListenerResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PullChannelListenerResult defaultInstance; public static PullChannelListenerResult getDefaultInstance() { return defaultInstance; } public PullChannelListenerResult getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PullChannelListenerResult( 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; totalCount_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; offset_ = input.readInt32(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { listener_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } listener_.add(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 { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { listener_ = new com.google.protobuf.UnmodifiableLazyStringList(listener_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListenerResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListenerResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult.class, cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PullChannelListenerResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PullChannelListenerResult(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required int32 total_count = 1; public static final int TOTAL_COUNT_FIELD_NUMBER = 1; private int totalCount_; /** * required int32 total_count = 1; */ public boolean hasTotalCount() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 total_count = 1; */ public int getTotalCount() { return totalCount_; } // required int32 offset = 2; public static final int OFFSET_FIELD_NUMBER = 2; private int offset_; /** * required int32 offset = 2; */ public boolean hasOffset() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 offset = 2; */ public int getOffset() { return offset_; } // repeated string listener = 3; public static final int LISTENER_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList listener_; /** * repeated string listener = 3; */ public java.util.List getListenerList() { return listener_; } /** * repeated string listener = 3; */ public int getListenerCount() { return listener_.size(); } /** * repeated string listener = 3; */ public java.lang.String getListener(int index) { return listener_.get(index); } /** * repeated string listener = 3; */ public com.google.protobuf.ByteString getListenerBytes(int index) { return listener_.getByteString(index); } private void initFields() { totalCount_ = 0; offset_ = 0; listener_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasTotalCount()) { memoizedIsInitialized = 0; return false; } if (!hasOffset()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, totalCount_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, offset_); } for (int i = 0; i < listener_.size(); i++) { output.writeBytes(3, listener_.getByteString(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, totalCount_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, offset_); } { int dataSize = 0; for (int i = 0; i < listener_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(listener_.getByteString(i)); } size += dataSize; size += 1 * getListenerList().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 cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult 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(cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult 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 PullChannelListenerResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.PullChannelListenerResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListenerResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListenerResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult.class, cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult.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(); totalCount_ = 0; bitField0_ = (bitField0_ & ~0x00000001); offset_ = 0; bitField0_ = (bitField0_ & ~0x00000002); listener_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullChannelListenerResult_descriptor; } public cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult build() { cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult buildPartial() { cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult result = new cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.totalCount_ = totalCount_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.offset_ = offset_; if (((bitField0_ & 0x00000004) == 0x00000004)) { listener_ = new com.google.protobuf.UnmodifiableLazyStringList( listener_); bitField0_ = (bitField0_ & ~0x00000004); } result.listener_ = listener_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult other) { if (other == cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult.getDefaultInstance()) return this; if (other.hasTotalCount()) { setTotalCount(other.getTotalCount()); } if (other.hasOffset()) { setOffset(other.getOffset()); } if (!other.listener_.isEmpty()) { if (listener_.isEmpty()) { listener_ = other.listener_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureListenerIsMutable(); listener_.addAll(other.listener_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasTotalCount()) { return false; } if (!hasOffset()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.PullChannelListenerResult) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int32 total_count = 1; private int totalCount_ ; /** * required int32 total_count = 1; */ public boolean hasTotalCount() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 total_count = 1; */ public int getTotalCount() { return totalCount_; } /** * required int32 total_count = 1; */ public Builder setTotalCount(int value) { bitField0_ |= 0x00000001; totalCount_ = value; onChanged(); return this; } /** * required int32 total_count = 1; */ public Builder clearTotalCount() { bitField0_ = (bitField0_ & ~0x00000001); totalCount_ = 0; onChanged(); return this; } // required int32 offset = 2; private int offset_ ; /** * required int32 offset = 2; */ public boolean hasOffset() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 offset = 2; */ public int getOffset() { return offset_; } /** * required int32 offset = 2; */ public Builder setOffset(int value) { bitField0_ |= 0x00000002; offset_ = value; onChanged(); return this; } /** * required int32 offset = 2; */ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000002); offset_ = 0; onChanged(); return this; } // repeated string listener = 3; private com.google.protobuf.LazyStringList listener_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureListenerIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { listener_ = new com.google.protobuf.LazyStringArrayList(listener_); bitField0_ |= 0x00000004; } } /** * repeated string listener = 3; */ public java.util.List getListenerList() { return java.util.Collections.unmodifiableList(listener_); } /** * repeated string listener = 3; */ public int getListenerCount() { return listener_.size(); } /** * repeated string listener = 3; */ public java.lang.String getListener(int index) { return listener_.get(index); } /** * repeated string listener = 3; */ public com.google.protobuf.ByteString getListenerBytes(int index) { return listener_.getByteString(index); } /** * repeated string listener = 3; */ public Builder setListener( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureListenerIsMutable(); listener_.set(index, value); onChanged(); return this; } /** * repeated string listener = 3; */ public Builder addListener( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureListenerIsMutable(); listener_.add(value); onChanged(); return this; } /** * repeated string listener = 3; */ public Builder addAllListener( java.lang.Iterable values) { ensureListenerIsMutable(); super.addAll(values, listener_); onChanged(); return this; } /** * repeated string listener = 3; */ public Builder clearListener() { listener_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * repeated string listener = 3; */ public Builder addListenerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureListenerIsMutable(); listener_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:PullChannelListenerResult) } static { defaultInstance = new PullChannelListenerResult(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:PullChannelListenerResult) } public interface ListenChannelOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string channel_id = 1; /** * required string channel_id = 1; */ boolean hasChannelId(); /** * required string channel_id = 1; */ java.lang.String getChannelId(); /** * required string channel_id = 1; */ com.google.protobuf.ByteString getChannelIdBytes(); // required int32 listen = 2; /** * required int32 listen = 2; */ boolean hasListen(); /** * required int32 listen = 2; */ int getListen(); } /** * Protobuf type {@code ListenChannel} */ public static final class ListenChannel extends com.google.protobuf.GeneratedMessage implements ListenChannelOrBuilder { // Use ListenChannel.newBuilder() to construct. private ListenChannel(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ListenChannel(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ListenChannel defaultInstance; public static ListenChannel getDefaultInstance() { return defaultInstance; } public ListenChannel getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListenChannel( 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; channelId_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; listen_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_ListenChannel_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ListenChannel_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ListenChannel.class, cn.wildfirechat.proto.WFCMessage.ListenChannel.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ListenChannel parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListenChannel(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string channel_id = 1; public static final int CHANNEL_ID_FIELD_NUMBER = 1; private java.lang.Object channelId_; /** * required string channel_id = 1; */ public boolean hasChannelId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string channel_id = 1; */ public java.lang.String getChannelId() { java.lang.Object ref = channelId_; 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()) { channelId_ = s; } return s; } } /** * required string channel_id = 1; */ public com.google.protobuf.ByteString getChannelIdBytes() { java.lang.Object ref = channelId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 listen = 2; public static final int LISTEN_FIELD_NUMBER = 2; private int listen_; /** * required int32 listen = 2; */ public boolean hasListen() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 listen = 2; */ public int getListen() { return listen_; } private void initFields() { channelId_ = ""; listen_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasChannelId()) { memoizedIsInitialized = 0; return false; } if (!hasListen()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getChannelIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, listen_); } 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, getChannelIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, listen_); } 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 cn.wildfirechat.proto.WFCMessage.ListenChannel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ListenChannel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ListenChannel 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(cn.wildfirechat.proto.WFCMessage.ListenChannel 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 ListenChannel} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.ListenChannelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ListenChannel_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ListenChannel_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ListenChannel.class, cn.wildfirechat.proto.WFCMessage.ListenChannel.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.ListenChannel.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(); channelId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); listen_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_ListenChannel_descriptor; } public cn.wildfirechat.proto.WFCMessage.ListenChannel getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.ListenChannel.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.ListenChannel build() { cn.wildfirechat.proto.WFCMessage.ListenChannel result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.ListenChannel buildPartial() { cn.wildfirechat.proto.WFCMessage.ListenChannel result = new cn.wildfirechat.proto.WFCMessage.ListenChannel(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.channelId_ = channelId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.listen_ = listen_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.ListenChannel) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.ListenChannel)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ListenChannel other) { if (other == cn.wildfirechat.proto.WFCMessage.ListenChannel.getDefaultInstance()) return this; if (other.hasChannelId()) { bitField0_ |= 0x00000001; channelId_ = other.channelId_; onChanged(); } if (other.hasListen()) { setListen(other.getListen()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasChannelId()) { return false; } if (!hasListen()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.ListenChannel parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.ListenChannel) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string channel_id = 1; private java.lang.Object channelId_ = ""; /** * required string channel_id = 1; */ public boolean hasChannelId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string channel_id = 1; */ public java.lang.String getChannelId() { java.lang.Object ref = channelId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); channelId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string channel_id = 1; */ public com.google.protobuf.ByteString getChannelIdBytes() { java.lang.Object ref = channelId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); channelId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string channel_id = 1; */ public Builder setChannelId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; channelId_ = value; onChanged(); return this; } /** * required string channel_id = 1; */ public Builder clearChannelId() { bitField0_ = (bitField0_ & ~0x00000001); channelId_ = getDefaultInstance().getChannelId(); onChanged(); return this; } /** * required string channel_id = 1; */ public Builder setChannelIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; channelId_ = value; onChanged(); return this; } // required int32 listen = 2; private int listen_ ; /** * required int32 listen = 2; */ public boolean hasListen() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 listen = 2; */ public int getListen() { return listen_; } /** * required int32 listen = 2; */ public Builder setListen(int value) { bitField0_ |= 0x00000002; listen_ = value; onChanged(); return this; } /** * required int32 listen = 2; */ public Builder clearListen() { bitField0_ = (bitField0_ & ~0x00000002); listen_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ListenChannel) } static { defaultInstance = new ListenChannel(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ListenChannel) } public interface SearchChannelResultOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .ChannelInfo channel = 1; /** * repeated .ChannelInfo channel = 1; */ java.util.List getChannelList(); /** * repeated .ChannelInfo channel = 1; */ cn.wildfirechat.proto.WFCMessage.ChannelInfo getChannel(int index); /** * repeated .ChannelInfo channel = 1; */ int getChannelCount(); /** * repeated .ChannelInfo channel = 1; */ java.util.List getChannelOrBuilderList(); /** * repeated .ChannelInfo channel = 1; */ cn.wildfirechat.proto.WFCMessage.ChannelInfoOrBuilder getChannelOrBuilder( int index); // required string keyword = 2; /** * required string keyword = 2; */ boolean hasKeyword(); /** * required string keyword = 2; */ java.lang.String getKeyword(); /** * required string keyword = 2; */ com.google.protobuf.ByteString getKeywordBytes(); } /** * Protobuf type {@code SearchChannelResult} */ public static final class SearchChannelResult extends com.google.protobuf.GeneratedMessage implements SearchChannelResultOrBuilder { // Use SearchChannelResult.newBuilder() to construct. private SearchChannelResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SearchChannelResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SearchChannelResult defaultInstance; public static SearchChannelResult getDefaultInstance() { return defaultInstance; } public SearchChannelResult getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SearchChannelResult( 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)) { channel_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } channel_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.ChannelInfo.PARSER, extensionRegistry)); break; } case 18: { bitField0_ |= 0x00000001; keyword_ = 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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { channel_ = java.util.Collections.unmodifiableList(channel_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_SearchChannelResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_SearchChannelResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.SearchChannelResult.class, cn.wildfirechat.proto.WFCMessage.SearchChannelResult.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SearchChannelResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SearchChannelResult(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // repeated .ChannelInfo channel = 1; public static final int CHANNEL_FIELD_NUMBER = 1; private java.util.List channel_; /** * repeated .ChannelInfo channel = 1; */ public java.util.List getChannelList() { return channel_; } /** * repeated .ChannelInfo channel = 1; */ public java.util.List getChannelOrBuilderList() { return channel_; } /** * repeated .ChannelInfo channel = 1; */ public int getChannelCount() { return channel_.size(); } /** * repeated .ChannelInfo channel = 1; */ public cn.wildfirechat.proto.WFCMessage.ChannelInfo getChannel(int index) { return channel_.get(index); } /** * repeated .ChannelInfo channel = 1; */ public cn.wildfirechat.proto.WFCMessage.ChannelInfoOrBuilder getChannelOrBuilder( int index) { return channel_.get(index); } // required string keyword = 2; public static final int KEYWORD_FIELD_NUMBER = 2; private java.lang.Object keyword_; /** * required string keyword = 2; */ public boolean hasKeyword() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string keyword = 2; */ public java.lang.String getKeyword() { java.lang.Object ref = keyword_; 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()) { keyword_ = s; } return s; } } /** * required string keyword = 2; */ public com.google.protobuf.ByteString getKeywordBytes() { java.lang.Object ref = keyword_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keyword_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { channel_ = java.util.Collections.emptyList(); keyword_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasKeyword()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getChannelCount(); i++) { if (!getChannel(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < channel_.size(); i++) { output.writeMessage(1, channel_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(2, getKeywordBytes()); } 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 < channel_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, channel_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getKeywordBytes()); } 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 cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.SearchChannelResult 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(cn.wildfirechat.proto.WFCMessage.SearchChannelResult 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 SearchChannelResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.SearchChannelResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_SearchChannelResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_SearchChannelResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.SearchChannelResult.class, cn.wildfirechat.proto.WFCMessage.SearchChannelResult.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.SearchChannelResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getChannelFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (channelBuilder_ == null) { channel_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { channelBuilder_.clear(); } keyword_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_SearchChannelResult_descriptor; } public cn.wildfirechat.proto.WFCMessage.SearchChannelResult getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.SearchChannelResult.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.SearchChannelResult build() { cn.wildfirechat.proto.WFCMessage.SearchChannelResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.SearchChannelResult buildPartial() { cn.wildfirechat.proto.WFCMessage.SearchChannelResult result = new cn.wildfirechat.proto.WFCMessage.SearchChannelResult(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (channelBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { channel_ = java.util.Collections.unmodifiableList(channel_); bitField0_ = (bitField0_ & ~0x00000001); } result.channel_ = channel_; } else { result.channel_ = channelBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.keyword_ = keyword_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.SearchChannelResult) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.SearchChannelResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.SearchChannelResult other) { if (other == cn.wildfirechat.proto.WFCMessage.SearchChannelResult.getDefaultInstance()) return this; if (channelBuilder_ == null) { if (!other.channel_.isEmpty()) { if (channel_.isEmpty()) { channel_ = other.channel_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureChannelIsMutable(); channel_.addAll(other.channel_); } onChanged(); } } else { if (!other.channel_.isEmpty()) { if (channelBuilder_.isEmpty()) { channelBuilder_.dispose(); channelBuilder_ = null; channel_ = other.channel_; bitField0_ = (bitField0_ & ~0x00000001); channelBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getChannelFieldBuilder() : null; } else { channelBuilder_.addAllMessages(other.channel_); } } } if (other.hasKeyword()) { bitField0_ |= 0x00000002; keyword_ = other.keyword_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasKeyword()) { return false; } for (int i = 0; i < getChannelCount(); i++) { if (!getChannel(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.SearchChannelResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.SearchChannelResult) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .ChannelInfo channel = 1; private java.util.List channel_ = java.util.Collections.emptyList(); private void ensureChannelIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { channel_ = new java.util.ArrayList(channel_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.ChannelInfo, cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder, cn.wildfirechat.proto.WFCMessage.ChannelInfoOrBuilder> channelBuilder_; /** * repeated .ChannelInfo channel = 1; */ public java.util.List getChannelList() { if (channelBuilder_ == null) { return java.util.Collections.unmodifiableList(channel_); } else { return channelBuilder_.getMessageList(); } } /** * repeated .ChannelInfo channel = 1; */ public int getChannelCount() { if (channelBuilder_ == null) { return channel_.size(); } else { return channelBuilder_.getCount(); } } /** * repeated .ChannelInfo channel = 1; */ public cn.wildfirechat.proto.WFCMessage.ChannelInfo getChannel(int index) { if (channelBuilder_ == null) { return channel_.get(index); } else { return channelBuilder_.getMessage(index); } } /** * repeated .ChannelInfo channel = 1; */ public Builder setChannel( int index, cn.wildfirechat.proto.WFCMessage.ChannelInfo value) { if (channelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChannelIsMutable(); channel_.set(index, value); onChanged(); } else { channelBuilder_.setMessage(index, value); } return this; } /** * repeated .ChannelInfo channel = 1; */ public Builder setChannel( int index, cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder builderForValue) { if (channelBuilder_ == null) { ensureChannelIsMutable(); channel_.set(index, builderForValue.build()); onChanged(); } else { channelBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ChannelInfo channel = 1; */ public Builder addChannel(cn.wildfirechat.proto.WFCMessage.ChannelInfo value) { if (channelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChannelIsMutable(); channel_.add(value); onChanged(); } else { channelBuilder_.addMessage(value); } return this; } /** * repeated .ChannelInfo channel = 1; */ public Builder addChannel( int index, cn.wildfirechat.proto.WFCMessage.ChannelInfo value) { if (channelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChannelIsMutable(); channel_.add(index, value); onChanged(); } else { channelBuilder_.addMessage(index, value); } return this; } /** * repeated .ChannelInfo channel = 1; */ public Builder addChannel( cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder builderForValue) { if (channelBuilder_ == null) { ensureChannelIsMutable(); channel_.add(builderForValue.build()); onChanged(); } else { channelBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ChannelInfo channel = 1; */ public Builder addChannel( int index, cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder builderForValue) { if (channelBuilder_ == null) { ensureChannelIsMutable(); channel_.add(index, builderForValue.build()); onChanged(); } else { channelBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ChannelInfo channel = 1; */ public Builder addAllChannel( java.lang.Iterable values) { if (channelBuilder_ == null) { ensureChannelIsMutable(); super.addAll(values, channel_); onChanged(); } else { channelBuilder_.addAllMessages(values); } return this; } /** * repeated .ChannelInfo channel = 1; */ public Builder clearChannel() { if (channelBuilder_ == null) { channel_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { channelBuilder_.clear(); } return this; } /** * repeated .ChannelInfo channel = 1; */ public Builder removeChannel(int index) { if (channelBuilder_ == null) { ensureChannelIsMutable(); channel_.remove(index); onChanged(); } else { channelBuilder_.remove(index); } return this; } /** * repeated .ChannelInfo channel = 1; */ public cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder getChannelBuilder( int index) { return getChannelFieldBuilder().getBuilder(index); } /** * repeated .ChannelInfo channel = 1; */ public cn.wildfirechat.proto.WFCMessage.ChannelInfoOrBuilder getChannelOrBuilder( int index) { if (channelBuilder_ == null) { return channel_.get(index); } else { return channelBuilder_.getMessageOrBuilder(index); } } /** * repeated .ChannelInfo channel = 1; */ public java.util.List getChannelOrBuilderList() { if (channelBuilder_ != null) { return channelBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(channel_); } } /** * repeated .ChannelInfo channel = 1; */ public cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder addChannelBuilder() { return getChannelFieldBuilder().addBuilder( cn.wildfirechat.proto.WFCMessage.ChannelInfo.getDefaultInstance()); } /** * repeated .ChannelInfo channel = 1; */ public cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder addChannelBuilder( int index) { return getChannelFieldBuilder().addBuilder( index, cn.wildfirechat.proto.WFCMessage.ChannelInfo.getDefaultInstance()); } /** * repeated .ChannelInfo channel = 1; */ public java.util.List getChannelBuilderList() { return getChannelFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.ChannelInfo, cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder, cn.wildfirechat.proto.WFCMessage.ChannelInfoOrBuilder> getChannelFieldBuilder() { if (channelBuilder_ == null) { channelBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.ChannelInfo, cn.wildfirechat.proto.WFCMessage.ChannelInfo.Builder, cn.wildfirechat.proto.WFCMessage.ChannelInfoOrBuilder>( channel_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); channel_ = null; } return channelBuilder_; } // required string keyword = 2; private java.lang.Object keyword_ = ""; /** * required string keyword = 2; */ public boolean hasKeyword() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string keyword = 2; */ public java.lang.String getKeyword() { java.lang.Object ref = keyword_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); keyword_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string keyword = 2; */ public com.google.protobuf.ByteString getKeywordBytes() { java.lang.Object ref = keyword_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keyword_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string keyword = 2; */ public Builder setKeyword( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; keyword_ = value; onChanged(); return this; } /** * required string keyword = 2; */ public Builder clearKeyword() { bitField0_ = (bitField0_ & ~0x00000002); keyword_ = getDefaultInstance().getKeyword(); onChanged(); return this; } /** * required string keyword = 2; */ public Builder setKeywordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; keyword_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:SearchChannelResult) } static { defaultInstance = new SearchChannelResult(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:SearchChannelResult) } public interface MessageContentOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int32 type = 1; /** * required int32 type = 1; */ boolean hasType(); /** * required int32 type = 1; */ int getType(); // optional string searchable_content = 2; /** * optional string searchable_content = 2; */ boolean hasSearchableContent(); /** * optional string searchable_content = 2; */ java.lang.String getSearchableContent(); /** * optional string searchable_content = 2; */ com.google.protobuf.ByteString getSearchableContentBytes(); // optional string push_content = 3; /** * optional string push_content = 3; */ boolean hasPushContent(); /** * optional string push_content = 3; */ java.lang.String getPushContent(); /** * optional string push_content = 3; */ com.google.protobuf.ByteString getPushContentBytes(); // optional string content = 4; /** * optional string content = 4; */ boolean hasContent(); /** * optional string content = 4; */ java.lang.String getContent(); /** * optional string content = 4; */ com.google.protobuf.ByteString getContentBytes(); // optional bytes data = 5; /** * optional bytes data = 5; */ boolean hasData(); /** * optional bytes data = 5; */ com.google.protobuf.ByteString getData(); // optional int32 mediaType = 6; /** * optional int32 mediaType = 6; */ boolean hasMediaType(); /** * optional int32 mediaType = 6; */ int getMediaType(); // optional string remoteMediaUrl = 7; /** * optional string remoteMediaUrl = 7; */ boolean hasRemoteMediaUrl(); /** * optional string remoteMediaUrl = 7; */ java.lang.String getRemoteMediaUrl(); /** * optional string remoteMediaUrl = 7; */ com.google.protobuf.ByteString getRemoteMediaUrlBytes(); // optional int32 persist_flag = 8; /** * optional int32 persist_flag = 8; */ boolean hasPersistFlag(); /** * optional int32 persist_flag = 8; */ int getPersistFlag(); // optional int32 expire_duration = 9; /** * optional int32 expire_duration = 9; */ boolean hasExpireDuration(); /** * optional int32 expire_duration = 9; */ int getExpireDuration(); // optional int32 mentioned_type = 10; /** * optional int32 mentioned_type = 10; */ boolean hasMentionedType(); /** * optional int32 mentioned_type = 10; */ int getMentionedType(); // repeated string mentioned_target = 11; /** * repeated string mentioned_target = 11; */ java.util.List getMentionedTargetList(); /** * repeated string mentioned_target = 11; */ int getMentionedTargetCount(); /** * repeated string mentioned_target = 11; */ java.lang.String getMentionedTarget(int index); /** * repeated string mentioned_target = 11; */ com.google.protobuf.ByteString getMentionedTargetBytes(int index); // optional string extra = 12; /** * optional string extra = 12; */ boolean hasExtra(); /** * optional string extra = 12; */ java.lang.String getExtra(); /** * optional string extra = 12; */ com.google.protobuf.ByteString getExtraBytes(); // optional string push_data = 13; /** * optional string push_data = 13; */ boolean hasPushData(); /** * optional string push_data = 13; */ java.lang.String getPushData(); /** * optional string push_data = 13; */ com.google.protobuf.ByteString getPushDataBytes(); } /** * Protobuf type {@code MessageContent} */ public static final class MessageContent extends com.google.protobuf.GeneratedMessage implements MessageContentOrBuilder { // Use MessageContent.newBuilder() to construct. private MessageContent(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private MessageContent(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final MessageContent defaultInstance; public static MessageContent getDefaultInstance() { return defaultInstance; } public MessageContent getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MessageContent( 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; type_ = input.readInt32(); break; } case 18: { bitField0_ |= 0x00000002; searchableContent_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; pushContent_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; content_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000010; data_ = input.readBytes(); break; } case 48: { bitField0_ |= 0x00000020; mediaType_ = input.readInt32(); break; } case 58: { bitField0_ |= 0x00000040; remoteMediaUrl_ = input.readBytes(); break; } case 64: { bitField0_ |= 0x00000080; persistFlag_ = input.readInt32(); break; } case 72: { bitField0_ |= 0x00000100; expireDuration_ = input.readInt32(); break; } case 80: { bitField0_ |= 0x00000200; mentionedType_ = input.readInt32(); break; } case 90: { if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { mentionedTarget_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000400; } mentionedTarget_.add(input.readBytes()); break; } case 98: { bitField0_ |= 0x00000400; extra_ = input.readBytes(); break; } case 106: { bitField0_ |= 0x00000800; pushData_ = 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 { if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { mentionedTarget_ = new com.google.protobuf.UnmodifiableLazyStringList(mentionedTarget_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_MessageContent_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_MessageContent_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.MessageContent.class, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MessageContent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MessageContent(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required int32 type = 1; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * required int32 type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 type = 1; */ public int getType() { return type_; } // optional string searchable_content = 2; public static final int SEARCHABLE_CONTENT_FIELD_NUMBER = 2; private java.lang.Object searchableContent_; /** * optional string searchable_content = 2; */ public boolean hasSearchableContent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string searchable_content = 2; */ public java.lang.String getSearchableContent() { java.lang.Object ref = searchableContent_; 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()) { searchableContent_ = s; } return s; } } /** * optional string searchable_content = 2; */ public com.google.protobuf.ByteString getSearchableContentBytes() { java.lang.Object ref = searchableContent_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); searchableContent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string push_content = 3; public static final int PUSH_CONTENT_FIELD_NUMBER = 3; private java.lang.Object pushContent_; /** * optional string push_content = 3; */ public boolean hasPushContent() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string push_content = 3; */ public java.lang.String getPushContent() { java.lang.Object ref = pushContent_; 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()) { pushContent_ = s; } return s; } } /** * optional string push_content = 3; */ public com.google.protobuf.ByteString getPushContentBytes() { java.lang.Object ref = pushContent_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pushContent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string content = 4; public static final int CONTENT_FIELD_NUMBER = 4; private java.lang.Object content_; /** * optional string content = 4; */ public boolean hasContent() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string content = 4; */ public java.lang.String getContent() { java.lang.Object ref = content_; 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()) { content_ = s; } return s; } } /** * optional string content = 4; */ public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); content_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bytes data = 5; public static final int DATA_FIELD_NUMBER = 5; private com.google.protobuf.ByteString data_; /** * optional bytes data = 5; */ public boolean hasData() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional bytes data = 5; */ public com.google.protobuf.ByteString getData() { return data_; } // optional int32 mediaType = 6; public static final int MEDIATYPE_FIELD_NUMBER = 6; private int mediaType_; /** * optional int32 mediaType = 6; */ public boolean hasMediaType() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 mediaType = 6; */ public int getMediaType() { return mediaType_; } // optional string remoteMediaUrl = 7; public static final int REMOTEMEDIAURL_FIELD_NUMBER = 7; private java.lang.Object remoteMediaUrl_; /** * optional string remoteMediaUrl = 7; */ public boolean hasRemoteMediaUrl() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string remoteMediaUrl = 7; */ public java.lang.String getRemoteMediaUrl() { java.lang.Object ref = remoteMediaUrl_; 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()) { remoteMediaUrl_ = s; } return s; } } /** * optional string remoteMediaUrl = 7; */ public com.google.protobuf.ByteString getRemoteMediaUrlBytes() { java.lang.Object ref = remoteMediaUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); remoteMediaUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 persist_flag = 8; public static final int PERSIST_FLAG_FIELD_NUMBER = 8; private int persistFlag_; /** * optional int32 persist_flag = 8; */ public boolean hasPersistFlag() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int32 persist_flag = 8; */ public int getPersistFlag() { return persistFlag_; } // optional int32 expire_duration = 9; public static final int EXPIRE_DURATION_FIELD_NUMBER = 9; private int expireDuration_; /** * optional int32 expire_duration = 9; */ public boolean hasExpireDuration() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int32 expire_duration = 9; */ public int getExpireDuration() { return expireDuration_; } // optional int32 mentioned_type = 10; public static final int MENTIONED_TYPE_FIELD_NUMBER = 10; private int mentionedType_; /** * optional int32 mentioned_type = 10; */ public boolean hasMentionedType() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int32 mentioned_type = 10; */ public int getMentionedType() { return mentionedType_; } // repeated string mentioned_target = 11; public static final int MENTIONED_TARGET_FIELD_NUMBER = 11; private com.google.protobuf.LazyStringList mentionedTarget_; /** * repeated string mentioned_target = 11; */ public java.util.List getMentionedTargetList() { return mentionedTarget_; } /** * repeated string mentioned_target = 11; */ public int getMentionedTargetCount() { return mentionedTarget_.size(); } /** * repeated string mentioned_target = 11; */ public java.lang.String getMentionedTarget(int index) { return mentionedTarget_.get(index); } /** * repeated string mentioned_target = 11; */ public com.google.protobuf.ByteString getMentionedTargetBytes(int index) { return mentionedTarget_.getByteString(index); } // optional string extra = 12; public static final int EXTRA_FIELD_NUMBER = 12; private java.lang.Object extra_; /** * optional string extra = 12; */ public boolean hasExtra() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional string extra = 12; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; 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()) { extra_ = s; } return s; } } /** * optional string extra = 12; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string push_data = 13; public static final int PUSH_DATA_FIELD_NUMBER = 13; private java.lang.Object pushData_; /** * optional string push_data = 13; */ public boolean hasPushData() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional string push_data = 13; */ public java.lang.String getPushData() { java.lang.Object ref = pushData_; 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()) { pushData_ = s; } return s; } } /** * optional string push_data = 13; */ public com.google.protobuf.ByteString getPushDataBytes() { java.lang.Object ref = pushData_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pushData_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { type_ = 0; searchableContent_ = ""; pushContent_ = ""; content_ = ""; data_ = com.google.protobuf.ByteString.EMPTY; mediaType_ = 0; remoteMediaUrl_ = ""; persistFlag_ = 0; expireDuration_ = 0; mentionedType_ = 0; mentionedTarget_ = com.google.protobuf.LazyStringArrayList.EMPTY; extra_ = ""; pushData_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasType()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getSearchableContentBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getPushContentBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getContentBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, data_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt32(6, mediaType_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(7, getRemoteMediaUrlBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt32(8, persistFlag_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeInt32(9, expireDuration_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeInt32(10, mentionedType_); } for (int i = 0; i < mentionedTarget_.size(); i++) { output.writeBytes(11, mentionedTarget_.getByteString(i)); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBytes(12, getExtraBytes()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeBytes(13, getPushDataBytes()); } 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, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getSearchableContentBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getPushContentBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getContentBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, data_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, mediaType_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, getRemoteMediaUrlBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, persistFlag_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, expireDuration_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, mentionedType_); } { int dataSize = 0; for (int i = 0; i < mentionedTarget_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(mentionedTarget_.getByteString(i)); } size += dataSize; size += 1 * getMentionedTargetList().size(); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, getExtraBytes()); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(13, getPushDataBytes()); } 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 cn.wildfirechat.proto.WFCMessage.MessageContent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.MessageContent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.MessageContent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.MessageContent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.MessageContent parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.MessageContent parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.MessageContent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.MessageContent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.MessageContent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.MessageContent 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(cn.wildfirechat.proto.WFCMessage.MessageContent 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 MessageContent} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_MessageContent_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_MessageContent_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.MessageContent.class, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.MessageContent.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(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); searchableContent_ = ""; bitField0_ = (bitField0_ & ~0x00000002); pushContent_ = ""; bitField0_ = (bitField0_ & ~0x00000004); content_ = ""; bitField0_ = (bitField0_ & ~0x00000008); data_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); mediaType_ = 0; bitField0_ = (bitField0_ & ~0x00000020); remoteMediaUrl_ = ""; bitField0_ = (bitField0_ & ~0x00000040); persistFlag_ = 0; bitField0_ = (bitField0_ & ~0x00000080); expireDuration_ = 0; bitField0_ = (bitField0_ & ~0x00000100); mentionedType_ = 0; bitField0_ = (bitField0_ & ~0x00000200); mentionedTarget_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000400); extra_ = ""; bitField0_ = (bitField0_ & ~0x00000800); pushData_ = ""; bitField0_ = (bitField0_ & ~0x00001000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_MessageContent_descriptor; } public cn.wildfirechat.proto.WFCMessage.MessageContent getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.MessageContent build() { cn.wildfirechat.proto.WFCMessage.MessageContent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.MessageContent buildPartial() { cn.wildfirechat.proto.WFCMessage.MessageContent result = new cn.wildfirechat.proto.WFCMessage.MessageContent(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.searchableContent_ = searchableContent_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.pushContent_ = pushContent_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.content_ = content_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.data_ = data_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.mediaType_ = mediaType_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.remoteMediaUrl_ = remoteMediaUrl_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.persistFlag_ = persistFlag_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.expireDuration_ = expireDuration_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.mentionedType_ = mentionedType_; if (((bitField0_ & 0x00000400) == 0x00000400)) { mentionedTarget_ = new com.google.protobuf.UnmodifiableLazyStringList( mentionedTarget_); bitField0_ = (bitField0_ & ~0x00000400); } result.mentionedTarget_ = mentionedTarget_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000400; } result.extra_ = extra_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00000800; } result.pushData_ = pushData_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.MessageContent) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.MessageContent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.MessageContent other) { if (other == cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasSearchableContent()) { bitField0_ |= 0x00000002; searchableContent_ = other.searchableContent_; onChanged(); } if (other.hasPushContent()) { bitField0_ |= 0x00000004; pushContent_ = other.pushContent_; onChanged(); } if (other.hasContent()) { bitField0_ |= 0x00000008; content_ = other.content_; onChanged(); } if (other.hasData()) { setData(other.getData()); } if (other.hasMediaType()) { setMediaType(other.getMediaType()); } if (other.hasRemoteMediaUrl()) { bitField0_ |= 0x00000040; remoteMediaUrl_ = other.remoteMediaUrl_; onChanged(); } if (other.hasPersistFlag()) { setPersistFlag(other.getPersistFlag()); } if (other.hasExpireDuration()) { setExpireDuration(other.getExpireDuration()); } if (other.hasMentionedType()) { setMentionedType(other.getMentionedType()); } if (!other.mentionedTarget_.isEmpty()) { if (mentionedTarget_.isEmpty()) { mentionedTarget_ = other.mentionedTarget_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureMentionedTargetIsMutable(); mentionedTarget_.addAll(other.mentionedTarget_); } onChanged(); } if (other.hasExtra()) { bitField0_ |= 0x00000800; extra_ = other.extra_; onChanged(); } if (other.hasPushData()) { bitField0_ |= 0x00001000; pushData_ = other.pushData_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.MessageContent parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.MessageContent) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int32 type = 1; private int type_ ; /** * required int32 type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 type = 1; */ public int getType() { return type_; } /** * required int32 type = 1; */ public Builder setType(int value) { bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * required int32 type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } // optional string searchable_content = 2; private java.lang.Object searchableContent_ = ""; /** * optional string searchable_content = 2; */ public boolean hasSearchableContent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string searchable_content = 2; */ public java.lang.String getSearchableContent() { java.lang.Object ref = searchableContent_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); searchableContent_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string searchable_content = 2; */ public com.google.protobuf.ByteString getSearchableContentBytes() { java.lang.Object ref = searchableContent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); searchableContent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string searchable_content = 2; */ public Builder setSearchableContent( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; searchableContent_ = value; onChanged(); return this; } /** * optional string searchable_content = 2; */ public Builder clearSearchableContent() { bitField0_ = (bitField0_ & ~0x00000002); searchableContent_ = getDefaultInstance().getSearchableContent(); onChanged(); return this; } /** * optional string searchable_content = 2; */ public Builder setSearchableContentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; searchableContent_ = value; onChanged(); return this; } // optional string push_content = 3; private java.lang.Object pushContent_ = ""; /** * optional string push_content = 3; */ public boolean hasPushContent() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string push_content = 3; */ public java.lang.String getPushContent() { java.lang.Object ref = pushContent_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); pushContent_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string push_content = 3; */ public com.google.protobuf.ByteString getPushContentBytes() { java.lang.Object ref = pushContent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pushContent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string push_content = 3; */ public Builder setPushContent( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; pushContent_ = value; onChanged(); return this; } /** * optional string push_content = 3; */ public Builder clearPushContent() { bitField0_ = (bitField0_ & ~0x00000004); pushContent_ = getDefaultInstance().getPushContent(); onChanged(); return this; } /** * optional string push_content = 3; */ public Builder setPushContentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; pushContent_ = value; onChanged(); return this; } // optional string content = 4; private java.lang.Object content_ = ""; /** * optional string content = 4; */ public boolean hasContent() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string content = 4; */ public java.lang.String getContent() { java.lang.Object ref = content_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); content_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string content = 4; */ public com.google.protobuf.ByteString getContentBytes() { java.lang.Object ref = content_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); content_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string content = 4; */ public Builder setContent( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; content_ = value; onChanged(); return this; } /** * optional string content = 4; */ public Builder clearContent() { bitField0_ = (bitField0_ & ~0x00000008); content_ = getDefaultInstance().getContent(); onChanged(); return this; } /** * optional string content = 4; */ public Builder setContentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; content_ = value; onChanged(); return this; } // optional bytes data = 5; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes data = 5; */ public boolean hasData() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional bytes data = 5; */ public com.google.protobuf.ByteString getData() { return data_; } /** * optional bytes data = 5; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; data_ = value; onChanged(); return this; } /** * optional bytes data = 5; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000010); data_ = getDefaultInstance().getData(); onChanged(); return this; } // optional int32 mediaType = 6; private int mediaType_ ; /** * optional int32 mediaType = 6; */ public boolean hasMediaType() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 mediaType = 6; */ public int getMediaType() { return mediaType_; } /** * optional int32 mediaType = 6; */ public Builder setMediaType(int value) { bitField0_ |= 0x00000020; mediaType_ = value; onChanged(); return this; } /** * optional int32 mediaType = 6; */ public Builder clearMediaType() { bitField0_ = (bitField0_ & ~0x00000020); mediaType_ = 0; onChanged(); return this; } // optional string remoteMediaUrl = 7; private java.lang.Object remoteMediaUrl_ = ""; /** * optional string remoteMediaUrl = 7; */ public boolean hasRemoteMediaUrl() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string remoteMediaUrl = 7; */ public java.lang.String getRemoteMediaUrl() { java.lang.Object ref = remoteMediaUrl_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); remoteMediaUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string remoteMediaUrl = 7; */ public com.google.protobuf.ByteString getRemoteMediaUrlBytes() { java.lang.Object ref = remoteMediaUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); remoteMediaUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string remoteMediaUrl = 7; */ public Builder setRemoteMediaUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; remoteMediaUrl_ = value; onChanged(); return this; } /** * optional string remoteMediaUrl = 7; */ public Builder clearRemoteMediaUrl() { bitField0_ = (bitField0_ & ~0x00000040); remoteMediaUrl_ = getDefaultInstance().getRemoteMediaUrl(); onChanged(); return this; } /** * optional string remoteMediaUrl = 7; */ public Builder setRemoteMediaUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; remoteMediaUrl_ = value; onChanged(); return this; } // optional int32 persist_flag = 8; private int persistFlag_ ; /** * optional int32 persist_flag = 8; */ public boolean hasPersistFlag() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int32 persist_flag = 8; */ public int getPersistFlag() { return persistFlag_; } /** * optional int32 persist_flag = 8; */ public Builder setPersistFlag(int value) { bitField0_ |= 0x00000080; persistFlag_ = value; onChanged(); return this; } /** * optional int32 persist_flag = 8; */ public Builder clearPersistFlag() { bitField0_ = (bitField0_ & ~0x00000080); persistFlag_ = 0; onChanged(); return this; } // optional int32 expire_duration = 9; private int expireDuration_ ; /** * optional int32 expire_duration = 9; */ public boolean hasExpireDuration() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional int32 expire_duration = 9; */ public int getExpireDuration() { return expireDuration_; } /** * optional int32 expire_duration = 9; */ public Builder setExpireDuration(int value) { bitField0_ |= 0x00000100; expireDuration_ = value; onChanged(); return this; } /** * optional int32 expire_duration = 9; */ public Builder clearExpireDuration() { bitField0_ = (bitField0_ & ~0x00000100); expireDuration_ = 0; onChanged(); return this; } // optional int32 mentioned_type = 10; private int mentionedType_ ; /** * optional int32 mentioned_type = 10; */ public boolean hasMentionedType() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int32 mentioned_type = 10; */ public int getMentionedType() { return mentionedType_; } /** * optional int32 mentioned_type = 10; */ public Builder setMentionedType(int value) { bitField0_ |= 0x00000200; mentionedType_ = value; onChanged(); return this; } /** * optional int32 mentioned_type = 10; */ public Builder clearMentionedType() { bitField0_ = (bitField0_ & ~0x00000200); mentionedType_ = 0; onChanged(); return this; } // repeated string mentioned_target = 11; private com.google.protobuf.LazyStringList mentionedTarget_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMentionedTargetIsMutable() { if (!((bitField0_ & 0x00000400) == 0x00000400)) { mentionedTarget_ = new com.google.protobuf.LazyStringArrayList(mentionedTarget_); bitField0_ |= 0x00000400; } } /** * repeated string mentioned_target = 11; */ public java.util.List getMentionedTargetList() { return java.util.Collections.unmodifiableList(mentionedTarget_); } /** * repeated string mentioned_target = 11; */ public int getMentionedTargetCount() { return mentionedTarget_.size(); } /** * repeated string mentioned_target = 11; */ public java.lang.String getMentionedTarget(int index) { return mentionedTarget_.get(index); } /** * repeated string mentioned_target = 11; */ public com.google.protobuf.ByteString getMentionedTargetBytes(int index) { return mentionedTarget_.getByteString(index); } /** * repeated string mentioned_target = 11; */ public Builder setMentionedTarget( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMentionedTargetIsMutable(); mentionedTarget_.set(index, value); onChanged(); return this; } /** * repeated string mentioned_target = 11; */ public Builder addMentionedTarget( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMentionedTargetIsMutable(); mentionedTarget_.add(value); onChanged(); return this; } /** * repeated string mentioned_target = 11; */ public Builder addAllMentionedTarget( java.lang.Iterable values) { ensureMentionedTargetIsMutable(); super.addAll(values, mentionedTarget_); onChanged(); return this; } /** * repeated string mentioned_target = 11; */ public Builder clearMentionedTarget() { mentionedTarget_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** * repeated string mentioned_target = 11; */ public Builder addMentionedTargetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureMentionedTargetIsMutable(); mentionedTarget_.add(value); onChanged(); return this; } // optional string extra = 12; private java.lang.Object extra_ = ""; /** * optional string extra = 12; */ public boolean hasExtra() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional string extra = 12; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); extra_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string extra = 12; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string extra = 12; */ public Builder setExtra( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; extra_ = value; onChanged(); return this; } /** * optional string extra = 12; */ public Builder clearExtra() { bitField0_ = (bitField0_ & ~0x00000800); extra_ = getDefaultInstance().getExtra(); onChanged(); return this; } /** * optional string extra = 12; */ public Builder setExtraBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; extra_ = value; onChanged(); return this; } // optional string push_data = 13; private java.lang.Object pushData_ = ""; /** * optional string push_data = 13; */ public boolean hasPushData() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional string push_data = 13; */ public java.lang.String getPushData() { java.lang.Object ref = pushData_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); pushData_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string push_data = 13; */ public com.google.protobuf.ByteString getPushDataBytes() { java.lang.Object ref = pushData_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pushData_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string push_data = 13; */ public Builder setPushData( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00001000; pushData_ = value; onChanged(); return this; } /** * optional string push_data = 13; */ public Builder clearPushData() { bitField0_ = (bitField0_ & ~0x00001000); pushData_ = getDefaultInstance().getPushData(); onChanged(); return this; } /** * optional string push_data = 13; */ public Builder setPushDataBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00001000; pushData_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:MessageContent) } static { defaultInstance = new MessageContent(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:MessageContent) } public interface AddGroupMemberRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string group_id = 1; /** * required string group_id = 1; */ boolean hasGroupId(); /** * required string group_id = 1; */ java.lang.String getGroupId(); /** * required string group_id = 1; */ com.google.protobuf.ByteString getGroupIdBytes(); // repeated .GroupMember added_member = 2; /** * repeated .GroupMember added_member = 2; */ java.util.List getAddedMemberList(); /** * repeated .GroupMember added_member = 2; */ cn.wildfirechat.proto.WFCMessage.GroupMember getAddedMember(int index); /** * repeated .GroupMember added_member = 2; */ int getAddedMemberCount(); /** * repeated .GroupMember added_member = 2; */ java.util.List getAddedMemberOrBuilderList(); /** * repeated .GroupMember added_member = 2; */ cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder getAddedMemberOrBuilder( int index); // repeated int32 to_line = 3; /** * repeated int32 to_line = 3; */ java.util.List getToLineList(); /** * repeated int32 to_line = 3; */ int getToLineCount(); /** * repeated int32 to_line = 3; */ int getToLine(int index); // optional .MessageContent notify_content = 4; /** * optional .MessageContent notify_content = 4; */ boolean hasNotifyContent(); /** * optional .MessageContent notify_content = 4; */ cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent(); /** * optional .MessageContent notify_content = 4; */ cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder(); // optional string extra = 5; /** * optional string extra = 5; */ boolean hasExtra(); /** * optional string extra = 5; */ java.lang.String getExtra(); /** * optional string extra = 5; */ com.google.protobuf.ByteString getExtraBytes(); } /** * Protobuf type {@code AddGroupMemberRequest} */ public static final class AddGroupMemberRequest extends com.google.protobuf.GeneratedMessage implements AddGroupMemberRequestOrBuilder { // Use AddGroupMemberRequest.newBuilder() to construct. private AddGroupMemberRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AddGroupMemberRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AddGroupMemberRequest defaultInstance; public static AddGroupMemberRequest getDefaultInstance() { return defaultInstance; } public AddGroupMemberRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AddGroupMemberRequest( 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; groupId_ = input.readBytes(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { addedMember_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } addedMember_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.GroupMember.PARSER, extensionRegistry)); break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } toLine_.add(input.readInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { toLine_.add(input.readInt32()); } input.popLimit(limit); break; } case 34: { cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = notifyContent_.toBuilder(); } notifyContent_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(notifyContent_); notifyContent_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 42: { bitField0_ |= 0x00000004; extra_ = 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 { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { addedMember_ = java.util.Collections.unmodifiableList(addedMember_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_AddGroupMemberRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_AddGroupMemberRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest.class, cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AddGroupMemberRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AddGroupMemberRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string group_id = 1; public static final int GROUP_ID_FIELD_NUMBER = 1; private java.lang.Object groupId_; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; 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()) { groupId_ = s; } return s; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated .GroupMember added_member = 2; public static final int ADDED_MEMBER_FIELD_NUMBER = 2; private java.util.List addedMember_; /** * repeated .GroupMember added_member = 2; */ public java.util.List getAddedMemberList() { return addedMember_; } /** * repeated .GroupMember added_member = 2; */ public java.util.List getAddedMemberOrBuilderList() { return addedMember_; } /** * repeated .GroupMember added_member = 2; */ public int getAddedMemberCount() { return addedMember_.size(); } /** * repeated .GroupMember added_member = 2; */ public cn.wildfirechat.proto.WFCMessage.GroupMember getAddedMember(int index) { return addedMember_.get(index); } /** * repeated .GroupMember added_member = 2; */ public cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder getAddedMemberOrBuilder( int index) { return addedMember_.get(index); } // repeated int32 to_line = 3; public static final int TO_LINE_FIELD_NUMBER = 3; private java.util.List toLine_; /** * repeated int32 to_line = 3; */ public java.util.List getToLineList() { return toLine_; } /** * repeated int32 to_line = 3; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 3; */ public int getToLine(int index) { return toLine_.get(index); } // optional .MessageContent notify_content = 4; public static final int NOTIFY_CONTENT_FIELD_NUMBER = 4; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_; /** * optional .MessageContent notify_content = 4; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { return notifyContent_; } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { return notifyContent_; } // optional string extra = 5; public static final int EXTRA_FIELD_NUMBER = 5; private java.lang.Object extra_; /** * optional string extra = 5; */ public boolean hasExtra() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string extra = 5; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; 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()) { extra_ = s; } return s; } } /** * optional string extra = 5; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { groupId_ = ""; addedMember_ = java.util.Collections.emptyList(); toLine_ = java.util.Collections.emptyList(); notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); extra_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasGroupId()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getAddedMemberCount(); i++) { if (!getAddedMember(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getGroupIdBytes()); } for (int i = 0; i < addedMember_.size(); i++) { output.writeMessage(2, addedMember_.get(i)); } for (int i = 0; i < toLine_.size(); i++) { output.writeInt32(3, toLine_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(4, notifyContent_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(5, getExtraBytes()); } 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, getGroupIdBytes()); } for (int i = 0; i < addedMember_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, addedMember_.get(i)); } { int dataSize = 0; for (int i = 0; i < toLine_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(toLine_.get(i)); } size += dataSize; size += 1 * getToLineList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, notifyContent_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getExtraBytes()); } 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 cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest 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(cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest 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 AddGroupMemberRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_AddGroupMemberRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_AddGroupMemberRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest.class, cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAddedMemberFieldBuilder(); getNotifyContentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); groupId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (addedMemberBuilder_ == null) { addedMember_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { addedMemberBuilder_.clear(); } toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); extra_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_AddGroupMemberRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest build() { cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest result = new cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.groupId_ = groupId_; if (addedMemberBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { addedMember_ = java.util.Collections.unmodifiableList(addedMember_); bitField0_ = (bitField0_ & ~0x00000002); } result.addedMember_ = addedMember_; } else { result.addedMember_ = addedMemberBuilder_.build(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); bitField0_ = (bitField0_ & ~0x00000004); } result.toLine_ = toLine_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000002; } if (notifyContentBuilder_ == null) { result.notifyContent_ = notifyContent_; } else { result.notifyContent_ = notifyContentBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000004; } result.extra_ = extra_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest.getDefaultInstance()) return this; if (other.hasGroupId()) { bitField0_ |= 0x00000001; groupId_ = other.groupId_; onChanged(); } if (addedMemberBuilder_ == null) { if (!other.addedMember_.isEmpty()) { if (addedMember_.isEmpty()) { addedMember_ = other.addedMember_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAddedMemberIsMutable(); addedMember_.addAll(other.addedMember_); } onChanged(); } } else { if (!other.addedMember_.isEmpty()) { if (addedMemberBuilder_.isEmpty()) { addedMemberBuilder_.dispose(); addedMemberBuilder_ = null; addedMember_ = other.addedMember_; bitField0_ = (bitField0_ & ~0x00000002); addedMemberBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAddedMemberFieldBuilder() : null; } else { addedMemberBuilder_.addAllMessages(other.addedMember_); } } } if (!other.toLine_.isEmpty()) { if (toLine_.isEmpty()) { toLine_ = other.toLine_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureToLineIsMutable(); toLine_.addAll(other.toLine_); } onChanged(); } if (other.hasNotifyContent()) { mergeNotifyContent(other.getNotifyContent()); } if (other.hasExtra()) { bitField0_ |= 0x00000010; extra_ = other.extra_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasGroupId()) { return false; } for (int i = 0; i < getAddedMemberCount(); i++) { if (!getAddedMember(i).isInitialized()) { return false; } } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.AddGroupMemberRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string group_id = 1; private java.lang.Object groupId_ = ""; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); groupId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string group_id = 1; */ public Builder setGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } /** * required string group_id = 1; */ public Builder clearGroupId() { bitField0_ = (bitField0_ & ~0x00000001); groupId_ = getDefaultInstance().getGroupId(); onChanged(); return this; } /** * required string group_id = 1; */ public Builder setGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } // repeated .GroupMember added_member = 2; private java.util.List addedMember_ = java.util.Collections.emptyList(); private void ensureAddedMemberIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { addedMember_ = new java.util.ArrayList(addedMember_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.GroupMember, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder, cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder> addedMemberBuilder_; /** * repeated .GroupMember added_member = 2; */ public java.util.List getAddedMemberList() { if (addedMemberBuilder_ == null) { return java.util.Collections.unmodifiableList(addedMember_); } else { return addedMemberBuilder_.getMessageList(); } } /** * repeated .GroupMember added_member = 2; */ public int getAddedMemberCount() { if (addedMemberBuilder_ == null) { return addedMember_.size(); } else { return addedMemberBuilder_.getCount(); } } /** * repeated .GroupMember added_member = 2; */ public cn.wildfirechat.proto.WFCMessage.GroupMember getAddedMember(int index) { if (addedMemberBuilder_ == null) { return addedMember_.get(index); } else { return addedMemberBuilder_.getMessage(index); } } /** * repeated .GroupMember added_member = 2; */ public Builder setAddedMember( int index, cn.wildfirechat.proto.WFCMessage.GroupMember value) { if (addedMemberBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddedMemberIsMutable(); addedMember_.set(index, value); onChanged(); } else { addedMemberBuilder_.setMessage(index, value); } return this; } /** * repeated .GroupMember added_member = 2; */ public Builder setAddedMember( int index, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder builderForValue) { if (addedMemberBuilder_ == null) { ensureAddedMemberIsMutable(); addedMember_.set(index, builderForValue.build()); onChanged(); } else { addedMemberBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .GroupMember added_member = 2; */ public Builder addAddedMember(cn.wildfirechat.proto.WFCMessage.GroupMember value) { if (addedMemberBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddedMemberIsMutable(); addedMember_.add(value); onChanged(); } else { addedMemberBuilder_.addMessage(value); } return this; } /** * repeated .GroupMember added_member = 2; */ public Builder addAddedMember( int index, cn.wildfirechat.proto.WFCMessage.GroupMember value) { if (addedMemberBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAddedMemberIsMutable(); addedMember_.add(index, value); onChanged(); } else { addedMemberBuilder_.addMessage(index, value); } return this; } /** * repeated .GroupMember added_member = 2; */ public Builder addAddedMember( cn.wildfirechat.proto.WFCMessage.GroupMember.Builder builderForValue) { if (addedMemberBuilder_ == null) { ensureAddedMemberIsMutable(); addedMember_.add(builderForValue.build()); onChanged(); } else { addedMemberBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .GroupMember added_member = 2; */ public Builder addAddedMember( int index, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder builderForValue) { if (addedMemberBuilder_ == null) { ensureAddedMemberIsMutable(); addedMember_.add(index, builderForValue.build()); onChanged(); } else { addedMemberBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .GroupMember added_member = 2; */ public Builder addAllAddedMember( java.lang.Iterable values) { if (addedMemberBuilder_ == null) { ensureAddedMemberIsMutable(); super.addAll(values, addedMember_); onChanged(); } else { addedMemberBuilder_.addAllMessages(values); } return this; } /** * repeated .GroupMember added_member = 2; */ public Builder clearAddedMember() { if (addedMemberBuilder_ == null) { addedMember_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { addedMemberBuilder_.clear(); } return this; } /** * repeated .GroupMember added_member = 2; */ public Builder removeAddedMember(int index) { if (addedMemberBuilder_ == null) { ensureAddedMemberIsMutable(); addedMember_.remove(index); onChanged(); } else { addedMemberBuilder_.remove(index); } return this; } /** * repeated .GroupMember added_member = 2; */ public cn.wildfirechat.proto.WFCMessage.GroupMember.Builder getAddedMemberBuilder( int index) { return getAddedMemberFieldBuilder().getBuilder(index); } /** * repeated .GroupMember added_member = 2; */ public cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder getAddedMemberOrBuilder( int index) { if (addedMemberBuilder_ == null) { return addedMember_.get(index); } else { return addedMemberBuilder_.getMessageOrBuilder(index); } } /** * repeated .GroupMember added_member = 2; */ public java.util.List getAddedMemberOrBuilderList() { if (addedMemberBuilder_ != null) { return addedMemberBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(addedMember_); } } /** * repeated .GroupMember added_member = 2; */ public cn.wildfirechat.proto.WFCMessage.GroupMember.Builder addAddedMemberBuilder() { return getAddedMemberFieldBuilder().addBuilder( cn.wildfirechat.proto.WFCMessage.GroupMember.getDefaultInstance()); } /** * repeated .GroupMember added_member = 2; */ public cn.wildfirechat.proto.WFCMessage.GroupMember.Builder addAddedMemberBuilder( int index) { return getAddedMemberFieldBuilder().addBuilder( index, cn.wildfirechat.proto.WFCMessage.GroupMember.getDefaultInstance()); } /** * repeated .GroupMember added_member = 2; */ public java.util.List getAddedMemberBuilderList() { return getAddedMemberFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.GroupMember, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder, cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder> getAddedMemberFieldBuilder() { if (addedMemberBuilder_ == null) { addedMemberBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.GroupMember, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder, cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder>( addedMember_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); addedMember_ = null; } return addedMemberBuilder_; } // repeated int32 to_line = 3; private java.util.List toLine_ = java.util.Collections.emptyList(); private void ensureToLineIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { toLine_ = new java.util.ArrayList(toLine_); bitField0_ |= 0x00000004; } } /** * repeated int32 to_line = 3; */ public java.util.List getToLineList() { return java.util.Collections.unmodifiableList(toLine_); } /** * repeated int32 to_line = 3; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 3; */ public int getToLine(int index) { return toLine_.get(index); } /** * repeated int32 to_line = 3; */ public Builder setToLine( int index, int value) { ensureToLineIsMutable(); toLine_.set(index, value); onChanged(); return this; } /** * repeated int32 to_line = 3; */ public Builder addToLine(int value) { ensureToLineIsMutable(); toLine_.add(value); onChanged(); return this; } /** * repeated int32 to_line = 3; */ public Builder addAllToLine( java.lang.Iterable values) { ensureToLineIsMutable(); super.addAll(values, toLine_); onChanged(); return this; } /** * repeated int32 to_line = 3; */ public Builder clearToLine() { toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } // optional .MessageContent notify_content = 4; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> notifyContentBuilder_; /** * optional .MessageContent notify_content = 4; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { if (notifyContentBuilder_ == null) { return notifyContent_; } else { return notifyContentBuilder_.getMessage(); } } /** * optional .MessageContent notify_content = 4; */ public Builder setNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } notifyContent_ = value; onChanged(); } else { notifyContentBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .MessageContent notify_content = 4; */ public Builder setNotifyContent( cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) { if (notifyContentBuilder_ == null) { notifyContent_ = builderForValue.build(); onChanged(); } else { notifyContentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .MessageContent notify_content = 4; */ public Builder mergeNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && notifyContent_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(notifyContent_).mergeFrom(value).buildPartial(); } else { notifyContent_ = value; } onChanged(); } else { notifyContentBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .MessageContent notify_content = 4; */ public Builder clearNotifyContent() { if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); onChanged(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getNotifyContentBuilder() { bitField0_ |= 0x00000008; onChanged(); return getNotifyContentFieldBuilder().getBuilder(); } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { if (notifyContentBuilder_ != null) { return notifyContentBuilder_.getMessageOrBuilder(); } else { return notifyContent_; } } /** * optional .MessageContent notify_content = 4; */ private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> getNotifyContentFieldBuilder() { if (notifyContentBuilder_ == null) { notifyContentBuilder_ = new com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>( notifyContent_, getParentForChildren(), isClean()); notifyContent_ = null; } return notifyContentBuilder_; } // optional string extra = 5; private java.lang.Object extra_ = ""; /** * optional string extra = 5; */ public boolean hasExtra() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string extra = 5; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); extra_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string extra = 5; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string extra = 5; */ public Builder setExtra( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; extra_ = value; onChanged(); return this; } /** * optional string extra = 5; */ public Builder clearExtra() { bitField0_ = (bitField0_ & ~0x00000010); extra_ = getDefaultInstance().getExtra(); onChanged(); return this; } /** * optional string extra = 5; */ public Builder setExtraBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; extra_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:AddGroupMemberRequest) } static { defaultInstance = new AddGroupMemberRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:AddGroupMemberRequest) } public interface CreateGroupRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .Group group = 1; /** * required .Group group = 1; */ boolean hasGroup(); /** * required .Group group = 1; */ cn.wildfirechat.proto.WFCMessage.Group getGroup(); /** * required .Group group = 1; */ cn.wildfirechat.proto.WFCMessage.GroupOrBuilder getGroupOrBuilder(); // repeated int32 to_line = 2; /** * repeated int32 to_line = 2; */ java.util.List getToLineList(); /** * repeated int32 to_line = 2; */ int getToLineCount(); /** * repeated int32 to_line = 2; */ int getToLine(int index); // optional .MessageContent notify_content = 3; /** * optional .MessageContent notify_content = 3; */ boolean hasNotifyContent(); /** * optional .MessageContent notify_content = 3; */ cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent(); /** * optional .MessageContent notify_content = 3; */ cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder(); // optional string member_extra = 4; /** * optional string member_extra = 4; */ boolean hasMemberExtra(); /** * optional string member_extra = 4; */ java.lang.String getMemberExtra(); /** * optional string member_extra = 4; */ com.google.protobuf.ByteString getMemberExtraBytes(); } /** * Protobuf type {@code CreateGroupRequest} */ public static final class CreateGroupRequest extends com.google.protobuf.GeneratedMessage implements CreateGroupRequestOrBuilder { // Use CreateGroupRequest.newBuilder() to construct. private CreateGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CreateGroupRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CreateGroupRequest defaultInstance; public static CreateGroupRequest getDefaultInstance() { return defaultInstance; } public CreateGroupRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateGroupRequest( 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: { cn.wildfirechat.proto.WFCMessage.Group.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = group_.toBuilder(); } group_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.Group.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(group_); group_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } toLine_.add(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { toLine_.add(input.readInt32()); } input.popLimit(limit); break; } case 26: { cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = notifyContent_.toBuilder(); } notifyContent_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(notifyContent_); notifyContent_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 34: { bitField0_ |= 0x00000004; memberExtra_ = 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 { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_CreateGroupRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_CreateGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.CreateGroupRequest.class, cn.wildfirechat.proto.WFCMessage.CreateGroupRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CreateGroupRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateGroupRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required .Group group = 1; public static final int GROUP_FIELD_NUMBER = 1; private cn.wildfirechat.proto.WFCMessage.Group group_; /** * required .Group group = 1; */ public boolean hasGroup() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .Group group = 1; */ public cn.wildfirechat.proto.WFCMessage.Group getGroup() { return group_; } /** * required .Group group = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupOrBuilder getGroupOrBuilder() { return group_; } // repeated int32 to_line = 2; public static final int TO_LINE_FIELD_NUMBER = 2; private java.util.List toLine_; /** * repeated int32 to_line = 2; */ public java.util.List getToLineList() { return toLine_; } /** * repeated int32 to_line = 2; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 2; */ public int getToLine(int index) { return toLine_.get(index); } // optional .MessageContent notify_content = 3; public static final int NOTIFY_CONTENT_FIELD_NUMBER = 3; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_; /** * optional .MessageContent notify_content = 3; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { return notifyContent_; } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { return notifyContent_; } // optional string member_extra = 4; public static final int MEMBER_EXTRA_FIELD_NUMBER = 4; private java.lang.Object memberExtra_; /** * optional string member_extra = 4; */ public boolean hasMemberExtra() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string member_extra = 4; */ public java.lang.String getMemberExtra() { java.lang.Object ref = memberExtra_; 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()) { memberExtra_ = s; } return s; } } /** * optional string member_extra = 4; */ public com.google.protobuf.ByteString getMemberExtraBytes() { java.lang.Object ref = memberExtra_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); memberExtra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { group_ = cn.wildfirechat.proto.WFCMessage.Group.getDefaultInstance(); toLine_ = java.util.Collections.emptyList(); notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); memberExtra_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasGroup()) { memoizedIsInitialized = 0; return false; } if (!getGroup().isInitialized()) { memoizedIsInitialized = 0; return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, group_); } for (int i = 0; i < toLine_.size(); i++) { output.writeInt32(2, toLine_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(3, notifyContent_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(4, getMemberExtraBytes()); } 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, group_); } { int dataSize = 0; for (int i = 0; i < toLine_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(toLine_.get(i)); } size += dataSize; size += 1 * getToLineList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, notifyContent_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getMemberExtraBytes()); } 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 cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.CreateGroupRequest 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(cn.wildfirechat.proto.WFCMessage.CreateGroupRequest 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 CreateGroupRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.CreateGroupRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_CreateGroupRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_CreateGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.CreateGroupRequest.class, cn.wildfirechat.proto.WFCMessage.CreateGroupRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.CreateGroupRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getGroupFieldBuilder(); getNotifyContentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (groupBuilder_ == null) { group_ = cn.wildfirechat.proto.WFCMessage.Group.getDefaultInstance(); } else { groupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); memberExtra_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_CreateGroupRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.CreateGroupRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.CreateGroupRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.CreateGroupRequest build() { cn.wildfirechat.proto.WFCMessage.CreateGroupRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.CreateGroupRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.CreateGroupRequest result = new cn.wildfirechat.proto.WFCMessage.CreateGroupRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (groupBuilder_ == null) { result.group_ = group_; } else { result.group_ = groupBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); bitField0_ = (bitField0_ & ~0x00000002); } result.toLine_ = toLine_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } if (notifyContentBuilder_ == null) { result.notifyContent_ = notifyContent_; } else { result.notifyContent_ = notifyContentBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.memberExtra_ = memberExtra_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.CreateGroupRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.CreateGroupRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.CreateGroupRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.CreateGroupRequest.getDefaultInstance()) return this; if (other.hasGroup()) { mergeGroup(other.getGroup()); } if (!other.toLine_.isEmpty()) { if (toLine_.isEmpty()) { toLine_ = other.toLine_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureToLineIsMutable(); toLine_.addAll(other.toLine_); } onChanged(); } if (other.hasNotifyContent()) { mergeNotifyContent(other.getNotifyContent()); } if (other.hasMemberExtra()) { bitField0_ |= 0x00000008; memberExtra_ = other.memberExtra_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasGroup()) { return false; } if (!getGroup().isInitialized()) { return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.CreateGroupRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.CreateGroupRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .Group group = 1; private cn.wildfirechat.proto.WFCMessage.Group group_ = cn.wildfirechat.proto.WFCMessage.Group.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.Group, cn.wildfirechat.proto.WFCMessage.Group.Builder, cn.wildfirechat.proto.WFCMessage.GroupOrBuilder> groupBuilder_; /** * required .Group group = 1; */ public boolean hasGroup() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .Group group = 1; */ public cn.wildfirechat.proto.WFCMessage.Group getGroup() { if (groupBuilder_ == null) { return group_; } else { return groupBuilder_.getMessage(); } } /** * required .Group group = 1; */ public Builder setGroup(cn.wildfirechat.proto.WFCMessage.Group value) { if (groupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } group_ = value; onChanged(); } else { groupBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .Group group = 1; */ public Builder setGroup( cn.wildfirechat.proto.WFCMessage.Group.Builder builderForValue) { if (groupBuilder_ == null) { group_ = builderForValue.build(); onChanged(); } else { groupBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .Group group = 1; */ public Builder mergeGroup(cn.wildfirechat.proto.WFCMessage.Group value) { if (groupBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && group_ != cn.wildfirechat.proto.WFCMessage.Group.getDefaultInstance()) { group_ = cn.wildfirechat.proto.WFCMessage.Group.newBuilder(group_).mergeFrom(value).buildPartial(); } else { group_ = value; } onChanged(); } else { groupBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .Group group = 1; */ public Builder clearGroup() { if (groupBuilder_ == null) { group_ = cn.wildfirechat.proto.WFCMessage.Group.getDefaultInstance(); onChanged(); } else { groupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .Group group = 1; */ public cn.wildfirechat.proto.WFCMessage.Group.Builder getGroupBuilder() { bitField0_ |= 0x00000001; onChanged(); return getGroupFieldBuilder().getBuilder(); } /** * required .Group group = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupOrBuilder getGroupOrBuilder() { if (groupBuilder_ != null) { return groupBuilder_.getMessageOrBuilder(); } else { return group_; } } /** * required .Group group = 1; */ private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.Group, cn.wildfirechat.proto.WFCMessage.Group.Builder, cn.wildfirechat.proto.WFCMessage.GroupOrBuilder> getGroupFieldBuilder() { if (groupBuilder_ == null) { groupBuilder_ = new com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.Group, cn.wildfirechat.proto.WFCMessage.Group.Builder, cn.wildfirechat.proto.WFCMessage.GroupOrBuilder>( group_, getParentForChildren(), isClean()); group_ = null; } return groupBuilder_; } // repeated int32 to_line = 2; private java.util.List toLine_ = java.util.Collections.emptyList(); private void ensureToLineIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { toLine_ = new java.util.ArrayList(toLine_); bitField0_ |= 0x00000002; } } /** * repeated int32 to_line = 2; */ public java.util.List getToLineList() { return java.util.Collections.unmodifiableList(toLine_); } /** * repeated int32 to_line = 2; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 2; */ public int getToLine(int index) { return toLine_.get(index); } /** * repeated int32 to_line = 2; */ public Builder setToLine( int index, int value) { ensureToLineIsMutable(); toLine_.set(index, value); onChanged(); return this; } /** * repeated int32 to_line = 2; */ public Builder addToLine(int value) { ensureToLineIsMutable(); toLine_.add(value); onChanged(); return this; } /** * repeated int32 to_line = 2; */ public Builder addAllToLine( java.lang.Iterable values) { ensureToLineIsMutable(); super.addAll(values, toLine_); onChanged(); return this; } /** * repeated int32 to_line = 2; */ public Builder clearToLine() { toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // optional .MessageContent notify_content = 3; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> notifyContentBuilder_; /** * optional .MessageContent notify_content = 3; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { if (notifyContentBuilder_ == null) { return notifyContent_; } else { return notifyContentBuilder_.getMessage(); } } /** * optional .MessageContent notify_content = 3; */ public Builder setNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } notifyContent_ = value; onChanged(); } else { notifyContentBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .MessageContent notify_content = 3; */ public Builder setNotifyContent( cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) { if (notifyContentBuilder_ == null) { notifyContent_ = builderForValue.build(); onChanged(); } else { notifyContentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .MessageContent notify_content = 3; */ public Builder mergeNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && notifyContent_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(notifyContent_).mergeFrom(value).buildPartial(); } else { notifyContent_ = value; } onChanged(); } else { notifyContentBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .MessageContent notify_content = 3; */ public Builder clearNotifyContent() { if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); onChanged(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getNotifyContentBuilder() { bitField0_ |= 0x00000004; onChanged(); return getNotifyContentFieldBuilder().getBuilder(); } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { if (notifyContentBuilder_ != null) { return notifyContentBuilder_.getMessageOrBuilder(); } else { return notifyContent_; } } /** * optional .MessageContent notify_content = 3; */ private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> getNotifyContentFieldBuilder() { if (notifyContentBuilder_ == null) { notifyContentBuilder_ = new com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>( notifyContent_, getParentForChildren(), isClean()); notifyContent_ = null; } return notifyContentBuilder_; } // optional string member_extra = 4; private java.lang.Object memberExtra_ = ""; /** * optional string member_extra = 4; */ public boolean hasMemberExtra() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string member_extra = 4; */ public java.lang.String getMemberExtra() { java.lang.Object ref = memberExtra_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); memberExtra_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string member_extra = 4; */ public com.google.protobuf.ByteString getMemberExtraBytes() { java.lang.Object ref = memberExtra_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); memberExtra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string member_extra = 4; */ public Builder setMemberExtra( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; memberExtra_ = value; onChanged(); return this; } /** * optional string member_extra = 4; */ public Builder clearMemberExtra() { bitField0_ = (bitField0_ & ~0x00000008); memberExtra_ = getDefaultInstance().getMemberExtra(); onChanged(); return this; } /** * optional string member_extra = 4; */ public Builder setMemberExtraBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; memberExtra_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:CreateGroupRequest) } static { defaultInstance = new CreateGroupRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:CreateGroupRequest) } public interface DismissGroupRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string group_id = 1; /** * required string group_id = 1; */ boolean hasGroupId(); /** * required string group_id = 1; */ java.lang.String getGroupId(); /** * required string group_id = 1; */ com.google.protobuf.ByteString getGroupIdBytes(); // repeated int32 to_line = 2; /** * repeated int32 to_line = 2; */ java.util.List getToLineList(); /** * repeated int32 to_line = 2; */ int getToLineCount(); /** * repeated int32 to_line = 2; */ int getToLine(int index); // optional .MessageContent notify_content = 3; /** * optional .MessageContent notify_content = 3; */ boolean hasNotifyContent(); /** * optional .MessageContent notify_content = 3; */ cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent(); /** * optional .MessageContent notify_content = 3; */ cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder(); } /** * Protobuf type {@code DismissGroupRequest} */ public static final class DismissGroupRequest extends com.google.protobuf.GeneratedMessage implements DismissGroupRequestOrBuilder { // Use DismissGroupRequest.newBuilder() to construct. private DismissGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private DismissGroupRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final DismissGroupRequest defaultInstance; public static DismissGroupRequest getDefaultInstance() { return defaultInstance; } public DismissGroupRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DismissGroupRequest( 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; groupId_ = input.readBytes(); break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } toLine_.add(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { toLine_.add(input.readInt32()); } input.popLimit(limit); break; } case 26: { cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = notifyContent_.toBuilder(); } notifyContent_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(notifyContent_); notifyContent_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_DismissGroupRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_DismissGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.DismissGroupRequest.class, cn.wildfirechat.proto.WFCMessage.DismissGroupRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DismissGroupRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DismissGroupRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string group_id = 1; public static final int GROUP_ID_FIELD_NUMBER = 1; private java.lang.Object groupId_; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; 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()) { groupId_ = s; } return s; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated int32 to_line = 2; public static final int TO_LINE_FIELD_NUMBER = 2; private java.util.List toLine_; /** * repeated int32 to_line = 2; */ public java.util.List getToLineList() { return toLine_; } /** * repeated int32 to_line = 2; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 2; */ public int getToLine(int index) { return toLine_.get(index); } // optional .MessageContent notify_content = 3; public static final int NOTIFY_CONTENT_FIELD_NUMBER = 3; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_; /** * optional .MessageContent notify_content = 3; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { return notifyContent_; } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { return notifyContent_; } private void initFields() { groupId_ = ""; toLine_ = java.util.Collections.emptyList(); notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasGroupId()) { memoizedIsInitialized = 0; return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getGroupIdBytes()); } for (int i = 0; i < toLine_.size(); i++) { output.writeInt32(2, toLine_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(3, notifyContent_); } 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, getGroupIdBytes()); } { int dataSize = 0; for (int i = 0; i < toLine_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(toLine_.get(i)); } size += dataSize; size += 1 * getToLineList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, notifyContent_); } 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 cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.DismissGroupRequest 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(cn.wildfirechat.proto.WFCMessage.DismissGroupRequest 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 DismissGroupRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.DismissGroupRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_DismissGroupRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_DismissGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.DismissGroupRequest.class, cn.wildfirechat.proto.WFCMessage.DismissGroupRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.DismissGroupRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getNotifyContentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); groupId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_DismissGroupRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.DismissGroupRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.DismissGroupRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.DismissGroupRequest build() { cn.wildfirechat.proto.WFCMessage.DismissGroupRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.DismissGroupRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.DismissGroupRequest result = new cn.wildfirechat.proto.WFCMessage.DismissGroupRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.groupId_ = groupId_; if (((bitField0_ & 0x00000002) == 0x00000002)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); bitField0_ = (bitField0_ & ~0x00000002); } result.toLine_ = toLine_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } if (notifyContentBuilder_ == null) { result.notifyContent_ = notifyContent_; } else { result.notifyContent_ = notifyContentBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.DismissGroupRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.DismissGroupRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.DismissGroupRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.DismissGroupRequest.getDefaultInstance()) return this; if (other.hasGroupId()) { bitField0_ |= 0x00000001; groupId_ = other.groupId_; onChanged(); } if (!other.toLine_.isEmpty()) { if (toLine_.isEmpty()) { toLine_ = other.toLine_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureToLineIsMutable(); toLine_.addAll(other.toLine_); } onChanged(); } if (other.hasNotifyContent()) { mergeNotifyContent(other.getNotifyContent()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasGroupId()) { return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.DismissGroupRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.DismissGroupRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string group_id = 1; private java.lang.Object groupId_ = ""; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); groupId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string group_id = 1; */ public Builder setGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } /** * required string group_id = 1; */ public Builder clearGroupId() { bitField0_ = (bitField0_ & ~0x00000001); groupId_ = getDefaultInstance().getGroupId(); onChanged(); return this; } /** * required string group_id = 1; */ public Builder setGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } // repeated int32 to_line = 2; private java.util.List toLine_ = java.util.Collections.emptyList(); private void ensureToLineIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { toLine_ = new java.util.ArrayList(toLine_); bitField0_ |= 0x00000002; } } /** * repeated int32 to_line = 2; */ public java.util.List getToLineList() { return java.util.Collections.unmodifiableList(toLine_); } /** * repeated int32 to_line = 2; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 2; */ public int getToLine(int index) { return toLine_.get(index); } /** * repeated int32 to_line = 2; */ public Builder setToLine( int index, int value) { ensureToLineIsMutable(); toLine_.set(index, value); onChanged(); return this; } /** * repeated int32 to_line = 2; */ public Builder addToLine(int value) { ensureToLineIsMutable(); toLine_.add(value); onChanged(); return this; } /** * repeated int32 to_line = 2; */ public Builder addAllToLine( java.lang.Iterable values) { ensureToLineIsMutable(); super.addAll(values, toLine_); onChanged(); return this; } /** * repeated int32 to_line = 2; */ public Builder clearToLine() { toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // optional .MessageContent notify_content = 3; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> notifyContentBuilder_; /** * optional .MessageContent notify_content = 3; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { if (notifyContentBuilder_ == null) { return notifyContent_; } else { return notifyContentBuilder_.getMessage(); } } /** * optional .MessageContent notify_content = 3; */ public Builder setNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } notifyContent_ = value; onChanged(); } else { notifyContentBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .MessageContent notify_content = 3; */ public Builder setNotifyContent( cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) { if (notifyContentBuilder_ == null) { notifyContent_ = builderForValue.build(); onChanged(); } else { notifyContentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .MessageContent notify_content = 3; */ public Builder mergeNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && notifyContent_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(notifyContent_).mergeFrom(value).buildPartial(); } else { notifyContent_ = value; } onChanged(); } else { notifyContentBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .MessageContent notify_content = 3; */ public Builder clearNotifyContent() { if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); onChanged(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getNotifyContentBuilder() { bitField0_ |= 0x00000004; onChanged(); return getNotifyContentFieldBuilder().getBuilder(); } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { if (notifyContentBuilder_ != null) { return notifyContentBuilder_.getMessageOrBuilder(); } else { return notifyContent_; } } /** * optional .MessageContent notify_content = 3; */ private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> getNotifyContentFieldBuilder() { if (notifyContentBuilder_ == null) { notifyContentBuilder_ = new com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>( notifyContent_, getParentForChildren(), isClean()); notifyContent_ = null; } return notifyContentBuilder_; } // @@protoc_insertion_point(builder_scope:DismissGroupRequest) } static { defaultInstance = new DismissGroupRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:DismissGroupRequest) } public interface FriendRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string from_uid = 1; /** * optional string from_uid = 1; */ boolean hasFromUid(); /** * optional string from_uid = 1; */ java.lang.String getFromUid(); /** * optional string from_uid = 1; */ com.google.protobuf.ByteString getFromUidBytes(); // required string to_uid = 2; /** * required string to_uid = 2; */ boolean hasToUid(); /** * required string to_uid = 2; */ java.lang.String getToUid(); /** * required string to_uid = 2; */ com.google.protobuf.ByteString getToUidBytes(); // required string reason = 3; /** * required string reason = 3; */ boolean hasReason(); /** * required string reason = 3; */ java.lang.String getReason(); /** * required string reason = 3; */ com.google.protobuf.ByteString getReasonBytes(); // optional int32 status = 4; /** * optional int32 status = 4; */ boolean hasStatus(); /** * optional int32 status = 4; */ int getStatus(); // optional int64 update_dt = 5; /** * optional int64 update_dt = 5; */ boolean hasUpdateDt(); /** * optional int64 update_dt = 5; */ long getUpdateDt(); // optional bool from_read_status = 6; /** * optional bool from_read_status = 6; */ boolean hasFromReadStatus(); /** * optional bool from_read_status = 6; */ boolean getFromReadStatus(); // optional bool to_read_status = 7; /** * optional bool to_read_status = 7; */ boolean hasToReadStatus(); /** * optional bool to_read_status = 7; */ boolean getToReadStatus(); // optional string extra = 8; /** * optional string extra = 8; */ boolean hasExtra(); /** * optional string extra = 8; */ java.lang.String getExtra(); /** * optional string extra = 8; */ com.google.protobuf.ByteString getExtraBytes(); } /** * Protobuf type {@code FriendRequest} */ public static final class FriendRequest extends com.google.protobuf.GeneratedMessage implements FriendRequestOrBuilder { // Use FriendRequest.newBuilder() to construct. private FriendRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private FriendRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FriendRequest defaultInstance; public static FriendRequest getDefaultInstance() { return defaultInstance; } public FriendRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FriendRequest( 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; fromUid_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; toUid_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; reason_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; status_ = input.readInt32(); break; } case 40: { bitField0_ |= 0x00000010; updateDt_ = input.readInt64(); break; } case 48: { bitField0_ |= 0x00000020; fromReadStatus_ = input.readBool(); break; } case 56: { bitField0_ |= 0x00000040; toReadStatus_ = input.readBool(); break; } case 66: { bitField0_ |= 0x00000080; extra_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_FriendRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_FriendRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.FriendRequest.class, cn.wildfirechat.proto.WFCMessage.FriendRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FriendRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FriendRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string from_uid = 1; public static final int FROM_UID_FIELD_NUMBER = 1; private java.lang.Object fromUid_; /** * optional string from_uid = 1; */ public boolean hasFromUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string from_uid = 1; */ public java.lang.String getFromUid() { java.lang.Object ref = fromUid_; 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()) { fromUid_ = s; } return s; } } /** * optional string from_uid = 1; */ public com.google.protobuf.ByteString getFromUidBytes() { java.lang.Object ref = fromUid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fromUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string to_uid = 2; public static final int TO_UID_FIELD_NUMBER = 2; private java.lang.Object toUid_; /** * required string to_uid = 2; */ public boolean hasToUid() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string to_uid = 2; */ public java.lang.String getToUid() { java.lang.Object ref = toUid_; 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()) { toUid_ = s; } return s; } } /** * required string to_uid = 2; */ public com.google.protobuf.ByteString getToUidBytes() { java.lang.Object ref = toUid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); toUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string reason = 3; public static final int REASON_FIELD_NUMBER = 3; private java.lang.Object reason_; /** * required string reason = 3; */ public boolean hasReason() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string reason = 3; */ public java.lang.String getReason() { java.lang.Object ref = reason_; 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()) { reason_ = s; } return s; } } /** * required string reason = 3; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 status = 4; public static final int STATUS_FIELD_NUMBER = 4; private int status_; /** * optional int32 status = 4; */ public boolean hasStatus() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int32 status = 4; */ public int getStatus() { return status_; } // optional int64 update_dt = 5; public static final int UPDATE_DT_FIELD_NUMBER = 5; private long updateDt_; /** * optional int64 update_dt = 5; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 update_dt = 5; */ public long getUpdateDt() { return updateDt_; } // optional bool from_read_status = 6; public static final int FROM_READ_STATUS_FIELD_NUMBER = 6; private boolean fromReadStatus_; /** * optional bool from_read_status = 6; */ public boolean hasFromReadStatus() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bool from_read_status = 6; */ public boolean getFromReadStatus() { return fromReadStatus_; } // optional bool to_read_status = 7; public static final int TO_READ_STATUS_FIELD_NUMBER = 7; private boolean toReadStatus_; /** * optional bool to_read_status = 7; */ public boolean hasToReadStatus() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bool to_read_status = 7; */ public boolean getToReadStatus() { return toReadStatus_; } // optional string extra = 8; public static final int EXTRA_FIELD_NUMBER = 8; private java.lang.Object extra_; /** * optional string extra = 8; */ public boolean hasExtra() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string extra = 8; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; 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()) { extra_ = s; } return s; } } /** * optional string extra = 8; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { fromUid_ = ""; toUid_ = ""; reason_ = ""; status_ = 0; updateDt_ = 0L; fromReadStatus_ = false; toReadStatus_ = false; extra_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasToUid()) { memoizedIsInitialized = 0; return false; } if (!hasReason()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getFromUidBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getToUidBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getReasonBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, status_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(5, updateDt_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBool(6, fromReadStatus_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(7, toReadStatus_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(8, getExtraBytes()); } 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, getFromUidBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getToUidBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getReasonBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, status_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, updateDt_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, fromReadStatus_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, toReadStatus_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, getExtraBytes()); } 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 cn.wildfirechat.proto.WFCMessage.FriendRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.FriendRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.FriendRequest 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(cn.wildfirechat.proto.WFCMessage.FriendRequest 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 FriendRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.FriendRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_FriendRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_FriendRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.FriendRequest.class, cn.wildfirechat.proto.WFCMessage.FriendRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.FriendRequest.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(); fromUid_ = ""; bitField0_ = (bitField0_ & ~0x00000001); toUid_ = ""; bitField0_ = (bitField0_ & ~0x00000002); reason_ = ""; bitField0_ = (bitField0_ & ~0x00000004); status_ = 0; bitField0_ = (bitField0_ & ~0x00000008); updateDt_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); fromReadStatus_ = false; bitField0_ = (bitField0_ & ~0x00000020); toReadStatus_ = false; bitField0_ = (bitField0_ & ~0x00000040); extra_ = ""; bitField0_ = (bitField0_ & ~0x00000080); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_FriendRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.FriendRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.FriendRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.FriendRequest build() { cn.wildfirechat.proto.WFCMessage.FriendRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.FriendRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.FriendRequest result = new cn.wildfirechat.proto.WFCMessage.FriendRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.fromUid_ = fromUid_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.toUid_ = toUid_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.reason_ = reason_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.status_ = status_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.updateDt_ = updateDt_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.fromReadStatus_ = fromReadStatus_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.toReadStatus_ = toReadStatus_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.extra_ = extra_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.FriendRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.FriendRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.FriendRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.FriendRequest.getDefaultInstance()) return this; if (other.hasFromUid()) { bitField0_ |= 0x00000001; fromUid_ = other.fromUid_; onChanged(); } if (other.hasToUid()) { bitField0_ |= 0x00000002; toUid_ = other.toUid_; onChanged(); } if (other.hasReason()) { bitField0_ |= 0x00000004; reason_ = other.reason_; onChanged(); } if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasUpdateDt()) { setUpdateDt(other.getUpdateDt()); } if (other.hasFromReadStatus()) { setFromReadStatus(other.getFromReadStatus()); } if (other.hasToReadStatus()) { setToReadStatus(other.getToReadStatus()); } if (other.hasExtra()) { bitField0_ |= 0x00000080; extra_ = other.extra_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasToUid()) { return false; } if (!hasReason()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.FriendRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.FriendRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string from_uid = 1; private java.lang.Object fromUid_ = ""; /** * optional string from_uid = 1; */ public boolean hasFromUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string from_uid = 1; */ public java.lang.String getFromUid() { java.lang.Object ref = fromUid_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); fromUid_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string from_uid = 1; */ public com.google.protobuf.ByteString getFromUidBytes() { java.lang.Object ref = fromUid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fromUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string from_uid = 1; */ public Builder setFromUid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; fromUid_ = value; onChanged(); return this; } /** * optional string from_uid = 1; */ public Builder clearFromUid() { bitField0_ = (bitField0_ & ~0x00000001); fromUid_ = getDefaultInstance().getFromUid(); onChanged(); return this; } /** * optional string from_uid = 1; */ public Builder setFromUidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; fromUid_ = value; onChanged(); return this; } // required string to_uid = 2; private java.lang.Object toUid_ = ""; /** * required string to_uid = 2; */ public boolean hasToUid() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string to_uid = 2; */ public java.lang.String getToUid() { java.lang.Object ref = toUid_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); toUid_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string to_uid = 2; */ public com.google.protobuf.ByteString getToUidBytes() { java.lang.Object ref = toUid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); toUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string to_uid = 2; */ public Builder setToUid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; toUid_ = value; onChanged(); return this; } /** * required string to_uid = 2; */ public Builder clearToUid() { bitField0_ = (bitField0_ & ~0x00000002); toUid_ = getDefaultInstance().getToUid(); onChanged(); return this; } /** * required string to_uid = 2; */ public Builder setToUidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; toUid_ = value; onChanged(); return this; } // required string reason = 3; private java.lang.Object reason_ = ""; /** * required string reason = 3; */ public boolean hasReason() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string reason = 3; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); reason_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string reason = 3; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string reason = 3; */ public Builder setReason( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; reason_ = value; onChanged(); return this; } /** * required string reason = 3; */ public Builder clearReason() { bitField0_ = (bitField0_ & ~0x00000004); reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** * required string reason = 3; */ public Builder setReasonBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; reason_ = value; onChanged(); return this; } // optional int32 status = 4; private int status_ ; /** * optional int32 status = 4; */ public boolean hasStatus() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int32 status = 4; */ public int getStatus() { return status_; } /** * optional int32 status = 4; */ public Builder setStatus(int value) { bitField0_ |= 0x00000008; status_ = value; onChanged(); return this; } /** * optional int32 status = 4; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000008); status_ = 0; onChanged(); return this; } // optional int64 update_dt = 5; private long updateDt_ ; /** * optional int64 update_dt = 5; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 update_dt = 5; */ public long getUpdateDt() { return updateDt_; } /** * optional int64 update_dt = 5; */ public Builder setUpdateDt(long value) { bitField0_ |= 0x00000010; updateDt_ = value; onChanged(); return this; } /** * optional int64 update_dt = 5; */ public Builder clearUpdateDt() { bitField0_ = (bitField0_ & ~0x00000010); updateDt_ = 0L; onChanged(); return this; } // optional bool from_read_status = 6; private boolean fromReadStatus_ ; /** * optional bool from_read_status = 6; */ public boolean hasFromReadStatus() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional bool from_read_status = 6; */ public boolean getFromReadStatus() { return fromReadStatus_; } /** * optional bool from_read_status = 6; */ public Builder setFromReadStatus(boolean value) { bitField0_ |= 0x00000020; fromReadStatus_ = value; onChanged(); return this; } /** * optional bool from_read_status = 6; */ public Builder clearFromReadStatus() { bitField0_ = (bitField0_ & ~0x00000020); fromReadStatus_ = false; onChanged(); return this; } // optional bool to_read_status = 7; private boolean toReadStatus_ ; /** * optional bool to_read_status = 7; */ public boolean hasToReadStatus() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional bool to_read_status = 7; */ public boolean getToReadStatus() { return toReadStatus_; } /** * optional bool to_read_status = 7; */ public Builder setToReadStatus(boolean value) { bitField0_ |= 0x00000040; toReadStatus_ = value; onChanged(); return this; } /** * optional bool to_read_status = 7; */ public Builder clearToReadStatus() { bitField0_ = (bitField0_ & ~0x00000040); toReadStatus_ = false; onChanged(); return this; } // optional string extra = 8; private java.lang.Object extra_ = ""; /** * optional string extra = 8; */ public boolean hasExtra() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string extra = 8; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); extra_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string extra = 8; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string extra = 8; */ public Builder setExtra( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; extra_ = value; onChanged(); return this; } /** * optional string extra = 8; */ public Builder clearExtra() { bitField0_ = (bitField0_ & ~0x00000080); extra_ = getDefaultInstance().getExtra(); onChanged(); return this; } /** * optional string extra = 8; */ public Builder setExtraBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; extra_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:FriendRequest) } static { defaultInstance = new FriendRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:FriendRequest) } public interface GeneralResultOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int32 error_code = 1; /** * required int32 error_code = 1; */ boolean hasErrorCode(); /** * required int32 error_code = 1; */ int getErrorCode(); } /** * Protobuf type {@code GeneralResult} */ public static final class GeneralResult extends com.google.protobuf.GeneratedMessage implements GeneralResultOrBuilder { // Use GeneralResult.newBuilder() to construct. private GeneralResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GeneralResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GeneralResult defaultInstance; public static GeneralResult getDefaultInstance() { return defaultInstance; } public GeneralResult getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GeneralResult( 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; errorCode_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_GeneralResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GeneralResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GeneralResult.class, cn.wildfirechat.proto.WFCMessage.GeneralResult.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GeneralResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GeneralResult(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required int32 error_code = 1; public static final int ERROR_CODE_FIELD_NUMBER = 1; private int errorCode_; /** * required int32 error_code = 1; */ public boolean hasErrorCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 error_code = 1; */ public int getErrorCode() { return errorCode_; } private void initFields() { errorCode_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasErrorCode()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, errorCode_); } 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, errorCode_); } 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 cn.wildfirechat.proto.WFCMessage.GeneralResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GeneralResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GeneralResult 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(cn.wildfirechat.proto.WFCMessage.GeneralResult 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 GeneralResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.GeneralResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_GeneralResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GeneralResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GeneralResult.class, cn.wildfirechat.proto.WFCMessage.GeneralResult.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.GeneralResult.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(); errorCode_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_GeneralResult_descriptor; } public cn.wildfirechat.proto.WFCMessage.GeneralResult getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.GeneralResult.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.GeneralResult build() { cn.wildfirechat.proto.WFCMessage.GeneralResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.GeneralResult buildPartial() { cn.wildfirechat.proto.WFCMessage.GeneralResult result = new cn.wildfirechat.proto.WFCMessage.GeneralResult(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.errorCode_ = errorCode_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.GeneralResult) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.GeneralResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.GeneralResult other) { if (other == cn.wildfirechat.proto.WFCMessage.GeneralResult.getDefaultInstance()) return this; if (other.hasErrorCode()) { setErrorCode(other.getErrorCode()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasErrorCode()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.GeneralResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.GeneralResult) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int32 error_code = 1; private int errorCode_ ; /** * required int32 error_code = 1; */ public boolean hasErrorCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 error_code = 1; */ public int getErrorCode() { return errorCode_; } /** * required int32 error_code = 1; */ public Builder setErrorCode(int value) { bitField0_ |= 0x00000001; errorCode_ = value; onChanged(); return this; } /** * required int32 error_code = 1; */ public Builder clearErrorCode() { bitField0_ = (bitField0_ & ~0x00000001); errorCode_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:GeneralResult) } static { defaultInstance = new GeneralResult(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:GeneralResult) } public interface GetUploadTokenRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int32 media_type = 1; /** * required int32 media_type = 1; */ boolean hasMediaType(); /** * required int32 media_type = 1; */ int getMediaType(); // required string media_path = 2; /** * required string media_path = 2; */ boolean hasMediaPath(); /** * required string media_path = 2; */ java.lang.String getMediaPath(); /** * required string media_path = 2; */ com.google.protobuf.ByteString getMediaPathBytes(); } /** * Protobuf type {@code GetUploadTokenRequest} */ public static final class GetUploadTokenRequest extends com.google.protobuf.GeneratedMessage implements GetUploadTokenRequestOrBuilder { // Use GetUploadTokenRequest.newBuilder() to construct. private GetUploadTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetUploadTokenRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetUploadTokenRequest defaultInstance; public static GetUploadTokenRequest getDefaultInstance() { return defaultInstance; } public GetUploadTokenRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetUploadTokenRequest( 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; mediaType_ = input.readInt32(); break; } case 18: { bitField0_ |= 0x00000002; mediaPath_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest.class, cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetUploadTokenRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetUploadTokenRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required int32 media_type = 1; public static final int MEDIA_TYPE_FIELD_NUMBER = 1; private int mediaType_; /** * required int32 media_type = 1; */ public boolean hasMediaType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 media_type = 1; */ public int getMediaType() { return mediaType_; } // required string media_path = 2; public static final int MEDIA_PATH_FIELD_NUMBER = 2; private java.lang.Object mediaPath_; /** * required string media_path = 2; */ public boolean hasMediaPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string media_path = 2; */ public java.lang.String getMediaPath() { java.lang.Object ref = mediaPath_; 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()) { mediaPath_ = s; } return s; } } /** * required string media_path = 2; */ public com.google.protobuf.ByteString getMediaPathBytes() { java.lang.Object ref = mediaPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mediaPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { mediaType_ = 0; mediaPath_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasMediaType()) { memoizedIsInitialized = 0; return false; } if (!hasMediaPath()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, mediaType_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getMediaPathBytes()); } 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, mediaType_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getMediaPathBytes()); } 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 cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest 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(cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest 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 GetUploadTokenRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest.class, cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest.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(); mediaType_ = 0; bitField0_ = (bitField0_ & ~0x00000001); mediaPath_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest build() { cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest result = new cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.mediaType_ = mediaType_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.mediaPath_ = mediaPath_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest.getDefaultInstance()) return this; if (other.hasMediaType()) { setMediaType(other.getMediaType()); } if (other.hasMediaPath()) { bitField0_ |= 0x00000002; mediaPath_ = other.mediaPath_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasMediaType()) { return false; } if (!hasMediaPath()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.GetUploadTokenRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int32 media_type = 1; private int mediaType_ ; /** * required int32 media_type = 1; */ public boolean hasMediaType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 media_type = 1; */ public int getMediaType() { return mediaType_; } /** * required int32 media_type = 1; */ public Builder setMediaType(int value) { bitField0_ |= 0x00000001; mediaType_ = value; onChanged(); return this; } /** * required int32 media_type = 1; */ public Builder clearMediaType() { bitField0_ = (bitField0_ & ~0x00000001); mediaType_ = 0; onChanged(); return this; } // required string media_path = 2; private java.lang.Object mediaPath_ = ""; /** * required string media_path = 2; */ public boolean hasMediaPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string media_path = 2; */ public java.lang.String getMediaPath() { java.lang.Object ref = mediaPath_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); mediaPath_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string media_path = 2; */ public com.google.protobuf.ByteString getMediaPathBytes() { java.lang.Object ref = mediaPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mediaPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string media_path = 2; */ public Builder setMediaPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; mediaPath_ = value; onChanged(); return this; } /** * required string media_path = 2; */ public Builder clearMediaPath() { bitField0_ = (bitField0_ & ~0x00000002); mediaPath_ = getDefaultInstance().getMediaPath(); onChanged(); return this; } /** * required string media_path = 2; */ public Builder setMediaPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; mediaPath_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:GetUploadTokenRequest) } static { defaultInstance = new GetUploadTokenRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:GetUploadTokenRequest) } public interface GetUploadTokenResultOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string domain = 1; /** * required string domain = 1; */ boolean hasDomain(); /** * required string domain = 1; */ java.lang.String getDomain(); /** * required string domain = 1; */ com.google.protobuf.ByteString getDomainBytes(); // required string token = 2; /** * required string token = 2; */ boolean hasToken(); /** * required string token = 2; */ java.lang.String getToken(); /** * required string token = 2; */ com.google.protobuf.ByteString getTokenBytes(); // required string server = 3; /** * required string server = 3; */ boolean hasServer(); /** * required string server = 3; */ java.lang.String getServer(); /** * required string server = 3; */ com.google.protobuf.ByteString getServerBytes(); // optional int32 port = 4; /** * optional int32 port = 4; */ boolean hasPort(); /** * optional int32 port = 4; */ int getPort(); } /** * Protobuf type {@code GetUploadTokenResult} */ public static final class GetUploadTokenResult extends com.google.protobuf.GeneratedMessage implements GetUploadTokenResultOrBuilder { // Use GetUploadTokenResult.newBuilder() to construct. private GetUploadTokenResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetUploadTokenResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetUploadTokenResult defaultInstance; public static GetUploadTokenResult getDefaultInstance() { return defaultInstance; } public GetUploadTokenResult getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetUploadTokenResult( 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; domain_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; token_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; server_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; port_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult.class, cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetUploadTokenResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetUploadTokenResult(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string domain = 1; public static final int DOMAIN_FIELD_NUMBER = 1; private java.lang.Object domain_; /** * required string domain = 1; */ public boolean hasDomain() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string domain = 1; */ public java.lang.String getDomain() { java.lang.Object ref = domain_; 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()) { domain_ = s; } return s; } } /** * required string domain = 1; */ public com.google.protobuf.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string token = 2; public static final int TOKEN_FIELD_NUMBER = 2; private java.lang.Object token_; /** * required string token = 2; */ public boolean hasToken() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string token = 2; */ public java.lang.String getToken() { java.lang.Object ref = token_; 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()) { token_ = s; } return s; } } /** * required string token = 2; */ public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); token_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string server = 3; public static final int SERVER_FIELD_NUMBER = 3; private java.lang.Object server_; /** * required string server = 3; */ public boolean hasServer() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string server = 3; */ public java.lang.String getServer() { java.lang.Object ref = server_; 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()) { server_ = s; } return s; } } /** * required string server = 3; */ public com.google.protobuf.ByteString getServerBytes() { java.lang.Object ref = server_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); server_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 port = 4; public static final int PORT_FIELD_NUMBER = 4; private int port_; /** * optional int32 port = 4; */ public boolean hasPort() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int32 port = 4; */ public int getPort() { return port_; } private void initFields() { domain_ = ""; token_ = ""; server_ = ""; port_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasDomain()) { memoizedIsInitialized = 0; return false; } if (!hasToken()) { memoizedIsInitialized = 0; return false; } if (!hasServer()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getDomainBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getTokenBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getServerBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, port_); } 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, getDomainBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getTokenBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getServerBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, port_); } 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 cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult 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(cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult 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 GetUploadTokenResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.GetUploadTokenResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult.class, cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult.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(); domain_ = ""; bitField0_ = (bitField0_ & ~0x00000001); token_ = ""; bitField0_ = (bitField0_ & ~0x00000002); server_ = ""; bitField0_ = (bitField0_ & ~0x00000004); port_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetUploadTokenResult_descriptor; } public cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult build() { cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult buildPartial() { cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult result = new cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.domain_ = domain_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.token_ = token_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.server_ = server_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.port_ = port_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult other) { if (other == cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult.getDefaultInstance()) return this; if (other.hasDomain()) { bitField0_ |= 0x00000001; domain_ = other.domain_; onChanged(); } if (other.hasToken()) { bitField0_ |= 0x00000002; token_ = other.token_; onChanged(); } if (other.hasServer()) { bitField0_ |= 0x00000004; server_ = other.server_; onChanged(); } if (other.hasPort()) { setPort(other.getPort()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasDomain()) { return false; } if (!hasToken()) { return false; } if (!hasServer()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.GetUploadTokenResult) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string domain = 1; private java.lang.Object domain_ = ""; /** * required string domain = 1; */ public boolean hasDomain() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string domain = 1; */ public java.lang.String getDomain() { java.lang.Object ref = domain_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); domain_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string domain = 1; */ public com.google.protobuf.ByteString getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domain_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string domain = 1; */ public Builder setDomain( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; domain_ = value; onChanged(); return this; } /** * required string domain = 1; */ public Builder clearDomain() { bitField0_ = (bitField0_ & ~0x00000001); domain_ = getDefaultInstance().getDomain(); onChanged(); return this; } /** * required string domain = 1; */ public Builder setDomainBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; domain_ = value; onChanged(); return this; } // required string token = 2; private java.lang.Object token_ = ""; /** * required string token = 2; */ public boolean hasToken() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string token = 2; */ public java.lang.String getToken() { java.lang.Object ref = token_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); token_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string token = 2; */ public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); token_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string token = 2; */ public Builder setToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; token_ = value; onChanged(); return this; } /** * required string token = 2; */ public Builder clearToken() { bitField0_ = (bitField0_ & ~0x00000002); token_ = getDefaultInstance().getToken(); onChanged(); return this; } /** * required string token = 2; */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; token_ = value; onChanged(); return this; } // required string server = 3; private java.lang.Object server_ = ""; /** * required string server = 3; */ public boolean hasServer() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string server = 3; */ public java.lang.String getServer() { java.lang.Object ref = server_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); server_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string server = 3; */ public com.google.protobuf.ByteString getServerBytes() { java.lang.Object ref = server_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); server_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string server = 3; */ public Builder setServer( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; server_ = value; onChanged(); return this; } /** * required string server = 3; */ public Builder clearServer() { bitField0_ = (bitField0_ & ~0x00000004); server_ = getDefaultInstance().getServer(); onChanged(); return this; } /** * required string server = 3; */ public Builder setServerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; server_ = value; onChanged(); return this; } // optional int32 port = 4; private int port_ ; /** * optional int32 port = 4; */ public boolean hasPort() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int32 port = 4; */ public int getPort() { return port_; } /** * optional int32 port = 4; */ public Builder setPort(int value) { bitField0_ |= 0x00000008; port_ = value; onChanged(); return this; } /** * optional int32 port = 4; */ public Builder clearPort() { bitField0_ = (bitField0_ & ~0x00000008); port_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:GetUploadTokenResult) } static { defaultInstance = new GetUploadTokenResult(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:GetUploadTokenResult) } public interface HandleFriendRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string target_uid = 1; /** * required string target_uid = 1; */ boolean hasTargetUid(); /** * required string target_uid = 1; */ java.lang.String getTargetUid(); /** * required string target_uid = 1; */ com.google.protobuf.ByteString getTargetUidBytes(); // required int32 status = 2; /** * required int32 status = 2; */ boolean hasStatus(); /** * required int32 status = 2; */ int getStatus(); // optional string extra = 3; /** * optional string extra = 3; */ boolean hasExtra(); /** * optional string extra = 3; */ java.lang.String getExtra(); /** * optional string extra = 3; */ com.google.protobuf.ByteString getExtraBytes(); } /** * Protobuf type {@code HandleFriendRequest} */ public static final class HandleFriendRequest extends com.google.protobuf.GeneratedMessage implements HandleFriendRequestOrBuilder { // Use HandleFriendRequest.newBuilder() to construct. private HandleFriendRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private HandleFriendRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final HandleFriendRequest defaultInstance; public static HandleFriendRequest getDefaultInstance() { return defaultInstance; } public HandleFriendRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HandleFriendRequest( 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; targetUid_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; status_ = input.readInt32(); break; } case 26: { bitField0_ |= 0x00000004; extra_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_HandleFriendRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_HandleFriendRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.HandleFriendRequest.class, cn.wildfirechat.proto.WFCMessage.HandleFriendRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public HandleFriendRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HandleFriendRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string target_uid = 1; public static final int TARGET_UID_FIELD_NUMBER = 1; private java.lang.Object targetUid_; /** * required string target_uid = 1; */ public boolean hasTargetUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string target_uid = 1; */ public java.lang.String getTargetUid() { java.lang.Object ref = targetUid_; 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()) { targetUid_ = s; } return s; } } /** * required string target_uid = 1; */ public com.google.protobuf.ByteString getTargetUidBytes() { java.lang.Object ref = targetUid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 status = 2; public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** * required int32 status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 status = 2; */ public int getStatus() { return status_; } // optional string extra = 3; public static final int EXTRA_FIELD_NUMBER = 3; private java.lang.Object extra_; /** * optional string extra = 3; */ public boolean hasExtra() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string extra = 3; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; 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()) { extra_ = s; } return s; } } /** * optional string extra = 3; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { targetUid_ = ""; status_ = 0; extra_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasTargetUid()) { memoizedIsInitialized = 0; return false; } if (!hasStatus()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getTargetUidBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, status_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getExtraBytes()); } 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, getTargetUidBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, status_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getExtraBytes()); } 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 cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.HandleFriendRequest 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(cn.wildfirechat.proto.WFCMessage.HandleFriendRequest 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 HandleFriendRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.HandleFriendRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_HandleFriendRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_HandleFriendRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.HandleFriendRequest.class, cn.wildfirechat.proto.WFCMessage.HandleFriendRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.HandleFriendRequest.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(); targetUid_ = ""; bitField0_ = (bitField0_ & ~0x00000001); status_ = 0; bitField0_ = (bitField0_ & ~0x00000002); extra_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_HandleFriendRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.HandleFriendRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.HandleFriendRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.HandleFriendRequest build() { cn.wildfirechat.proto.WFCMessage.HandleFriendRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.HandleFriendRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.HandleFriendRequest result = new cn.wildfirechat.proto.WFCMessage.HandleFriendRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.targetUid_ = targetUid_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.status_ = status_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.extra_ = extra_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.HandleFriendRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.HandleFriendRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.HandleFriendRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.HandleFriendRequest.getDefaultInstance()) return this; if (other.hasTargetUid()) { bitField0_ |= 0x00000001; targetUid_ = other.targetUid_; onChanged(); } if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasExtra()) { bitField0_ |= 0x00000004; extra_ = other.extra_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasTargetUid()) { return false; } if (!hasStatus()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.HandleFriendRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.HandleFriendRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string target_uid = 1; private java.lang.Object targetUid_ = ""; /** * required string target_uid = 1; */ public boolean hasTargetUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string target_uid = 1; */ public java.lang.String getTargetUid() { java.lang.Object ref = targetUid_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); targetUid_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string target_uid = 1; */ public com.google.protobuf.ByteString getTargetUidBytes() { java.lang.Object ref = targetUid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string target_uid = 1; */ public Builder setTargetUid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; targetUid_ = value; onChanged(); return this; } /** * required string target_uid = 1; */ public Builder clearTargetUid() { bitField0_ = (bitField0_ & ~0x00000001); targetUid_ = getDefaultInstance().getTargetUid(); onChanged(); return this; } /** * required string target_uid = 1; */ public Builder setTargetUidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; targetUid_ = value; onChanged(); return this; } // required int32 status = 2; private int status_ ; /** * required int32 status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 status = 2; */ public int getStatus() { return status_; } /** * required int32 status = 2; */ public Builder setStatus(int value) { bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } /** * required int32 status = 2; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); status_ = 0; onChanged(); return this; } // optional string extra = 3; private java.lang.Object extra_ = ""; /** * optional string extra = 3; */ public boolean hasExtra() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string extra = 3; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); extra_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string extra = 3; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string extra = 3; */ public Builder setExtra( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; extra_ = value; onChanged(); return this; } /** * optional string extra = 3; */ public Builder clearExtra() { bitField0_ = (bitField0_ & ~0x00000004); extra_ = getDefaultInstance().getExtra(); onChanged(); return this; } /** * optional string extra = 3; */ public Builder setExtraBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; extra_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:HandleFriendRequest) } static { defaultInstance = new HandleFriendRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:HandleFriendRequest) } public interface IDBufOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string id = 1; /** * required string id = 1; */ boolean hasId(); /** * required string id = 1; */ java.lang.String getId(); /** * required string id = 1; */ com.google.protobuf.ByteString getIdBytes(); } /** * Protobuf type {@code IDBuf} */ public static final class IDBuf extends com.google.protobuf.GeneratedMessage implements IDBufOrBuilder { // Use IDBuf.newBuilder() to construct. private IDBuf(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private IDBuf(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final IDBuf defaultInstance; public static IDBuf getDefaultInstance() { return defaultInstance; } public IDBuf getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IDBuf( 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 cn.wildfirechat.proto.WFCMessage.internal_static_IDBuf_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_IDBuf_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.IDBuf.class, cn.wildfirechat.proto.WFCMessage.IDBuf.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IDBuf parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IDBuf(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string id = 1; public static final int ID_FIELD_NUMBER = 1; private java.lang.Object id_; /** * required string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required 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; } } /** * required 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; if (!hasId()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, 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 cn.wildfirechat.proto.WFCMessage.IDBuf parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.IDBuf parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.IDBuf parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.IDBuf parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.IDBuf parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.IDBuf parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.IDBuf parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.IDBuf parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.IDBuf parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.IDBuf 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(cn.wildfirechat.proto.WFCMessage.IDBuf 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 IDBuf} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.IDBufOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_IDBuf_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_IDBuf_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.IDBuf.class, cn.wildfirechat.proto.WFCMessage.IDBuf.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.IDBuf.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 cn.wildfirechat.proto.WFCMessage.internal_static_IDBuf_descriptor; } public cn.wildfirechat.proto.WFCMessage.IDBuf getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.IDBuf.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.IDBuf build() { cn.wildfirechat.proto.WFCMessage.IDBuf result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.IDBuf buildPartial() { cn.wildfirechat.proto.WFCMessage.IDBuf result = new cn.wildfirechat.proto.WFCMessage.IDBuf(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 cn.wildfirechat.proto.WFCMessage.IDBuf) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.IDBuf)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.IDBuf other) { if (other == cn.wildfirechat.proto.WFCMessage.IDBuf.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasId()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.IDBuf parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.IDBuf) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string id = 1; private java.lang.Object id_ = ""; /** * required string id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required 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; } } /** * required 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; } } /** * required string id = 1; */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * required string id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * required 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:IDBuf) } static { defaultInstance = new IDBuf(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:IDBuf) } public interface IDListBufOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated string id = 1; /** * repeated string id = 1; */ java.util.List getIdList(); /** * repeated string id = 1; */ int getIdCount(); /** * repeated string id = 1; */ java.lang.String getId(int index); /** * repeated string id = 1; */ com.google.protobuf.ByteString getIdBytes(int index); } /** * Protobuf type {@code IDListBuf} */ public static final class IDListBuf extends com.google.protobuf.GeneratedMessage implements IDListBufOrBuilder { // Use IDListBuf.newBuilder() to construct. private IDListBuf(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private IDListBuf(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final IDListBuf defaultInstance; public static IDListBuf getDefaultInstance() { return defaultInstance; } public IDListBuf getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IDListBuf( 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)) { id_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } id_.add(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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { id_ = new com.google.protobuf.UnmodifiableLazyStringList(id_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_IDListBuf_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_IDListBuf_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.IDListBuf.class, cn.wildfirechat.proto.WFCMessage.IDListBuf.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IDListBuf parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IDListBuf(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated string id = 1; public static final int ID_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList id_; /** * repeated string id = 1; */ public java.util.List getIdList() { return id_; } /** * repeated string id = 1; */ public int getIdCount() { return id_.size(); } /** * repeated string id = 1; */ public java.lang.String getId(int index) { return id_.get(index); } /** * repeated string id = 1; */ public com.google.protobuf.ByteString getIdBytes(int index) { return id_.getByteString(index); } private void initFields() { id_ = com.google.protobuf.LazyStringArrayList.EMPTY; } 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 < id_.size(); i++) { output.writeBytes(1, id_.getByteString(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < id_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(id_.getByteString(i)); } size += dataSize; size += 1 * getIdList().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 cn.wildfirechat.proto.WFCMessage.IDListBuf parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.IDListBuf parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.IDListBuf 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(cn.wildfirechat.proto.WFCMessage.IDListBuf 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 IDListBuf} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.IDListBufOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_IDListBuf_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_IDListBuf_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.IDListBuf.class, cn.wildfirechat.proto.WFCMessage.IDListBuf.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.IDListBuf.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_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_IDListBuf_descriptor; } public cn.wildfirechat.proto.WFCMessage.IDListBuf getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.IDListBuf.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.IDListBuf build() { cn.wildfirechat.proto.WFCMessage.IDListBuf result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.IDListBuf buildPartial() { cn.wildfirechat.proto.WFCMessage.IDListBuf result = new cn.wildfirechat.proto.WFCMessage.IDListBuf(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { id_ = new com.google.protobuf.UnmodifiableLazyStringList( id_); bitField0_ = (bitField0_ & ~0x00000001); } result.id_ = id_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.IDListBuf) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.IDListBuf)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.IDListBuf other) { if (other == cn.wildfirechat.proto.WFCMessage.IDListBuf.getDefaultInstance()) return this; if (!other.id_.isEmpty()) { if (id_.isEmpty()) { id_ = other.id_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureIdIsMutable(); id_.addAll(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 { cn.wildfirechat.proto.WFCMessage.IDListBuf parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.IDListBuf) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated string id = 1; private com.google.protobuf.LazyStringList id_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureIdIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { id_ = new com.google.protobuf.LazyStringArrayList(id_); bitField0_ |= 0x00000001; } } /** * repeated string id = 1; */ public java.util.List getIdList() { return java.util.Collections.unmodifiableList(id_); } /** * repeated string id = 1; */ public int getIdCount() { return id_.size(); } /** * repeated string id = 1; */ public java.lang.String getId(int index) { return id_.get(index); } /** * repeated string id = 1; */ public com.google.protobuf.ByteString getIdBytes(int index) { return id_.getByteString(index); } /** * repeated string id = 1; */ public Builder setId( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureIdIsMutable(); id_.set(index, value); onChanged(); return this; } /** * repeated string id = 1; */ public Builder addId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureIdIsMutable(); id_.add(value); onChanged(); return this; } /** * repeated string id = 1; */ public Builder addAllId( java.lang.Iterable values) { ensureIdIsMutable(); super.addAll(values, id_); onChanged(); return this; } /** * repeated string id = 1; */ public Builder clearId() { id_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string id = 1; */ public Builder addIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureIdIsMutable(); id_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:IDListBuf) } static { defaultInstance = new IDListBuf(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:IDListBuf) } public interface MessageOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .Conversation conversation = 1; /** * required .Conversation conversation = 1; */ boolean hasConversation(); /** * required .Conversation conversation = 1; */ cn.wildfirechat.proto.WFCMessage.Conversation getConversation(); /** * required .Conversation conversation = 1; */ cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder getConversationOrBuilder(); // required string from_user = 2; /** * required string from_user = 2; */ boolean hasFromUser(); /** * required string from_user = 2; */ java.lang.String getFromUser(); /** * required string from_user = 2; */ com.google.protobuf.ByteString getFromUserBytes(); // required .MessageContent content = 3; /** * required .MessageContent content = 3; */ boolean hasContent(); /** * required .MessageContent content = 3; */ cn.wildfirechat.proto.WFCMessage.MessageContent getContent(); /** * required .MessageContent content = 3; */ cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getContentOrBuilder(); // optional int64 message_id = 4; /** * optional int64 message_id = 4; */ boolean hasMessageId(); /** * optional int64 message_id = 4; */ long getMessageId(); // optional int64 server_timestamp = 5; /** * optional int64 server_timestamp = 5; */ boolean hasServerTimestamp(); /** * optional int64 server_timestamp = 5; */ long getServerTimestamp(); // optional string to_user = 6; /** * optional string to_user = 6; * *
     *not use anymore
     * 
*/ boolean hasToUser(); /** * optional string to_user = 6; * *
     *not use anymore
     * 
*/ java.lang.String getToUser(); /** * optional string to_user = 6; * *
     *not use anymore
     * 
*/ com.google.protobuf.ByteString getToUserBytes(); // repeated string to = 7; /** * repeated string to = 7; */ java.util.List getToList(); /** * repeated string to = 7; */ int getToCount(); /** * repeated string to = 7; */ java.lang.String getTo(int index); /** * repeated string to = 7; */ com.google.protobuf.ByteString getToBytes(int index); } /** * Protobuf type {@code Message} */ public static final class Message extends com.google.protobuf.GeneratedMessage implements MessageOrBuilder { // Use Message.newBuilder() to construct. private Message(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Message(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Message defaultInstance; public static Message getDefaultInstance() { return defaultInstance; } public Message getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Message( 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: { cn.wildfirechat.proto.WFCMessage.Conversation.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = conversation_.toBuilder(); } conversation_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.Conversation.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(conversation_); conversation_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { bitField0_ |= 0x00000002; fromUser_ = input.readBytes(); break; } case 26: { cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = content_.toBuilder(); } content_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(content_); content_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { bitField0_ |= 0x00000008; messageId_ = input.readInt64(); break; } case 40: { bitField0_ |= 0x00000010; serverTimestamp_ = input.readInt64(); break; } case 50: { bitField0_ |= 0x00000020; toUser_ = input.readBytes(); break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { to_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000040; } to_.add(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 { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { to_ = new com.google.protobuf.UnmodifiableLazyStringList(to_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_Message_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_Message_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.Message.class, cn.wildfirechat.proto.WFCMessage.Message.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Message parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Message(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required .Conversation conversation = 1; public static final int CONVERSATION_FIELD_NUMBER = 1; private cn.wildfirechat.proto.WFCMessage.Conversation conversation_; /** * required .Conversation conversation = 1; */ public boolean hasConversation() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .Conversation conversation = 1; */ public cn.wildfirechat.proto.WFCMessage.Conversation getConversation() { return conversation_; } /** * required .Conversation conversation = 1; */ public cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder getConversationOrBuilder() { return conversation_; } // required string from_user = 2; public static final int FROM_USER_FIELD_NUMBER = 2; private java.lang.Object fromUser_; /** * required string from_user = 2; */ public boolean hasFromUser() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string from_user = 2; */ public java.lang.String getFromUser() { java.lang.Object ref = fromUser_; 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()) { fromUser_ = s; } return s; } } /** * required string from_user = 2; */ public com.google.protobuf.ByteString getFromUserBytes() { java.lang.Object ref = fromUser_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fromUser_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required .MessageContent content = 3; public static final int CONTENT_FIELD_NUMBER = 3; private cn.wildfirechat.proto.WFCMessage.MessageContent content_; /** * required .MessageContent content = 3; */ public boolean hasContent() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .MessageContent content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getContent() { return content_; } /** * required .MessageContent content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getContentOrBuilder() { return content_; } // optional int64 message_id = 4; public static final int MESSAGE_ID_FIELD_NUMBER = 4; private long messageId_; /** * optional int64 message_id = 4; */ public boolean hasMessageId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 message_id = 4; */ public long getMessageId() { return messageId_; } // optional int64 server_timestamp = 5; public static final int SERVER_TIMESTAMP_FIELD_NUMBER = 5; private long serverTimestamp_; /** * optional int64 server_timestamp = 5; */ public boolean hasServerTimestamp() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 server_timestamp = 5; */ public long getServerTimestamp() { return serverTimestamp_; } // optional string to_user = 6; public static final int TO_USER_FIELD_NUMBER = 6; private java.lang.Object toUser_; /** * optional string to_user = 6; * *
     *not use anymore
     * 
*/ public boolean hasToUser() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string to_user = 6; * *
     *not use anymore
     * 
*/ public java.lang.String getToUser() { java.lang.Object ref = toUser_; 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()) { toUser_ = s; } return s; } } /** * optional string to_user = 6; * *
     *not use anymore
     * 
*/ public com.google.protobuf.ByteString getToUserBytes() { java.lang.Object ref = toUser_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); toUser_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated string to = 7; public static final int TO_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList to_; /** * repeated string to = 7; */ public java.util.List getToList() { return to_; } /** * repeated string to = 7; */ public int getToCount() { return to_.size(); } /** * repeated string to = 7; */ public java.lang.String getTo(int index) { return to_.get(index); } /** * repeated string to = 7; */ public com.google.protobuf.ByteString getToBytes(int index) { return to_.getByteString(index); } private void initFields() { conversation_ = cn.wildfirechat.proto.WFCMessage.Conversation.getDefaultInstance(); fromUser_ = ""; content_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); messageId_ = 0L; serverTimestamp_ = 0L; toUser_ = ""; to_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasConversation()) { memoizedIsInitialized = 0; return false; } if (!hasFromUser()) { memoizedIsInitialized = 0; return false; } if (!hasContent()) { memoizedIsInitialized = 0; return false; } if (!getConversation().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getContent().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, conversation_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getFromUserBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, content_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, messageId_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(5, serverTimestamp_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getToUserBytes()); } for (int i = 0; i < to_.size(); i++) { output.writeBytes(7, to_.getByteString(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 .computeMessageSize(1, conversation_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getFromUserBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, content_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, messageId_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, serverTimestamp_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getToUserBytes()); } { int dataSize = 0; for (int i = 0; i < to_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(to_.getByteString(i)); } size += dataSize; size += 1 * getToList().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 cn.wildfirechat.proto.WFCMessage.Message parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.Message parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Message parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.Message parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Message parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Message parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Message parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Message parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Message parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Message 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(cn.wildfirechat.proto.WFCMessage.Message 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 Message} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.MessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_Message_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_Message_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.Message.class, cn.wildfirechat.proto.WFCMessage.Message.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.Message.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getConversationFieldBuilder(); getContentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (conversationBuilder_ == null) { conversation_ = cn.wildfirechat.proto.WFCMessage.Conversation.getDefaultInstance(); } else { conversationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); fromUser_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (contentBuilder_ == null) { content_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } else { contentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); messageId_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); serverTimestamp_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); toUser_ = ""; bitField0_ = (bitField0_ & ~0x00000020); to_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_Message_descriptor; } public cn.wildfirechat.proto.WFCMessage.Message getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.Message.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.Message build() { cn.wildfirechat.proto.WFCMessage.Message result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.Message buildPartial() { cn.wildfirechat.proto.WFCMessage.Message result = new cn.wildfirechat.proto.WFCMessage.Message(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (conversationBuilder_ == null) { result.conversation_ = conversation_; } else { result.conversation_ = conversationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.fromUser_ = fromUser_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (contentBuilder_ == null) { result.content_ = content_; } else { result.content_ = contentBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.messageId_ = messageId_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.serverTimestamp_ = serverTimestamp_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.toUser_ = toUser_; if (((bitField0_ & 0x00000040) == 0x00000040)) { to_ = new com.google.protobuf.UnmodifiableLazyStringList( to_); bitField0_ = (bitField0_ & ~0x00000040); } result.to_ = to_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.Message) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.Message)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.Message other) { if (other == cn.wildfirechat.proto.WFCMessage.Message.getDefaultInstance()) return this; if (other.hasConversation()) { mergeConversation(other.getConversation()); } if (other.hasFromUser()) { bitField0_ |= 0x00000002; fromUser_ = other.fromUser_; onChanged(); } if (other.hasContent()) { mergeContent(other.getContent()); } if (other.hasMessageId()) { setMessageId(other.getMessageId()); } if (other.hasServerTimestamp()) { setServerTimestamp(other.getServerTimestamp()); } if (other.hasToUser()) { bitField0_ |= 0x00000020; toUser_ = other.toUser_; onChanged(); } if (!other.to_.isEmpty()) { if (to_.isEmpty()) { to_ = other.to_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureToIsMutable(); to_.addAll(other.to_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasConversation()) { return false; } if (!hasFromUser()) { return false; } if (!hasContent()) { return false; } if (!getConversation().isInitialized()) { return false; } if (!getContent().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.Message parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.Message) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .Conversation conversation = 1; private cn.wildfirechat.proto.WFCMessage.Conversation conversation_ = cn.wildfirechat.proto.WFCMessage.Conversation.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.Conversation, cn.wildfirechat.proto.WFCMessage.Conversation.Builder, cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder> conversationBuilder_; /** * required .Conversation conversation = 1; */ public boolean hasConversation() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .Conversation conversation = 1; */ public cn.wildfirechat.proto.WFCMessage.Conversation getConversation() { if (conversationBuilder_ == null) { return conversation_; } else { return conversationBuilder_.getMessage(); } } /** * required .Conversation conversation = 1; */ public Builder setConversation(cn.wildfirechat.proto.WFCMessage.Conversation value) { if (conversationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } conversation_ = value; onChanged(); } else { conversationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .Conversation conversation = 1; */ public Builder setConversation( cn.wildfirechat.proto.WFCMessage.Conversation.Builder builderForValue) { if (conversationBuilder_ == null) { conversation_ = builderForValue.build(); onChanged(); } else { conversationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .Conversation conversation = 1; */ public Builder mergeConversation(cn.wildfirechat.proto.WFCMessage.Conversation value) { if (conversationBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && conversation_ != cn.wildfirechat.proto.WFCMessage.Conversation.getDefaultInstance()) { conversation_ = cn.wildfirechat.proto.WFCMessage.Conversation.newBuilder(conversation_).mergeFrom(value).buildPartial(); } else { conversation_ = value; } onChanged(); } else { conversationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .Conversation conversation = 1; */ public Builder clearConversation() { if (conversationBuilder_ == null) { conversation_ = cn.wildfirechat.proto.WFCMessage.Conversation.getDefaultInstance(); onChanged(); } else { conversationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .Conversation conversation = 1; */ public cn.wildfirechat.proto.WFCMessage.Conversation.Builder getConversationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getConversationFieldBuilder().getBuilder(); } /** * required .Conversation conversation = 1; */ public cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder getConversationOrBuilder() { if (conversationBuilder_ != null) { return conversationBuilder_.getMessageOrBuilder(); } else { return conversation_; } } /** * required .Conversation conversation = 1; */ private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.Conversation, cn.wildfirechat.proto.WFCMessage.Conversation.Builder, cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder> getConversationFieldBuilder() { if (conversationBuilder_ == null) { conversationBuilder_ = new com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.Conversation, cn.wildfirechat.proto.WFCMessage.Conversation.Builder, cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder>( conversation_, getParentForChildren(), isClean()); conversation_ = null; } return conversationBuilder_; } // required string from_user = 2; private java.lang.Object fromUser_ = ""; /** * required string from_user = 2; */ public boolean hasFromUser() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string from_user = 2; */ public java.lang.String getFromUser() { java.lang.Object ref = fromUser_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); fromUser_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string from_user = 2; */ public com.google.protobuf.ByteString getFromUserBytes() { java.lang.Object ref = fromUser_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fromUser_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string from_user = 2; */ public Builder setFromUser( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fromUser_ = value; onChanged(); return this; } /** * required string from_user = 2; */ public Builder clearFromUser() { bitField0_ = (bitField0_ & ~0x00000002); fromUser_ = getDefaultInstance().getFromUser(); onChanged(); return this; } /** * required string from_user = 2; */ public Builder setFromUserBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fromUser_ = value; onChanged(); return this; } // required .MessageContent content = 3; private cn.wildfirechat.proto.WFCMessage.MessageContent content_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> contentBuilder_; /** * required .MessageContent content = 3; */ public boolean hasContent() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required .MessageContent content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getContent() { if (contentBuilder_ == null) { return content_; } else { return contentBuilder_.getMessage(); } } /** * required .MessageContent content = 3; */ public Builder setContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (contentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { contentBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * required .MessageContent content = 3; */ public Builder setContent( cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) { if (contentBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { contentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * required .MessageContent content = 3; */ public Builder mergeContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (contentBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && content_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) { content_ = cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(content_).mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { contentBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * required .MessageContent content = 3; */ public Builder clearContent() { if (contentBuilder_ == null) { content_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); onChanged(); } else { contentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * required .MessageContent content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getContentBuilder() { bitField0_ |= 0x00000004; onChanged(); return getContentFieldBuilder().getBuilder(); } /** * required .MessageContent content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getContentOrBuilder() { if (contentBuilder_ != null) { return contentBuilder_.getMessageOrBuilder(); } else { return content_; } } /** * required .MessageContent content = 3; */ private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> getContentFieldBuilder() { if (contentBuilder_ == null) { contentBuilder_ = new com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>( content_, getParentForChildren(), isClean()); content_ = null; } return contentBuilder_; } // optional int64 message_id = 4; private long messageId_ ; /** * optional int64 message_id = 4; */ public boolean hasMessageId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 message_id = 4; */ public long getMessageId() { return messageId_; } /** * optional int64 message_id = 4; */ public Builder setMessageId(long value) { bitField0_ |= 0x00000008; messageId_ = value; onChanged(); return this; } /** * optional int64 message_id = 4; */ public Builder clearMessageId() { bitField0_ = (bitField0_ & ~0x00000008); messageId_ = 0L; onChanged(); return this; } // optional int64 server_timestamp = 5; private long serverTimestamp_ ; /** * optional int64 server_timestamp = 5; */ public boolean hasServerTimestamp() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 server_timestamp = 5; */ public long getServerTimestamp() { return serverTimestamp_; } /** * optional int64 server_timestamp = 5; */ public Builder setServerTimestamp(long value) { bitField0_ |= 0x00000010; serverTimestamp_ = value; onChanged(); return this; } /** * optional int64 server_timestamp = 5; */ public Builder clearServerTimestamp() { bitField0_ = (bitField0_ & ~0x00000010); serverTimestamp_ = 0L; onChanged(); return this; } // optional string to_user = 6; private java.lang.Object toUser_ = ""; /** * optional string to_user = 6; * *
       *not use anymore
       * 
*/ public boolean hasToUser() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string to_user = 6; * *
       *not use anymore
       * 
*/ public java.lang.String getToUser() { java.lang.Object ref = toUser_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); toUser_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string to_user = 6; * *
       *not use anymore
       * 
*/ public com.google.protobuf.ByteString getToUserBytes() { java.lang.Object ref = toUser_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); toUser_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string to_user = 6; * *
       *not use anymore
       * 
*/ public Builder setToUser( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; toUser_ = value; onChanged(); return this; } /** * optional string to_user = 6; * *
       *not use anymore
       * 
*/ public Builder clearToUser() { bitField0_ = (bitField0_ & ~0x00000020); toUser_ = getDefaultInstance().getToUser(); onChanged(); return this; } /** * optional string to_user = 6; * *
       *not use anymore
       * 
*/ public Builder setToUserBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; toUser_ = value; onChanged(); return this; } // repeated string to = 7; private com.google.protobuf.LazyStringList to_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureToIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { to_ = new com.google.protobuf.LazyStringArrayList(to_); bitField0_ |= 0x00000040; } } /** * repeated string to = 7; */ public java.util.List getToList() { return java.util.Collections.unmodifiableList(to_); } /** * repeated string to = 7; */ public int getToCount() { return to_.size(); } /** * repeated string to = 7; */ public java.lang.String getTo(int index) { return to_.get(index); } /** * repeated string to = 7; */ public com.google.protobuf.ByteString getToBytes(int index) { return to_.getByteString(index); } /** * repeated string to = 7; */ public Builder setTo( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureToIsMutable(); to_.set(index, value); onChanged(); return this; } /** * repeated string to = 7; */ public Builder addTo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureToIsMutable(); to_.add(value); onChanged(); return this; } /** * repeated string to = 7; */ public Builder addAllTo( java.lang.Iterable values) { ensureToIsMutable(); super.addAll(values, to_); onChanged(); return this; } /** * repeated string to = 7; */ public Builder clearTo() { to_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * repeated string to = 7; */ public Builder addToBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureToIsMutable(); to_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:Message) } static { defaultInstance = new Message(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:Message) } public interface UserOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string uid = 1; /** * required string uid = 1; */ boolean hasUid(); /** * required string uid = 1; */ java.lang.String getUid(); /** * required string uid = 1; */ com.google.protobuf.ByteString getUidBytes(); // optional string name = 2; /** * optional string name = 2; */ boolean hasName(); /** * optional string name = 2; */ java.lang.String getName(); /** * optional string name = 2; */ com.google.protobuf.ByteString getNameBytes(); // optional string display_name = 3; /** * optional string display_name = 3; */ boolean hasDisplayName(); /** * optional string display_name = 3; */ java.lang.String getDisplayName(); /** * optional string display_name = 3; */ com.google.protobuf.ByteString getDisplayNameBytes(); // optional string portrait = 4; /** * optional string portrait = 4; */ boolean hasPortrait(); /** * optional string portrait = 4; */ java.lang.String getPortrait(); /** * optional string portrait = 4; */ com.google.protobuf.ByteString getPortraitBytes(); // optional string mobile = 5; /** * optional string mobile = 5; */ boolean hasMobile(); /** * optional string mobile = 5; */ java.lang.String getMobile(); /** * optional string mobile = 5; */ com.google.protobuf.ByteString getMobileBytes(); // optional string email = 6; /** * optional string email = 6; */ boolean hasEmail(); /** * optional string email = 6; */ java.lang.String getEmail(); /** * optional string email = 6; */ com.google.protobuf.ByteString getEmailBytes(); // optional string address = 7; /** * optional string address = 7; */ boolean hasAddress(); /** * optional string address = 7; */ java.lang.String getAddress(); /** * optional string address = 7; */ com.google.protobuf.ByteString getAddressBytes(); // optional string company = 8; /** * optional string company = 8; */ boolean hasCompany(); /** * optional string company = 8; */ java.lang.String getCompany(); /** * optional string company = 8; */ com.google.protobuf.ByteString getCompanyBytes(); // optional string extra = 9; /** * optional string extra = 9; */ boolean hasExtra(); /** * optional string extra = 9; */ java.lang.String getExtra(); /** * optional string extra = 9; */ com.google.protobuf.ByteString getExtraBytes(); // optional int64 update_dt = 10; /** * optional int64 update_dt = 10; */ boolean hasUpdateDt(); /** * optional int64 update_dt = 10; */ long getUpdateDt(); // optional int32 gender = 11; /** * optional int32 gender = 11; */ boolean hasGender(); /** * optional int32 gender = 11; */ int getGender(); // optional string social = 12; /** * optional string social = 12; */ boolean hasSocial(); /** * optional string social = 12; */ java.lang.String getSocial(); /** * optional string social = 12; */ com.google.protobuf.ByteString getSocialBytes(); // optional int32 type = 13; /** * optional int32 type = 13; * *
     *0 normal user; 1 robot
     * 
*/ boolean hasType(); /** * optional int32 type = 13; * *
     *0 normal user; 1 robot
     * 
*/ int getType(); // optional int32 deleted = 14; /** * optional int32 deleted = 14; */ boolean hasDeleted(); /** * optional int32 deleted = 14; */ int getDeleted(); } /** * Protobuf type {@code User} */ public static final class User extends com.google.protobuf.GeneratedMessage implements UserOrBuilder { // Use User.newBuilder() to construct. private User(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private User(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final User defaultInstance; public static User getDefaultInstance() { return defaultInstance; } public User getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private User( 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; uid_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; name_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; displayName_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; portrait_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000010; mobile_ = input.readBytes(); break; } case 50: { bitField0_ |= 0x00000020; email_ = input.readBytes(); break; } case 58: { bitField0_ |= 0x00000040; address_ = input.readBytes(); break; } case 66: { bitField0_ |= 0x00000080; company_ = input.readBytes(); break; } case 74: { bitField0_ |= 0x00000100; extra_ = input.readBytes(); break; } case 80: { bitField0_ |= 0x00000200; updateDt_ = input.readInt64(); break; } case 88: { bitField0_ |= 0x00000400; gender_ = input.readInt32(); break; } case 98: { bitField0_ |= 0x00000800; social_ = input.readBytes(); break; } case 104: { bitField0_ |= 0x00001000; type_ = input.readInt32(); break; } case 112: { bitField0_ |= 0x00002000; deleted_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_User_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_User_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.User.class, cn.wildfirechat.proto.WFCMessage.User.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public User parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new User(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string uid = 1; public static final int UID_FIELD_NUMBER = 1; private java.lang.Object uid_; /** * required string uid = 1; */ public boolean hasUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string uid = 1; */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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()) { uid_ = s; } return s; } } /** * required string uid = 1; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string name = 2; public static final int NAME_FIELD_NUMBER = 2; private java.lang.Object name_; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string display_name = 3; public static final int DISPLAY_NAME_FIELD_NUMBER = 3; private java.lang.Object displayName_; /** * optional string display_name = 3; */ public boolean hasDisplayName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string display_name = 3; */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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()) { displayName_ = s; } return s; } } /** * optional string display_name = 3; */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string portrait = 4; public static final int PORTRAIT_FIELD_NUMBER = 4; private java.lang.Object portrait_; /** * optional string portrait = 4; */ public boolean hasPortrait() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string portrait = 4; */ public java.lang.String getPortrait() { java.lang.Object ref = portrait_; 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()) { portrait_ = s; } return s; } } /** * optional string portrait = 4; */ public com.google.protobuf.ByteString getPortraitBytes() { java.lang.Object ref = portrait_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); portrait_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string mobile = 5; public static final int MOBILE_FIELD_NUMBER = 5; private java.lang.Object mobile_; /** * optional string mobile = 5; */ public boolean hasMobile() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string mobile = 5; */ public java.lang.String getMobile() { java.lang.Object ref = mobile_; 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()) { mobile_ = s; } return s; } } /** * optional string mobile = 5; */ public com.google.protobuf.ByteString getMobileBytes() { java.lang.Object ref = mobile_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mobile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string email = 6; public static final int EMAIL_FIELD_NUMBER = 6; private java.lang.Object email_; /** * optional string email = 6; */ public boolean hasEmail() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string email = 6; */ public java.lang.String getEmail() { java.lang.Object ref = email_; 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()) { email_ = s; } return s; } } /** * optional string email = 6; */ public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); email_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string address = 7; public static final int ADDRESS_FIELD_NUMBER = 7; private java.lang.Object address_; /** * optional string address = 7; */ public boolean hasAddress() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string address = 7; */ public java.lang.String getAddress() { java.lang.Object ref = address_; 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()) { address_ = s; } return s; } } /** * optional string address = 7; */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string company = 8; public static final int COMPANY_FIELD_NUMBER = 8; private java.lang.Object company_; /** * optional string company = 8; */ public boolean hasCompany() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string company = 8; */ public java.lang.String getCompany() { java.lang.Object ref = company_; 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()) { company_ = s; } return s; } } /** * optional string company = 8; */ public com.google.protobuf.ByteString getCompanyBytes() { java.lang.Object ref = company_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); company_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string extra = 9; public static final int EXTRA_FIELD_NUMBER = 9; private java.lang.Object extra_; /** * optional string extra = 9; */ public boolean hasExtra() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional string extra = 9; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; 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()) { extra_ = s; } return s; } } /** * optional string extra = 9; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int64 update_dt = 10; public static final int UPDATE_DT_FIELD_NUMBER = 10; private long updateDt_; /** * optional int64 update_dt = 10; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int64 update_dt = 10; */ public long getUpdateDt() { return updateDt_; } // optional int32 gender = 11; public static final int GENDER_FIELD_NUMBER = 11; private int gender_; /** * optional int32 gender = 11; */ public boolean hasGender() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int32 gender = 11; */ public int getGender() { return gender_; } // optional string social = 12; public static final int SOCIAL_FIELD_NUMBER = 12; private java.lang.Object social_; /** * optional string social = 12; */ public boolean hasSocial() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional string social = 12; */ public java.lang.String getSocial() { java.lang.Object ref = social_; 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()) { social_ = s; } return s; } } /** * optional string social = 12; */ public com.google.protobuf.ByteString getSocialBytes() { java.lang.Object ref = social_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); social_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 type = 13; public static final int TYPE_FIELD_NUMBER = 13; private int type_; /** * optional int32 type = 13; * *
     *0 normal user; 1 robot
     * 
*/ public boolean hasType() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional int32 type = 13; * *
     *0 normal user; 1 robot
     * 
*/ public int getType() { return type_; } // optional int32 deleted = 14; public static final int DELETED_FIELD_NUMBER = 14; private int deleted_; /** * optional int32 deleted = 14; */ public boolean hasDeleted() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int32 deleted = 14; */ public int getDeleted() { return deleted_; } private void initFields() { uid_ = ""; name_ = ""; displayName_ = ""; portrait_ = ""; mobile_ = ""; email_ = ""; address_ = ""; company_ = ""; extra_ = ""; updateDt_ = 0L; gender_ = 0; social_ = ""; type_ = 0; deleted_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasUid()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getUidBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getDisplayNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getPortraitBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getMobileBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getEmailBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(7, getAddressBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(8, getCompanyBytes()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBytes(9, getExtraBytes()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeInt64(10, updateDt_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeInt32(11, gender_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeBytes(12, getSocialBytes()); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeInt32(13, type_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeInt32(14, deleted_); } 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, getUidBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getDisplayNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getPortraitBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getMobileBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getEmailBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, getAddressBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, getCompanyBytes()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, getExtraBytes()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, updateDt_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(11, gender_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, getSocialBytes()); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(13, type_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(14, deleted_); } 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 cn.wildfirechat.proto.WFCMessage.User parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.User parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.User parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.User parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.User parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.User parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.User parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.User parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.User parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.User 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(cn.wildfirechat.proto.WFCMessage.User 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 User} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.UserOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_User_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_User_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.User.class, cn.wildfirechat.proto.WFCMessage.User.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.User.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_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); displayName_ = ""; bitField0_ = (bitField0_ & ~0x00000004); portrait_ = ""; bitField0_ = (bitField0_ & ~0x00000008); mobile_ = ""; bitField0_ = (bitField0_ & ~0x00000010); email_ = ""; bitField0_ = (bitField0_ & ~0x00000020); address_ = ""; bitField0_ = (bitField0_ & ~0x00000040); company_ = ""; bitField0_ = (bitField0_ & ~0x00000080); extra_ = ""; bitField0_ = (bitField0_ & ~0x00000100); updateDt_ = 0L; bitField0_ = (bitField0_ & ~0x00000200); gender_ = 0; bitField0_ = (bitField0_ & ~0x00000400); social_ = ""; bitField0_ = (bitField0_ & ~0x00000800); type_ = 0; bitField0_ = (bitField0_ & ~0x00001000); deleted_ = 0; bitField0_ = (bitField0_ & ~0x00002000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_User_descriptor; } public cn.wildfirechat.proto.WFCMessage.User getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.User.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.User build() { cn.wildfirechat.proto.WFCMessage.User result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.User buildPartial() { cn.wildfirechat.proto.WFCMessage.User result = new cn.wildfirechat.proto.WFCMessage.User(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.name_ = name_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.displayName_ = displayName_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.portrait_ = portrait_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.mobile_ = mobile_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.email_ = email_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.address_ = address_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.company_ = company_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.extra_ = extra_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.updateDt_ = updateDt_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.gender_ = gender_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.social_ = social_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.type_ = type_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.deleted_ = deleted_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.User) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.User)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.User other) { if (other == cn.wildfirechat.proto.WFCMessage.User.getDefaultInstance()) return this; if (other.hasUid()) { bitField0_ |= 0x00000001; uid_ = other.uid_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasDisplayName()) { bitField0_ |= 0x00000004; displayName_ = other.displayName_; onChanged(); } if (other.hasPortrait()) { bitField0_ |= 0x00000008; portrait_ = other.portrait_; onChanged(); } if (other.hasMobile()) { bitField0_ |= 0x00000010; mobile_ = other.mobile_; onChanged(); } if (other.hasEmail()) { bitField0_ |= 0x00000020; email_ = other.email_; onChanged(); } if (other.hasAddress()) { bitField0_ |= 0x00000040; address_ = other.address_; onChanged(); } if (other.hasCompany()) { bitField0_ |= 0x00000080; company_ = other.company_; onChanged(); } if (other.hasExtra()) { bitField0_ |= 0x00000100; extra_ = other.extra_; onChanged(); } if (other.hasUpdateDt()) { setUpdateDt(other.getUpdateDt()); } if (other.hasGender()) { setGender(other.getGender()); } if (other.hasSocial()) { bitField0_ |= 0x00000800; social_ = other.social_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (other.hasDeleted()) { setDeleted(other.getDeleted()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasUid()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.User parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.User) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string uid = 1; private java.lang.Object uid_ = ""; /** * required string uid = 1; */ public boolean hasUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string uid = 1; */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); uid_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string uid = 1; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string uid = 1; */ public Builder setUid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uid_ = value; onChanged(); return this; } /** * required string uid = 1; */ public Builder clearUid() { bitField0_ = (bitField0_ & ~0x00000001); uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** * required string uid = 1; */ public Builder setUidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uid_ = value; onChanged(); return this; } // optional string name = 2; private java.lang.Object name_ = ""; /** * optional string name = 2; */ public boolean hasName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string name = 2; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name = 2; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * optional string name = 2; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } // optional string display_name = 3; private java.lang.Object displayName_ = ""; /** * optional string display_name = 3; */ public boolean hasDisplayName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string display_name = 3; */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); displayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string display_name = 3; */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string display_name = 3; */ public Builder setDisplayName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; displayName_ = value; onChanged(); return this; } /** * optional string display_name = 3; */ public Builder clearDisplayName() { bitField0_ = (bitField0_ & ~0x00000004); displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** * optional string display_name = 3; */ public Builder setDisplayNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; displayName_ = value; onChanged(); return this; } // optional string portrait = 4; private java.lang.Object portrait_ = ""; /** * optional string portrait = 4; */ public boolean hasPortrait() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string portrait = 4; */ public java.lang.String getPortrait() { java.lang.Object ref = portrait_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); portrait_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string portrait = 4; */ public com.google.protobuf.ByteString getPortraitBytes() { java.lang.Object ref = portrait_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); portrait_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string portrait = 4; */ public Builder setPortrait( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; portrait_ = value; onChanged(); return this; } /** * optional string portrait = 4; */ public Builder clearPortrait() { bitField0_ = (bitField0_ & ~0x00000008); portrait_ = getDefaultInstance().getPortrait(); onChanged(); return this; } /** * optional string portrait = 4; */ public Builder setPortraitBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; portrait_ = value; onChanged(); return this; } // optional string mobile = 5; private java.lang.Object mobile_ = ""; /** * optional string mobile = 5; */ public boolean hasMobile() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string mobile = 5; */ public java.lang.String getMobile() { java.lang.Object ref = mobile_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); mobile_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string mobile = 5; */ public com.google.protobuf.ByteString getMobileBytes() { java.lang.Object ref = mobile_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mobile_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string mobile = 5; */ public Builder setMobile( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; mobile_ = value; onChanged(); return this; } /** * optional string mobile = 5; */ public Builder clearMobile() { bitField0_ = (bitField0_ & ~0x00000010); mobile_ = getDefaultInstance().getMobile(); onChanged(); return this; } /** * optional string mobile = 5; */ public Builder setMobileBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; mobile_ = value; onChanged(); return this; } // optional string email = 6; private java.lang.Object email_ = ""; /** * optional string email = 6; */ public boolean hasEmail() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string email = 6; */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); email_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string email = 6; */ public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); email_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string email = 6; */ public Builder setEmail( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; email_ = value; onChanged(); return this; } /** * optional string email = 6; */ public Builder clearEmail() { bitField0_ = (bitField0_ & ~0x00000020); email_ = getDefaultInstance().getEmail(); onChanged(); return this; } /** * optional string email = 6; */ public Builder setEmailBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; email_ = value; onChanged(); return this; } // optional string address = 7; private java.lang.Object address_ = ""; /** * optional string address = 7; */ public boolean hasAddress() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string address = 7; */ public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string address = 7; */ public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string address = 7; */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; address_ = value; onChanged(); return this; } /** * optional string address = 7; */ public Builder clearAddress() { bitField0_ = (bitField0_ & ~0x00000040); address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /** * optional string address = 7; */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; address_ = value; onChanged(); return this; } // optional string company = 8; private java.lang.Object company_ = ""; /** * optional string company = 8; */ public boolean hasCompany() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string company = 8; */ public java.lang.String getCompany() { java.lang.Object ref = company_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); company_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string company = 8; */ public com.google.protobuf.ByteString getCompanyBytes() { java.lang.Object ref = company_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); company_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string company = 8; */ public Builder setCompany( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; company_ = value; onChanged(); return this; } /** * optional string company = 8; */ public Builder clearCompany() { bitField0_ = (bitField0_ & ~0x00000080); company_ = getDefaultInstance().getCompany(); onChanged(); return this; } /** * optional string company = 8; */ public Builder setCompanyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; company_ = value; onChanged(); return this; } // optional string extra = 9; private java.lang.Object extra_ = ""; /** * optional string extra = 9; */ public boolean hasExtra() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional string extra = 9; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); extra_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string extra = 9; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string extra = 9; */ public Builder setExtra( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; extra_ = value; onChanged(); return this; } /** * optional string extra = 9; */ public Builder clearExtra() { bitField0_ = (bitField0_ & ~0x00000100); extra_ = getDefaultInstance().getExtra(); onChanged(); return this; } /** * optional string extra = 9; */ public Builder setExtraBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; extra_ = value; onChanged(); return this; } // optional int64 update_dt = 10; private long updateDt_ ; /** * optional int64 update_dt = 10; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional int64 update_dt = 10; */ public long getUpdateDt() { return updateDt_; } /** * optional int64 update_dt = 10; */ public Builder setUpdateDt(long value) { bitField0_ |= 0x00000200; updateDt_ = value; onChanged(); return this; } /** * optional int64 update_dt = 10; */ public Builder clearUpdateDt() { bitField0_ = (bitField0_ & ~0x00000200); updateDt_ = 0L; onChanged(); return this; } // optional int32 gender = 11; private int gender_ ; /** * optional int32 gender = 11; */ public boolean hasGender() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional int32 gender = 11; */ public int getGender() { return gender_; } /** * optional int32 gender = 11; */ public Builder setGender(int value) { bitField0_ |= 0x00000400; gender_ = value; onChanged(); return this; } /** * optional int32 gender = 11; */ public Builder clearGender() { bitField0_ = (bitField0_ & ~0x00000400); gender_ = 0; onChanged(); return this; } // optional string social = 12; private java.lang.Object social_ = ""; /** * optional string social = 12; */ public boolean hasSocial() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional string social = 12; */ public java.lang.String getSocial() { java.lang.Object ref = social_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); social_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string social = 12; */ public com.google.protobuf.ByteString getSocialBytes() { java.lang.Object ref = social_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); social_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string social = 12; */ public Builder setSocial( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; social_ = value; onChanged(); return this; } /** * optional string social = 12; */ public Builder clearSocial() { bitField0_ = (bitField0_ & ~0x00000800); social_ = getDefaultInstance().getSocial(); onChanged(); return this; } /** * optional string social = 12; */ public Builder setSocialBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; social_ = value; onChanged(); return this; } // optional int32 type = 13; private int type_ ; /** * optional int32 type = 13; * *
       *0 normal user; 1 robot
       * 
*/ public boolean hasType() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional int32 type = 13; * *
       *0 normal user; 1 robot
       * 
*/ public int getType() { return type_; } /** * optional int32 type = 13; * *
       *0 normal user; 1 robot
       * 
*/ public Builder setType(int value) { bitField0_ |= 0x00001000; type_ = value; onChanged(); return this; } /** * optional int32 type = 13; * *
       *0 normal user; 1 robot
       * 
*/ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00001000); type_ = 0; onChanged(); return this; } // optional int32 deleted = 14; private int deleted_ ; /** * optional int32 deleted = 14; */ public boolean hasDeleted() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional int32 deleted = 14; */ public int getDeleted() { return deleted_; } /** * optional int32 deleted = 14; */ public Builder setDeleted(int value) { bitField0_ |= 0x00002000; deleted_ = value; onChanged(); return this; } /** * optional int32 deleted = 14; */ public Builder clearDeleted() { bitField0_ = (bitField0_ & ~0x00002000); deleted_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:User) } static { defaultInstance = new User(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:User) } public interface RobotOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string uid = 1; /** * required string uid = 1; */ boolean hasUid(); /** * required string uid = 1; */ java.lang.String getUid(); /** * required string uid = 1; */ com.google.protobuf.ByteString getUidBytes(); // required int32 state = 2; /** * required int32 state = 2; * *
     *0 normal; 1 deleted;
     * 
*/ boolean hasState(); /** * required int32 state = 2; * *
     *0 normal; 1 deleted;
     * 
*/ int getState(); // optional string owner = 3; /** * optional string owner = 3; */ boolean hasOwner(); /** * optional string owner = 3; */ java.lang.String getOwner(); /** * optional string owner = 3; */ com.google.protobuf.ByteString getOwnerBytes(); // optional string secret = 4; /** * optional string secret = 4; */ boolean hasSecret(); /** * optional string secret = 4; */ java.lang.String getSecret(); /** * optional string secret = 4; */ com.google.protobuf.ByteString getSecretBytes(); // optional string callback = 5; /** * optional string callback = 5; */ boolean hasCallback(); /** * optional string callback = 5; */ java.lang.String getCallback(); /** * optional string callback = 5; */ com.google.protobuf.ByteString getCallbackBytes(); // optional string extra = 6; /** * optional string extra = 6; */ boolean hasExtra(); /** * optional string extra = 6; */ java.lang.String getExtra(); /** * optional string extra = 6; */ com.google.protobuf.ByteString getExtraBytes(); } /** * Protobuf type {@code Robot} */ public static final class Robot extends com.google.protobuf.GeneratedMessage implements RobotOrBuilder { // Use Robot.newBuilder() to construct. private Robot(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Robot(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Robot defaultInstance; public static Robot getDefaultInstance() { return defaultInstance; } public Robot getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Robot( 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; uid_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; state_ = input.readInt32(); break; } case 26: { bitField0_ |= 0x00000004; owner_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; secret_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000010; callback_ = input.readBytes(); break; } case 50: { bitField0_ |= 0x00000020; extra_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_Robot_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_Robot_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.Robot.class, cn.wildfirechat.proto.WFCMessage.Robot.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Robot parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Robot(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string uid = 1; public static final int UID_FIELD_NUMBER = 1; private java.lang.Object uid_; /** * required string uid = 1; */ public boolean hasUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string uid = 1; */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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()) { uid_ = s; } return s; } } /** * required string uid = 1; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 state = 2; public static final int STATE_FIELD_NUMBER = 2; private int state_; /** * required int32 state = 2; * *
     *0 normal; 1 deleted;
     * 
*/ public boolean hasState() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 state = 2; * *
     *0 normal; 1 deleted;
     * 
*/ public int getState() { return state_; } // optional string owner = 3; public static final int OWNER_FIELD_NUMBER = 3; private java.lang.Object owner_; /** * optional string owner = 3; */ public boolean hasOwner() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string owner = 3; */ public java.lang.String getOwner() { java.lang.Object ref = owner_; 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()) { owner_ = s; } return s; } } /** * optional string owner = 3; */ public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string secret = 4; public static final int SECRET_FIELD_NUMBER = 4; private java.lang.Object secret_; /** * optional string secret = 4; */ public boolean hasSecret() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string secret = 4; */ public java.lang.String getSecret() { java.lang.Object ref = secret_; 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()) { secret_ = s; } return s; } } /** * optional string secret = 4; */ public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secret_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string callback = 5; public static final int CALLBACK_FIELD_NUMBER = 5; private java.lang.Object callback_; /** * optional string callback = 5; */ public boolean hasCallback() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string callback = 5; */ public java.lang.String getCallback() { java.lang.Object ref = callback_; 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()) { callback_ = s; } return s; } } /** * optional string callback = 5; */ public com.google.protobuf.ByteString getCallbackBytes() { java.lang.Object ref = callback_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callback_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string extra = 6; public static final int EXTRA_FIELD_NUMBER = 6; private java.lang.Object extra_; /** * optional string extra = 6; */ public boolean hasExtra() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string extra = 6; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; 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()) { extra_ = s; } return s; } } /** * optional string extra = 6; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { uid_ = ""; state_ = 0; owner_ = ""; secret_ = ""; callback_ = ""; extra_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasUid()) { memoizedIsInitialized = 0; return false; } if (!hasState()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getUidBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, state_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getOwnerBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getSecretBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getCallbackBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getExtraBytes()); } 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, getUidBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, state_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getOwnerBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getSecretBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getCallbackBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getExtraBytes()); } 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 cn.wildfirechat.proto.WFCMessage.Robot parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.Robot parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Robot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.Robot parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Robot parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Robot parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Robot parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Robot parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Robot parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Robot 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(cn.wildfirechat.proto.WFCMessage.Robot 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 Robot} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.RobotOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_Robot_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_Robot_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.Robot.class, cn.wildfirechat.proto.WFCMessage.Robot.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.Robot.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_ = ""; bitField0_ = (bitField0_ & ~0x00000001); state_ = 0; bitField0_ = (bitField0_ & ~0x00000002); owner_ = ""; bitField0_ = (bitField0_ & ~0x00000004); secret_ = ""; bitField0_ = (bitField0_ & ~0x00000008); callback_ = ""; bitField0_ = (bitField0_ & ~0x00000010); extra_ = ""; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_Robot_descriptor; } public cn.wildfirechat.proto.WFCMessage.Robot getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.Robot.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.Robot build() { cn.wildfirechat.proto.WFCMessage.Robot result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.Robot buildPartial() { cn.wildfirechat.proto.WFCMessage.Robot result = new cn.wildfirechat.proto.WFCMessage.Robot(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.state_ = state_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.owner_ = owner_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.secret_ = secret_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.callback_ = callback_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.extra_ = extra_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.Robot) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.Robot)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.Robot other) { if (other == cn.wildfirechat.proto.WFCMessage.Robot.getDefaultInstance()) return this; if (other.hasUid()) { bitField0_ |= 0x00000001; uid_ = other.uid_; onChanged(); } if (other.hasState()) { setState(other.getState()); } if (other.hasOwner()) { bitField0_ |= 0x00000004; owner_ = other.owner_; onChanged(); } if (other.hasSecret()) { bitField0_ |= 0x00000008; secret_ = other.secret_; onChanged(); } if (other.hasCallback()) { bitField0_ |= 0x00000010; callback_ = other.callback_; onChanged(); } if (other.hasExtra()) { bitField0_ |= 0x00000020; extra_ = other.extra_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasUid()) { return false; } if (!hasState()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.Robot parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.Robot) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string uid = 1; private java.lang.Object uid_ = ""; /** * required string uid = 1; */ public boolean hasUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string uid = 1; */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); uid_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string uid = 1; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string uid = 1; */ public Builder setUid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uid_ = value; onChanged(); return this; } /** * required string uid = 1; */ public Builder clearUid() { bitField0_ = (bitField0_ & ~0x00000001); uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** * required string uid = 1; */ public Builder setUidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uid_ = value; onChanged(); return this; } // required int32 state = 2; private int state_ ; /** * required int32 state = 2; * *
       *0 normal; 1 deleted;
       * 
*/ public boolean hasState() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 state = 2; * *
       *0 normal; 1 deleted;
       * 
*/ public int getState() { return state_; } /** * required int32 state = 2; * *
       *0 normal; 1 deleted;
       * 
*/ public Builder setState(int value) { bitField0_ |= 0x00000002; state_ = value; onChanged(); return this; } /** * required int32 state = 2; * *
       *0 normal; 1 deleted;
       * 
*/ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000002); state_ = 0; onChanged(); return this; } // optional string owner = 3; private java.lang.Object owner_ = ""; /** * optional string owner = 3; */ public boolean hasOwner() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string owner = 3; */ public java.lang.String getOwner() { java.lang.Object ref = owner_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); owner_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string owner = 3; */ public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string owner = 3; */ public Builder setOwner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; owner_ = value; onChanged(); return this; } /** * optional string owner = 3; */ public Builder clearOwner() { bitField0_ = (bitField0_ & ~0x00000004); owner_ = getDefaultInstance().getOwner(); onChanged(); return this; } /** * optional string owner = 3; */ public Builder setOwnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; owner_ = value; onChanged(); return this; } // optional string secret = 4; private java.lang.Object secret_ = ""; /** * optional string secret = 4; */ public boolean hasSecret() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string secret = 4; */ public java.lang.String getSecret() { java.lang.Object ref = secret_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); secret_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string secret = 4; */ public com.google.protobuf.ByteString getSecretBytes() { java.lang.Object ref = secret_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); secret_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string secret = 4; */ public Builder setSecret( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; secret_ = value; onChanged(); return this; } /** * optional string secret = 4; */ public Builder clearSecret() { bitField0_ = (bitField0_ & ~0x00000008); secret_ = getDefaultInstance().getSecret(); onChanged(); return this; } /** * optional string secret = 4; */ public Builder setSecretBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; secret_ = value; onChanged(); return this; } // optional string callback = 5; private java.lang.Object callback_ = ""; /** * optional string callback = 5; */ public boolean hasCallback() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string callback = 5; */ public java.lang.String getCallback() { java.lang.Object ref = callback_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); callback_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string callback = 5; */ public com.google.protobuf.ByteString getCallbackBytes() { java.lang.Object ref = callback_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callback_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string callback = 5; */ public Builder setCallback( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; callback_ = value; onChanged(); return this; } /** * optional string callback = 5; */ public Builder clearCallback() { bitField0_ = (bitField0_ & ~0x00000010); callback_ = getDefaultInstance().getCallback(); onChanged(); return this; } /** * optional string callback = 5; */ public Builder setCallbackBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; callback_ = value; onChanged(); return this; } // optional string extra = 6; private java.lang.Object extra_ = ""; /** * optional string extra = 6; */ public boolean hasExtra() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string extra = 6; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); extra_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string extra = 6; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string extra = 6; */ public Builder setExtra( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; extra_ = value; onChanged(); return this; } /** * optional string extra = 6; */ public Builder clearExtra() { bitField0_ = (bitField0_ & ~0x00000020); extra_ = getDefaultInstance().getExtra(); onChanged(); return this; } /** * optional string extra = 6; */ public Builder setExtraBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; extra_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:Robot) } static { defaultInstance = new Robot(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:Robot) } public interface GetRobotsResultOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .Robot entry = 1; /** * repeated .Robot entry = 1; */ java.util.List getEntryList(); /** * repeated .Robot entry = 1; */ cn.wildfirechat.proto.WFCMessage.Robot getEntry(int index); /** * repeated .Robot entry = 1; */ int getEntryCount(); /** * repeated .Robot entry = 1; */ java.util.List getEntryOrBuilderList(); /** * repeated .Robot entry = 1; */ cn.wildfirechat.proto.WFCMessage.RobotOrBuilder getEntryOrBuilder( int index); } /** * Protobuf type {@code GetRobotsResult} */ public static final class GetRobotsResult extends com.google.protobuf.GeneratedMessage implements GetRobotsResultOrBuilder { // Use GetRobotsResult.newBuilder() to construct. private GetRobotsResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetRobotsResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetRobotsResult defaultInstance; public static GetRobotsResult getDefaultInstance() { return defaultInstance; } public GetRobotsResult getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetRobotsResult( 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)) { entry_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } entry_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.Robot.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)) { entry_ = java.util.Collections.unmodifiableList(entry_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetRobotsResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetRobotsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetRobotsResult.class, cn.wildfirechat.proto.WFCMessage.GetRobotsResult.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetRobotsResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetRobotsResult(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .Robot entry = 1; public static final int ENTRY_FIELD_NUMBER = 1; private java.util.List entry_; /** * repeated .Robot entry = 1; */ public java.util.List getEntryList() { return entry_; } /** * repeated .Robot entry = 1; */ public java.util.List getEntryOrBuilderList() { return entry_; } /** * repeated .Robot entry = 1; */ public int getEntryCount() { return entry_.size(); } /** * repeated .Robot entry = 1; */ public cn.wildfirechat.proto.WFCMessage.Robot getEntry(int index) { return entry_.get(index); } /** * repeated .Robot entry = 1; */ public cn.wildfirechat.proto.WFCMessage.RobotOrBuilder getEntryOrBuilder( int index) { return entry_.get(index); } private void initFields() { entry_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getEntryCount(); i++) { if (!getEntry(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < entry_.size(); i++) { output.writeMessage(1, entry_.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 < entry_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, entry_.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 cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetRobotsResult 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(cn.wildfirechat.proto.WFCMessage.GetRobotsResult 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 GetRobotsResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.GetRobotsResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetRobotsResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetRobotsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetRobotsResult.class, cn.wildfirechat.proto.WFCMessage.GetRobotsResult.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.GetRobotsResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getEntryFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (entryBuilder_ == null) { entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { entryBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetRobotsResult_descriptor; } public cn.wildfirechat.proto.WFCMessage.GetRobotsResult getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.GetRobotsResult.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.GetRobotsResult build() { cn.wildfirechat.proto.WFCMessage.GetRobotsResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.GetRobotsResult buildPartial() { cn.wildfirechat.proto.WFCMessage.GetRobotsResult result = new cn.wildfirechat.proto.WFCMessage.GetRobotsResult(this); int from_bitField0_ = bitField0_; if (entryBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { entry_ = java.util.Collections.unmodifiableList(entry_); bitField0_ = (bitField0_ & ~0x00000001); } result.entry_ = entry_; } else { result.entry_ = entryBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.GetRobotsResult) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.GetRobotsResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.GetRobotsResult other) { if (other == cn.wildfirechat.proto.WFCMessage.GetRobotsResult.getDefaultInstance()) return this; if (entryBuilder_ == null) { if (!other.entry_.isEmpty()) { if (entry_.isEmpty()) { entry_ = other.entry_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntryIsMutable(); entry_.addAll(other.entry_); } onChanged(); } } else { if (!other.entry_.isEmpty()) { if (entryBuilder_.isEmpty()) { entryBuilder_.dispose(); entryBuilder_ = null; entry_ = other.entry_; bitField0_ = (bitField0_ & ~0x00000001); entryBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getEntryFieldBuilder() : null; } else { entryBuilder_.addAllMessages(other.entry_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getEntryCount(); i++) { if (!getEntry(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.GetRobotsResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.GetRobotsResult) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .Robot entry = 1; private java.util.List entry_ = java.util.Collections.emptyList(); private void ensureEntryIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { entry_ = new java.util.ArrayList(entry_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.Robot, cn.wildfirechat.proto.WFCMessage.Robot.Builder, cn.wildfirechat.proto.WFCMessage.RobotOrBuilder> entryBuilder_; /** * repeated .Robot entry = 1; */ public java.util.List getEntryList() { if (entryBuilder_ == null) { return java.util.Collections.unmodifiableList(entry_); } else { return entryBuilder_.getMessageList(); } } /** * repeated .Robot entry = 1; */ public int getEntryCount() { if (entryBuilder_ == null) { return entry_.size(); } else { return entryBuilder_.getCount(); } } /** * repeated .Robot entry = 1; */ public cn.wildfirechat.proto.WFCMessage.Robot getEntry(int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { return entryBuilder_.getMessage(index); } } /** * repeated .Robot entry = 1; */ public Builder setEntry( int index, cn.wildfirechat.proto.WFCMessage.Robot value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.set(index, value); onChanged(); } else { entryBuilder_.setMessage(index, value); } return this; } /** * repeated .Robot entry = 1; */ public Builder setEntry( int index, cn.wildfirechat.proto.WFCMessage.Robot.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.set(index, builderForValue.build()); onChanged(); } else { entryBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Robot entry = 1; */ public Builder addEntry(cn.wildfirechat.proto.WFCMessage.Robot value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.add(value); onChanged(); } else { entryBuilder_.addMessage(value); } return this; } /** * repeated .Robot entry = 1; */ public Builder addEntry( int index, cn.wildfirechat.proto.WFCMessage.Robot value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.add(index, value); onChanged(); } else { entryBuilder_.addMessage(index, value); } return this; } /** * repeated .Robot entry = 1; */ public Builder addEntry( cn.wildfirechat.proto.WFCMessage.Robot.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(builderForValue.build()); onChanged(); } else { entryBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Robot entry = 1; */ public Builder addEntry( int index, cn.wildfirechat.proto.WFCMessage.Robot.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(index, builderForValue.build()); onChanged(); } else { entryBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Robot entry = 1; */ public Builder addAllEntry( java.lang.Iterable values) { if (entryBuilder_ == null) { ensureEntryIsMutable(); super.addAll(values, entry_); onChanged(); } else { entryBuilder_.addAllMessages(values); } return this; } /** * repeated .Robot entry = 1; */ public Builder clearEntry() { if (entryBuilder_ == null) { entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entryBuilder_.clear(); } return this; } /** * repeated .Robot entry = 1; */ public Builder removeEntry(int index) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.remove(index); onChanged(); } else { entryBuilder_.remove(index); } return this; } /** * repeated .Robot entry = 1; */ public cn.wildfirechat.proto.WFCMessage.Robot.Builder getEntryBuilder( int index) { return getEntryFieldBuilder().getBuilder(index); } /** * repeated .Robot entry = 1; */ public cn.wildfirechat.proto.WFCMessage.RobotOrBuilder getEntryOrBuilder( int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { return entryBuilder_.getMessageOrBuilder(index); } } /** * repeated .Robot entry = 1; */ public java.util.List getEntryOrBuilderList() { if (entryBuilder_ != null) { return entryBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entry_); } } /** * repeated .Robot entry = 1; */ public cn.wildfirechat.proto.WFCMessage.Robot.Builder addEntryBuilder() { return getEntryFieldBuilder().addBuilder( cn.wildfirechat.proto.WFCMessage.Robot.getDefaultInstance()); } /** * repeated .Robot entry = 1; */ public cn.wildfirechat.proto.WFCMessage.Robot.Builder addEntryBuilder( int index) { return getEntryFieldBuilder().addBuilder( index, cn.wildfirechat.proto.WFCMessage.Robot.getDefaultInstance()); } /** * repeated .Robot entry = 1; */ public java.util.List getEntryBuilderList() { return getEntryFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.Robot, cn.wildfirechat.proto.WFCMessage.Robot.Builder, cn.wildfirechat.proto.WFCMessage.RobotOrBuilder> getEntryFieldBuilder() { if (entryBuilder_ == null) { entryBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.Robot, cn.wildfirechat.proto.WFCMessage.Robot.Builder, cn.wildfirechat.proto.WFCMessage.RobotOrBuilder>( entry_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); entry_ = null; } return entryBuilder_; } // @@protoc_insertion_point(builder_scope:GetRobotsResult) } static { defaultInstance = new GetRobotsResult(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:GetRobotsResult) } public interface UploadDeviceTokenRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int32 platform = 1; /** * required int32 platform = 1; */ boolean hasPlatform(); /** * required int32 platform = 1; */ int getPlatform(); // required string app_name = 2; /** * required string app_name = 2; */ boolean hasAppName(); /** * required string app_name = 2; */ java.lang.String getAppName(); /** * required string app_name = 2; */ com.google.protobuf.ByteString getAppNameBytes(); // required string device_token = 3; /** * required string device_token = 3; */ boolean hasDeviceToken(); /** * required string device_token = 3; */ java.lang.String getDeviceToken(); /** * required string device_token = 3; */ com.google.protobuf.ByteString getDeviceTokenBytes(); // required int32 push_type = 4; /** * required int32 push_type = 4; */ boolean hasPushType(); /** * required int32 push_type = 4; */ int getPushType(); } /** * Protobuf type {@code UploadDeviceTokenRequest} */ public static final class UploadDeviceTokenRequest extends com.google.protobuf.GeneratedMessage implements UploadDeviceTokenRequestOrBuilder { // Use UploadDeviceTokenRequest.newBuilder() to construct. private UploadDeviceTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private UploadDeviceTokenRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final UploadDeviceTokenRequest defaultInstance; public static UploadDeviceTokenRequest getDefaultInstance() { return defaultInstance; } public UploadDeviceTokenRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UploadDeviceTokenRequest( 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; platform_ = input.readInt32(); break; } case 18: { bitField0_ |= 0x00000002; appName_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; deviceToken_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; pushType_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_UploadDeviceTokenRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_UploadDeviceTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest.class, cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UploadDeviceTokenRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UploadDeviceTokenRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required int32 platform = 1; public static final int PLATFORM_FIELD_NUMBER = 1; private int platform_; /** * required int32 platform = 1; */ public boolean hasPlatform() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 platform = 1; */ public int getPlatform() { return platform_; } // required string app_name = 2; public static final int APP_NAME_FIELD_NUMBER = 2; private java.lang.Object appName_; /** * required string app_name = 2; */ public boolean hasAppName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string app_name = 2; */ public java.lang.String getAppName() { java.lang.Object ref = appName_; 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()) { appName_ = s; } return s; } } /** * required string app_name = 2; */ public com.google.protobuf.ByteString getAppNameBytes() { java.lang.Object ref = appName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string device_token = 3; public static final int DEVICE_TOKEN_FIELD_NUMBER = 3; private java.lang.Object deviceToken_; /** * required string device_token = 3; */ public boolean hasDeviceToken() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string device_token = 3; */ public java.lang.String getDeviceToken() { java.lang.Object ref = deviceToken_; 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()) { deviceToken_ = s; } return s; } } /** * required string device_token = 3; */ public com.google.protobuf.ByteString getDeviceTokenBytes() { java.lang.Object ref = deviceToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 push_type = 4; public static final int PUSH_TYPE_FIELD_NUMBER = 4; private int pushType_; /** * required int32 push_type = 4; */ public boolean hasPushType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required int32 push_type = 4; */ public int getPushType() { return pushType_; } private void initFields() { platform_ = 0; appName_ = ""; deviceToken_ = ""; pushType_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasPlatform()) { memoizedIsInitialized = 0; return false; } if (!hasAppName()) { memoizedIsInitialized = 0; return false; } if (!hasDeviceToken()) { memoizedIsInitialized = 0; return false; } if (!hasPushType()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, platform_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getAppNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getDeviceTokenBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, pushType_); } 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, platform_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getAppNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getDeviceTokenBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, pushType_); } 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 cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest 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(cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest 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 UploadDeviceTokenRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_UploadDeviceTokenRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_UploadDeviceTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest.class, cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest.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(); platform_ = 0; bitField0_ = (bitField0_ & ~0x00000001); appName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); deviceToken_ = ""; bitField0_ = (bitField0_ & ~0x00000004); pushType_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_UploadDeviceTokenRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest build() { cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest result = new cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.platform_ = platform_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.appName_ = appName_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.deviceToken_ = deviceToken_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.pushType_ = pushType_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest.getDefaultInstance()) return this; if (other.hasPlatform()) { setPlatform(other.getPlatform()); } if (other.hasAppName()) { bitField0_ |= 0x00000002; appName_ = other.appName_; onChanged(); } if (other.hasDeviceToken()) { bitField0_ |= 0x00000004; deviceToken_ = other.deviceToken_; onChanged(); } if (other.hasPushType()) { setPushType(other.getPushType()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasPlatform()) { return false; } if (!hasAppName()) { return false; } if (!hasDeviceToken()) { return false; } if (!hasPushType()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.UploadDeviceTokenRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int32 platform = 1; private int platform_ ; /** * required int32 platform = 1; */ public boolean hasPlatform() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 platform = 1; */ public int getPlatform() { return platform_; } /** * required int32 platform = 1; */ public Builder setPlatform(int value) { bitField0_ |= 0x00000001; platform_ = value; onChanged(); return this; } /** * required int32 platform = 1; */ public Builder clearPlatform() { bitField0_ = (bitField0_ & ~0x00000001); platform_ = 0; onChanged(); return this; } // required string app_name = 2; private java.lang.Object appName_ = ""; /** * required string app_name = 2; */ public boolean hasAppName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string app_name = 2; */ public java.lang.String getAppName() { java.lang.Object ref = appName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); appName_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string app_name = 2; */ public com.google.protobuf.ByteString getAppNameBytes() { java.lang.Object ref = appName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string app_name = 2; */ public Builder setAppName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; appName_ = value; onChanged(); return this; } /** * required string app_name = 2; */ public Builder clearAppName() { bitField0_ = (bitField0_ & ~0x00000002); appName_ = getDefaultInstance().getAppName(); onChanged(); return this; } /** * required string app_name = 2; */ public Builder setAppNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; appName_ = value; onChanged(); return this; } // required string device_token = 3; private java.lang.Object deviceToken_ = ""; /** * required string device_token = 3; */ public boolean hasDeviceToken() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string device_token = 3; */ public java.lang.String getDeviceToken() { java.lang.Object ref = deviceToken_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); deviceToken_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string device_token = 3; */ public com.google.protobuf.ByteString getDeviceTokenBytes() { java.lang.Object ref = deviceToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string device_token = 3; */ public Builder setDeviceToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; deviceToken_ = value; onChanged(); return this; } /** * required string device_token = 3; */ public Builder clearDeviceToken() { bitField0_ = (bitField0_ & ~0x00000004); deviceToken_ = getDefaultInstance().getDeviceToken(); onChanged(); return this; } /** * required string device_token = 3; */ public Builder setDeviceTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; deviceToken_ = value; onChanged(); return this; } // required int32 push_type = 4; private int pushType_ ; /** * required int32 push_type = 4; */ public boolean hasPushType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required int32 push_type = 4; */ public int getPushType() { return pushType_; } /** * required int32 push_type = 4; */ public Builder setPushType(int value) { bitField0_ |= 0x00000008; pushType_ = value; onChanged(); return this; } /** * required int32 push_type = 4; */ public Builder clearPushType() { bitField0_ = (bitField0_ & ~0x00000008); pushType_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:UploadDeviceTokenRequest) } static { defaultInstance = new UploadDeviceTokenRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:UploadDeviceTokenRequest) } public interface ModifyGroupInfoRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string group_id = 1; /** * required string group_id = 1; */ boolean hasGroupId(); /** * required string group_id = 1; */ java.lang.String getGroupId(); /** * required string group_id = 1; */ com.google.protobuf.ByteString getGroupIdBytes(); // required int32 type = 2; /** * required int32 type = 2; */ boolean hasType(); /** * required int32 type = 2; */ int getType(); // required string value = 3; /** * required string value = 3; */ boolean hasValue(); /** * required string value = 3; */ java.lang.String getValue(); /** * required string value = 3; */ com.google.protobuf.ByteString getValueBytes(); // repeated int32 to_line = 4; /** * repeated int32 to_line = 4; */ java.util.List getToLineList(); /** * repeated int32 to_line = 4; */ int getToLineCount(); /** * repeated int32 to_line = 4; */ int getToLine(int index); // optional .MessageContent notify_content = 5; /** * optional .MessageContent notify_content = 5; */ boolean hasNotifyContent(); /** * optional .MessageContent notify_content = 5; */ cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent(); /** * optional .MessageContent notify_content = 5; */ cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder(); } /** * Protobuf type {@code ModifyGroupInfoRequest} */ public static final class ModifyGroupInfoRequest extends com.google.protobuf.GeneratedMessage implements ModifyGroupInfoRequestOrBuilder { // Use ModifyGroupInfoRequest.newBuilder() to construct. private ModifyGroupInfoRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ModifyGroupInfoRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ModifyGroupInfoRequest defaultInstance; public static ModifyGroupInfoRequest getDefaultInstance() { return defaultInstance; } public ModifyGroupInfoRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ModifyGroupInfoRequest( 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; groupId_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; type_ = input.readInt32(); break; } case 26: { bitField0_ |= 0x00000004; value_ = input.readBytes(); break; } case 32: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } toLine_.add(input.readInt32()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { toLine_.add(input.readInt32()); } input.popLimit(limit); break; } case 42: { cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = notifyContent_.toBuilder(); } notifyContent_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(notifyContent_); notifyContent_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; 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)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupInfoRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest.class, cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ModifyGroupInfoRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ModifyGroupInfoRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string group_id = 1; public static final int GROUP_ID_FIELD_NUMBER = 1; private java.lang.Object groupId_; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; 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()) { groupId_ = s; } return s; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 type = 2; public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** * required int32 type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 type = 2; */ public int getType() { return type_; } // required string value = 3; public static final int VALUE_FIELD_NUMBER = 3; private java.lang.Object value_; /** * required string value = 3; */ public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string value = 3; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * required string value = 3; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated int32 to_line = 4; public static final int TO_LINE_FIELD_NUMBER = 4; private java.util.List toLine_; /** * repeated int32 to_line = 4; */ public java.util.List getToLineList() { return toLine_; } /** * repeated int32 to_line = 4; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 4; */ public int getToLine(int index) { return toLine_.get(index); } // optional .MessageContent notify_content = 5; public static final int NOTIFY_CONTENT_FIELD_NUMBER = 5; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_; /** * optional .MessageContent notify_content = 5; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .MessageContent notify_content = 5; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { return notifyContent_; } /** * optional .MessageContent notify_content = 5; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { return notifyContent_; } private void initFields() { groupId_ = ""; type_ = 0; value_ = ""; toLine_ = java.util.Collections.emptyList(); notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasGroupId()) { memoizedIsInitialized = 0; return false; } if (!hasType()) { memoizedIsInitialized = 0; return false; } if (!hasValue()) { memoizedIsInitialized = 0; return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getGroupIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getValueBytes()); } for (int i = 0; i < toLine_.size(); i++) { output.writeInt32(4, toLine_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(5, notifyContent_); } 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, getGroupIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getValueBytes()); } { int dataSize = 0; for (int i = 0; i < toLine_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(toLine_.get(i)); } size += dataSize; size += 1 * getToLineList().size(); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, notifyContent_); } 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 cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest 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(cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest 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 ModifyGroupInfoRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupInfoRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest.class, cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getNotifyContentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); groupId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; bitField0_ = (bitField0_ & ~0x00000002); value_ = ""; bitField0_ = (bitField0_ & ~0x00000004); toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupInfoRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest build() { cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest result = new cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.groupId_ = groupId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.value_ = value_; if (((bitField0_ & 0x00000008) == 0x00000008)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); bitField0_ = (bitField0_ & ~0x00000008); } result.toLine_ = toLine_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } if (notifyContentBuilder_ == null) { result.notifyContent_ = notifyContent_; } else { result.notifyContent_ = notifyContentBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest.getDefaultInstance()) return this; if (other.hasGroupId()) { bitField0_ |= 0x00000001; groupId_ = other.groupId_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (other.hasValue()) { bitField0_ |= 0x00000004; value_ = other.value_; onChanged(); } if (!other.toLine_.isEmpty()) { if (toLine_.isEmpty()) { toLine_ = other.toLine_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureToLineIsMutable(); toLine_.addAll(other.toLine_); } onChanged(); } if (other.hasNotifyContent()) { mergeNotifyContent(other.getNotifyContent()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasGroupId()) { return false; } if (!hasType()) { return false; } if (!hasValue()) { return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.ModifyGroupInfoRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string group_id = 1; private java.lang.Object groupId_ = ""; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); groupId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string group_id = 1; */ public Builder setGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } /** * required string group_id = 1; */ public Builder clearGroupId() { bitField0_ = (bitField0_ & ~0x00000001); groupId_ = getDefaultInstance().getGroupId(); onChanged(); return this; } /** * required string group_id = 1; */ public Builder setGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } // required int32 type = 2; private int type_ ; /** * required int32 type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 type = 2; */ public int getType() { return type_; } /** * required int32 type = 2; */ public Builder setType(int value) { bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } /** * required int32 type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; } // required string value = 3; private java.lang.Object value_ = ""; /** * required string value = 3; */ public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string value = 3; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string value = 3; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string value = 3; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; value_ = value; onChanged(); return this; } /** * required string value = 3; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000004); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required string value = 3; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; value_ = value; onChanged(); return this; } // repeated int32 to_line = 4; private java.util.List toLine_ = java.util.Collections.emptyList(); private void ensureToLineIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { toLine_ = new java.util.ArrayList(toLine_); bitField0_ |= 0x00000008; } } /** * repeated int32 to_line = 4; */ public java.util.List getToLineList() { return java.util.Collections.unmodifiableList(toLine_); } /** * repeated int32 to_line = 4; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 4; */ public int getToLine(int index) { return toLine_.get(index); } /** * repeated int32 to_line = 4; */ public Builder setToLine( int index, int value) { ensureToLineIsMutable(); toLine_.set(index, value); onChanged(); return this; } /** * repeated int32 to_line = 4; */ public Builder addToLine(int value) { ensureToLineIsMutable(); toLine_.add(value); onChanged(); return this; } /** * repeated int32 to_line = 4; */ public Builder addAllToLine( java.lang.Iterable values) { ensureToLineIsMutable(); super.addAll(values, toLine_); onChanged(); return this; } /** * repeated int32 to_line = 4; */ public Builder clearToLine() { toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } // optional .MessageContent notify_content = 5; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> notifyContentBuilder_; /** * optional .MessageContent notify_content = 5; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .MessageContent notify_content = 5; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { if (notifyContentBuilder_ == null) { return notifyContent_; } else { return notifyContentBuilder_.getMessage(); } } /** * optional .MessageContent notify_content = 5; */ public Builder setNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } notifyContent_ = value; onChanged(); } else { notifyContentBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .MessageContent notify_content = 5; */ public Builder setNotifyContent( cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) { if (notifyContentBuilder_ == null) { notifyContent_ = builderForValue.build(); onChanged(); } else { notifyContentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .MessageContent notify_content = 5; */ public Builder mergeNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && notifyContent_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(notifyContent_).mergeFrom(value).buildPartial(); } else { notifyContent_ = value; } onChanged(); } else { notifyContentBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .MessageContent notify_content = 5; */ public Builder clearNotifyContent() { if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); onChanged(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .MessageContent notify_content = 5; */ public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getNotifyContentBuilder() { bitField0_ |= 0x00000010; onChanged(); return getNotifyContentFieldBuilder().getBuilder(); } /** * optional .MessageContent notify_content = 5; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { if (notifyContentBuilder_ != null) { return notifyContentBuilder_.getMessageOrBuilder(); } else { return notifyContent_; } } /** * optional .MessageContent notify_content = 5; */ private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> getNotifyContentFieldBuilder() { if (notifyContentBuilder_ == null) { notifyContentBuilder_ = new com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>( notifyContent_, getParentForChildren(), isClean()); notifyContent_ = null; } return notifyContentBuilder_; } // @@protoc_insertion_point(builder_scope:ModifyGroupInfoRequest) } static { defaultInstance = new ModifyGroupInfoRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ModifyGroupInfoRequest) } public interface SetGroupManagerRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string group_id = 1; /** * required string group_id = 1; */ boolean hasGroupId(); /** * required string group_id = 1; */ java.lang.String getGroupId(); /** * required string group_id = 1; */ com.google.protobuf.ByteString getGroupIdBytes(); // required int32 type = 2; /** * required int32 type = 2; */ boolean hasType(); /** * required int32 type = 2; */ int getType(); // repeated string user_id = 3; /** * repeated string user_id = 3; */ java.util.List getUserIdList(); /** * repeated string user_id = 3; */ int getUserIdCount(); /** * repeated string user_id = 3; */ java.lang.String getUserId(int index); /** * repeated string user_id = 3; */ com.google.protobuf.ByteString getUserIdBytes(int index); // repeated int32 to_line = 4; /** * repeated int32 to_line = 4; */ java.util.List getToLineList(); /** * repeated int32 to_line = 4; */ int getToLineCount(); /** * repeated int32 to_line = 4; */ int getToLine(int index); // optional .MessageContent notify_content = 5; /** * optional .MessageContent notify_content = 5; */ boolean hasNotifyContent(); /** * optional .MessageContent notify_content = 5; */ cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent(); /** * optional .MessageContent notify_content = 5; */ cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder(); } /** * Protobuf type {@code SetGroupManagerRequest} */ public static final class SetGroupManagerRequest extends com.google.protobuf.GeneratedMessage implements SetGroupManagerRequestOrBuilder { // Use SetGroupManagerRequest.newBuilder() to construct. private SetGroupManagerRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SetGroupManagerRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SetGroupManagerRequest defaultInstance; public static SetGroupManagerRequest getDefaultInstance() { return defaultInstance; } public SetGroupManagerRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SetGroupManagerRequest( 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; groupId_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; type_ = input.readInt32(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { userId_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } userId_.add(input.readBytes()); break; } case 32: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } toLine_.add(input.readInt32()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { toLine_.add(input.readInt32()); } input.popLimit(limit); break; } case 42: { cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = notifyContent_.toBuilder(); } notifyContent_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(notifyContent_); notifyContent_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; 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_ & 0x00000004) == 0x00000004)) { userId_ = new com.google.protobuf.UnmodifiableLazyStringList(userId_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_SetGroupManagerRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_SetGroupManagerRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest.class, cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SetGroupManagerRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SetGroupManagerRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string group_id = 1; public static final int GROUP_ID_FIELD_NUMBER = 1; private java.lang.Object groupId_; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; 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()) { groupId_ = s; } return s; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 type = 2; public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** * required int32 type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 type = 2; */ public int getType() { return type_; } // repeated string user_id = 3; public static final int USER_ID_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList userId_; /** * repeated string user_id = 3; */ public java.util.List getUserIdList() { return userId_; } /** * repeated string user_id = 3; */ public int getUserIdCount() { return userId_.size(); } /** * repeated string user_id = 3; */ public java.lang.String getUserId(int index) { return userId_.get(index); } /** * repeated string user_id = 3; */ public com.google.protobuf.ByteString getUserIdBytes(int index) { return userId_.getByteString(index); } // repeated int32 to_line = 4; public static final int TO_LINE_FIELD_NUMBER = 4; private java.util.List toLine_; /** * repeated int32 to_line = 4; */ public java.util.List getToLineList() { return toLine_; } /** * repeated int32 to_line = 4; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 4; */ public int getToLine(int index) { return toLine_.get(index); } // optional .MessageContent notify_content = 5; public static final int NOTIFY_CONTENT_FIELD_NUMBER = 5; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_; /** * optional .MessageContent notify_content = 5; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .MessageContent notify_content = 5; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { return notifyContent_; } /** * optional .MessageContent notify_content = 5; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { return notifyContent_; } private void initFields() { groupId_ = ""; type_ = 0; userId_ = com.google.protobuf.LazyStringArrayList.EMPTY; toLine_ = java.util.Collections.emptyList(); notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasGroupId()) { memoizedIsInitialized = 0; return false; } if (!hasType()) { memoizedIsInitialized = 0; return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getGroupIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, type_); } for (int i = 0; i < userId_.size(); i++) { output.writeBytes(3, userId_.getByteString(i)); } for (int i = 0; i < toLine_.size(); i++) { output.writeInt32(4, toLine_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(5, notifyContent_); } 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, getGroupIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, type_); } { int dataSize = 0; for (int i = 0; i < userId_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(userId_.getByteString(i)); } size += dataSize; size += 1 * getUserIdList().size(); } { int dataSize = 0; for (int i = 0; i < toLine_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(toLine_.get(i)); } size += dataSize; size += 1 * getToLineList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, notifyContent_); } 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 cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest 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(cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest 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 SetGroupManagerRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_SetGroupManagerRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_SetGroupManagerRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest.class, cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getNotifyContentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); groupId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; bitField0_ = (bitField0_ & ~0x00000002); userId_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_SetGroupManagerRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest build() { cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest result = new cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.groupId_ = groupId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((bitField0_ & 0x00000004) == 0x00000004)) { userId_ = new com.google.protobuf.UnmodifiableLazyStringList( userId_); bitField0_ = (bitField0_ & ~0x00000004); } result.userId_ = userId_; if (((bitField0_ & 0x00000008) == 0x00000008)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); bitField0_ = (bitField0_ & ~0x00000008); } result.toLine_ = toLine_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000004; } if (notifyContentBuilder_ == null) { result.notifyContent_ = notifyContent_; } else { result.notifyContent_ = notifyContentBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest.getDefaultInstance()) return this; if (other.hasGroupId()) { bitField0_ |= 0x00000001; groupId_ = other.groupId_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (!other.userId_.isEmpty()) { if (userId_.isEmpty()) { userId_ = other.userId_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureUserIdIsMutable(); userId_.addAll(other.userId_); } onChanged(); } if (!other.toLine_.isEmpty()) { if (toLine_.isEmpty()) { toLine_ = other.toLine_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureToLineIsMutable(); toLine_.addAll(other.toLine_); } onChanged(); } if (other.hasNotifyContent()) { mergeNotifyContent(other.getNotifyContent()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasGroupId()) { return false; } if (!hasType()) { return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.SetGroupManagerRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string group_id = 1; private java.lang.Object groupId_ = ""; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); groupId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string group_id = 1; */ public Builder setGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } /** * required string group_id = 1; */ public Builder clearGroupId() { bitField0_ = (bitField0_ & ~0x00000001); groupId_ = getDefaultInstance().getGroupId(); onChanged(); return this; } /** * required string group_id = 1; */ public Builder setGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } // required int32 type = 2; private int type_ ; /** * required int32 type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 type = 2; */ public int getType() { return type_; } /** * required int32 type = 2; */ public Builder setType(int value) { bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } /** * required int32 type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; } // repeated string user_id = 3; private com.google.protobuf.LazyStringList userId_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUserIdIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { userId_ = new com.google.protobuf.LazyStringArrayList(userId_); bitField0_ |= 0x00000004; } } /** * repeated string user_id = 3; */ public java.util.List getUserIdList() { return java.util.Collections.unmodifiableList(userId_); } /** * repeated string user_id = 3; */ public int getUserIdCount() { return userId_.size(); } /** * repeated string user_id = 3; */ public java.lang.String getUserId(int index) { return userId_.get(index); } /** * repeated string user_id = 3; */ public com.google.protobuf.ByteString getUserIdBytes(int index) { return userId_.getByteString(index); } /** * repeated string user_id = 3; */ public Builder setUserId( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUserIdIsMutable(); userId_.set(index, value); onChanged(); return this; } /** * repeated string user_id = 3; */ public Builder addUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUserIdIsMutable(); userId_.add(value); onChanged(); return this; } /** * repeated string user_id = 3; */ public Builder addAllUserId( java.lang.Iterable values) { ensureUserIdIsMutable(); super.addAll(values, userId_); onChanged(); return this; } /** * repeated string user_id = 3; */ public Builder clearUserId() { userId_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * repeated string user_id = 3; */ public Builder addUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureUserIdIsMutable(); userId_.add(value); onChanged(); return this; } // repeated int32 to_line = 4; private java.util.List toLine_ = java.util.Collections.emptyList(); private void ensureToLineIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { toLine_ = new java.util.ArrayList(toLine_); bitField0_ |= 0x00000008; } } /** * repeated int32 to_line = 4; */ public java.util.List getToLineList() { return java.util.Collections.unmodifiableList(toLine_); } /** * repeated int32 to_line = 4; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 4; */ public int getToLine(int index) { return toLine_.get(index); } /** * repeated int32 to_line = 4; */ public Builder setToLine( int index, int value) { ensureToLineIsMutable(); toLine_.set(index, value); onChanged(); return this; } /** * repeated int32 to_line = 4; */ public Builder addToLine(int value) { ensureToLineIsMutable(); toLine_.add(value); onChanged(); return this; } /** * repeated int32 to_line = 4; */ public Builder addAllToLine( java.lang.Iterable values) { ensureToLineIsMutable(); super.addAll(values, toLine_); onChanged(); return this; } /** * repeated int32 to_line = 4; */ public Builder clearToLine() { toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } // optional .MessageContent notify_content = 5; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> notifyContentBuilder_; /** * optional .MessageContent notify_content = 5; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .MessageContent notify_content = 5; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { if (notifyContentBuilder_ == null) { return notifyContent_; } else { return notifyContentBuilder_.getMessage(); } } /** * optional .MessageContent notify_content = 5; */ public Builder setNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } notifyContent_ = value; onChanged(); } else { notifyContentBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .MessageContent notify_content = 5; */ public Builder setNotifyContent( cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) { if (notifyContentBuilder_ == null) { notifyContent_ = builderForValue.build(); onChanged(); } else { notifyContentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .MessageContent notify_content = 5; */ public Builder mergeNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && notifyContent_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(notifyContent_).mergeFrom(value).buildPartial(); } else { notifyContent_ = value; } onChanged(); } else { notifyContentBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .MessageContent notify_content = 5; */ public Builder clearNotifyContent() { if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); onChanged(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .MessageContent notify_content = 5; */ public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getNotifyContentBuilder() { bitField0_ |= 0x00000010; onChanged(); return getNotifyContentFieldBuilder().getBuilder(); } /** * optional .MessageContent notify_content = 5; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { if (notifyContentBuilder_ != null) { return notifyContentBuilder_.getMessageOrBuilder(); } else { return notifyContent_; } } /** * optional .MessageContent notify_content = 5; */ private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> getNotifyContentFieldBuilder() { if (notifyContentBuilder_ == null) { notifyContentBuilder_ = new com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>( notifyContent_, getParentForChildren(), isClean()); notifyContent_ = null; } return notifyContentBuilder_; } // @@protoc_insertion_point(builder_scope:SetGroupManagerRequest) } static { defaultInstance = new SetGroupManagerRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:SetGroupManagerRequest) } public interface InfoEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int32 type = 1; /** * required int32 type = 1; */ boolean hasType(); /** * required int32 type = 1; */ int getType(); // required string value = 2; /** * required string value = 2; */ boolean hasValue(); /** * required string value = 2; */ java.lang.String getValue(); /** * required string value = 2; */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code InfoEntry} */ public static final class InfoEntry extends com.google.protobuf.GeneratedMessage implements InfoEntryOrBuilder { // Use InfoEntry.newBuilder() to construct. private InfoEntry(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private InfoEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final InfoEntry defaultInstance; public static InfoEntry getDefaultInstance() { return defaultInstance; } public InfoEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InfoEntry( 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; type_ = input.readInt32(); break; } case 18: { bitField0_ |= 0x00000002; value_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_InfoEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_InfoEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.InfoEntry.class, cn.wildfirechat.proto.WFCMessage.InfoEntry.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public InfoEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InfoEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required int32 type = 1; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * required int32 type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 type = 1; */ public int getType() { return type_; } // required string value = 2; public static final int VALUE_FIELD_NUMBER = 2; private java.lang.Object value_; /** * required string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * required string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { type_ = 0; value_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasType()) { memoizedIsInitialized = 0; return false; } if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getValueBytes()); } 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, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getValueBytes()); } 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 cn.wildfirechat.proto.WFCMessage.InfoEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.InfoEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.InfoEntry 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(cn.wildfirechat.proto.WFCMessage.InfoEntry 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 InfoEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.InfoEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_InfoEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_InfoEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.InfoEntry.class, cn.wildfirechat.proto.WFCMessage.InfoEntry.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.InfoEntry.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(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_InfoEntry_descriptor; } public cn.wildfirechat.proto.WFCMessage.InfoEntry getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.InfoEntry.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.InfoEntry build() { cn.wildfirechat.proto.WFCMessage.InfoEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.InfoEntry buildPartial() { cn.wildfirechat.proto.WFCMessage.InfoEntry result = new cn.wildfirechat.proto.WFCMessage.InfoEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.InfoEntry) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.InfoEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.InfoEntry other) { if (other == cn.wildfirechat.proto.WFCMessage.InfoEntry.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } if (!hasValue()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.InfoEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.InfoEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int32 type = 1; private int type_ ; /** * required int32 type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 type = 1; */ public int getType() { return type_; } /** * required int32 type = 1; */ public Builder setType(int value) { bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * required int32 type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } // required string value = 2; private java.lang.Object value_ = ""; /** * required string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string value = 2; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * required string value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required string value = 2; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:InfoEntry) } static { defaultInstance = new InfoEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:InfoEntry) } public interface ModifyMyInfoRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .InfoEntry entry = 1; /** * repeated .InfoEntry entry = 1; */ java.util.List getEntryList(); /** * repeated .InfoEntry entry = 1; */ cn.wildfirechat.proto.WFCMessage.InfoEntry getEntry(int index); /** * repeated .InfoEntry entry = 1; */ int getEntryCount(); /** * repeated .InfoEntry entry = 1; */ java.util.List getEntryOrBuilderList(); /** * repeated .InfoEntry entry = 1; */ cn.wildfirechat.proto.WFCMessage.InfoEntryOrBuilder getEntryOrBuilder( int index); } /** * Protobuf type {@code ModifyMyInfoRequest} */ public static final class ModifyMyInfoRequest extends com.google.protobuf.GeneratedMessage implements ModifyMyInfoRequestOrBuilder { // Use ModifyMyInfoRequest.newBuilder() to construct. private ModifyMyInfoRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ModifyMyInfoRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ModifyMyInfoRequest defaultInstance; public static ModifyMyInfoRequest getDefaultInstance() { return defaultInstance; } public ModifyMyInfoRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ModifyMyInfoRequest( 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)) { entry_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } entry_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.InfoEntry.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)) { entry_ = java.util.Collections.unmodifiableList(entry_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyMyInfoRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyMyInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest.class, cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ModifyMyInfoRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ModifyMyInfoRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .InfoEntry entry = 1; public static final int ENTRY_FIELD_NUMBER = 1; private java.util.List entry_; /** * repeated .InfoEntry entry = 1; */ public java.util.List getEntryList() { return entry_; } /** * repeated .InfoEntry entry = 1; */ public java.util.List getEntryOrBuilderList() { return entry_; } /** * repeated .InfoEntry entry = 1; */ public int getEntryCount() { return entry_.size(); } /** * repeated .InfoEntry entry = 1; */ public cn.wildfirechat.proto.WFCMessage.InfoEntry getEntry(int index) { return entry_.get(index); } /** * repeated .InfoEntry entry = 1; */ public cn.wildfirechat.proto.WFCMessage.InfoEntryOrBuilder getEntryOrBuilder( int index) { return entry_.get(index); } private void initFields() { entry_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getEntryCount(); i++) { if (!getEntry(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < entry_.size(); i++) { output.writeMessage(1, entry_.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 < entry_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, entry_.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 cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest 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(cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest 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 ModifyMyInfoRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyMyInfoRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyMyInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest.class, cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getEntryFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (entryBuilder_ == null) { entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { entryBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyMyInfoRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest build() { cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest result = new cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest(this); int from_bitField0_ = bitField0_; if (entryBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { entry_ = java.util.Collections.unmodifiableList(entry_); bitField0_ = (bitField0_ & ~0x00000001); } result.entry_ = entry_; } else { result.entry_ = entryBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest.getDefaultInstance()) return this; if (entryBuilder_ == null) { if (!other.entry_.isEmpty()) { if (entry_.isEmpty()) { entry_ = other.entry_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntryIsMutable(); entry_.addAll(other.entry_); } onChanged(); } } else { if (!other.entry_.isEmpty()) { if (entryBuilder_.isEmpty()) { entryBuilder_.dispose(); entryBuilder_ = null; entry_ = other.entry_; bitField0_ = (bitField0_ & ~0x00000001); entryBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getEntryFieldBuilder() : null; } else { entryBuilder_.addAllMessages(other.entry_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getEntryCount(); i++) { if (!getEntry(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.ModifyMyInfoRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .InfoEntry entry = 1; private java.util.List entry_ = java.util.Collections.emptyList(); private void ensureEntryIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { entry_ = new java.util.ArrayList(entry_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.InfoEntry, cn.wildfirechat.proto.WFCMessage.InfoEntry.Builder, cn.wildfirechat.proto.WFCMessage.InfoEntryOrBuilder> entryBuilder_; /** * repeated .InfoEntry entry = 1; */ public java.util.List getEntryList() { if (entryBuilder_ == null) { return java.util.Collections.unmodifiableList(entry_); } else { return entryBuilder_.getMessageList(); } } /** * repeated .InfoEntry entry = 1; */ public int getEntryCount() { if (entryBuilder_ == null) { return entry_.size(); } else { return entryBuilder_.getCount(); } } /** * repeated .InfoEntry entry = 1; */ public cn.wildfirechat.proto.WFCMessage.InfoEntry getEntry(int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { return entryBuilder_.getMessage(index); } } /** * repeated .InfoEntry entry = 1; */ public Builder setEntry( int index, cn.wildfirechat.proto.WFCMessage.InfoEntry value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.set(index, value); onChanged(); } else { entryBuilder_.setMessage(index, value); } return this; } /** * repeated .InfoEntry entry = 1; */ public Builder setEntry( int index, cn.wildfirechat.proto.WFCMessage.InfoEntry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.set(index, builderForValue.build()); onChanged(); } else { entryBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .InfoEntry entry = 1; */ public Builder addEntry(cn.wildfirechat.proto.WFCMessage.InfoEntry value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.add(value); onChanged(); } else { entryBuilder_.addMessage(value); } return this; } /** * repeated .InfoEntry entry = 1; */ public Builder addEntry( int index, cn.wildfirechat.proto.WFCMessage.InfoEntry value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.add(index, value); onChanged(); } else { entryBuilder_.addMessage(index, value); } return this; } /** * repeated .InfoEntry entry = 1; */ public Builder addEntry( cn.wildfirechat.proto.WFCMessage.InfoEntry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(builderForValue.build()); onChanged(); } else { entryBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .InfoEntry entry = 1; */ public Builder addEntry( int index, cn.wildfirechat.proto.WFCMessage.InfoEntry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(index, builderForValue.build()); onChanged(); } else { entryBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .InfoEntry entry = 1; */ public Builder addAllEntry( java.lang.Iterable values) { if (entryBuilder_ == null) { ensureEntryIsMutable(); super.addAll(values, entry_); onChanged(); } else { entryBuilder_.addAllMessages(values); } return this; } /** * repeated .InfoEntry entry = 1; */ public Builder clearEntry() { if (entryBuilder_ == null) { entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entryBuilder_.clear(); } return this; } /** * repeated .InfoEntry entry = 1; */ public Builder removeEntry(int index) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.remove(index); onChanged(); } else { entryBuilder_.remove(index); } return this; } /** * repeated .InfoEntry entry = 1; */ public cn.wildfirechat.proto.WFCMessage.InfoEntry.Builder getEntryBuilder( int index) { return getEntryFieldBuilder().getBuilder(index); } /** * repeated .InfoEntry entry = 1; */ public cn.wildfirechat.proto.WFCMessage.InfoEntryOrBuilder getEntryOrBuilder( int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { return entryBuilder_.getMessageOrBuilder(index); } } /** * repeated .InfoEntry entry = 1; */ public java.util.List getEntryOrBuilderList() { if (entryBuilder_ != null) { return entryBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entry_); } } /** * repeated .InfoEntry entry = 1; */ public cn.wildfirechat.proto.WFCMessage.InfoEntry.Builder addEntryBuilder() { return getEntryFieldBuilder().addBuilder( cn.wildfirechat.proto.WFCMessage.InfoEntry.getDefaultInstance()); } /** * repeated .InfoEntry entry = 1; */ public cn.wildfirechat.proto.WFCMessage.InfoEntry.Builder addEntryBuilder( int index) { return getEntryFieldBuilder().addBuilder( index, cn.wildfirechat.proto.WFCMessage.InfoEntry.getDefaultInstance()); } /** * repeated .InfoEntry entry = 1; */ public java.util.List getEntryBuilderList() { return getEntryFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.InfoEntry, cn.wildfirechat.proto.WFCMessage.InfoEntry.Builder, cn.wildfirechat.proto.WFCMessage.InfoEntryOrBuilder> getEntryFieldBuilder() { if (entryBuilder_ == null) { entryBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.InfoEntry, cn.wildfirechat.proto.WFCMessage.InfoEntry.Builder, cn.wildfirechat.proto.WFCMessage.InfoEntryOrBuilder>( entry_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); entry_ = null; } return entryBuilder_; } // @@protoc_insertion_point(builder_scope:ModifyMyInfoRequest) } static { defaultInstance = new ModifyMyInfoRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ModifyMyInfoRequest) } public interface NotifyMessageOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int32 type = 1; /** * required int32 type = 1; */ boolean hasType(); /** * required int32 type = 1; */ int getType(); // required int64 head = 2; /** * required int64 head = 2; */ boolean hasHead(); /** * required int64 head = 2; */ long getHead(); // optional string target = 3; /** * optional string target = 3; */ boolean hasTarget(); /** * optional string target = 3; */ java.lang.String getTarget(); /** * optional string target = 3; */ com.google.protobuf.ByteString getTargetBytes(); } /** * Protobuf type {@code NotifyMessage} */ public static final class NotifyMessage extends com.google.protobuf.GeneratedMessage implements NotifyMessageOrBuilder { // Use NotifyMessage.newBuilder() to construct. private NotifyMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private NotifyMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final NotifyMessage defaultInstance; public static NotifyMessage getDefaultInstance() { return defaultInstance; } public NotifyMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NotifyMessage( 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; type_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; head_ = input.readInt64(); break; } case 26: { bitField0_ |= 0x00000004; target_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_NotifyMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_NotifyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.NotifyMessage.class, cn.wildfirechat.proto.WFCMessage.NotifyMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NotifyMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NotifyMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required int32 type = 1; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * required int32 type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 type = 1; */ public int getType() { return type_; } // required int64 head = 2; public static final int HEAD_FIELD_NUMBER = 2; private long head_; /** * required int64 head = 2; */ public boolean hasHead() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int64 head = 2; */ public long getHead() { return head_; } // optional string target = 3; public static final int TARGET_FIELD_NUMBER = 3; private java.lang.Object target_; /** * optional string target = 3; */ public boolean hasTarget() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string target = 3; */ public java.lang.String getTarget() { java.lang.Object ref = target_; 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()) { target_ = s; } return s; } } /** * optional string target = 3; */ public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); target_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { type_ = 0; head_ = 0L; target_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasType()) { memoizedIsInitialized = 0; return false; } if (!hasHead()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, head_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getTargetBytes()); } 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, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, head_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getTargetBytes()); } 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 cn.wildfirechat.proto.WFCMessage.NotifyMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.NotifyMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.NotifyMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.NotifyMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.NotifyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.NotifyMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.NotifyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.NotifyMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.NotifyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.NotifyMessage 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(cn.wildfirechat.proto.WFCMessage.NotifyMessage 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 NotifyMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.NotifyMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_NotifyMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_NotifyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.NotifyMessage.class, cn.wildfirechat.proto.WFCMessage.NotifyMessage.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.NotifyMessage.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(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); head_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); target_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_NotifyMessage_descriptor; } public cn.wildfirechat.proto.WFCMessage.NotifyMessage getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.NotifyMessage.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.NotifyMessage build() { cn.wildfirechat.proto.WFCMessage.NotifyMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.NotifyMessage buildPartial() { cn.wildfirechat.proto.WFCMessage.NotifyMessage result = new cn.wildfirechat.proto.WFCMessage.NotifyMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.head_ = head_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.target_ = target_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.NotifyMessage) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.NotifyMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.NotifyMessage other) { if (other == cn.wildfirechat.proto.WFCMessage.NotifyMessage.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasHead()) { setHead(other.getHead()); } if (other.hasTarget()) { bitField0_ |= 0x00000004; target_ = other.target_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } if (!hasHead()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.NotifyMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.NotifyMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int32 type = 1; private int type_ ; /** * required int32 type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 type = 1; */ public int getType() { return type_; } /** * required int32 type = 1; */ public Builder setType(int value) { bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * required int32 type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } // required int64 head = 2; private long head_ ; /** * required int64 head = 2; */ public boolean hasHead() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int64 head = 2; */ public long getHead() { return head_; } /** * required int64 head = 2; */ public Builder setHead(long value) { bitField0_ |= 0x00000002; head_ = value; onChanged(); return this; } /** * required int64 head = 2; */ public Builder clearHead() { bitField0_ = (bitField0_ & ~0x00000002); head_ = 0L; onChanged(); return this; } // optional string target = 3; private java.lang.Object target_ = ""; /** * optional string target = 3; */ public boolean hasTarget() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string target = 3; */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); target_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string target = 3; */ public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); target_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string target = 3; */ public Builder setTarget( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; target_ = value; onChanged(); return this; } /** * optional string target = 3; */ public Builder clearTarget() { bitField0_ = (bitField0_ & ~0x00000004); target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** * optional string target = 3; */ public Builder setTargetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; target_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:NotifyMessage) } static { defaultInstance = new NotifyMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:NotifyMessage) } public interface PullMessageRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int64 id = 1; /** * required int64 id = 1; */ boolean hasId(); /** * required int64 id = 1; */ long getId(); // required int32 type = 2; /** * required int32 type = 2; */ boolean hasType(); /** * required int32 type = 2; */ int getType(); // optional int64 delay = 3; /** * optional int64 delay = 3; */ boolean hasDelay(); /** * optional int64 delay = 3; */ long getDelay(); } /** * Protobuf type {@code PullMessageRequest} */ public static final class PullMessageRequest extends com.google.protobuf.GeneratedMessage implements PullMessageRequestOrBuilder { // Use PullMessageRequest.newBuilder() to construct. private PullMessageRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PullMessageRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PullMessageRequest defaultInstance; public static PullMessageRequest getDefaultInstance() { return defaultInstance; } public PullMessageRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PullMessageRequest( 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; id_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; type_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; delay_ = input.readInt64(); 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 cn.wildfirechat.proto.WFCMessage.internal_static_PullMessageRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullMessageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullMessageRequest.class, cn.wildfirechat.proto.WFCMessage.PullMessageRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PullMessageRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PullMessageRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required int64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * required int64 id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 id = 1; */ public long getId() { return id_; } // required int32 type = 2; public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** * required int32 type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 type = 2; */ public int getType() { return type_; } // optional int64 delay = 3; public static final int DELAY_FIELD_NUMBER = 3; private long delay_; /** * optional int64 delay = 3; */ public boolean hasDelay() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 delay = 3; */ public long getDelay() { return delay_; } private void initFields() { id_ = 0L; type_ = 0; delay_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasId()) { memoizedIsInitialized = 0; return false; } if (!hasType()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, delay_); } 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 .computeInt64Size(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, delay_); } 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 cn.wildfirechat.proto.WFCMessage.PullMessageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullMessageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullMessageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullMessageRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullMessageRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullMessageRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullMessageRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullMessageRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullMessageRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullMessageRequest 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(cn.wildfirechat.proto.WFCMessage.PullMessageRequest 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 PullMessageRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.PullMessageRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullMessageRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullMessageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullMessageRequest.class, cn.wildfirechat.proto.WFCMessage.PullMessageRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.PullMessageRequest.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_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; bitField0_ = (bitField0_ & ~0x00000002); delay_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullMessageRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.PullMessageRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.PullMessageRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.PullMessageRequest build() { cn.wildfirechat.proto.WFCMessage.PullMessageRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.PullMessageRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.PullMessageRequest result = new cn.wildfirechat.proto.WFCMessage.PullMessageRequest(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.type_ = type_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.delay_ = delay_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.PullMessageRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.PullMessageRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.PullMessageRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.PullMessageRequest.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasType()) { setType(other.getType()); } if (other.hasDelay()) { setDelay(other.getDelay()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasId()) { return false; } if (!hasType()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.PullMessageRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.PullMessageRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int64 id = 1; private long id_ ; /** * required int64 id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 id = 1; */ public long getId() { return id_; } /** * required int64 id = 1; */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * required int64 id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // required int32 type = 2; private int type_ ; /** * required int32 type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 type = 2; */ public int getType() { return type_; } /** * required int32 type = 2; */ public Builder setType(int value) { bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } /** * required int32 type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; } // optional int64 delay = 3; private long delay_ ; /** * optional int64 delay = 3; */ public boolean hasDelay() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 delay = 3; */ public long getDelay() { return delay_; } /** * optional int64 delay = 3; */ public Builder setDelay(long value) { bitField0_ |= 0x00000004; delay_ = value; onChanged(); return this; } /** * optional int64 delay = 3; */ public Builder clearDelay() { bitField0_ = (bitField0_ & ~0x00000004); delay_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:PullMessageRequest) } static { defaultInstance = new PullMessageRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:PullMessageRequest) } public interface PullMessageResultOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .Message message = 1; /** * repeated .Message message = 1; */ java.util.List getMessageList(); /** * repeated .Message message = 1; */ cn.wildfirechat.proto.WFCMessage.Message getMessage(int index); /** * repeated .Message message = 1; */ int getMessageCount(); /** * repeated .Message message = 1; */ java.util.List getMessageOrBuilderList(); /** * repeated .Message message = 1; */ cn.wildfirechat.proto.WFCMessage.MessageOrBuilder getMessageOrBuilder( int index); // required int64 current = 2; /** * required int64 current = 2; */ boolean hasCurrent(); /** * required int64 current = 2; */ long getCurrent(); // required int64 head = 3; /** * required int64 head = 3; */ boolean hasHead(); /** * required int64 head = 3; */ long getHead(); } /** * Protobuf type {@code PullMessageResult} */ public static final class PullMessageResult extends com.google.protobuf.GeneratedMessage implements PullMessageResultOrBuilder { // Use PullMessageResult.newBuilder() to construct. private PullMessageResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PullMessageResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PullMessageResult defaultInstance; public static PullMessageResult getDefaultInstance() { return defaultInstance; } public PullMessageResult getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PullMessageResult( 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)) { message_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } message_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.Message.PARSER, extensionRegistry)); break; } case 16: { bitField0_ |= 0x00000001; current_ = input.readInt64(); break; } case 24: { bitField0_ |= 0x00000002; head_ = input.readInt64(); 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)) { message_ = java.util.Collections.unmodifiableList(message_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullMessageResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullMessageResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullMessageResult.class, cn.wildfirechat.proto.WFCMessage.PullMessageResult.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PullMessageResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PullMessageResult(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // repeated .Message message = 1; public static final int MESSAGE_FIELD_NUMBER = 1; private java.util.List message_; /** * repeated .Message message = 1; */ public java.util.List getMessageList() { return message_; } /** * repeated .Message message = 1; */ public java.util.List getMessageOrBuilderList() { return message_; } /** * repeated .Message message = 1; */ public int getMessageCount() { return message_.size(); } /** * repeated .Message message = 1; */ public cn.wildfirechat.proto.WFCMessage.Message getMessage(int index) { return message_.get(index); } /** * repeated .Message message = 1; */ public cn.wildfirechat.proto.WFCMessage.MessageOrBuilder getMessageOrBuilder( int index) { return message_.get(index); } // required int64 current = 2; public static final int CURRENT_FIELD_NUMBER = 2; private long current_; /** * required int64 current = 2; */ public boolean hasCurrent() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 current = 2; */ public long getCurrent() { return current_; } // required int64 head = 3; public static final int HEAD_FIELD_NUMBER = 3; private long head_; /** * required int64 head = 3; */ public boolean hasHead() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int64 head = 3; */ public long getHead() { return head_; } private void initFields() { message_ = java.util.Collections.emptyList(); current_ = 0L; head_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasCurrent()) { memoizedIsInitialized = 0; return false; } if (!hasHead()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getMessageCount(); i++) { if (!getMessage(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < message_.size(); i++) { output.writeMessage(1, message_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(2, current_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(3, head_); } 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 < message_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, message_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, current_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, head_); } 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 cn.wildfirechat.proto.WFCMessage.PullMessageResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullMessageResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullMessageResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullMessageResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullMessageResult parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullMessageResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullMessageResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullMessageResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullMessageResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullMessageResult 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(cn.wildfirechat.proto.WFCMessage.PullMessageResult 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 PullMessageResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.PullMessageResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullMessageResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullMessageResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullMessageResult.class, cn.wildfirechat.proto.WFCMessage.PullMessageResult.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.PullMessageResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getMessageFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (messageBuilder_ == null) { message_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { messageBuilder_.clear(); } current_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); head_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullMessageResult_descriptor; } public cn.wildfirechat.proto.WFCMessage.PullMessageResult getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.PullMessageResult.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.PullMessageResult build() { cn.wildfirechat.proto.WFCMessage.PullMessageResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.PullMessageResult buildPartial() { cn.wildfirechat.proto.WFCMessage.PullMessageResult result = new cn.wildfirechat.proto.WFCMessage.PullMessageResult(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (messageBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { message_ = java.util.Collections.unmodifiableList(message_); bitField0_ = (bitField0_ & ~0x00000001); } result.message_ = message_; } else { result.message_ = messageBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.current_ = current_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.head_ = head_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.PullMessageResult) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.PullMessageResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.PullMessageResult other) { if (other == cn.wildfirechat.proto.WFCMessage.PullMessageResult.getDefaultInstance()) return this; if (messageBuilder_ == null) { if (!other.message_.isEmpty()) { if (message_.isEmpty()) { message_ = other.message_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMessageIsMutable(); message_.addAll(other.message_); } onChanged(); } } else { if (!other.message_.isEmpty()) { if (messageBuilder_.isEmpty()) { messageBuilder_.dispose(); messageBuilder_ = null; message_ = other.message_; bitField0_ = (bitField0_ & ~0x00000001); messageBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getMessageFieldBuilder() : null; } else { messageBuilder_.addAllMessages(other.message_); } } } if (other.hasCurrent()) { setCurrent(other.getCurrent()); } if (other.hasHead()) { setHead(other.getHead()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasCurrent()) { return false; } if (!hasHead()) { return false; } for (int i = 0; i < getMessageCount(); i++) { if (!getMessage(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.PullMessageResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.PullMessageResult) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .Message message = 1; private java.util.List message_ = java.util.Collections.emptyList(); private void ensureMessageIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { message_ = new java.util.ArrayList(message_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.Message, cn.wildfirechat.proto.WFCMessage.Message.Builder, cn.wildfirechat.proto.WFCMessage.MessageOrBuilder> messageBuilder_; /** * repeated .Message message = 1; */ public java.util.List getMessageList() { if (messageBuilder_ == null) { return java.util.Collections.unmodifiableList(message_); } else { return messageBuilder_.getMessageList(); } } /** * repeated .Message message = 1; */ public int getMessageCount() { if (messageBuilder_ == null) { return message_.size(); } else { return messageBuilder_.getCount(); } } /** * repeated .Message message = 1; */ public cn.wildfirechat.proto.WFCMessage.Message getMessage(int index) { if (messageBuilder_ == null) { return message_.get(index); } else { return messageBuilder_.getMessage(index); } } /** * repeated .Message message = 1; */ public Builder setMessage( int index, cn.wildfirechat.proto.WFCMessage.Message value) { if (messageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessageIsMutable(); message_.set(index, value); onChanged(); } else { messageBuilder_.setMessage(index, value); } return this; } /** * repeated .Message message = 1; */ public Builder setMessage( int index, cn.wildfirechat.proto.WFCMessage.Message.Builder builderForValue) { if (messageBuilder_ == null) { ensureMessageIsMutable(); message_.set(index, builderForValue.build()); onChanged(); } else { messageBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Message message = 1; */ public Builder addMessage(cn.wildfirechat.proto.WFCMessage.Message value) { if (messageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessageIsMutable(); message_.add(value); onChanged(); } else { messageBuilder_.addMessage(value); } return this; } /** * repeated .Message message = 1; */ public Builder addMessage( int index, cn.wildfirechat.proto.WFCMessage.Message value) { if (messageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMessageIsMutable(); message_.add(index, value); onChanged(); } else { messageBuilder_.addMessage(index, value); } return this; } /** * repeated .Message message = 1; */ public Builder addMessage( cn.wildfirechat.proto.WFCMessage.Message.Builder builderForValue) { if (messageBuilder_ == null) { ensureMessageIsMutable(); message_.add(builderForValue.build()); onChanged(); } else { messageBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Message message = 1; */ public Builder addMessage( int index, cn.wildfirechat.proto.WFCMessage.Message.Builder builderForValue) { if (messageBuilder_ == null) { ensureMessageIsMutable(); message_.add(index, builderForValue.build()); onChanged(); } else { messageBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Message message = 1; */ public Builder addAllMessage( java.lang.Iterable values) { if (messageBuilder_ == null) { ensureMessageIsMutable(); super.addAll(values, message_); onChanged(); } else { messageBuilder_.addAllMessages(values); } return this; } /** * repeated .Message message = 1; */ public Builder clearMessage() { if (messageBuilder_ == null) { message_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { messageBuilder_.clear(); } return this; } /** * repeated .Message message = 1; */ public Builder removeMessage(int index) { if (messageBuilder_ == null) { ensureMessageIsMutable(); message_.remove(index); onChanged(); } else { messageBuilder_.remove(index); } return this; } /** * repeated .Message message = 1; */ public cn.wildfirechat.proto.WFCMessage.Message.Builder getMessageBuilder( int index) { return getMessageFieldBuilder().getBuilder(index); } /** * repeated .Message message = 1; */ public cn.wildfirechat.proto.WFCMessage.MessageOrBuilder getMessageOrBuilder( int index) { if (messageBuilder_ == null) { return message_.get(index); } else { return messageBuilder_.getMessageOrBuilder(index); } } /** * repeated .Message message = 1; */ public java.util.List getMessageOrBuilderList() { if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(message_); } } /** * repeated .Message message = 1; */ public cn.wildfirechat.proto.WFCMessage.Message.Builder addMessageBuilder() { return getMessageFieldBuilder().addBuilder( cn.wildfirechat.proto.WFCMessage.Message.getDefaultInstance()); } /** * repeated .Message message = 1; */ public cn.wildfirechat.proto.WFCMessage.Message.Builder addMessageBuilder( int index) { return getMessageFieldBuilder().addBuilder( index, cn.wildfirechat.proto.WFCMessage.Message.getDefaultInstance()); } /** * repeated .Message message = 1; */ public java.util.List getMessageBuilderList() { return getMessageFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.Message, cn.wildfirechat.proto.WFCMessage.Message.Builder, cn.wildfirechat.proto.WFCMessage.MessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { messageBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.Message, cn.wildfirechat.proto.WFCMessage.Message.Builder, cn.wildfirechat.proto.WFCMessage.MessageOrBuilder>( message_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); message_ = null; } return messageBuilder_; } // required int64 current = 2; private long current_ ; /** * required int64 current = 2; */ public boolean hasCurrent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int64 current = 2; */ public long getCurrent() { return current_; } /** * required int64 current = 2; */ public Builder setCurrent(long value) { bitField0_ |= 0x00000002; current_ = value; onChanged(); return this; } /** * required int64 current = 2; */ public Builder clearCurrent() { bitField0_ = (bitField0_ & ~0x00000002); current_ = 0L; onChanged(); return this; } // required int64 head = 3; private long head_ ; /** * required int64 head = 3; */ public boolean hasHead() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int64 head = 3; */ public long getHead() { return head_; } /** * required int64 head = 3; */ public Builder setHead(long value) { bitField0_ |= 0x00000004; head_ = value; onChanged(); return this; } /** * required int64 head = 3; */ public Builder clearHead() { bitField0_ = (bitField0_ & ~0x00000004); head_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:PullMessageResult) } static { defaultInstance = new PullMessageResult(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:PullMessageResult) } public interface PullGroupInfoResultOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .GroupInfo info = 1; /** * repeated .GroupInfo info = 1; */ java.util.List getInfoList(); /** * repeated .GroupInfo info = 1; */ cn.wildfirechat.proto.WFCMessage.GroupInfo getInfo(int index); /** * repeated .GroupInfo info = 1; */ int getInfoCount(); /** * repeated .GroupInfo info = 1; */ java.util.List getInfoOrBuilderList(); /** * repeated .GroupInfo info = 1; */ cn.wildfirechat.proto.WFCMessage.GroupInfoOrBuilder getInfoOrBuilder( int index); } /** * Protobuf type {@code PullGroupInfoResult} */ public static final class PullGroupInfoResult extends com.google.protobuf.GeneratedMessage implements PullGroupInfoResultOrBuilder { // Use PullGroupInfoResult.newBuilder() to construct. private PullGroupInfoResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PullGroupInfoResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PullGroupInfoResult defaultInstance; public static PullGroupInfoResult getDefaultInstance() { return defaultInstance; } public PullGroupInfoResult getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PullGroupInfoResult( 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)) { info_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } info_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.GroupInfo.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)) { info_ = java.util.Collections.unmodifiableList(info_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullGroupInfoResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullGroupInfoResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult.class, cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PullGroupInfoResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PullGroupInfoResult(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .GroupInfo info = 1; public static final int INFO_FIELD_NUMBER = 1; private java.util.List info_; /** * repeated .GroupInfo info = 1; */ public java.util.List getInfoList() { return info_; } /** * repeated .GroupInfo info = 1; */ public java.util.List getInfoOrBuilderList() { return info_; } /** * repeated .GroupInfo info = 1; */ public int getInfoCount() { return info_.size(); } /** * repeated .GroupInfo info = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupInfo getInfo(int index) { return info_.get(index); } /** * repeated .GroupInfo info = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupInfoOrBuilder getInfoOrBuilder( int index) { return info_.get(index); } private void initFields() { info_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getInfoCount(); i++) { if (!getInfo(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < info_.size(); i++) { output.writeMessage(1, info_.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 < info_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, info_.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 cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult 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(cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult 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 PullGroupInfoResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.PullGroupInfoResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullGroupInfoResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullGroupInfoResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult.class, cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getInfoFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (infoBuilder_ == null) { info_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { infoBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullGroupInfoResult_descriptor; } public cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult build() { cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult buildPartial() { cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult result = new cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult(this); int from_bitField0_ = bitField0_; if (infoBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { info_ = java.util.Collections.unmodifiableList(info_); bitField0_ = (bitField0_ & ~0x00000001); } result.info_ = info_; } else { result.info_ = infoBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult other) { if (other == cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult.getDefaultInstance()) return this; if (infoBuilder_ == null) { if (!other.info_.isEmpty()) { if (info_.isEmpty()) { info_ = other.info_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInfoIsMutable(); info_.addAll(other.info_); } onChanged(); } } else { if (!other.info_.isEmpty()) { if (infoBuilder_.isEmpty()) { infoBuilder_.dispose(); infoBuilder_ = null; info_ = other.info_; bitField0_ = (bitField0_ & ~0x00000001); infoBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getInfoFieldBuilder() : null; } else { infoBuilder_.addAllMessages(other.info_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getInfoCount(); i++) { if (!getInfo(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.PullGroupInfoResult) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .GroupInfo info = 1; private java.util.List info_ = java.util.Collections.emptyList(); private void ensureInfoIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { info_ = new java.util.ArrayList(info_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.GroupInfo, cn.wildfirechat.proto.WFCMessage.GroupInfo.Builder, cn.wildfirechat.proto.WFCMessage.GroupInfoOrBuilder> infoBuilder_; /** * repeated .GroupInfo info = 1; */ public java.util.List getInfoList() { if (infoBuilder_ == null) { return java.util.Collections.unmodifiableList(info_); } else { return infoBuilder_.getMessageList(); } } /** * repeated .GroupInfo info = 1; */ public int getInfoCount() { if (infoBuilder_ == null) { return info_.size(); } else { return infoBuilder_.getCount(); } } /** * repeated .GroupInfo info = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupInfo getInfo(int index) { if (infoBuilder_ == null) { return info_.get(index); } else { return infoBuilder_.getMessage(index); } } /** * repeated .GroupInfo info = 1; */ public Builder setInfo( int index, cn.wildfirechat.proto.WFCMessage.GroupInfo value) { if (infoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInfoIsMutable(); info_.set(index, value); onChanged(); } else { infoBuilder_.setMessage(index, value); } return this; } /** * repeated .GroupInfo info = 1; */ public Builder setInfo( int index, cn.wildfirechat.proto.WFCMessage.GroupInfo.Builder builderForValue) { if (infoBuilder_ == null) { ensureInfoIsMutable(); info_.set(index, builderForValue.build()); onChanged(); } else { infoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .GroupInfo info = 1; */ public Builder addInfo(cn.wildfirechat.proto.WFCMessage.GroupInfo value) { if (infoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInfoIsMutable(); info_.add(value); onChanged(); } else { infoBuilder_.addMessage(value); } return this; } /** * repeated .GroupInfo info = 1; */ public Builder addInfo( int index, cn.wildfirechat.proto.WFCMessage.GroupInfo value) { if (infoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInfoIsMutable(); info_.add(index, value); onChanged(); } else { infoBuilder_.addMessage(index, value); } return this; } /** * repeated .GroupInfo info = 1; */ public Builder addInfo( cn.wildfirechat.proto.WFCMessage.GroupInfo.Builder builderForValue) { if (infoBuilder_ == null) { ensureInfoIsMutable(); info_.add(builderForValue.build()); onChanged(); } else { infoBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .GroupInfo info = 1; */ public Builder addInfo( int index, cn.wildfirechat.proto.WFCMessage.GroupInfo.Builder builderForValue) { if (infoBuilder_ == null) { ensureInfoIsMutable(); info_.add(index, builderForValue.build()); onChanged(); } else { infoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .GroupInfo info = 1; */ public Builder addAllInfo( java.lang.Iterable values) { if (infoBuilder_ == null) { ensureInfoIsMutable(); super.addAll(values, info_); onChanged(); } else { infoBuilder_.addAllMessages(values); } return this; } /** * repeated .GroupInfo info = 1; */ public Builder clearInfo() { if (infoBuilder_ == null) { info_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { infoBuilder_.clear(); } return this; } /** * repeated .GroupInfo info = 1; */ public Builder removeInfo(int index) { if (infoBuilder_ == null) { ensureInfoIsMutable(); info_.remove(index); onChanged(); } else { infoBuilder_.remove(index); } return this; } /** * repeated .GroupInfo info = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupInfo.Builder getInfoBuilder( int index) { return getInfoFieldBuilder().getBuilder(index); } /** * repeated .GroupInfo info = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupInfoOrBuilder getInfoOrBuilder( int index) { if (infoBuilder_ == null) { return info_.get(index); } else { return infoBuilder_.getMessageOrBuilder(index); } } /** * repeated .GroupInfo info = 1; */ public java.util.List getInfoOrBuilderList() { if (infoBuilder_ != null) { return infoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(info_); } } /** * repeated .GroupInfo info = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupInfo.Builder addInfoBuilder() { return getInfoFieldBuilder().addBuilder( cn.wildfirechat.proto.WFCMessage.GroupInfo.getDefaultInstance()); } /** * repeated .GroupInfo info = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupInfo.Builder addInfoBuilder( int index) { return getInfoFieldBuilder().addBuilder( index, cn.wildfirechat.proto.WFCMessage.GroupInfo.getDefaultInstance()); } /** * repeated .GroupInfo info = 1; */ public java.util.List getInfoBuilderList() { return getInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.GroupInfo, cn.wildfirechat.proto.WFCMessage.GroupInfo.Builder, cn.wildfirechat.proto.WFCMessage.GroupInfoOrBuilder> getInfoFieldBuilder() { if (infoBuilder_ == null) { infoBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.GroupInfo, cn.wildfirechat.proto.WFCMessage.GroupInfo.Builder, cn.wildfirechat.proto.WFCMessage.GroupInfoOrBuilder>( info_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); info_ = null; } return infoBuilder_; } // @@protoc_insertion_point(builder_scope:PullGroupInfoResult) } static { defaultInstance = new PullGroupInfoResult(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:PullGroupInfoResult) } public interface PullGroupMemberRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string target = 1; /** * required string target = 1; */ boolean hasTarget(); /** * required string target = 1; */ java.lang.String getTarget(); /** * required string target = 1; */ com.google.protobuf.ByteString getTargetBytes(); // required int64 head = 2; /** * required int64 head = 2; */ boolean hasHead(); /** * required int64 head = 2; */ long getHead(); } /** * Protobuf type {@code PullGroupMemberRequest} */ public static final class PullGroupMemberRequest extends com.google.protobuf.GeneratedMessage implements PullGroupMemberRequestOrBuilder { // Use PullGroupMemberRequest.newBuilder() to construct. private PullGroupMemberRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PullGroupMemberRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PullGroupMemberRequest defaultInstance; public static PullGroupMemberRequest getDefaultInstance() { return defaultInstance; } public PullGroupMemberRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PullGroupMemberRequest( 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; target_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; head_ = input.readInt64(); 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 cn.wildfirechat.proto.WFCMessage.internal_static_PullGroupMemberRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullGroupMemberRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest.class, cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PullGroupMemberRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PullGroupMemberRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string target = 1; public static final int TARGET_FIELD_NUMBER = 1; private java.lang.Object target_; /** * required string target = 1; */ public boolean hasTarget() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string target = 1; */ public java.lang.String getTarget() { java.lang.Object ref = target_; 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()) { target_ = s; } return s; } } /** * required string target = 1; */ public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); target_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int64 head = 2; public static final int HEAD_FIELD_NUMBER = 2; private long head_; /** * required int64 head = 2; */ public boolean hasHead() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int64 head = 2; */ public long getHead() { return head_; } private void initFields() { target_ = ""; head_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasTarget()) { memoizedIsInitialized = 0; return false; } if (!hasHead()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getTargetBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, head_); } 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, getTargetBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, head_); } 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 cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest 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(cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest 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 PullGroupMemberRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullGroupMemberRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullGroupMemberRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest.class, cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest.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(); target_ = ""; bitField0_ = (bitField0_ & ~0x00000001); head_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullGroupMemberRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest build() { cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest result = new cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.target_ = target_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.head_ = head_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest.getDefaultInstance()) return this; if (other.hasTarget()) { bitField0_ |= 0x00000001; target_ = other.target_; onChanged(); } if (other.hasHead()) { setHead(other.getHead()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasTarget()) { return false; } if (!hasHead()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.PullGroupMemberRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string target = 1; private java.lang.Object target_ = ""; /** * required string target = 1; */ public boolean hasTarget() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string target = 1; */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); target_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string target = 1; */ public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); target_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string target = 1; */ public Builder setTarget( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; target_ = value; onChanged(); return this; } /** * required string target = 1; */ public Builder clearTarget() { bitField0_ = (bitField0_ & ~0x00000001); target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** * required string target = 1; */ public Builder setTargetBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; target_ = value; onChanged(); return this; } // required int64 head = 2; private long head_ ; /** * required int64 head = 2; */ public boolean hasHead() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int64 head = 2; */ public long getHead() { return head_; } /** * required int64 head = 2; */ public Builder setHead(long value) { bitField0_ |= 0x00000002; head_ = value; onChanged(); return this; } /** * required int64 head = 2; */ public Builder clearHead() { bitField0_ = (bitField0_ & ~0x00000002); head_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:PullGroupMemberRequest) } static { defaultInstance = new PullGroupMemberRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:PullGroupMemberRequest) } public interface PullGroupMemberResultOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .GroupMember member = 1; /** * repeated .GroupMember member = 1; */ java.util.List getMemberList(); /** * repeated .GroupMember member = 1; */ cn.wildfirechat.proto.WFCMessage.GroupMember getMember(int index); /** * repeated .GroupMember member = 1; */ int getMemberCount(); /** * repeated .GroupMember member = 1; */ java.util.List getMemberOrBuilderList(); /** * repeated .GroupMember member = 1; */ cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder getMemberOrBuilder( int index); } /** * Protobuf type {@code PullGroupMemberResult} */ public static final class PullGroupMemberResult extends com.google.protobuf.GeneratedMessage implements PullGroupMemberResultOrBuilder { // Use PullGroupMemberResult.newBuilder() to construct. private PullGroupMemberResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PullGroupMemberResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PullGroupMemberResult defaultInstance; public static PullGroupMemberResult getDefaultInstance() { return defaultInstance; } public PullGroupMemberResult getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PullGroupMemberResult( 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)) { member_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } member_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.GroupMember.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)) { member_ = java.util.Collections.unmodifiableList(member_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullGroupMemberResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullGroupMemberResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult.class, cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PullGroupMemberResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PullGroupMemberResult(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .GroupMember member = 1; public static final int MEMBER_FIELD_NUMBER = 1; private java.util.List member_; /** * repeated .GroupMember member = 1; */ public java.util.List getMemberList() { return member_; } /** * repeated .GroupMember member = 1; */ public java.util.List getMemberOrBuilderList() { return member_; } /** * repeated .GroupMember member = 1; */ public int getMemberCount() { return member_.size(); } /** * repeated .GroupMember member = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupMember getMember(int index) { return member_.get(index); } /** * repeated .GroupMember member = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder getMemberOrBuilder( int index) { return member_.get(index); } private void initFields() { member_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getMemberCount(); i++) { if (!getMember(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < member_.size(); i++) { output.writeMessage(1, member_.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 < member_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, member_.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 cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult 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(cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult 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 PullGroupMemberResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.PullGroupMemberResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullGroupMemberResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullGroupMemberResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult.class, cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getMemberFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (memberBuilder_ == null) { member_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { memberBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullGroupMemberResult_descriptor; } public cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult build() { cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult buildPartial() { cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult result = new cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult(this); int from_bitField0_ = bitField0_; if (memberBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { member_ = java.util.Collections.unmodifiableList(member_); bitField0_ = (bitField0_ & ~0x00000001); } result.member_ = member_; } else { result.member_ = memberBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult other) { if (other == cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult.getDefaultInstance()) return this; if (memberBuilder_ == null) { if (!other.member_.isEmpty()) { if (member_.isEmpty()) { member_ = other.member_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMemberIsMutable(); member_.addAll(other.member_); } onChanged(); } } else { if (!other.member_.isEmpty()) { if (memberBuilder_.isEmpty()) { memberBuilder_.dispose(); memberBuilder_ = null; member_ = other.member_; bitField0_ = (bitField0_ & ~0x00000001); memberBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getMemberFieldBuilder() : null; } else { memberBuilder_.addAllMessages(other.member_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getMemberCount(); i++) { if (!getMember(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.PullGroupMemberResult) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .GroupMember member = 1; private java.util.List member_ = java.util.Collections.emptyList(); private void ensureMemberIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { member_ = new java.util.ArrayList(member_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.GroupMember, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder, cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder> memberBuilder_; /** * repeated .GroupMember member = 1; */ public java.util.List getMemberList() { if (memberBuilder_ == null) { return java.util.Collections.unmodifiableList(member_); } else { return memberBuilder_.getMessageList(); } } /** * repeated .GroupMember member = 1; */ public int getMemberCount() { if (memberBuilder_ == null) { return member_.size(); } else { return memberBuilder_.getCount(); } } /** * repeated .GroupMember member = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupMember getMember(int index) { if (memberBuilder_ == null) { return member_.get(index); } else { return memberBuilder_.getMessage(index); } } /** * repeated .GroupMember member = 1; */ public Builder setMember( int index, cn.wildfirechat.proto.WFCMessage.GroupMember value) { if (memberBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMemberIsMutable(); member_.set(index, value); onChanged(); } else { memberBuilder_.setMessage(index, value); } return this; } /** * repeated .GroupMember member = 1; */ public Builder setMember( int index, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder builderForValue) { if (memberBuilder_ == null) { ensureMemberIsMutable(); member_.set(index, builderForValue.build()); onChanged(); } else { memberBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .GroupMember member = 1; */ public Builder addMember(cn.wildfirechat.proto.WFCMessage.GroupMember value) { if (memberBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMemberIsMutable(); member_.add(value); onChanged(); } else { memberBuilder_.addMessage(value); } return this; } /** * repeated .GroupMember member = 1; */ public Builder addMember( int index, cn.wildfirechat.proto.WFCMessage.GroupMember value) { if (memberBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMemberIsMutable(); member_.add(index, value); onChanged(); } else { memberBuilder_.addMessage(index, value); } return this; } /** * repeated .GroupMember member = 1; */ public Builder addMember( cn.wildfirechat.proto.WFCMessage.GroupMember.Builder builderForValue) { if (memberBuilder_ == null) { ensureMemberIsMutable(); member_.add(builderForValue.build()); onChanged(); } else { memberBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .GroupMember member = 1; */ public Builder addMember( int index, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder builderForValue) { if (memberBuilder_ == null) { ensureMemberIsMutable(); member_.add(index, builderForValue.build()); onChanged(); } else { memberBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .GroupMember member = 1; */ public Builder addAllMember( java.lang.Iterable values) { if (memberBuilder_ == null) { ensureMemberIsMutable(); super.addAll(values, member_); onChanged(); } else { memberBuilder_.addAllMessages(values); } return this; } /** * repeated .GroupMember member = 1; */ public Builder clearMember() { if (memberBuilder_ == null) { member_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { memberBuilder_.clear(); } return this; } /** * repeated .GroupMember member = 1; */ public Builder removeMember(int index) { if (memberBuilder_ == null) { ensureMemberIsMutable(); member_.remove(index); onChanged(); } else { memberBuilder_.remove(index); } return this; } /** * repeated .GroupMember member = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupMember.Builder getMemberBuilder( int index) { return getMemberFieldBuilder().getBuilder(index); } /** * repeated .GroupMember member = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder getMemberOrBuilder( int index) { if (memberBuilder_ == null) { return member_.get(index); } else { return memberBuilder_.getMessageOrBuilder(index); } } /** * repeated .GroupMember member = 1; */ public java.util.List getMemberOrBuilderList() { if (memberBuilder_ != null) { return memberBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(member_); } } /** * repeated .GroupMember member = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupMember.Builder addMemberBuilder() { return getMemberFieldBuilder().addBuilder( cn.wildfirechat.proto.WFCMessage.GroupMember.getDefaultInstance()); } /** * repeated .GroupMember member = 1; */ public cn.wildfirechat.proto.WFCMessage.GroupMember.Builder addMemberBuilder( int index) { return getMemberFieldBuilder().addBuilder( index, cn.wildfirechat.proto.WFCMessage.GroupMember.getDefaultInstance()); } /** * repeated .GroupMember member = 1; */ public java.util.List getMemberBuilderList() { return getMemberFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.GroupMember, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder, cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder> getMemberFieldBuilder() { if (memberBuilder_ == null) { memberBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.GroupMember, cn.wildfirechat.proto.WFCMessage.GroupMember.Builder, cn.wildfirechat.proto.WFCMessage.GroupMemberOrBuilder>( member_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); member_ = null; } return memberBuilder_; } // @@protoc_insertion_point(builder_scope:PullGroupMemberResult) } static { defaultInstance = new PullGroupMemberResult(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:PullGroupMemberResult) } public interface UserRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string uid = 1; /** * required string uid = 1; */ boolean hasUid(); /** * required string uid = 1; */ java.lang.String getUid(); /** * required string uid = 1; */ com.google.protobuf.ByteString getUidBytes(); // optional int64 update_dt = 2; /** * optional int64 update_dt = 2; */ boolean hasUpdateDt(); /** * optional int64 update_dt = 2; */ long getUpdateDt(); } /** * Protobuf type {@code UserRequest} */ public static final class UserRequest extends com.google.protobuf.GeneratedMessage implements UserRequestOrBuilder { // Use UserRequest.newBuilder() to construct. private UserRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private UserRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final UserRequest defaultInstance; public static UserRequest getDefaultInstance() { return defaultInstance; } public UserRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UserRequest( 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; uid_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; updateDt_ = input.readInt64(); 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 cn.wildfirechat.proto.WFCMessage.internal_static_UserRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_UserRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.UserRequest.class, cn.wildfirechat.proto.WFCMessage.UserRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UserRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UserRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string uid = 1; public static final int UID_FIELD_NUMBER = 1; private java.lang.Object uid_; /** * required string uid = 1; */ public boolean hasUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string uid = 1; */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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()) { uid_ = s; } return s; } } /** * required string uid = 1; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int64 update_dt = 2; public static final int UPDATE_DT_FIELD_NUMBER = 2; private long updateDt_; /** * optional int64 update_dt = 2; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 update_dt = 2; */ public long getUpdateDt() { return updateDt_; } private void initFields() { uid_ = ""; updateDt_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasUid()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getUidBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, updateDt_); } 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, getUidBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, updateDt_); } 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 cn.wildfirechat.proto.WFCMessage.UserRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.UserRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.UserRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.UserRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.UserRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.UserRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.UserRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.UserRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.UserRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.UserRequest 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(cn.wildfirechat.proto.WFCMessage.UserRequest 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 UserRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.UserRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_UserRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_UserRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.UserRequest.class, cn.wildfirechat.proto.WFCMessage.UserRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.UserRequest.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_ = ""; bitField0_ = (bitField0_ & ~0x00000001); updateDt_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_UserRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.UserRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.UserRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.UserRequest build() { cn.wildfirechat.proto.WFCMessage.UserRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.UserRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.UserRequest result = new cn.wildfirechat.proto.WFCMessage.UserRequest(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.updateDt_ = updateDt_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.UserRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.UserRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.UserRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.UserRequest.getDefaultInstance()) return this; if (other.hasUid()) { bitField0_ |= 0x00000001; uid_ = other.uid_; onChanged(); } if (other.hasUpdateDt()) { setUpdateDt(other.getUpdateDt()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasUid()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.UserRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.UserRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string uid = 1; private java.lang.Object uid_ = ""; /** * required string uid = 1; */ public boolean hasUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string uid = 1; */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); uid_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string uid = 1; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string uid = 1; */ public Builder setUid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uid_ = value; onChanged(); return this; } /** * required string uid = 1; */ public Builder clearUid() { bitField0_ = (bitField0_ & ~0x00000001); uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** * required string uid = 1; */ public Builder setUidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uid_ = value; onChanged(); return this; } // optional int64 update_dt = 2; private long updateDt_ ; /** * optional int64 update_dt = 2; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 update_dt = 2; */ public long getUpdateDt() { return updateDt_; } /** * optional int64 update_dt = 2; */ public Builder setUpdateDt(long value) { bitField0_ |= 0x00000002; updateDt_ = value; onChanged(); return this; } /** * optional int64 update_dt = 2; */ public Builder clearUpdateDt() { bitField0_ = (bitField0_ & ~0x00000002); updateDt_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:UserRequest) } static { defaultInstance = new UserRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:UserRequest) } public interface PullUserRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .UserRequest request = 1; /** * repeated .UserRequest request = 1; */ java.util.List getRequestList(); /** * repeated .UserRequest request = 1; */ cn.wildfirechat.proto.WFCMessage.UserRequest getRequest(int index); /** * repeated .UserRequest request = 1; */ int getRequestCount(); /** * repeated .UserRequest request = 1; */ java.util.List getRequestOrBuilderList(); /** * repeated .UserRequest request = 1; */ cn.wildfirechat.proto.WFCMessage.UserRequestOrBuilder getRequestOrBuilder( int index); } /** * Protobuf type {@code PullUserRequest} */ public static final class PullUserRequest extends com.google.protobuf.GeneratedMessage implements PullUserRequestOrBuilder { // Use PullUserRequest.newBuilder() to construct. private PullUserRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PullUserRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PullUserRequest defaultInstance; public static PullUserRequest getDefaultInstance() { return defaultInstance; } public PullUserRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PullUserRequest( 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)) { request_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } request_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.UserRequest.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)) { request_ = java.util.Collections.unmodifiableList(request_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullUserRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullUserRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullUserRequest.class, cn.wildfirechat.proto.WFCMessage.PullUserRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PullUserRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PullUserRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .UserRequest request = 1; public static final int REQUEST_FIELD_NUMBER = 1; private java.util.List request_; /** * repeated .UserRequest request = 1; */ public java.util.List getRequestList() { return request_; } /** * repeated .UserRequest request = 1; */ public java.util.List getRequestOrBuilderList() { return request_; } /** * repeated .UserRequest request = 1; */ public int getRequestCount() { return request_.size(); } /** * repeated .UserRequest request = 1; */ public cn.wildfirechat.proto.WFCMessage.UserRequest getRequest(int index) { return request_.get(index); } /** * repeated .UserRequest request = 1; */ public cn.wildfirechat.proto.WFCMessage.UserRequestOrBuilder getRequestOrBuilder( int index) { return request_.get(index); } private void initFields() { request_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getRequestCount(); i++) { if (!getRequest(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < request_.size(); i++) { output.writeMessage(1, request_.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 < request_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, request_.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 cn.wildfirechat.proto.WFCMessage.PullUserRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullUserRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullUserRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullUserRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullUserRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullUserRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullUserRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullUserRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullUserRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullUserRequest 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(cn.wildfirechat.proto.WFCMessage.PullUserRequest 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 PullUserRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.PullUserRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullUserRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullUserRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullUserRequest.class, cn.wildfirechat.proto.WFCMessage.PullUserRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.PullUserRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getRequestFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (requestBuilder_ == null) { request_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { requestBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullUserRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.PullUserRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.PullUserRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.PullUserRequest build() { cn.wildfirechat.proto.WFCMessage.PullUserRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.PullUserRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.PullUserRequest result = new cn.wildfirechat.proto.WFCMessage.PullUserRequest(this); int from_bitField0_ = bitField0_; if (requestBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { request_ = java.util.Collections.unmodifiableList(request_); bitField0_ = (bitField0_ & ~0x00000001); } result.request_ = request_; } else { result.request_ = requestBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.PullUserRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.PullUserRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.PullUserRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.PullUserRequest.getDefaultInstance()) return this; if (requestBuilder_ == null) { if (!other.request_.isEmpty()) { if (request_.isEmpty()) { request_ = other.request_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRequestIsMutable(); request_.addAll(other.request_); } onChanged(); } } else { if (!other.request_.isEmpty()) { if (requestBuilder_.isEmpty()) { requestBuilder_.dispose(); requestBuilder_ = null; request_ = other.request_; bitField0_ = (bitField0_ & ~0x00000001); requestBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRequestFieldBuilder() : null; } else { requestBuilder_.addAllMessages(other.request_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getRequestCount(); i++) { if (!getRequest(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.PullUserRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.PullUserRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .UserRequest request = 1; private java.util.List request_ = java.util.Collections.emptyList(); private void ensureRequestIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { request_ = new java.util.ArrayList(request_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.UserRequest, cn.wildfirechat.proto.WFCMessage.UserRequest.Builder, cn.wildfirechat.proto.WFCMessage.UserRequestOrBuilder> requestBuilder_; /** * repeated .UserRequest request = 1; */ public java.util.List getRequestList() { if (requestBuilder_ == null) { return java.util.Collections.unmodifiableList(request_); } else { return requestBuilder_.getMessageList(); } } /** * repeated .UserRequest request = 1; */ public int getRequestCount() { if (requestBuilder_ == null) { return request_.size(); } else { return requestBuilder_.getCount(); } } /** * repeated .UserRequest request = 1; */ public cn.wildfirechat.proto.WFCMessage.UserRequest getRequest(int index) { if (requestBuilder_ == null) { return request_.get(index); } else { return requestBuilder_.getMessage(index); } } /** * repeated .UserRequest request = 1; */ public Builder setRequest( int index, cn.wildfirechat.proto.WFCMessage.UserRequest value) { if (requestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequestIsMutable(); request_.set(index, value); onChanged(); } else { requestBuilder_.setMessage(index, value); } return this; } /** * repeated .UserRequest request = 1; */ public Builder setRequest( int index, cn.wildfirechat.proto.WFCMessage.UserRequest.Builder builderForValue) { if (requestBuilder_ == null) { ensureRequestIsMutable(); request_.set(index, builderForValue.build()); onChanged(); } else { requestBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .UserRequest request = 1; */ public Builder addRequest(cn.wildfirechat.proto.WFCMessage.UserRequest value) { if (requestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequestIsMutable(); request_.add(value); onChanged(); } else { requestBuilder_.addMessage(value); } return this; } /** * repeated .UserRequest request = 1; */ public Builder addRequest( int index, cn.wildfirechat.proto.WFCMessage.UserRequest value) { if (requestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequestIsMutable(); request_.add(index, value); onChanged(); } else { requestBuilder_.addMessage(index, value); } return this; } /** * repeated .UserRequest request = 1; */ public Builder addRequest( cn.wildfirechat.proto.WFCMessage.UserRequest.Builder builderForValue) { if (requestBuilder_ == null) { ensureRequestIsMutable(); request_.add(builderForValue.build()); onChanged(); } else { requestBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .UserRequest request = 1; */ public Builder addRequest( int index, cn.wildfirechat.proto.WFCMessage.UserRequest.Builder builderForValue) { if (requestBuilder_ == null) { ensureRequestIsMutable(); request_.add(index, builderForValue.build()); onChanged(); } else { requestBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .UserRequest request = 1; */ public Builder addAllRequest( java.lang.Iterable values) { if (requestBuilder_ == null) { ensureRequestIsMutable(); super.addAll(values, request_); onChanged(); } else { requestBuilder_.addAllMessages(values); } return this; } /** * repeated .UserRequest request = 1; */ public Builder clearRequest() { if (requestBuilder_ == null) { request_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { requestBuilder_.clear(); } return this; } /** * repeated .UserRequest request = 1; */ public Builder removeRequest(int index) { if (requestBuilder_ == null) { ensureRequestIsMutable(); request_.remove(index); onChanged(); } else { requestBuilder_.remove(index); } return this; } /** * repeated .UserRequest request = 1; */ public cn.wildfirechat.proto.WFCMessage.UserRequest.Builder getRequestBuilder( int index) { return getRequestFieldBuilder().getBuilder(index); } /** * repeated .UserRequest request = 1; */ public cn.wildfirechat.proto.WFCMessage.UserRequestOrBuilder getRequestOrBuilder( int index) { if (requestBuilder_ == null) { return request_.get(index); } else { return requestBuilder_.getMessageOrBuilder(index); } } /** * repeated .UserRequest request = 1; */ public java.util.List getRequestOrBuilderList() { if (requestBuilder_ != null) { return requestBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(request_); } } /** * repeated .UserRequest request = 1; */ public cn.wildfirechat.proto.WFCMessage.UserRequest.Builder addRequestBuilder() { return getRequestFieldBuilder().addBuilder( cn.wildfirechat.proto.WFCMessage.UserRequest.getDefaultInstance()); } /** * repeated .UserRequest request = 1; */ public cn.wildfirechat.proto.WFCMessage.UserRequest.Builder addRequestBuilder( int index) { return getRequestFieldBuilder().addBuilder( index, cn.wildfirechat.proto.WFCMessage.UserRequest.getDefaultInstance()); } /** * repeated .UserRequest request = 1; */ public java.util.List getRequestBuilderList() { return getRequestFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.UserRequest, cn.wildfirechat.proto.WFCMessage.UserRequest.Builder, cn.wildfirechat.proto.WFCMessage.UserRequestOrBuilder> getRequestFieldBuilder() { if (requestBuilder_ == null) { requestBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.UserRequest, cn.wildfirechat.proto.WFCMessage.UserRequest.Builder, cn.wildfirechat.proto.WFCMessage.UserRequestOrBuilder>( request_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); request_ = null; } return requestBuilder_; } // @@protoc_insertion_point(builder_scope:PullUserRequest) } static { defaultInstance = new PullUserRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:PullUserRequest) } public interface UserResultOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .User user = 1; /** * required .User user = 1; */ boolean hasUser(); /** * required .User user = 1; */ cn.wildfirechat.proto.WFCMessage.User getUser(); /** * required .User user = 1; */ cn.wildfirechat.proto.WFCMessage.UserOrBuilder getUserOrBuilder(); // required int32 code = 2; /** * required int32 code = 2; */ boolean hasCode(); /** * required int32 code = 2; */ int getCode(); } /** * Protobuf type {@code UserResult} */ public static final class UserResult extends com.google.protobuf.GeneratedMessage implements UserResultOrBuilder { // Use UserResult.newBuilder() to construct. private UserResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private UserResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final UserResult defaultInstance; public static UserResult getDefaultInstance() { return defaultInstance; } public UserResult getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UserResult( 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: { cn.wildfirechat.proto.WFCMessage.User.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = user_.toBuilder(); } user_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.User.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(user_); user_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000002; code_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_UserResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_UserResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.UserResult.class, cn.wildfirechat.proto.WFCMessage.UserResult.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UserResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UserResult(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required .User user = 1; public static final int USER_FIELD_NUMBER = 1; private cn.wildfirechat.proto.WFCMessage.User user_; /** * required .User user = 1; */ public boolean hasUser() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .User user = 1; */ public cn.wildfirechat.proto.WFCMessage.User getUser() { return user_; } /** * required .User user = 1; */ public cn.wildfirechat.proto.WFCMessage.UserOrBuilder getUserOrBuilder() { return user_; } // required int32 code = 2; public static final int CODE_FIELD_NUMBER = 2; private int code_; /** * required int32 code = 2; */ public boolean hasCode() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 code = 2; */ public int getCode() { return code_; } private void initFields() { user_ = cn.wildfirechat.proto.WFCMessage.User.getDefaultInstance(); code_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasUser()) { memoizedIsInitialized = 0; return false; } if (!hasCode()) { memoizedIsInitialized = 0; return false; } if (!getUser().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, user_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, code_); } 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, user_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, code_); } 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 cn.wildfirechat.proto.WFCMessage.UserResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.UserResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.UserResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.UserResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.UserResult parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.UserResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.UserResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.UserResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.UserResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.UserResult 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(cn.wildfirechat.proto.WFCMessage.UserResult 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 UserResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.UserResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_UserResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_UserResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.UserResult.class, cn.wildfirechat.proto.WFCMessage.UserResult.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.UserResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getUserFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (userBuilder_ == null) { user_ = cn.wildfirechat.proto.WFCMessage.User.getDefaultInstance(); } else { userBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); code_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_UserResult_descriptor; } public cn.wildfirechat.proto.WFCMessage.UserResult getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.UserResult.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.UserResult build() { cn.wildfirechat.proto.WFCMessage.UserResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.UserResult buildPartial() { cn.wildfirechat.proto.WFCMessage.UserResult result = new cn.wildfirechat.proto.WFCMessage.UserResult(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (userBuilder_ == null) { result.user_ = user_; } else { result.user_ = userBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.code_ = code_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.UserResult) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.UserResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.UserResult other) { if (other == cn.wildfirechat.proto.WFCMessage.UserResult.getDefaultInstance()) return this; if (other.hasUser()) { mergeUser(other.getUser()); } if (other.hasCode()) { setCode(other.getCode()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasUser()) { return false; } if (!hasCode()) { return false; } if (!getUser().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.UserResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.UserResult) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .User user = 1; private cn.wildfirechat.proto.WFCMessage.User user_ = cn.wildfirechat.proto.WFCMessage.User.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.User, cn.wildfirechat.proto.WFCMessage.User.Builder, cn.wildfirechat.proto.WFCMessage.UserOrBuilder> userBuilder_; /** * required .User user = 1; */ public boolean hasUser() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .User user = 1; */ public cn.wildfirechat.proto.WFCMessage.User getUser() { if (userBuilder_ == null) { return user_; } else { return userBuilder_.getMessage(); } } /** * required .User user = 1; */ public Builder setUser(cn.wildfirechat.proto.WFCMessage.User value) { if (userBuilder_ == null) { if (value == null) { throw new NullPointerException(); } user_ = value; onChanged(); } else { userBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .User user = 1; */ public Builder setUser( cn.wildfirechat.proto.WFCMessage.User.Builder builderForValue) { if (userBuilder_ == null) { user_ = builderForValue.build(); onChanged(); } else { userBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .User user = 1; */ public Builder mergeUser(cn.wildfirechat.proto.WFCMessage.User value) { if (userBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && user_ != cn.wildfirechat.proto.WFCMessage.User.getDefaultInstance()) { user_ = cn.wildfirechat.proto.WFCMessage.User.newBuilder(user_).mergeFrom(value).buildPartial(); } else { user_ = value; } onChanged(); } else { userBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .User user = 1; */ public Builder clearUser() { if (userBuilder_ == null) { user_ = cn.wildfirechat.proto.WFCMessage.User.getDefaultInstance(); onChanged(); } else { userBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .User user = 1; */ public cn.wildfirechat.proto.WFCMessage.User.Builder getUserBuilder() { bitField0_ |= 0x00000001; onChanged(); return getUserFieldBuilder().getBuilder(); } /** * required .User user = 1; */ public cn.wildfirechat.proto.WFCMessage.UserOrBuilder getUserOrBuilder() { if (userBuilder_ != null) { return userBuilder_.getMessageOrBuilder(); } else { return user_; } } /** * required .User user = 1; */ private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.User, cn.wildfirechat.proto.WFCMessage.User.Builder, cn.wildfirechat.proto.WFCMessage.UserOrBuilder> getUserFieldBuilder() { if (userBuilder_ == null) { userBuilder_ = new com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.User, cn.wildfirechat.proto.WFCMessage.User.Builder, cn.wildfirechat.proto.WFCMessage.UserOrBuilder>( user_, getParentForChildren(), isClean()); user_ = null; } return userBuilder_; } // required int32 code = 2; private int code_ ; /** * required int32 code = 2; */ public boolean hasCode() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 code = 2; */ public int getCode() { return code_; } /** * required int32 code = 2; */ public Builder setCode(int value) { bitField0_ |= 0x00000002; code_ = value; onChanged(); return this; } /** * required int32 code = 2; */ public Builder clearCode() { bitField0_ = (bitField0_ & ~0x00000002); code_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:UserResult) } static { defaultInstance = new UserResult(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:UserResult) } public interface PullUserResultOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .UserResult result = 1; /** * repeated .UserResult result = 1; */ java.util.List getResultList(); /** * repeated .UserResult result = 1; */ cn.wildfirechat.proto.WFCMessage.UserResult getResult(int index); /** * repeated .UserResult result = 1; */ int getResultCount(); /** * repeated .UserResult result = 1; */ java.util.List getResultOrBuilderList(); /** * repeated .UserResult result = 1; */ cn.wildfirechat.proto.WFCMessage.UserResultOrBuilder getResultOrBuilder( int index); } /** * Protobuf type {@code PullUserResult} */ public static final class PullUserResult extends com.google.protobuf.GeneratedMessage implements PullUserResultOrBuilder { // Use PullUserResult.newBuilder() to construct. private PullUserResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PullUserResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PullUserResult defaultInstance; public static PullUserResult getDefaultInstance() { return defaultInstance; } public PullUserResult getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PullUserResult( 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)) { result_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } result_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.UserResult.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)) { result_ = java.util.Collections.unmodifiableList(result_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullUserResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullUserResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullUserResult.class, cn.wildfirechat.proto.WFCMessage.PullUserResult.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PullUserResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PullUserResult(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .UserResult result = 1; public static final int RESULT_FIELD_NUMBER = 1; private java.util.List result_; /** * repeated .UserResult result = 1; */ public java.util.List getResultList() { return result_; } /** * repeated .UserResult result = 1; */ public java.util.List getResultOrBuilderList() { return result_; } /** * repeated .UserResult result = 1; */ public int getResultCount() { return result_.size(); } /** * repeated .UserResult result = 1; */ public cn.wildfirechat.proto.WFCMessage.UserResult getResult(int index) { return result_.get(index); } /** * repeated .UserResult result = 1; */ public cn.wildfirechat.proto.WFCMessage.UserResultOrBuilder getResultOrBuilder( int index) { return result_.get(index); } private void initFields() { result_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getResultCount(); i++) { if (!getResult(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < result_.size(); i++) { output.writeMessage(1, result_.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 < result_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, result_.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 cn.wildfirechat.proto.WFCMessage.PullUserResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullUserResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullUserResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.PullUserResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullUserResult parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullUserResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullUserResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullUserResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.PullUserResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.PullUserResult 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(cn.wildfirechat.proto.WFCMessage.PullUserResult 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 PullUserResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.PullUserResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullUserResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullUserResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.PullUserResult.class, cn.wildfirechat.proto.WFCMessage.PullUserResult.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.PullUserResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getResultFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (resultBuilder_ == null) { result_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resultBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_PullUserResult_descriptor; } public cn.wildfirechat.proto.WFCMessage.PullUserResult getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.PullUserResult.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.PullUserResult build() { cn.wildfirechat.proto.WFCMessage.PullUserResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.PullUserResult buildPartial() { cn.wildfirechat.proto.WFCMessage.PullUserResult result = new cn.wildfirechat.proto.WFCMessage.PullUserResult(this); int from_bitField0_ = bitField0_; if (resultBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { result_ = java.util.Collections.unmodifiableList(result_); bitField0_ = (bitField0_ & ~0x00000001); } result.result_ = result_; } else { result.result_ = resultBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.PullUserResult) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.PullUserResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.PullUserResult other) { if (other == cn.wildfirechat.proto.WFCMessage.PullUserResult.getDefaultInstance()) return this; if (resultBuilder_ == null) { if (!other.result_.isEmpty()) { if (result_.isEmpty()) { result_ = other.result_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResultIsMutable(); result_.addAll(other.result_); } onChanged(); } } else { if (!other.result_.isEmpty()) { if (resultBuilder_.isEmpty()) { resultBuilder_.dispose(); resultBuilder_ = null; result_ = other.result_; bitField0_ = (bitField0_ & ~0x00000001); resultBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getResultFieldBuilder() : null; } else { resultBuilder_.addAllMessages(other.result_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getResultCount(); i++) { if (!getResult(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.PullUserResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.PullUserResult) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .UserResult result = 1; private java.util.List result_ = java.util.Collections.emptyList(); private void ensureResultIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { result_ = new java.util.ArrayList(result_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.UserResult, cn.wildfirechat.proto.WFCMessage.UserResult.Builder, cn.wildfirechat.proto.WFCMessage.UserResultOrBuilder> resultBuilder_; /** * repeated .UserResult result = 1; */ public java.util.List getResultList() { if (resultBuilder_ == null) { return java.util.Collections.unmodifiableList(result_); } else { return resultBuilder_.getMessageList(); } } /** * repeated .UserResult result = 1; */ public int getResultCount() { if (resultBuilder_ == null) { return result_.size(); } else { return resultBuilder_.getCount(); } } /** * repeated .UserResult result = 1; */ public cn.wildfirechat.proto.WFCMessage.UserResult getResult(int index) { if (resultBuilder_ == null) { return result_.get(index); } else { return resultBuilder_.getMessage(index); } } /** * repeated .UserResult result = 1; */ public Builder setResult( int index, cn.wildfirechat.proto.WFCMessage.UserResult value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultIsMutable(); result_.set(index, value); onChanged(); } else { resultBuilder_.setMessage(index, value); } return this; } /** * repeated .UserResult result = 1; */ public Builder setResult( int index, cn.wildfirechat.proto.WFCMessage.UserResult.Builder builderForValue) { if (resultBuilder_ == null) { ensureResultIsMutable(); result_.set(index, builderForValue.build()); onChanged(); } else { resultBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .UserResult result = 1; */ public Builder addResult(cn.wildfirechat.proto.WFCMessage.UserResult value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultIsMutable(); result_.add(value); onChanged(); } else { resultBuilder_.addMessage(value); } return this; } /** * repeated .UserResult result = 1; */ public Builder addResult( int index, cn.wildfirechat.proto.WFCMessage.UserResult value) { if (resultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResultIsMutable(); result_.add(index, value); onChanged(); } else { resultBuilder_.addMessage(index, value); } return this; } /** * repeated .UserResult result = 1; */ public Builder addResult( cn.wildfirechat.proto.WFCMessage.UserResult.Builder builderForValue) { if (resultBuilder_ == null) { ensureResultIsMutable(); result_.add(builderForValue.build()); onChanged(); } else { resultBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .UserResult result = 1; */ public Builder addResult( int index, cn.wildfirechat.proto.WFCMessage.UserResult.Builder builderForValue) { if (resultBuilder_ == null) { ensureResultIsMutable(); result_.add(index, builderForValue.build()); onChanged(); } else { resultBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .UserResult result = 1; */ public Builder addAllResult( java.lang.Iterable values) { if (resultBuilder_ == null) { ensureResultIsMutable(); super.addAll(values, result_); onChanged(); } else { resultBuilder_.addAllMessages(values); } return this; } /** * repeated .UserResult result = 1; */ public Builder clearResult() { if (resultBuilder_ == null) { result_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resultBuilder_.clear(); } return this; } /** * repeated .UserResult result = 1; */ public Builder removeResult(int index) { if (resultBuilder_ == null) { ensureResultIsMutable(); result_.remove(index); onChanged(); } else { resultBuilder_.remove(index); } return this; } /** * repeated .UserResult result = 1; */ public cn.wildfirechat.proto.WFCMessage.UserResult.Builder getResultBuilder( int index) { return getResultFieldBuilder().getBuilder(index); } /** * repeated .UserResult result = 1; */ public cn.wildfirechat.proto.WFCMessage.UserResultOrBuilder getResultOrBuilder( int index) { if (resultBuilder_ == null) { return result_.get(index); } else { return resultBuilder_.getMessageOrBuilder(index); } } /** * repeated .UserResult result = 1; */ public java.util.List getResultOrBuilderList() { if (resultBuilder_ != null) { return resultBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(result_); } } /** * repeated .UserResult result = 1; */ public cn.wildfirechat.proto.WFCMessage.UserResult.Builder addResultBuilder() { return getResultFieldBuilder().addBuilder( cn.wildfirechat.proto.WFCMessage.UserResult.getDefaultInstance()); } /** * repeated .UserResult result = 1; */ public cn.wildfirechat.proto.WFCMessage.UserResult.Builder addResultBuilder( int index) { return getResultFieldBuilder().addBuilder( index, cn.wildfirechat.proto.WFCMessage.UserResult.getDefaultInstance()); } /** * repeated .UserResult result = 1; */ public java.util.List getResultBuilderList() { return getResultFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.UserResult, cn.wildfirechat.proto.WFCMessage.UserResult.Builder, cn.wildfirechat.proto.WFCMessage.UserResultOrBuilder> getResultFieldBuilder() { if (resultBuilder_ == null) { resultBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.UserResult, cn.wildfirechat.proto.WFCMessage.UserResult.Builder, cn.wildfirechat.proto.WFCMessage.UserResultOrBuilder>( result_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); result_ = null; } return resultBuilder_; } // @@protoc_insertion_point(builder_scope:PullUserResult) } static { defaultInstance = new PullUserResult(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:PullUserResult) } public interface QuitGroupRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string group_id = 1; /** * required string group_id = 1; */ boolean hasGroupId(); /** * required string group_id = 1; */ java.lang.String getGroupId(); /** * required string group_id = 1; */ com.google.protobuf.ByteString getGroupIdBytes(); // repeated int32 to_line = 2; /** * repeated int32 to_line = 2; */ java.util.List getToLineList(); /** * repeated int32 to_line = 2; */ int getToLineCount(); /** * repeated int32 to_line = 2; */ int getToLine(int index); // optional .MessageContent notify_content = 3; /** * optional .MessageContent notify_content = 3; */ boolean hasNotifyContent(); /** * optional .MessageContent notify_content = 3; */ cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent(); /** * optional .MessageContent notify_content = 3; */ cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder(); // optional int32 keep_msg = 4; /** * optional int32 keep_msg = 4; */ boolean hasKeepMsg(); /** * optional int32 keep_msg = 4; */ int getKeepMsg(); } /** * Protobuf type {@code QuitGroupRequest} */ public static final class QuitGroupRequest extends com.google.protobuf.GeneratedMessage implements QuitGroupRequestOrBuilder { // Use QuitGroupRequest.newBuilder() to construct. private QuitGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private QuitGroupRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final QuitGroupRequest defaultInstance; public static QuitGroupRequest getDefaultInstance() { return defaultInstance; } public QuitGroupRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QuitGroupRequest( 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; groupId_ = input.readBytes(); break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } toLine_.add(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { toLine_.add(input.readInt32()); } input.popLimit(limit); break; } case 26: { cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = notifyContent_.toBuilder(); } notifyContent_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(notifyContent_); notifyContent_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 32: { bitField0_ |= 0x00000004; keepMsg_ = 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 { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_QuitGroupRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_QuitGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.QuitGroupRequest.class, cn.wildfirechat.proto.WFCMessage.QuitGroupRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public QuitGroupRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QuitGroupRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string group_id = 1; public static final int GROUP_ID_FIELD_NUMBER = 1; private java.lang.Object groupId_; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; 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()) { groupId_ = s; } return s; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated int32 to_line = 2; public static final int TO_LINE_FIELD_NUMBER = 2; private java.util.List toLine_; /** * repeated int32 to_line = 2; */ public java.util.List getToLineList() { return toLine_; } /** * repeated int32 to_line = 2; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 2; */ public int getToLine(int index) { return toLine_.get(index); } // optional .MessageContent notify_content = 3; public static final int NOTIFY_CONTENT_FIELD_NUMBER = 3; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_; /** * optional .MessageContent notify_content = 3; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { return notifyContent_; } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { return notifyContent_; } // optional int32 keep_msg = 4; public static final int KEEP_MSG_FIELD_NUMBER = 4; private int keepMsg_; /** * optional int32 keep_msg = 4; */ public boolean hasKeepMsg() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 keep_msg = 4; */ public int getKeepMsg() { return keepMsg_; } private void initFields() { groupId_ = ""; toLine_ = java.util.Collections.emptyList(); notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); keepMsg_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasGroupId()) { memoizedIsInitialized = 0; return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getGroupIdBytes()); } for (int i = 0; i < toLine_.size(); i++) { output.writeInt32(2, toLine_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(3, notifyContent_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(4, keepMsg_); } 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, getGroupIdBytes()); } { int dataSize = 0; for (int i = 0; i < toLine_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(toLine_.get(i)); } size += dataSize; size += 1 * getToLineList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, notifyContent_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, keepMsg_); } 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 cn.wildfirechat.proto.WFCMessage.QuitGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.QuitGroupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.QuitGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.QuitGroupRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.QuitGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.QuitGroupRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.QuitGroupRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.QuitGroupRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.QuitGroupRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.QuitGroupRequest 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(cn.wildfirechat.proto.WFCMessage.QuitGroupRequest 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 QuitGroupRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.QuitGroupRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_QuitGroupRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_QuitGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.QuitGroupRequest.class, cn.wildfirechat.proto.WFCMessage.QuitGroupRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.QuitGroupRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getNotifyContentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); groupId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); keepMsg_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_QuitGroupRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.QuitGroupRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.QuitGroupRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.QuitGroupRequest build() { cn.wildfirechat.proto.WFCMessage.QuitGroupRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.QuitGroupRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.QuitGroupRequest result = new cn.wildfirechat.proto.WFCMessage.QuitGroupRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.groupId_ = groupId_; if (((bitField0_ & 0x00000002) == 0x00000002)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); bitField0_ = (bitField0_ & ~0x00000002); } result.toLine_ = toLine_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } if (notifyContentBuilder_ == null) { result.notifyContent_ = notifyContent_; } else { result.notifyContent_ = notifyContentBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.keepMsg_ = keepMsg_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.QuitGroupRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.QuitGroupRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.QuitGroupRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.QuitGroupRequest.getDefaultInstance()) return this; if (other.hasGroupId()) { bitField0_ |= 0x00000001; groupId_ = other.groupId_; onChanged(); } if (!other.toLine_.isEmpty()) { if (toLine_.isEmpty()) { toLine_ = other.toLine_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureToLineIsMutable(); toLine_.addAll(other.toLine_); } onChanged(); } if (other.hasNotifyContent()) { mergeNotifyContent(other.getNotifyContent()); } if (other.hasKeepMsg()) { setKeepMsg(other.getKeepMsg()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasGroupId()) { return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.QuitGroupRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.QuitGroupRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string group_id = 1; private java.lang.Object groupId_ = ""; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); groupId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string group_id = 1; */ public Builder setGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } /** * required string group_id = 1; */ public Builder clearGroupId() { bitField0_ = (bitField0_ & ~0x00000001); groupId_ = getDefaultInstance().getGroupId(); onChanged(); return this; } /** * required string group_id = 1; */ public Builder setGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } // repeated int32 to_line = 2; private java.util.List toLine_ = java.util.Collections.emptyList(); private void ensureToLineIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { toLine_ = new java.util.ArrayList(toLine_); bitField0_ |= 0x00000002; } } /** * repeated int32 to_line = 2; */ public java.util.List getToLineList() { return java.util.Collections.unmodifiableList(toLine_); } /** * repeated int32 to_line = 2; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 2; */ public int getToLine(int index) { return toLine_.get(index); } /** * repeated int32 to_line = 2; */ public Builder setToLine( int index, int value) { ensureToLineIsMutable(); toLine_.set(index, value); onChanged(); return this; } /** * repeated int32 to_line = 2; */ public Builder addToLine(int value) { ensureToLineIsMutable(); toLine_.add(value); onChanged(); return this; } /** * repeated int32 to_line = 2; */ public Builder addAllToLine( java.lang.Iterable values) { ensureToLineIsMutable(); super.addAll(values, toLine_); onChanged(); return this; } /** * repeated int32 to_line = 2; */ public Builder clearToLine() { toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // optional .MessageContent notify_content = 3; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> notifyContentBuilder_; /** * optional .MessageContent notify_content = 3; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { if (notifyContentBuilder_ == null) { return notifyContent_; } else { return notifyContentBuilder_.getMessage(); } } /** * optional .MessageContent notify_content = 3; */ public Builder setNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } notifyContent_ = value; onChanged(); } else { notifyContentBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .MessageContent notify_content = 3; */ public Builder setNotifyContent( cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) { if (notifyContentBuilder_ == null) { notifyContent_ = builderForValue.build(); onChanged(); } else { notifyContentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .MessageContent notify_content = 3; */ public Builder mergeNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && notifyContent_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(notifyContent_).mergeFrom(value).buildPartial(); } else { notifyContent_ = value; } onChanged(); } else { notifyContentBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .MessageContent notify_content = 3; */ public Builder clearNotifyContent() { if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); onChanged(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getNotifyContentBuilder() { bitField0_ |= 0x00000004; onChanged(); return getNotifyContentFieldBuilder().getBuilder(); } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { if (notifyContentBuilder_ != null) { return notifyContentBuilder_.getMessageOrBuilder(); } else { return notifyContent_; } } /** * optional .MessageContent notify_content = 3; */ private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> getNotifyContentFieldBuilder() { if (notifyContentBuilder_ == null) { notifyContentBuilder_ = new com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>( notifyContent_, getParentForChildren(), isClean()); notifyContent_ = null; } return notifyContentBuilder_; } // optional int32 keep_msg = 4; private int keepMsg_ ; /** * optional int32 keep_msg = 4; */ public boolean hasKeepMsg() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int32 keep_msg = 4; */ public int getKeepMsg() { return keepMsg_; } /** * optional int32 keep_msg = 4; */ public Builder setKeepMsg(int value) { bitField0_ |= 0x00000008; keepMsg_ = value; onChanged(); return this; } /** * optional int32 keep_msg = 4; */ public Builder clearKeepMsg() { bitField0_ = (bitField0_ & ~0x00000008); keepMsg_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:QuitGroupRequest) } static { defaultInstance = new QuitGroupRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:QuitGroupRequest) } public interface RemoveGroupMemberRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string group_id = 1; /** * required string group_id = 1; */ boolean hasGroupId(); /** * required string group_id = 1; */ java.lang.String getGroupId(); /** * required string group_id = 1; */ com.google.protobuf.ByteString getGroupIdBytes(); // repeated string removed_member = 2; /** * repeated string removed_member = 2; */ java.util.List getRemovedMemberList(); /** * repeated string removed_member = 2; */ int getRemovedMemberCount(); /** * repeated string removed_member = 2; */ java.lang.String getRemovedMember(int index); /** * repeated string removed_member = 2; */ com.google.protobuf.ByteString getRemovedMemberBytes(int index); // repeated int32 to_line = 3; /** * repeated int32 to_line = 3; */ java.util.List getToLineList(); /** * repeated int32 to_line = 3; */ int getToLineCount(); /** * repeated int32 to_line = 3; */ int getToLine(int index); // optional .MessageContent notify_content = 4; /** * optional .MessageContent notify_content = 4; */ boolean hasNotifyContent(); /** * optional .MessageContent notify_content = 4; */ cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent(); /** * optional .MessageContent notify_content = 4; */ cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder(); } /** * Protobuf type {@code RemoveGroupMemberRequest} */ public static final class RemoveGroupMemberRequest extends com.google.protobuf.GeneratedMessage implements RemoveGroupMemberRequestOrBuilder { // Use RemoveGroupMemberRequest.newBuilder() to construct. private RemoveGroupMemberRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RemoveGroupMemberRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RemoveGroupMemberRequest defaultInstance; public static RemoveGroupMemberRequest getDefaultInstance() { return defaultInstance; } public RemoveGroupMemberRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RemoveGroupMemberRequest( 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; groupId_ = input.readBytes(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { removedMember_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } removedMember_.add(input.readBytes()); break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } toLine_.add(input.readInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { toLine_.add(input.readInt32()); } input.popLimit(limit); break; } case 34: { cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = notifyContent_.toBuilder(); } notifyContent_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(notifyContent_); notifyContent_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { removedMember_ = new com.google.protobuf.UnmodifiableLazyStringList(removedMember_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_RemoveGroupMemberRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_RemoveGroupMemberRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest.class, cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RemoveGroupMemberRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RemoveGroupMemberRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string group_id = 1; public static final int GROUP_ID_FIELD_NUMBER = 1; private java.lang.Object groupId_; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; 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()) { groupId_ = s; } return s; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated string removed_member = 2; public static final int REMOVED_MEMBER_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList removedMember_; /** * repeated string removed_member = 2; */ public java.util.List getRemovedMemberList() { return removedMember_; } /** * repeated string removed_member = 2; */ public int getRemovedMemberCount() { return removedMember_.size(); } /** * repeated string removed_member = 2; */ public java.lang.String getRemovedMember(int index) { return removedMember_.get(index); } /** * repeated string removed_member = 2; */ public com.google.protobuf.ByteString getRemovedMemberBytes(int index) { return removedMember_.getByteString(index); } // repeated int32 to_line = 3; public static final int TO_LINE_FIELD_NUMBER = 3; private java.util.List toLine_; /** * repeated int32 to_line = 3; */ public java.util.List getToLineList() { return toLine_; } /** * repeated int32 to_line = 3; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 3; */ public int getToLine(int index) { return toLine_.get(index); } // optional .MessageContent notify_content = 4; public static final int NOTIFY_CONTENT_FIELD_NUMBER = 4; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_; /** * optional .MessageContent notify_content = 4; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { return notifyContent_; } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { return notifyContent_; } private void initFields() { groupId_ = ""; removedMember_ = com.google.protobuf.LazyStringArrayList.EMPTY; toLine_ = java.util.Collections.emptyList(); notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasGroupId()) { memoizedIsInitialized = 0; return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getGroupIdBytes()); } for (int i = 0; i < removedMember_.size(); i++) { output.writeBytes(2, removedMember_.getByteString(i)); } for (int i = 0; i < toLine_.size(); i++) { output.writeInt32(3, toLine_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(4, notifyContent_); } 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, getGroupIdBytes()); } { int dataSize = 0; for (int i = 0; i < removedMember_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(removedMember_.getByteString(i)); } size += dataSize; size += 1 * getRemovedMemberList().size(); } { int dataSize = 0; for (int i = 0; i < toLine_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(toLine_.get(i)); } size += dataSize; size += 1 * getToLineList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, notifyContent_); } 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 cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest 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(cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest 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 RemoveGroupMemberRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_RemoveGroupMemberRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_RemoveGroupMemberRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest.class, cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getNotifyContentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); groupId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); removedMember_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_RemoveGroupMemberRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest build() { cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest result = new cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.groupId_ = groupId_; if (((bitField0_ & 0x00000002) == 0x00000002)) { removedMember_ = new com.google.protobuf.UnmodifiableLazyStringList( removedMember_); bitField0_ = (bitField0_ & ~0x00000002); } result.removedMember_ = removedMember_; if (((bitField0_ & 0x00000004) == 0x00000004)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); bitField0_ = (bitField0_ & ~0x00000004); } result.toLine_ = toLine_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000002; } if (notifyContentBuilder_ == null) { result.notifyContent_ = notifyContent_; } else { result.notifyContent_ = notifyContentBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest.getDefaultInstance()) return this; if (other.hasGroupId()) { bitField0_ |= 0x00000001; groupId_ = other.groupId_; onChanged(); } if (!other.removedMember_.isEmpty()) { if (removedMember_.isEmpty()) { removedMember_ = other.removedMember_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRemovedMemberIsMutable(); removedMember_.addAll(other.removedMember_); } onChanged(); } if (!other.toLine_.isEmpty()) { if (toLine_.isEmpty()) { toLine_ = other.toLine_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureToLineIsMutable(); toLine_.addAll(other.toLine_); } onChanged(); } if (other.hasNotifyContent()) { mergeNotifyContent(other.getNotifyContent()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasGroupId()) { return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.RemoveGroupMemberRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string group_id = 1; private java.lang.Object groupId_ = ""; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); groupId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string group_id = 1; */ public Builder setGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } /** * required string group_id = 1; */ public Builder clearGroupId() { bitField0_ = (bitField0_ & ~0x00000001); groupId_ = getDefaultInstance().getGroupId(); onChanged(); return this; } /** * required string group_id = 1; */ public Builder setGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } // repeated string removed_member = 2; private com.google.protobuf.LazyStringList removedMember_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRemovedMemberIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { removedMember_ = new com.google.protobuf.LazyStringArrayList(removedMember_); bitField0_ |= 0x00000002; } } /** * repeated string removed_member = 2; */ public java.util.List getRemovedMemberList() { return java.util.Collections.unmodifiableList(removedMember_); } /** * repeated string removed_member = 2; */ public int getRemovedMemberCount() { return removedMember_.size(); } /** * repeated string removed_member = 2; */ public java.lang.String getRemovedMember(int index) { return removedMember_.get(index); } /** * repeated string removed_member = 2; */ public com.google.protobuf.ByteString getRemovedMemberBytes(int index) { return removedMember_.getByteString(index); } /** * repeated string removed_member = 2; */ public Builder setRemovedMember( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRemovedMemberIsMutable(); removedMember_.set(index, value); onChanged(); return this; } /** * repeated string removed_member = 2; */ public Builder addRemovedMember( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRemovedMemberIsMutable(); removedMember_.add(value); onChanged(); return this; } /** * repeated string removed_member = 2; */ public Builder addAllRemovedMember( java.lang.Iterable values) { ensureRemovedMemberIsMutable(); super.addAll(values, removedMember_); onChanged(); return this; } /** * repeated string removed_member = 2; */ public Builder clearRemovedMember() { removedMember_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string removed_member = 2; */ public Builder addRemovedMemberBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRemovedMemberIsMutable(); removedMember_.add(value); onChanged(); return this; } // repeated int32 to_line = 3; private java.util.List toLine_ = java.util.Collections.emptyList(); private void ensureToLineIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { toLine_ = new java.util.ArrayList(toLine_); bitField0_ |= 0x00000004; } } /** * repeated int32 to_line = 3; */ public java.util.List getToLineList() { return java.util.Collections.unmodifiableList(toLine_); } /** * repeated int32 to_line = 3; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 3; */ public int getToLine(int index) { return toLine_.get(index); } /** * repeated int32 to_line = 3; */ public Builder setToLine( int index, int value) { ensureToLineIsMutable(); toLine_.set(index, value); onChanged(); return this; } /** * repeated int32 to_line = 3; */ public Builder addToLine(int value) { ensureToLineIsMutable(); toLine_.add(value); onChanged(); return this; } /** * repeated int32 to_line = 3; */ public Builder addAllToLine( java.lang.Iterable values) { ensureToLineIsMutable(); super.addAll(values, toLine_); onChanged(); return this; } /** * repeated int32 to_line = 3; */ public Builder clearToLine() { toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } // optional .MessageContent notify_content = 4; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> notifyContentBuilder_; /** * optional .MessageContent notify_content = 4; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { if (notifyContentBuilder_ == null) { return notifyContent_; } else { return notifyContentBuilder_.getMessage(); } } /** * optional .MessageContent notify_content = 4; */ public Builder setNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } notifyContent_ = value; onChanged(); } else { notifyContentBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .MessageContent notify_content = 4; */ public Builder setNotifyContent( cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) { if (notifyContentBuilder_ == null) { notifyContent_ = builderForValue.build(); onChanged(); } else { notifyContentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .MessageContent notify_content = 4; */ public Builder mergeNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && notifyContent_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(notifyContent_).mergeFrom(value).buildPartial(); } else { notifyContent_ = value; } onChanged(); } else { notifyContentBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .MessageContent notify_content = 4; */ public Builder clearNotifyContent() { if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); onChanged(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getNotifyContentBuilder() { bitField0_ |= 0x00000008; onChanged(); return getNotifyContentFieldBuilder().getBuilder(); } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { if (notifyContentBuilder_ != null) { return notifyContentBuilder_.getMessageOrBuilder(); } else { return notifyContent_; } } /** * optional .MessageContent notify_content = 4; */ private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> getNotifyContentFieldBuilder() { if (notifyContentBuilder_ == null) { notifyContentBuilder_ = new com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>( notifyContent_, getParentForChildren(), isClean()); notifyContent_ = null; } return notifyContentBuilder_; } // @@protoc_insertion_point(builder_scope:RemoveGroupMemberRequest) } static { defaultInstance = new RemoveGroupMemberRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RemoveGroupMemberRequest) } public interface TransferGroupRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string group_id = 1; /** * required string group_id = 1; */ boolean hasGroupId(); /** * required string group_id = 1; */ java.lang.String getGroupId(); /** * required string group_id = 1; */ com.google.protobuf.ByteString getGroupIdBytes(); // required string new_owner = 2; /** * required string new_owner = 2; */ boolean hasNewOwner(); /** * required string new_owner = 2; */ java.lang.String getNewOwner(); /** * required string new_owner = 2; */ com.google.protobuf.ByteString getNewOwnerBytes(); // repeated int32 to_line = 3; /** * repeated int32 to_line = 3; */ java.util.List getToLineList(); /** * repeated int32 to_line = 3; */ int getToLineCount(); /** * repeated int32 to_line = 3; */ int getToLine(int index); // optional .MessageContent notify_content = 4; /** * optional .MessageContent notify_content = 4; */ boolean hasNotifyContent(); /** * optional .MessageContent notify_content = 4; */ cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent(); /** * optional .MessageContent notify_content = 4; */ cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder(); } /** * Protobuf type {@code TransferGroupRequest} */ public static final class TransferGroupRequest extends com.google.protobuf.GeneratedMessage implements TransferGroupRequestOrBuilder { // Use TransferGroupRequest.newBuilder() to construct. private TransferGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TransferGroupRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TransferGroupRequest defaultInstance; public static TransferGroupRequest getDefaultInstance() { return defaultInstance; } public TransferGroupRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransferGroupRequest( 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; groupId_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; newOwner_ = input.readBytes(); break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } toLine_.add(input.readInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { toLine_.add(input.readInt32()); } input.popLimit(limit); break; } case 34: { cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = notifyContent_.toBuilder(); } notifyContent_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(notifyContent_); notifyContent_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; 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_ & 0x00000004) == 0x00000004)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_TransferGroupRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_TransferGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.TransferGroupRequest.class, cn.wildfirechat.proto.WFCMessage.TransferGroupRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TransferGroupRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransferGroupRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string group_id = 1; public static final int GROUP_ID_FIELD_NUMBER = 1; private java.lang.Object groupId_; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; 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()) { groupId_ = s; } return s; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string new_owner = 2; public static final int NEW_OWNER_FIELD_NUMBER = 2; private java.lang.Object newOwner_; /** * required string new_owner = 2; */ public boolean hasNewOwner() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string new_owner = 2; */ public java.lang.String getNewOwner() { java.lang.Object ref = newOwner_; 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()) { newOwner_ = s; } return s; } } /** * required string new_owner = 2; */ public com.google.protobuf.ByteString getNewOwnerBytes() { java.lang.Object ref = newOwner_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newOwner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated int32 to_line = 3; public static final int TO_LINE_FIELD_NUMBER = 3; private java.util.List toLine_; /** * repeated int32 to_line = 3; */ public java.util.List getToLineList() { return toLine_; } /** * repeated int32 to_line = 3; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 3; */ public int getToLine(int index) { return toLine_.get(index); } // optional .MessageContent notify_content = 4; public static final int NOTIFY_CONTENT_FIELD_NUMBER = 4; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_; /** * optional .MessageContent notify_content = 4; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { return notifyContent_; } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { return notifyContent_; } private void initFields() { groupId_ = ""; newOwner_ = ""; toLine_ = java.util.Collections.emptyList(); notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasGroupId()) { memoizedIsInitialized = 0; return false; } if (!hasNewOwner()) { memoizedIsInitialized = 0; return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getGroupIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getNewOwnerBytes()); } for (int i = 0; i < toLine_.size(); i++) { output.writeInt32(3, toLine_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(4, notifyContent_); } 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, getGroupIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getNewOwnerBytes()); } { int dataSize = 0; for (int i = 0; i < toLine_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(toLine_.get(i)); } size += dataSize; size += 1 * getToLineList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, notifyContent_); } 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 cn.wildfirechat.proto.WFCMessage.TransferGroupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.TransferGroupRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.TransferGroupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.TransferGroupRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.TransferGroupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.TransferGroupRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.TransferGroupRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.TransferGroupRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.TransferGroupRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.TransferGroupRequest 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(cn.wildfirechat.proto.WFCMessage.TransferGroupRequest 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 TransferGroupRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.TransferGroupRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_TransferGroupRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_TransferGroupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.TransferGroupRequest.class, cn.wildfirechat.proto.WFCMessage.TransferGroupRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.TransferGroupRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getNotifyContentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); groupId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); newOwner_ = ""; bitField0_ = (bitField0_ & ~0x00000002); toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_TransferGroupRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.TransferGroupRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.TransferGroupRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.TransferGroupRequest build() { cn.wildfirechat.proto.WFCMessage.TransferGroupRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.TransferGroupRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.TransferGroupRequest result = new cn.wildfirechat.proto.WFCMessage.TransferGroupRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.groupId_ = groupId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.newOwner_ = newOwner_; if (((bitField0_ & 0x00000004) == 0x00000004)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); bitField0_ = (bitField0_ & ~0x00000004); } result.toLine_ = toLine_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } if (notifyContentBuilder_ == null) { result.notifyContent_ = notifyContent_; } else { result.notifyContent_ = notifyContentBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.TransferGroupRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.TransferGroupRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.TransferGroupRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.TransferGroupRequest.getDefaultInstance()) return this; if (other.hasGroupId()) { bitField0_ |= 0x00000001; groupId_ = other.groupId_; onChanged(); } if (other.hasNewOwner()) { bitField0_ |= 0x00000002; newOwner_ = other.newOwner_; onChanged(); } if (!other.toLine_.isEmpty()) { if (toLine_.isEmpty()) { toLine_ = other.toLine_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureToLineIsMutable(); toLine_.addAll(other.toLine_); } onChanged(); } if (other.hasNotifyContent()) { mergeNotifyContent(other.getNotifyContent()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasGroupId()) { return false; } if (!hasNewOwner()) { return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.TransferGroupRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.TransferGroupRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string group_id = 1; private java.lang.Object groupId_ = ""; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); groupId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string group_id = 1; */ public Builder setGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } /** * required string group_id = 1; */ public Builder clearGroupId() { bitField0_ = (bitField0_ & ~0x00000001); groupId_ = getDefaultInstance().getGroupId(); onChanged(); return this; } /** * required string group_id = 1; */ public Builder setGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } // required string new_owner = 2; private java.lang.Object newOwner_ = ""; /** * required string new_owner = 2; */ public boolean hasNewOwner() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string new_owner = 2; */ public java.lang.String getNewOwner() { java.lang.Object ref = newOwner_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); newOwner_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string new_owner = 2; */ public com.google.protobuf.ByteString getNewOwnerBytes() { java.lang.Object ref = newOwner_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); newOwner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string new_owner = 2; */ public Builder setNewOwner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; newOwner_ = value; onChanged(); return this; } /** * required string new_owner = 2; */ public Builder clearNewOwner() { bitField0_ = (bitField0_ & ~0x00000002); newOwner_ = getDefaultInstance().getNewOwner(); onChanged(); return this; } /** * required string new_owner = 2; */ public Builder setNewOwnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; newOwner_ = value; onChanged(); return this; } // repeated int32 to_line = 3; private java.util.List toLine_ = java.util.Collections.emptyList(); private void ensureToLineIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { toLine_ = new java.util.ArrayList(toLine_); bitField0_ |= 0x00000004; } } /** * repeated int32 to_line = 3; */ public java.util.List getToLineList() { return java.util.Collections.unmodifiableList(toLine_); } /** * repeated int32 to_line = 3; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 3; */ public int getToLine(int index) { return toLine_.get(index); } /** * repeated int32 to_line = 3; */ public Builder setToLine( int index, int value) { ensureToLineIsMutable(); toLine_.set(index, value); onChanged(); return this; } /** * repeated int32 to_line = 3; */ public Builder addToLine(int value) { ensureToLineIsMutable(); toLine_.add(value); onChanged(); return this; } /** * repeated int32 to_line = 3; */ public Builder addAllToLine( java.lang.Iterable values) { ensureToLineIsMutable(); super.addAll(values, toLine_); onChanged(); return this; } /** * repeated int32 to_line = 3; */ public Builder clearToLine() { toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } // optional .MessageContent notify_content = 4; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> notifyContentBuilder_; /** * optional .MessageContent notify_content = 4; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { if (notifyContentBuilder_ == null) { return notifyContent_; } else { return notifyContentBuilder_.getMessage(); } } /** * optional .MessageContent notify_content = 4; */ public Builder setNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } notifyContent_ = value; onChanged(); } else { notifyContentBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .MessageContent notify_content = 4; */ public Builder setNotifyContent( cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) { if (notifyContentBuilder_ == null) { notifyContent_ = builderForValue.build(); onChanged(); } else { notifyContentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .MessageContent notify_content = 4; */ public Builder mergeNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && notifyContent_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(notifyContent_).mergeFrom(value).buildPartial(); } else { notifyContent_ = value; } onChanged(); } else { notifyContentBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .MessageContent notify_content = 4; */ public Builder clearNotifyContent() { if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); onChanged(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getNotifyContentBuilder() { bitField0_ |= 0x00000008; onChanged(); return getNotifyContentFieldBuilder().getBuilder(); } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { if (notifyContentBuilder_ != null) { return notifyContentBuilder_.getMessageOrBuilder(); } else { return notifyContent_; } } /** * optional .MessageContent notify_content = 4; */ private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> getNotifyContentFieldBuilder() { if (notifyContentBuilder_ == null) { notifyContentBuilder_ = new com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>( notifyContent_, getParentForChildren(), isClean()); notifyContent_ = null; } return notifyContentBuilder_; } // @@protoc_insertion_point(builder_scope:TransferGroupRequest) } static { defaultInstance = new TransferGroupRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:TransferGroupRequest) } public interface ModifyGroupMemberAliasOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string group_id = 1; /** * required string group_id = 1; */ boolean hasGroupId(); /** * required string group_id = 1; */ java.lang.String getGroupId(); /** * required string group_id = 1; */ com.google.protobuf.ByteString getGroupIdBytes(); // required string alias = 2; /** * required string alias = 2; */ boolean hasAlias(); /** * required string alias = 2; */ java.lang.String getAlias(); /** * required string alias = 2; */ com.google.protobuf.ByteString getAliasBytes(); // repeated int32 to_line = 3; /** * repeated int32 to_line = 3; */ java.util.List getToLineList(); /** * repeated int32 to_line = 3; */ int getToLineCount(); /** * repeated int32 to_line = 3; */ int getToLine(int index); // optional .MessageContent notify_content = 4; /** * optional .MessageContent notify_content = 4; */ boolean hasNotifyContent(); /** * optional .MessageContent notify_content = 4; */ cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent(); /** * optional .MessageContent notify_content = 4; */ cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder(); // optional string member_id = 5; /** * optional string member_id = 5; */ boolean hasMemberId(); /** * optional string member_id = 5; */ java.lang.String getMemberId(); /** * optional string member_id = 5; */ com.google.protobuf.ByteString getMemberIdBytes(); } /** * Protobuf type {@code ModifyGroupMemberAlias} */ public static final class ModifyGroupMemberAlias extends com.google.protobuf.GeneratedMessage implements ModifyGroupMemberAliasOrBuilder { // Use ModifyGroupMemberAlias.newBuilder() to construct. private ModifyGroupMemberAlias(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ModifyGroupMemberAlias(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ModifyGroupMemberAlias defaultInstance; public static ModifyGroupMemberAlias getDefaultInstance() { return defaultInstance; } public ModifyGroupMemberAlias getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ModifyGroupMemberAlias( 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; groupId_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; alias_ = input.readBytes(); break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } toLine_.add(input.readInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { toLine_.add(input.readInt32()); } input.popLimit(limit); break; } case 34: { cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = notifyContent_.toBuilder(); } notifyContent_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(notifyContent_); notifyContent_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 42: { bitField0_ |= 0x00000008; memberId_ = 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 { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupMemberAlias_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupMemberAlias_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias.class, cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ModifyGroupMemberAlias parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ModifyGroupMemberAlias(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string group_id = 1; public static final int GROUP_ID_FIELD_NUMBER = 1; private java.lang.Object groupId_; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; 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()) { groupId_ = s; } return s; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string alias = 2; public static final int ALIAS_FIELD_NUMBER = 2; private java.lang.Object alias_; /** * required string alias = 2; */ public boolean hasAlias() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string alias = 2; */ public java.lang.String getAlias() { java.lang.Object ref = alias_; 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()) { alias_ = s; } return s; } } /** * required string alias = 2; */ public com.google.protobuf.ByteString getAliasBytes() { java.lang.Object ref = alias_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alias_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated int32 to_line = 3; public static final int TO_LINE_FIELD_NUMBER = 3; private java.util.List toLine_; /** * repeated int32 to_line = 3; */ public java.util.List getToLineList() { return toLine_; } /** * repeated int32 to_line = 3; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 3; */ public int getToLine(int index) { return toLine_.get(index); } // optional .MessageContent notify_content = 4; public static final int NOTIFY_CONTENT_FIELD_NUMBER = 4; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_; /** * optional .MessageContent notify_content = 4; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { return notifyContent_; } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { return notifyContent_; } // optional string member_id = 5; public static final int MEMBER_ID_FIELD_NUMBER = 5; private java.lang.Object memberId_; /** * optional string member_id = 5; */ public boolean hasMemberId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string member_id = 5; */ public java.lang.String getMemberId() { java.lang.Object ref = memberId_; 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()) { memberId_ = s; } return s; } } /** * optional string member_id = 5; */ public com.google.protobuf.ByteString getMemberIdBytes() { java.lang.Object ref = memberId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); memberId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { groupId_ = ""; alias_ = ""; toLine_ = java.util.Collections.emptyList(); notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); memberId_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasGroupId()) { memoizedIsInitialized = 0; return false; } if (!hasAlias()) { memoizedIsInitialized = 0; return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getGroupIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getAliasBytes()); } for (int i = 0; i < toLine_.size(); i++) { output.writeInt32(3, toLine_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(4, notifyContent_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(5, getMemberIdBytes()); } 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, getGroupIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getAliasBytes()); } { int dataSize = 0; for (int i = 0; i < toLine_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(toLine_.get(i)); } size += dataSize; size += 1 * getToLineList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, notifyContent_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getMemberIdBytes()); } 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 cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias 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(cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias 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 ModifyGroupMemberAlias} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAliasOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupMemberAlias_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupMemberAlias_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias.class, cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getNotifyContentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); groupId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); alias_ = ""; bitField0_ = (bitField0_ & ~0x00000002); toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); memberId_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupMemberAlias_descriptor; } public cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias build() { cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias buildPartial() { cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias result = new cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.groupId_ = groupId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.alias_ = alias_; if (((bitField0_ & 0x00000004) == 0x00000004)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); bitField0_ = (bitField0_ & ~0x00000004); } result.toLine_ = toLine_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } if (notifyContentBuilder_ == null) { result.notifyContent_ = notifyContent_; } else { result.notifyContent_ = notifyContentBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.memberId_ = memberId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias other) { if (other == cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias.getDefaultInstance()) return this; if (other.hasGroupId()) { bitField0_ |= 0x00000001; groupId_ = other.groupId_; onChanged(); } if (other.hasAlias()) { bitField0_ |= 0x00000002; alias_ = other.alias_; onChanged(); } if (!other.toLine_.isEmpty()) { if (toLine_.isEmpty()) { toLine_ = other.toLine_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureToLineIsMutable(); toLine_.addAll(other.toLine_); } onChanged(); } if (other.hasNotifyContent()) { mergeNotifyContent(other.getNotifyContent()); } if (other.hasMemberId()) { bitField0_ |= 0x00000010; memberId_ = other.memberId_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasGroupId()) { return false; } if (!hasAlias()) { return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberAlias) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string group_id = 1; private java.lang.Object groupId_ = ""; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); groupId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string group_id = 1; */ public Builder setGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } /** * required string group_id = 1; */ public Builder clearGroupId() { bitField0_ = (bitField0_ & ~0x00000001); groupId_ = getDefaultInstance().getGroupId(); onChanged(); return this; } /** * required string group_id = 1; */ public Builder setGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } // required string alias = 2; private java.lang.Object alias_ = ""; /** * required string alias = 2; */ public boolean hasAlias() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string alias = 2; */ public java.lang.String getAlias() { java.lang.Object ref = alias_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); alias_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string alias = 2; */ public com.google.protobuf.ByteString getAliasBytes() { java.lang.Object ref = alias_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alias_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string alias = 2; */ public Builder setAlias( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; alias_ = value; onChanged(); return this; } /** * required string alias = 2; */ public Builder clearAlias() { bitField0_ = (bitField0_ & ~0x00000002); alias_ = getDefaultInstance().getAlias(); onChanged(); return this; } /** * required string alias = 2; */ public Builder setAliasBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; alias_ = value; onChanged(); return this; } // repeated int32 to_line = 3; private java.util.List toLine_ = java.util.Collections.emptyList(); private void ensureToLineIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { toLine_ = new java.util.ArrayList(toLine_); bitField0_ |= 0x00000004; } } /** * repeated int32 to_line = 3; */ public java.util.List getToLineList() { return java.util.Collections.unmodifiableList(toLine_); } /** * repeated int32 to_line = 3; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 3; */ public int getToLine(int index) { return toLine_.get(index); } /** * repeated int32 to_line = 3; */ public Builder setToLine( int index, int value) { ensureToLineIsMutable(); toLine_.set(index, value); onChanged(); return this; } /** * repeated int32 to_line = 3; */ public Builder addToLine(int value) { ensureToLineIsMutable(); toLine_.add(value); onChanged(); return this; } /** * repeated int32 to_line = 3; */ public Builder addAllToLine( java.lang.Iterable values) { ensureToLineIsMutable(); super.addAll(values, toLine_); onChanged(); return this; } /** * repeated int32 to_line = 3; */ public Builder clearToLine() { toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } // optional .MessageContent notify_content = 4; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> notifyContentBuilder_; /** * optional .MessageContent notify_content = 4; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { if (notifyContentBuilder_ == null) { return notifyContent_; } else { return notifyContentBuilder_.getMessage(); } } /** * optional .MessageContent notify_content = 4; */ public Builder setNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } notifyContent_ = value; onChanged(); } else { notifyContentBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .MessageContent notify_content = 4; */ public Builder setNotifyContent( cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) { if (notifyContentBuilder_ == null) { notifyContent_ = builderForValue.build(); onChanged(); } else { notifyContentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .MessageContent notify_content = 4; */ public Builder mergeNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && notifyContent_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(notifyContent_).mergeFrom(value).buildPartial(); } else { notifyContent_ = value; } onChanged(); } else { notifyContentBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .MessageContent notify_content = 4; */ public Builder clearNotifyContent() { if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); onChanged(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getNotifyContentBuilder() { bitField0_ |= 0x00000008; onChanged(); return getNotifyContentFieldBuilder().getBuilder(); } /** * optional .MessageContent notify_content = 4; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { if (notifyContentBuilder_ != null) { return notifyContentBuilder_.getMessageOrBuilder(); } else { return notifyContent_; } } /** * optional .MessageContent notify_content = 4; */ private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> getNotifyContentFieldBuilder() { if (notifyContentBuilder_ == null) { notifyContentBuilder_ = new com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>( notifyContent_, getParentForChildren(), isClean()); notifyContent_ = null; } return notifyContentBuilder_; } // optional string member_id = 5; private java.lang.Object memberId_ = ""; /** * optional string member_id = 5; */ public boolean hasMemberId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string member_id = 5; */ public java.lang.String getMemberId() { java.lang.Object ref = memberId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); memberId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string member_id = 5; */ public com.google.protobuf.ByteString getMemberIdBytes() { java.lang.Object ref = memberId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); memberId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string member_id = 5; */ public Builder setMemberId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; memberId_ = value; onChanged(); return this; } /** * optional string member_id = 5; */ public Builder clearMemberId() { bitField0_ = (bitField0_ & ~0x00000010); memberId_ = getDefaultInstance().getMemberId(); onChanged(); return this; } /** * optional string member_id = 5; */ public Builder setMemberIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; memberId_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ModifyGroupMemberAlias) } static { defaultInstance = new ModifyGroupMemberAlias(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ModifyGroupMemberAlias) } public interface ModifyGroupMemberExtraOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string group_id = 1; /** * required string group_id = 1; */ boolean hasGroupId(); /** * required string group_id = 1; */ java.lang.String getGroupId(); /** * required string group_id = 1; */ com.google.protobuf.ByteString getGroupIdBytes(); // repeated int32 to_line = 2; /** * repeated int32 to_line = 2; */ java.util.List getToLineList(); /** * repeated int32 to_line = 2; */ int getToLineCount(); /** * repeated int32 to_line = 2; */ int getToLine(int index); // optional .MessageContent notify_content = 3; /** * optional .MessageContent notify_content = 3; */ boolean hasNotifyContent(); /** * optional .MessageContent notify_content = 3; */ cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent(); /** * optional .MessageContent notify_content = 3; */ cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder(); // optional string extra = 4; /** * optional string extra = 4; */ boolean hasExtra(); /** * optional string extra = 4; */ java.lang.String getExtra(); /** * optional string extra = 4; */ com.google.protobuf.ByteString getExtraBytes(); // optional string member_id = 5; /** * optional string member_id = 5; */ boolean hasMemberId(); /** * optional string member_id = 5; */ java.lang.String getMemberId(); /** * optional string member_id = 5; */ com.google.protobuf.ByteString getMemberIdBytes(); } /** * Protobuf type {@code ModifyGroupMemberExtra} */ public static final class ModifyGroupMemberExtra extends com.google.protobuf.GeneratedMessage implements ModifyGroupMemberExtraOrBuilder { // Use ModifyGroupMemberExtra.newBuilder() to construct. private ModifyGroupMemberExtra(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ModifyGroupMemberExtra(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ModifyGroupMemberExtra defaultInstance; public static ModifyGroupMemberExtra getDefaultInstance() { return defaultInstance; } public ModifyGroupMemberExtra getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ModifyGroupMemberExtra( 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; groupId_ = input.readBytes(); break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } toLine_.add(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { toLine_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { toLine_.add(input.readInt32()); } input.popLimit(limit); break; } case 26: { cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = notifyContent_.toBuilder(); } notifyContent_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(notifyContent_); notifyContent_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 34: { bitField0_ |= 0x00000004; extra_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000008; memberId_ = 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 { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupMemberExtra_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupMemberExtra_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra.class, cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ModifyGroupMemberExtra parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ModifyGroupMemberExtra(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string group_id = 1; public static final int GROUP_ID_FIELD_NUMBER = 1; private java.lang.Object groupId_; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; 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()) { groupId_ = s; } return s; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated int32 to_line = 2; public static final int TO_LINE_FIELD_NUMBER = 2; private java.util.List toLine_; /** * repeated int32 to_line = 2; */ public java.util.List getToLineList() { return toLine_; } /** * repeated int32 to_line = 2; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 2; */ public int getToLine(int index) { return toLine_.get(index); } // optional .MessageContent notify_content = 3; public static final int NOTIFY_CONTENT_FIELD_NUMBER = 3; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_; /** * optional .MessageContent notify_content = 3; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { return notifyContent_; } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { return notifyContent_; } // optional string extra = 4; public static final int EXTRA_FIELD_NUMBER = 4; private java.lang.Object extra_; /** * optional string extra = 4; */ public boolean hasExtra() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string extra = 4; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; 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()) { extra_ = s; } return s; } } /** * optional string extra = 4; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string member_id = 5; public static final int MEMBER_ID_FIELD_NUMBER = 5; private java.lang.Object memberId_; /** * optional string member_id = 5; */ public boolean hasMemberId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string member_id = 5; */ public java.lang.String getMemberId() { java.lang.Object ref = memberId_; 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()) { memberId_ = s; } return s; } } /** * optional string member_id = 5; */ public com.google.protobuf.ByteString getMemberIdBytes() { java.lang.Object ref = memberId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); memberId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { groupId_ = ""; toLine_ = java.util.Collections.emptyList(); notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); extra_ = ""; memberId_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasGroupId()) { memoizedIsInitialized = 0; return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getGroupIdBytes()); } for (int i = 0; i < toLine_.size(); i++) { output.writeInt32(2, toLine_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(3, notifyContent_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(4, getExtraBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(5, getMemberIdBytes()); } 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, getGroupIdBytes()); } { int dataSize = 0; for (int i = 0; i < toLine_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(toLine_.get(i)); } size += dataSize; size += 1 * getToLineList().size(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, notifyContent_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getExtraBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getMemberIdBytes()); } 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 cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra 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(cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra 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 ModifyGroupMemberExtra} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtraOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupMemberExtra_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupMemberExtra_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra.class, cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getNotifyContentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); groupId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); extra_ = ""; bitField0_ = (bitField0_ & ~0x00000008); memberId_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyGroupMemberExtra_descriptor; } public cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra build() { cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra buildPartial() { cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra result = new cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.groupId_ = groupId_; if (((bitField0_ & 0x00000002) == 0x00000002)) { toLine_ = java.util.Collections.unmodifiableList(toLine_); bitField0_ = (bitField0_ & ~0x00000002); } result.toLine_ = toLine_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } if (notifyContentBuilder_ == null) { result.notifyContent_ = notifyContent_; } else { result.notifyContent_ = notifyContentBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.extra_ = extra_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.memberId_ = memberId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra other) { if (other == cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra.getDefaultInstance()) return this; if (other.hasGroupId()) { bitField0_ |= 0x00000001; groupId_ = other.groupId_; onChanged(); } if (!other.toLine_.isEmpty()) { if (toLine_.isEmpty()) { toLine_ = other.toLine_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureToLineIsMutable(); toLine_.addAll(other.toLine_); } onChanged(); } if (other.hasNotifyContent()) { mergeNotifyContent(other.getNotifyContent()); } if (other.hasExtra()) { bitField0_ |= 0x00000008; extra_ = other.extra_; onChanged(); } if (other.hasMemberId()) { bitField0_ |= 0x00000010; memberId_ = other.memberId_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasGroupId()) { return false; } if (hasNotifyContent()) { if (!getNotifyContent().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.ModifyGroupMemberExtra) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string group_id = 1; private java.lang.Object groupId_ = ""; /** * required string group_id = 1; */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string group_id = 1; */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); groupId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string group_id = 1; */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string group_id = 1; */ public Builder setGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } /** * required string group_id = 1; */ public Builder clearGroupId() { bitField0_ = (bitField0_ & ~0x00000001); groupId_ = getDefaultInstance().getGroupId(); onChanged(); return this; } /** * required string group_id = 1; */ public Builder setGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } // repeated int32 to_line = 2; private java.util.List toLine_ = java.util.Collections.emptyList(); private void ensureToLineIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { toLine_ = new java.util.ArrayList(toLine_); bitField0_ |= 0x00000002; } } /** * repeated int32 to_line = 2; */ public java.util.List getToLineList() { return java.util.Collections.unmodifiableList(toLine_); } /** * repeated int32 to_line = 2; */ public int getToLineCount() { return toLine_.size(); } /** * repeated int32 to_line = 2; */ public int getToLine(int index) { return toLine_.get(index); } /** * repeated int32 to_line = 2; */ public Builder setToLine( int index, int value) { ensureToLineIsMutable(); toLine_.set(index, value); onChanged(); return this; } /** * repeated int32 to_line = 2; */ public Builder addToLine(int value) { ensureToLineIsMutable(); toLine_.add(value); onChanged(); return this; } /** * repeated int32 to_line = 2; */ public Builder addAllToLine( java.lang.Iterable values) { ensureToLineIsMutable(); super.addAll(values, toLine_); onChanged(); return this; } /** * repeated int32 to_line = 2; */ public Builder clearToLine() { toLine_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // optional .MessageContent notify_content = 3; private cn.wildfirechat.proto.WFCMessage.MessageContent notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> notifyContentBuilder_; /** * optional .MessageContent notify_content = 3; */ public boolean hasNotifyContent() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getNotifyContent() { if (notifyContentBuilder_ == null) { return notifyContent_; } else { return notifyContentBuilder_.getMessage(); } } /** * optional .MessageContent notify_content = 3; */ public Builder setNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } notifyContent_ = value; onChanged(); } else { notifyContentBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .MessageContent notify_content = 3; */ public Builder setNotifyContent( cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) { if (notifyContentBuilder_ == null) { notifyContent_ = builderForValue.build(); onChanged(); } else { notifyContentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .MessageContent notify_content = 3; */ public Builder mergeNotifyContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (notifyContentBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && notifyContent_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(notifyContent_).mergeFrom(value).buildPartial(); } else { notifyContent_ = value; } onChanged(); } else { notifyContentBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .MessageContent notify_content = 3; */ public Builder clearNotifyContent() { if (notifyContentBuilder_ == null) { notifyContent_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); onChanged(); } else { notifyContentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getNotifyContentBuilder() { bitField0_ |= 0x00000004; onChanged(); return getNotifyContentFieldBuilder().getBuilder(); } /** * optional .MessageContent notify_content = 3; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getNotifyContentOrBuilder() { if (notifyContentBuilder_ != null) { return notifyContentBuilder_.getMessageOrBuilder(); } else { return notifyContent_; } } /** * optional .MessageContent notify_content = 3; */ private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> getNotifyContentFieldBuilder() { if (notifyContentBuilder_ == null) { notifyContentBuilder_ = new com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>( notifyContent_, getParentForChildren(), isClean()); notifyContent_ = null; } return notifyContentBuilder_; } // optional string extra = 4; private java.lang.Object extra_ = ""; /** * optional string extra = 4; */ public boolean hasExtra() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string extra = 4; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); extra_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string extra = 4; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string extra = 4; */ public Builder setExtra( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; extra_ = value; onChanged(); return this; } /** * optional string extra = 4; */ public Builder clearExtra() { bitField0_ = (bitField0_ & ~0x00000008); extra_ = getDefaultInstance().getExtra(); onChanged(); return this; } /** * optional string extra = 4; */ public Builder setExtraBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; extra_ = value; onChanged(); return this; } // optional string member_id = 5; private java.lang.Object memberId_ = ""; /** * optional string member_id = 5; */ public boolean hasMemberId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string member_id = 5; */ public java.lang.String getMemberId() { java.lang.Object ref = memberId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); memberId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string member_id = 5; */ public com.google.protobuf.ByteString getMemberIdBytes() { java.lang.Object ref = memberId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); memberId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string member_id = 5; */ public Builder setMemberId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; memberId_ = value; onChanged(); return this; } /** * optional string member_id = 5; */ public Builder clearMemberId() { bitField0_ = (bitField0_ & ~0x00000010); memberId_ = getDefaultInstance().getMemberId(); onChanged(); return this; } /** * optional string member_id = 5; */ public Builder setMemberIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; memberId_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ModifyGroupMemberExtra) } static { defaultInstance = new ModifyGroupMemberExtra(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ModifyGroupMemberExtra) } public interface UserSettingEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int32 scope = 1; /** * required int32 scope = 1; */ boolean hasScope(); /** * required int32 scope = 1; */ int getScope(); // required string key = 2; /** * required string key = 2; */ boolean hasKey(); /** * required string key = 2; */ java.lang.String getKey(); /** * required string key = 2; */ com.google.protobuf.ByteString getKeyBytes(); // required string value = 3; /** * required string value = 3; */ boolean hasValue(); /** * required string value = 3; */ java.lang.String getValue(); /** * required string value = 3; */ com.google.protobuf.ByteString getValueBytes(); // required int64 update_dt = 4; /** * required int64 update_dt = 4; */ boolean hasUpdateDt(); /** * required int64 update_dt = 4; */ long getUpdateDt(); } /** * Protobuf type {@code UserSettingEntry} */ public static final class UserSettingEntry extends com.google.protobuf.GeneratedMessage implements UserSettingEntryOrBuilder { // Use UserSettingEntry.newBuilder() to construct. private UserSettingEntry(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private UserSettingEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final UserSettingEntry defaultInstance; public static UserSettingEntry getDefaultInstance() { return defaultInstance; } public UserSettingEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UserSettingEntry( 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; scope_ = input.readInt32(); break; } case 18: { bitField0_ |= 0x00000002; key_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; value_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; updateDt_ = input.readInt64(); 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 cn.wildfirechat.proto.WFCMessage.internal_static_UserSettingEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_UserSettingEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.UserSettingEntry.class, cn.wildfirechat.proto.WFCMessage.UserSettingEntry.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UserSettingEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UserSettingEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required int32 scope = 1; public static final int SCOPE_FIELD_NUMBER = 1; private int scope_; /** * required int32 scope = 1; */ public boolean hasScope() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 scope = 1; */ public int getScope() { return scope_; } // required string key = 2; public static final int KEY_FIELD_NUMBER = 2; private java.lang.Object key_; /** * required string key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } } /** * required string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string value = 3; public static final int VALUE_FIELD_NUMBER = 3; private java.lang.Object value_; /** * required string value = 3; */ public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string value = 3; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * required string value = 3; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int64 update_dt = 4; public static final int UPDATE_DT_FIELD_NUMBER = 4; private long updateDt_; /** * required int64 update_dt = 4; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required int64 update_dt = 4; */ public long getUpdateDt() { return updateDt_; } private void initFields() { scope_ = 0; key_ = ""; value_ = ""; updateDt_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasScope()) { memoizedIsInitialized = 0; return false; } if (!hasKey()) { memoizedIsInitialized = 0; return false; } if (!hasValue()) { memoizedIsInitialized = 0; return false; } if (!hasUpdateDt()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, scope_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getKeyBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getValueBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, updateDt_); } 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, scope_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getKeyBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getValueBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, updateDt_); } 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 cn.wildfirechat.proto.WFCMessage.UserSettingEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.UserSettingEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.UserSettingEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.UserSettingEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.UserSettingEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.UserSettingEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.UserSettingEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.UserSettingEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.UserSettingEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.UserSettingEntry 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(cn.wildfirechat.proto.WFCMessage.UserSettingEntry 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 UserSettingEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.UserSettingEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_UserSettingEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_UserSettingEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.UserSettingEntry.class, cn.wildfirechat.proto.WFCMessage.UserSettingEntry.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.UserSettingEntry.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(); scope_ = 0; bitField0_ = (bitField0_ & ~0x00000001); key_ = ""; bitField0_ = (bitField0_ & ~0x00000002); value_ = ""; bitField0_ = (bitField0_ & ~0x00000004); updateDt_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_UserSettingEntry_descriptor; } public cn.wildfirechat.proto.WFCMessage.UserSettingEntry getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.UserSettingEntry.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.UserSettingEntry build() { cn.wildfirechat.proto.WFCMessage.UserSettingEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.UserSettingEntry buildPartial() { cn.wildfirechat.proto.WFCMessage.UserSettingEntry result = new cn.wildfirechat.proto.WFCMessage.UserSettingEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.scope_ = scope_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.key_ = key_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.value_ = value_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.updateDt_ = updateDt_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.UserSettingEntry) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.UserSettingEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.UserSettingEntry other) { if (other == cn.wildfirechat.proto.WFCMessage.UserSettingEntry.getDefaultInstance()) return this; if (other.hasScope()) { setScope(other.getScope()); } if (other.hasKey()) { bitField0_ |= 0x00000002; key_ = other.key_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000004; value_ = other.value_; onChanged(); } if (other.hasUpdateDt()) { setUpdateDt(other.getUpdateDt()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasScope()) { return false; } if (!hasKey()) { return false; } if (!hasValue()) { return false; } if (!hasUpdateDt()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.UserSettingEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.UserSettingEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int32 scope = 1; private int scope_ ; /** * required int32 scope = 1; */ public boolean hasScope() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 scope = 1; */ public int getScope() { return scope_; } /** * required int32 scope = 1; */ public Builder setScope(int value) { bitField0_ |= 0x00000001; scope_ = value; onChanged(); return this; } /** * required int32 scope = 1; */ public Builder clearScope() { bitField0_ = (bitField0_ & ~0x00000001); scope_ = 0; onChanged(); return this; } // required string key = 2; private java.lang.Object key_ = ""; /** * required string key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string key = 2; */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } /** * required string key = 2; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * required string key = 2; */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } // required string value = 3; private java.lang.Object value_ = ""; /** * required string value = 3; */ public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string value = 3; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string value = 3; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string value = 3; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; value_ = value; onChanged(); return this; } /** * required string value = 3; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000004); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required string value = 3; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; value_ = value; onChanged(); return this; } // required int64 update_dt = 4; private long updateDt_ ; /** * required int64 update_dt = 4; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required int64 update_dt = 4; */ public long getUpdateDt() { return updateDt_; } /** * required int64 update_dt = 4; */ public Builder setUpdateDt(long value) { bitField0_ |= 0x00000008; updateDt_ = value; onChanged(); return this; } /** * required int64 update_dt = 4; */ public Builder clearUpdateDt() { bitField0_ = (bitField0_ & ~0x00000008); updateDt_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:UserSettingEntry) } static { defaultInstance = new UserSettingEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:UserSettingEntry) } public interface ModifyUserSettingReqOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int32 scope = 1; /** * required int32 scope = 1; */ boolean hasScope(); /** * required int32 scope = 1; */ int getScope(); // required string key = 2; /** * required string key = 2; */ boolean hasKey(); /** * required string key = 2; */ java.lang.String getKey(); /** * required string key = 2; */ com.google.protobuf.ByteString getKeyBytes(); // required string value = 3; /** * required string value = 3; */ boolean hasValue(); /** * required string value = 3; */ java.lang.String getValue(); /** * required string value = 3; */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code ModifyUserSettingReq} */ public static final class ModifyUserSettingReq extends com.google.protobuf.GeneratedMessage implements ModifyUserSettingReqOrBuilder { // Use ModifyUserSettingReq.newBuilder() to construct. private ModifyUserSettingReq(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ModifyUserSettingReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ModifyUserSettingReq defaultInstance; public static ModifyUserSettingReq getDefaultInstance() { return defaultInstance; } public ModifyUserSettingReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ModifyUserSettingReq( 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; scope_ = input.readInt32(); break; } case 18: { bitField0_ |= 0x00000002; key_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; value_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_ModifyUserSettingReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyUserSettingReq_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq.class, cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ModifyUserSettingReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ModifyUserSettingReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required int32 scope = 1; public static final int SCOPE_FIELD_NUMBER = 1; private int scope_; /** * required int32 scope = 1; */ public boolean hasScope() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 scope = 1; */ public int getScope() { return scope_; } // required string key = 2; public static final int KEY_FIELD_NUMBER = 2; private java.lang.Object key_; /** * required string key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } } /** * required string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string value = 3; public static final int VALUE_FIELD_NUMBER = 3; private java.lang.Object value_; /** * required string value = 3; */ public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string value = 3; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * required string value = 3; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { scope_ = 0; key_ = ""; value_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasScope()) { memoizedIsInitialized = 0; return false; } if (!hasKey()) { memoizedIsInitialized = 0; return false; } if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, scope_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getKeyBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getValueBytes()); } 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, scope_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getKeyBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getValueBytes()); } 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 cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq 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(cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq 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 ModifyUserSettingReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyUserSettingReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyUserSettingReq_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq.class, cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq.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(); scope_ = 0; bitField0_ = (bitField0_ & ~0x00000001); key_ = ""; bitField0_ = (bitField0_ & ~0x00000002); value_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_ModifyUserSettingReq_descriptor; } public cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq build() { cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq buildPartial() { cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq result = new cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.scope_ = scope_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.key_ = key_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq other) { if (other == cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq.getDefaultInstance()) return this; if (other.hasScope()) { setScope(other.getScope()); } if (other.hasKey()) { bitField0_ |= 0x00000002; key_ = other.key_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000004; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasScope()) { return false; } if (!hasKey()) { return false; } if (!hasValue()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.ModifyUserSettingReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int32 scope = 1; private int scope_ ; /** * required int32 scope = 1; */ public boolean hasScope() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int32 scope = 1; */ public int getScope() { return scope_; } /** * required int32 scope = 1; */ public Builder setScope(int value) { bitField0_ |= 0x00000001; scope_ = value; onChanged(); return this; } /** * required int32 scope = 1; */ public Builder clearScope() { bitField0_ = (bitField0_ & ~0x00000001); scope_ = 0; onChanged(); return this; } // required string key = 2; private java.lang.Object key_ = ""; /** * required string key = 2; */ public boolean hasKey() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string key = 2; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string key = 2; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string key = 2; */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } /** * required string key = 2; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000002); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * required string key = 2; */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; key_ = value; onChanged(); return this; } // required string value = 3; private java.lang.Object value_ = ""; /** * required string value = 3; */ public boolean hasValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string value = 3; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string value = 3; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string value = 3; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; value_ = value; onChanged(); return this; } /** * required string value = 3; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000004); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * required string value = 3; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; value_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ModifyUserSettingReq) } static { defaultInstance = new ModifyUserSettingReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ModifyUserSettingReq) } public interface VersionOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int64 version = 1; /** * required int64 version = 1; */ boolean hasVersion(); /** * required int64 version = 1; */ long getVersion(); } /** * Protobuf type {@code Version} */ public static final class Version extends com.google.protobuf.GeneratedMessage implements VersionOrBuilder { // Use Version.newBuilder() to construct. private Version(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Version(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Version defaultInstance; public static Version getDefaultInstance() { return defaultInstance; } public Version getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Version( 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; version_ = input.readInt64(); 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 cn.wildfirechat.proto.WFCMessage.internal_static_Version_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_Version_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.Version.class, cn.wildfirechat.proto.WFCMessage.Version.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Version parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Version(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required int64 version = 1; public static final int VERSION_FIELD_NUMBER = 1; private long version_; /** * required int64 version = 1; */ public boolean hasVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 version = 1; */ public long getVersion() { return version_; } private void initFields() { version_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasVersion()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, version_); } 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 .computeInt64Size(1, version_); } 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 cn.wildfirechat.proto.WFCMessage.Version parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.Version parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Version parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.Version parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Version parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Version parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Version parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Version parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Version parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Version 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(cn.wildfirechat.proto.WFCMessage.Version prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Version} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.VersionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_Version_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_Version_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.Version.class, cn.wildfirechat.proto.WFCMessage.Version.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.Version.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(); version_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_Version_descriptor; } public cn.wildfirechat.proto.WFCMessage.Version getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.Version.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.Version build() { cn.wildfirechat.proto.WFCMessage.Version result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.Version buildPartial() { cn.wildfirechat.proto.WFCMessage.Version result = new cn.wildfirechat.proto.WFCMessage.Version(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.version_ = version_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.Version) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.Version)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.Version other) { if (other == cn.wildfirechat.proto.WFCMessage.Version.getDefaultInstance()) return this; if (other.hasVersion()) { setVersion(other.getVersion()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasVersion()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.Version parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.Version) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int64 version = 1; private long version_ ; /** * required int64 version = 1; */ public boolean hasVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 version = 1; */ public long getVersion() { return version_; } /** * required int64 version = 1; */ public Builder setVersion(long value) { bitField0_ |= 0x00000001; version_ = value; onChanged(); return this; } /** * required int64 version = 1; */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000001); version_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:Version) } static { defaultInstance = new Version(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:Version) } public interface GetUserSettingResultOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .UserSettingEntry entry = 1; /** * repeated .UserSettingEntry entry = 1; */ java.util.List getEntryList(); /** * repeated .UserSettingEntry entry = 1; */ cn.wildfirechat.proto.WFCMessage.UserSettingEntry getEntry(int index); /** * repeated .UserSettingEntry entry = 1; */ int getEntryCount(); /** * repeated .UserSettingEntry entry = 1; */ java.util.List getEntryOrBuilderList(); /** * repeated .UserSettingEntry entry = 1; */ cn.wildfirechat.proto.WFCMessage.UserSettingEntryOrBuilder getEntryOrBuilder( int index); } /** * Protobuf type {@code GetUserSettingResult} */ public static final class GetUserSettingResult extends com.google.protobuf.GeneratedMessage implements GetUserSettingResultOrBuilder { // Use GetUserSettingResult.newBuilder() to construct. private GetUserSettingResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetUserSettingResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetUserSettingResult defaultInstance; public static GetUserSettingResult getDefaultInstance() { return defaultInstance; } public GetUserSettingResult getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetUserSettingResult( 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)) { entry_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } entry_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.UserSettingEntry.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)) { entry_ = java.util.Collections.unmodifiableList(entry_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetUserSettingResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetUserSettingResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetUserSettingResult.class, cn.wildfirechat.proto.WFCMessage.GetUserSettingResult.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetUserSettingResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetUserSettingResult(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .UserSettingEntry entry = 1; public static final int ENTRY_FIELD_NUMBER = 1; private java.util.List entry_; /** * repeated .UserSettingEntry entry = 1; */ public java.util.List getEntryList() { return entry_; } /** * repeated .UserSettingEntry entry = 1; */ public java.util.List getEntryOrBuilderList() { return entry_; } /** * repeated .UserSettingEntry entry = 1; */ public int getEntryCount() { return entry_.size(); } /** * repeated .UserSettingEntry entry = 1; */ public cn.wildfirechat.proto.WFCMessage.UserSettingEntry getEntry(int index) { return entry_.get(index); } /** * repeated .UserSettingEntry entry = 1; */ public cn.wildfirechat.proto.WFCMessage.UserSettingEntryOrBuilder getEntryOrBuilder( int index) { return entry_.get(index); } private void initFields() { entry_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getEntryCount(); i++) { if (!getEntry(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < entry_.size(); i++) { output.writeMessage(1, entry_.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 < entry_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, entry_.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 cn.wildfirechat.proto.WFCMessage.GetUserSettingResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetUserSettingResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetUserSettingResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetUserSettingResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetUserSettingResult parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetUserSettingResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetUserSettingResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetUserSettingResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetUserSettingResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetUserSettingResult 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(cn.wildfirechat.proto.WFCMessage.GetUserSettingResult 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 GetUserSettingResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.GetUserSettingResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetUserSettingResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetUserSettingResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetUserSettingResult.class, cn.wildfirechat.proto.WFCMessage.GetUserSettingResult.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.GetUserSettingResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getEntryFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (entryBuilder_ == null) { entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { entryBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetUserSettingResult_descriptor; } public cn.wildfirechat.proto.WFCMessage.GetUserSettingResult getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.GetUserSettingResult.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.GetUserSettingResult build() { cn.wildfirechat.proto.WFCMessage.GetUserSettingResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.GetUserSettingResult buildPartial() { cn.wildfirechat.proto.WFCMessage.GetUserSettingResult result = new cn.wildfirechat.proto.WFCMessage.GetUserSettingResult(this); int from_bitField0_ = bitField0_; if (entryBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { entry_ = java.util.Collections.unmodifiableList(entry_); bitField0_ = (bitField0_ & ~0x00000001); } result.entry_ = entry_; } else { result.entry_ = entryBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.GetUserSettingResult) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.GetUserSettingResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.GetUserSettingResult other) { if (other == cn.wildfirechat.proto.WFCMessage.GetUserSettingResult.getDefaultInstance()) return this; if (entryBuilder_ == null) { if (!other.entry_.isEmpty()) { if (entry_.isEmpty()) { entry_ = other.entry_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntryIsMutable(); entry_.addAll(other.entry_); } onChanged(); } } else { if (!other.entry_.isEmpty()) { if (entryBuilder_.isEmpty()) { entryBuilder_.dispose(); entryBuilder_ = null; entry_ = other.entry_; bitField0_ = (bitField0_ & ~0x00000001); entryBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getEntryFieldBuilder() : null; } else { entryBuilder_.addAllMessages(other.entry_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getEntryCount(); i++) { if (!getEntry(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.GetUserSettingResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.GetUserSettingResult) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .UserSettingEntry entry = 1; private java.util.List entry_ = java.util.Collections.emptyList(); private void ensureEntryIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { entry_ = new java.util.ArrayList(entry_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.UserSettingEntry, cn.wildfirechat.proto.WFCMessage.UserSettingEntry.Builder, cn.wildfirechat.proto.WFCMessage.UserSettingEntryOrBuilder> entryBuilder_; /** * repeated .UserSettingEntry entry = 1; */ public java.util.List getEntryList() { if (entryBuilder_ == null) { return java.util.Collections.unmodifiableList(entry_); } else { return entryBuilder_.getMessageList(); } } /** * repeated .UserSettingEntry entry = 1; */ public int getEntryCount() { if (entryBuilder_ == null) { return entry_.size(); } else { return entryBuilder_.getCount(); } } /** * repeated .UserSettingEntry entry = 1; */ public cn.wildfirechat.proto.WFCMessage.UserSettingEntry getEntry(int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { return entryBuilder_.getMessage(index); } } /** * repeated .UserSettingEntry entry = 1; */ public Builder setEntry( int index, cn.wildfirechat.proto.WFCMessage.UserSettingEntry value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.set(index, value); onChanged(); } else { entryBuilder_.setMessage(index, value); } return this; } /** * repeated .UserSettingEntry entry = 1; */ public Builder setEntry( int index, cn.wildfirechat.proto.WFCMessage.UserSettingEntry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.set(index, builderForValue.build()); onChanged(); } else { entryBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .UserSettingEntry entry = 1; */ public Builder addEntry(cn.wildfirechat.proto.WFCMessage.UserSettingEntry value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.add(value); onChanged(); } else { entryBuilder_.addMessage(value); } return this; } /** * repeated .UserSettingEntry entry = 1; */ public Builder addEntry( int index, cn.wildfirechat.proto.WFCMessage.UserSettingEntry value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.add(index, value); onChanged(); } else { entryBuilder_.addMessage(index, value); } return this; } /** * repeated .UserSettingEntry entry = 1; */ public Builder addEntry( cn.wildfirechat.proto.WFCMessage.UserSettingEntry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(builderForValue.build()); onChanged(); } else { entryBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .UserSettingEntry entry = 1; */ public Builder addEntry( int index, cn.wildfirechat.proto.WFCMessage.UserSettingEntry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(index, builderForValue.build()); onChanged(); } else { entryBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .UserSettingEntry entry = 1; */ public Builder addAllEntry( java.lang.Iterable values) { if (entryBuilder_ == null) { ensureEntryIsMutable(); super.addAll(values, entry_); onChanged(); } else { entryBuilder_.addAllMessages(values); } return this; } /** * repeated .UserSettingEntry entry = 1; */ public Builder clearEntry() { if (entryBuilder_ == null) { entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entryBuilder_.clear(); } return this; } /** * repeated .UserSettingEntry entry = 1; */ public Builder removeEntry(int index) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.remove(index); onChanged(); } else { entryBuilder_.remove(index); } return this; } /** * repeated .UserSettingEntry entry = 1; */ public cn.wildfirechat.proto.WFCMessage.UserSettingEntry.Builder getEntryBuilder( int index) { return getEntryFieldBuilder().getBuilder(index); } /** * repeated .UserSettingEntry entry = 1; */ public cn.wildfirechat.proto.WFCMessage.UserSettingEntryOrBuilder getEntryOrBuilder( int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { return entryBuilder_.getMessageOrBuilder(index); } } /** * repeated .UserSettingEntry entry = 1; */ public java.util.List getEntryOrBuilderList() { if (entryBuilder_ != null) { return entryBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entry_); } } /** * repeated .UserSettingEntry entry = 1; */ public cn.wildfirechat.proto.WFCMessage.UserSettingEntry.Builder addEntryBuilder() { return getEntryFieldBuilder().addBuilder( cn.wildfirechat.proto.WFCMessage.UserSettingEntry.getDefaultInstance()); } /** * repeated .UserSettingEntry entry = 1; */ public cn.wildfirechat.proto.WFCMessage.UserSettingEntry.Builder addEntryBuilder( int index) { return getEntryFieldBuilder().addBuilder( index, cn.wildfirechat.proto.WFCMessage.UserSettingEntry.getDefaultInstance()); } /** * repeated .UserSettingEntry entry = 1; */ public java.util.List getEntryBuilderList() { return getEntryFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.UserSettingEntry, cn.wildfirechat.proto.WFCMessage.UserSettingEntry.Builder, cn.wildfirechat.proto.WFCMessage.UserSettingEntryOrBuilder> getEntryFieldBuilder() { if (entryBuilder_ == null) { entryBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.UserSettingEntry, cn.wildfirechat.proto.WFCMessage.UserSettingEntry.Builder, cn.wildfirechat.proto.WFCMessage.UserSettingEntryOrBuilder>( entry_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); entry_ = null; } return entryBuilder_; } // @@protoc_insertion_point(builder_scope:GetUserSettingResult) } static { defaultInstance = new GetUserSettingResult(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:GetUserSettingResult) } public interface FriendOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string uid = 1; /** * required string uid = 1; */ boolean hasUid(); /** * required string uid = 1; */ java.lang.String getUid(); /** * required string uid = 1; */ com.google.protobuf.ByteString getUidBytes(); // required int32 state = 2; /** * required int32 state = 2; */ boolean hasState(); /** * required int32 state = 2; */ int getState(); // required int64 update_dt = 3; /** * required int64 update_dt = 3; */ boolean hasUpdateDt(); /** * required int64 update_dt = 3; */ long getUpdateDt(); // optional string alias = 4; /** * optional string alias = 4; */ boolean hasAlias(); /** * optional string alias = 4; */ java.lang.String getAlias(); /** * optional string alias = 4; */ com.google.protobuf.ByteString getAliasBytes(); // optional int32 blacked = 5; /** * optional int32 blacked = 5; */ boolean hasBlacked(); /** * optional int32 blacked = 5; */ int getBlacked(); // optional string extra = 6; /** * optional string extra = 6; */ boolean hasExtra(); /** * optional string extra = 6; */ java.lang.String getExtra(); /** * optional string extra = 6; */ com.google.protobuf.ByteString getExtraBytes(); } /** * Protobuf type {@code Friend} */ public static final class Friend extends com.google.protobuf.GeneratedMessage implements FriendOrBuilder { // Use Friend.newBuilder() to construct. private Friend(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Friend(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Friend defaultInstance; public static Friend getDefaultInstance() { return defaultInstance; } public Friend getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Friend( 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; uid_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; state_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; updateDt_ = input.readInt64(); break; } case 34: { bitField0_ |= 0x00000008; alias_ = input.readBytes(); break; } case 40: { bitField0_ |= 0x00000010; blacked_ = input.readInt32(); break; } case 50: { bitField0_ |= 0x00000020; extra_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_Friend_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_Friend_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.Friend.class, cn.wildfirechat.proto.WFCMessage.Friend.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Friend parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Friend(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string uid = 1; public static final int UID_FIELD_NUMBER = 1; private java.lang.Object uid_; /** * required string uid = 1; */ public boolean hasUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string uid = 1; */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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()) { uid_ = s; } return s; } } /** * required string uid = 1; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 state = 2; public static final int STATE_FIELD_NUMBER = 2; private int state_; /** * required int32 state = 2; */ public boolean hasState() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 state = 2; */ public int getState() { return state_; } // required int64 update_dt = 3; public static final int UPDATE_DT_FIELD_NUMBER = 3; private long updateDt_; /** * required int64 update_dt = 3; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int64 update_dt = 3; */ public long getUpdateDt() { return updateDt_; } // optional string alias = 4; public static final int ALIAS_FIELD_NUMBER = 4; private java.lang.Object alias_; /** * optional string alias = 4; */ public boolean hasAlias() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string alias = 4; */ public java.lang.String getAlias() { java.lang.Object ref = alias_; 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()) { alias_ = s; } return s; } } /** * optional string alias = 4; */ public com.google.protobuf.ByteString getAliasBytes() { java.lang.Object ref = alias_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alias_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 blacked = 5; public static final int BLACKED_FIELD_NUMBER = 5; private int blacked_; /** * optional int32 blacked = 5; */ public boolean hasBlacked() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 blacked = 5; */ public int getBlacked() { return blacked_; } // optional string extra = 6; public static final int EXTRA_FIELD_NUMBER = 6; private java.lang.Object extra_; /** * optional string extra = 6; */ public boolean hasExtra() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string extra = 6; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; 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()) { extra_ = s; } return s; } } /** * optional string extra = 6; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { uid_ = ""; state_ = 0; updateDt_ = 0L; alias_ = ""; blacked_ = 0; extra_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasUid()) { memoizedIsInitialized = 0; return false; } if (!hasState()) { memoizedIsInitialized = 0; return false; } if (!hasUpdateDt()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getUidBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, state_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, updateDt_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getAliasBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, blacked_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getExtraBytes()); } 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, getUidBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, state_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, updateDt_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getAliasBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, blacked_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getExtraBytes()); } 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 cn.wildfirechat.proto.WFCMessage.Friend parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.Friend parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Friend parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.Friend parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Friend parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Friend parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Friend parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Friend parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.Friend parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.Friend 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(cn.wildfirechat.proto.WFCMessage.Friend 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 Friend} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.FriendOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_Friend_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_Friend_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.Friend.class, cn.wildfirechat.proto.WFCMessage.Friend.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.Friend.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_ = ""; bitField0_ = (bitField0_ & ~0x00000001); state_ = 0; bitField0_ = (bitField0_ & ~0x00000002); updateDt_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); alias_ = ""; bitField0_ = (bitField0_ & ~0x00000008); blacked_ = 0; bitField0_ = (bitField0_ & ~0x00000010); extra_ = ""; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_Friend_descriptor; } public cn.wildfirechat.proto.WFCMessage.Friend getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.Friend.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.Friend build() { cn.wildfirechat.proto.WFCMessage.Friend result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.Friend buildPartial() { cn.wildfirechat.proto.WFCMessage.Friend result = new cn.wildfirechat.proto.WFCMessage.Friend(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.state_ = state_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.updateDt_ = updateDt_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.alias_ = alias_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.blacked_ = blacked_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.extra_ = extra_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.Friend) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.Friend)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.Friend other) { if (other == cn.wildfirechat.proto.WFCMessage.Friend.getDefaultInstance()) return this; if (other.hasUid()) { bitField0_ |= 0x00000001; uid_ = other.uid_; onChanged(); } if (other.hasState()) { setState(other.getState()); } if (other.hasUpdateDt()) { setUpdateDt(other.getUpdateDt()); } if (other.hasAlias()) { bitField0_ |= 0x00000008; alias_ = other.alias_; onChanged(); } if (other.hasBlacked()) { setBlacked(other.getBlacked()); } if (other.hasExtra()) { bitField0_ |= 0x00000020; extra_ = other.extra_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasUid()) { return false; } if (!hasState()) { return false; } if (!hasUpdateDt()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.Friend parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.Friend) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string uid = 1; private java.lang.Object uid_ = ""; /** * required string uid = 1; */ public boolean hasUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string uid = 1; */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); uid_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string uid = 1; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string uid = 1; */ public Builder setUid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uid_ = value; onChanged(); return this; } /** * required string uid = 1; */ public Builder clearUid() { bitField0_ = (bitField0_ & ~0x00000001); uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** * required string uid = 1; */ public Builder setUidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uid_ = value; onChanged(); return this; } // required int32 state = 2; private int state_ ; /** * required int32 state = 2; */ public boolean hasState() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 state = 2; */ public int getState() { return state_; } /** * required int32 state = 2; */ public Builder setState(int value) { bitField0_ |= 0x00000002; state_ = value; onChanged(); return this; } /** * required int32 state = 2; */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000002); state_ = 0; onChanged(); return this; } // required int64 update_dt = 3; private long updateDt_ ; /** * required int64 update_dt = 3; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int64 update_dt = 3; */ public long getUpdateDt() { return updateDt_; } /** * required int64 update_dt = 3; */ public Builder setUpdateDt(long value) { bitField0_ |= 0x00000004; updateDt_ = value; onChanged(); return this; } /** * required int64 update_dt = 3; */ public Builder clearUpdateDt() { bitField0_ = (bitField0_ & ~0x00000004); updateDt_ = 0L; onChanged(); return this; } // optional string alias = 4; private java.lang.Object alias_ = ""; /** * optional string alias = 4; */ public boolean hasAlias() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string alias = 4; */ public java.lang.String getAlias() { java.lang.Object ref = alias_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); alias_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string alias = 4; */ public com.google.protobuf.ByteString getAliasBytes() { java.lang.Object ref = alias_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alias_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string alias = 4; */ public Builder setAlias( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; alias_ = value; onChanged(); return this; } /** * optional string alias = 4; */ public Builder clearAlias() { bitField0_ = (bitField0_ & ~0x00000008); alias_ = getDefaultInstance().getAlias(); onChanged(); return this; } /** * optional string alias = 4; */ public Builder setAliasBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; alias_ = value; onChanged(); return this; } // optional int32 blacked = 5; private int blacked_ ; /** * optional int32 blacked = 5; */ public boolean hasBlacked() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 blacked = 5; */ public int getBlacked() { return blacked_; } /** * optional int32 blacked = 5; */ public Builder setBlacked(int value) { bitField0_ |= 0x00000010; blacked_ = value; onChanged(); return this; } /** * optional int32 blacked = 5; */ public Builder clearBlacked() { bitField0_ = (bitField0_ & ~0x00000010); blacked_ = 0; onChanged(); return this; } // optional string extra = 6; private java.lang.Object extra_ = ""; /** * optional string extra = 6; */ public boolean hasExtra() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string extra = 6; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); extra_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string extra = 6; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string extra = 6; */ public Builder setExtra( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; extra_ = value; onChanged(); return this; } /** * optional string extra = 6; */ public Builder clearExtra() { bitField0_ = (bitField0_ & ~0x00000020); extra_ = getDefaultInstance().getExtra(); onChanged(); return this; } /** * optional string extra = 6; */ public Builder setExtraBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; extra_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:Friend) } static { defaultInstance = new Friend(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:Friend) } public interface GetFriendsResultOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .Friend entry = 1; /** * repeated .Friend entry = 1; */ java.util.List getEntryList(); /** * repeated .Friend entry = 1; */ cn.wildfirechat.proto.WFCMessage.Friend getEntry(int index); /** * repeated .Friend entry = 1; */ int getEntryCount(); /** * repeated .Friend entry = 1; */ java.util.List getEntryOrBuilderList(); /** * repeated .Friend entry = 1; */ cn.wildfirechat.proto.WFCMessage.FriendOrBuilder getEntryOrBuilder( int index); } /** * Protobuf type {@code GetFriendsResult} */ public static final class GetFriendsResult extends com.google.protobuf.GeneratedMessage implements GetFriendsResultOrBuilder { // Use GetFriendsResult.newBuilder() to construct. private GetFriendsResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetFriendsResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetFriendsResult defaultInstance; public static GetFriendsResult getDefaultInstance() { return defaultInstance; } public GetFriendsResult getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetFriendsResult( 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)) { entry_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } entry_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.Friend.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)) { entry_ = java.util.Collections.unmodifiableList(entry_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetFriendsResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetFriendsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetFriendsResult.class, cn.wildfirechat.proto.WFCMessage.GetFriendsResult.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetFriendsResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetFriendsResult(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .Friend entry = 1; public static final int ENTRY_FIELD_NUMBER = 1; private java.util.List entry_; /** * repeated .Friend entry = 1; */ public java.util.List getEntryList() { return entry_; } /** * repeated .Friend entry = 1; */ public java.util.List getEntryOrBuilderList() { return entry_; } /** * repeated .Friend entry = 1; */ public int getEntryCount() { return entry_.size(); } /** * repeated .Friend entry = 1; */ public cn.wildfirechat.proto.WFCMessage.Friend getEntry(int index) { return entry_.get(index); } /** * repeated .Friend entry = 1; */ public cn.wildfirechat.proto.WFCMessage.FriendOrBuilder getEntryOrBuilder( int index) { return entry_.get(index); } private void initFields() { entry_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getEntryCount(); i++) { if (!getEntry(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < entry_.size(); i++) { output.writeMessage(1, entry_.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 < entry_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, entry_.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 cn.wildfirechat.proto.WFCMessage.GetFriendsResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetFriendsResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetFriendsResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetFriendsResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetFriendsResult parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetFriendsResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetFriendsResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetFriendsResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetFriendsResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetFriendsResult 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(cn.wildfirechat.proto.WFCMessage.GetFriendsResult 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 GetFriendsResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.GetFriendsResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetFriendsResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetFriendsResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetFriendsResult.class, cn.wildfirechat.proto.WFCMessage.GetFriendsResult.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.GetFriendsResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getEntryFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (entryBuilder_ == null) { entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { entryBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetFriendsResult_descriptor; } public cn.wildfirechat.proto.WFCMessage.GetFriendsResult getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.GetFriendsResult.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.GetFriendsResult build() { cn.wildfirechat.proto.WFCMessage.GetFriendsResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.GetFriendsResult buildPartial() { cn.wildfirechat.proto.WFCMessage.GetFriendsResult result = new cn.wildfirechat.proto.WFCMessage.GetFriendsResult(this); int from_bitField0_ = bitField0_; if (entryBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { entry_ = java.util.Collections.unmodifiableList(entry_); bitField0_ = (bitField0_ & ~0x00000001); } result.entry_ = entry_; } else { result.entry_ = entryBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.GetFriendsResult) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.GetFriendsResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.GetFriendsResult other) { if (other == cn.wildfirechat.proto.WFCMessage.GetFriendsResult.getDefaultInstance()) return this; if (entryBuilder_ == null) { if (!other.entry_.isEmpty()) { if (entry_.isEmpty()) { entry_ = other.entry_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntryIsMutable(); entry_.addAll(other.entry_); } onChanged(); } } else { if (!other.entry_.isEmpty()) { if (entryBuilder_.isEmpty()) { entryBuilder_.dispose(); entryBuilder_ = null; entry_ = other.entry_; bitField0_ = (bitField0_ & ~0x00000001); entryBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getEntryFieldBuilder() : null; } else { entryBuilder_.addAllMessages(other.entry_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getEntryCount(); i++) { if (!getEntry(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.GetFriendsResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.GetFriendsResult) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .Friend entry = 1; private java.util.List entry_ = java.util.Collections.emptyList(); private void ensureEntryIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { entry_ = new java.util.ArrayList(entry_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.Friend, cn.wildfirechat.proto.WFCMessage.Friend.Builder, cn.wildfirechat.proto.WFCMessage.FriendOrBuilder> entryBuilder_; /** * repeated .Friend entry = 1; */ public java.util.List getEntryList() { if (entryBuilder_ == null) { return java.util.Collections.unmodifiableList(entry_); } else { return entryBuilder_.getMessageList(); } } /** * repeated .Friend entry = 1; */ public int getEntryCount() { if (entryBuilder_ == null) { return entry_.size(); } else { return entryBuilder_.getCount(); } } /** * repeated .Friend entry = 1; */ public cn.wildfirechat.proto.WFCMessage.Friend getEntry(int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { return entryBuilder_.getMessage(index); } } /** * repeated .Friend entry = 1; */ public Builder setEntry( int index, cn.wildfirechat.proto.WFCMessage.Friend value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.set(index, value); onChanged(); } else { entryBuilder_.setMessage(index, value); } return this; } /** * repeated .Friend entry = 1; */ public Builder setEntry( int index, cn.wildfirechat.proto.WFCMessage.Friend.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.set(index, builderForValue.build()); onChanged(); } else { entryBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .Friend entry = 1; */ public Builder addEntry(cn.wildfirechat.proto.WFCMessage.Friend value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.add(value); onChanged(); } else { entryBuilder_.addMessage(value); } return this; } /** * repeated .Friend entry = 1; */ public Builder addEntry( int index, cn.wildfirechat.proto.WFCMessage.Friend value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.add(index, value); onChanged(); } else { entryBuilder_.addMessage(index, value); } return this; } /** * repeated .Friend entry = 1; */ public Builder addEntry( cn.wildfirechat.proto.WFCMessage.Friend.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(builderForValue.build()); onChanged(); } else { entryBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .Friend entry = 1; */ public Builder addEntry( int index, cn.wildfirechat.proto.WFCMessage.Friend.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(index, builderForValue.build()); onChanged(); } else { entryBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .Friend entry = 1; */ public Builder addAllEntry( java.lang.Iterable values) { if (entryBuilder_ == null) { ensureEntryIsMutable(); super.addAll(values, entry_); onChanged(); } else { entryBuilder_.addAllMessages(values); } return this; } /** * repeated .Friend entry = 1; */ public Builder clearEntry() { if (entryBuilder_ == null) { entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entryBuilder_.clear(); } return this; } /** * repeated .Friend entry = 1; */ public Builder removeEntry(int index) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.remove(index); onChanged(); } else { entryBuilder_.remove(index); } return this; } /** * repeated .Friend entry = 1; */ public cn.wildfirechat.proto.WFCMessage.Friend.Builder getEntryBuilder( int index) { return getEntryFieldBuilder().getBuilder(index); } /** * repeated .Friend entry = 1; */ public cn.wildfirechat.proto.WFCMessage.FriendOrBuilder getEntryOrBuilder( int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { return entryBuilder_.getMessageOrBuilder(index); } } /** * repeated .Friend entry = 1; */ public java.util.List getEntryOrBuilderList() { if (entryBuilder_ != null) { return entryBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entry_); } } /** * repeated .Friend entry = 1; */ public cn.wildfirechat.proto.WFCMessage.Friend.Builder addEntryBuilder() { return getEntryFieldBuilder().addBuilder( cn.wildfirechat.proto.WFCMessage.Friend.getDefaultInstance()); } /** * repeated .Friend entry = 1; */ public cn.wildfirechat.proto.WFCMessage.Friend.Builder addEntryBuilder( int index) { return getEntryFieldBuilder().addBuilder( index, cn.wildfirechat.proto.WFCMessage.Friend.getDefaultInstance()); } /** * repeated .Friend entry = 1; */ public java.util.List getEntryBuilderList() { return getEntryFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.Friend, cn.wildfirechat.proto.WFCMessage.Friend.Builder, cn.wildfirechat.proto.WFCMessage.FriendOrBuilder> getEntryFieldBuilder() { if (entryBuilder_ == null) { entryBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.Friend, cn.wildfirechat.proto.WFCMessage.Friend.Builder, cn.wildfirechat.proto.WFCMessage.FriendOrBuilder>( entry_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); entry_ = null; } return entryBuilder_; } // @@protoc_insertion_point(builder_scope:GetFriendsResult) } static { defaultInstance = new GetFriendsResult(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:GetFriendsResult) } public interface GetFriendRequestResultOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .FriendRequest entry = 1; /** * repeated .FriendRequest entry = 1; */ java.util.List getEntryList(); /** * repeated .FriendRequest entry = 1; */ cn.wildfirechat.proto.WFCMessage.FriendRequest getEntry(int index); /** * repeated .FriendRequest entry = 1; */ int getEntryCount(); /** * repeated .FriendRequest entry = 1; */ java.util.List getEntryOrBuilderList(); /** * repeated .FriendRequest entry = 1; */ cn.wildfirechat.proto.WFCMessage.FriendRequestOrBuilder getEntryOrBuilder( int index); } /** * Protobuf type {@code GetFriendRequestResult} */ public static final class GetFriendRequestResult extends com.google.protobuf.GeneratedMessage implements GetFriendRequestResultOrBuilder { // Use GetFriendRequestResult.newBuilder() to construct. private GetFriendRequestResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetFriendRequestResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetFriendRequestResult defaultInstance; public static GetFriendRequestResult getDefaultInstance() { return defaultInstance; } public GetFriendRequestResult getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetFriendRequestResult( 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)) { entry_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } entry_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.FriendRequest.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)) { entry_ = java.util.Collections.unmodifiableList(entry_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetFriendRequestResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetFriendRequestResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult.class, cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetFriendRequestResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetFriendRequestResult(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .FriendRequest entry = 1; public static final int ENTRY_FIELD_NUMBER = 1; private java.util.List entry_; /** * repeated .FriendRequest entry = 1; */ public java.util.List getEntryList() { return entry_; } /** * repeated .FriendRequest entry = 1; */ public java.util.List getEntryOrBuilderList() { return entry_; } /** * repeated .FriendRequest entry = 1; */ public int getEntryCount() { return entry_.size(); } /** * repeated .FriendRequest entry = 1; */ public cn.wildfirechat.proto.WFCMessage.FriendRequest getEntry(int index) { return entry_.get(index); } /** * repeated .FriendRequest entry = 1; */ public cn.wildfirechat.proto.WFCMessage.FriendRequestOrBuilder getEntryOrBuilder( int index) { return entry_.get(index); } private void initFields() { entry_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getEntryCount(); i++) { if (!getEntry(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < entry_.size(); i++) { output.writeMessage(1, entry_.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 < entry_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, entry_.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 cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult 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(cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult 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 GetFriendRequestResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.GetFriendRequestResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetFriendRequestResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetFriendRequestResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult.class, cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getEntryFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (entryBuilder_ == null) { entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { entryBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetFriendRequestResult_descriptor; } public cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult build() { cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult buildPartial() { cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult result = new cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult(this); int from_bitField0_ = bitField0_; if (entryBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { entry_ = java.util.Collections.unmodifiableList(entry_); bitField0_ = (bitField0_ & ~0x00000001); } result.entry_ = entry_; } else { result.entry_ = entryBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult other) { if (other == cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult.getDefaultInstance()) return this; if (entryBuilder_ == null) { if (!other.entry_.isEmpty()) { if (entry_.isEmpty()) { entry_ = other.entry_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntryIsMutable(); entry_.addAll(other.entry_); } onChanged(); } } else { if (!other.entry_.isEmpty()) { if (entryBuilder_.isEmpty()) { entryBuilder_.dispose(); entryBuilder_ = null; entry_ = other.entry_; bitField0_ = (bitField0_ & ~0x00000001); entryBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getEntryFieldBuilder() : null; } else { entryBuilder_.addAllMessages(other.entry_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getEntryCount(); i++) { if (!getEntry(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.GetFriendRequestResult) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .FriendRequest entry = 1; private java.util.List entry_ = java.util.Collections.emptyList(); private void ensureEntryIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { entry_ = new java.util.ArrayList(entry_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.FriendRequest, cn.wildfirechat.proto.WFCMessage.FriendRequest.Builder, cn.wildfirechat.proto.WFCMessage.FriendRequestOrBuilder> entryBuilder_; /** * repeated .FriendRequest entry = 1; */ public java.util.List getEntryList() { if (entryBuilder_ == null) { return java.util.Collections.unmodifiableList(entry_); } else { return entryBuilder_.getMessageList(); } } /** * repeated .FriendRequest entry = 1; */ public int getEntryCount() { if (entryBuilder_ == null) { return entry_.size(); } else { return entryBuilder_.getCount(); } } /** * repeated .FriendRequest entry = 1; */ public cn.wildfirechat.proto.WFCMessage.FriendRequest getEntry(int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { return entryBuilder_.getMessage(index); } } /** * repeated .FriendRequest entry = 1; */ public Builder setEntry( int index, cn.wildfirechat.proto.WFCMessage.FriendRequest value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.set(index, value); onChanged(); } else { entryBuilder_.setMessage(index, value); } return this; } /** * repeated .FriendRequest entry = 1; */ public Builder setEntry( int index, cn.wildfirechat.proto.WFCMessage.FriendRequest.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.set(index, builderForValue.build()); onChanged(); } else { entryBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .FriendRequest entry = 1; */ public Builder addEntry(cn.wildfirechat.proto.WFCMessage.FriendRequest value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.add(value); onChanged(); } else { entryBuilder_.addMessage(value); } return this; } /** * repeated .FriendRequest entry = 1; */ public Builder addEntry( int index, cn.wildfirechat.proto.WFCMessage.FriendRequest value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.add(index, value); onChanged(); } else { entryBuilder_.addMessage(index, value); } return this; } /** * repeated .FriendRequest entry = 1; */ public Builder addEntry( cn.wildfirechat.proto.WFCMessage.FriendRequest.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(builderForValue.build()); onChanged(); } else { entryBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .FriendRequest entry = 1; */ public Builder addEntry( int index, cn.wildfirechat.proto.WFCMessage.FriendRequest.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(index, builderForValue.build()); onChanged(); } else { entryBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .FriendRequest entry = 1; */ public Builder addAllEntry( java.lang.Iterable values) { if (entryBuilder_ == null) { ensureEntryIsMutable(); super.addAll(values, entry_); onChanged(); } else { entryBuilder_.addAllMessages(values); } return this; } /** * repeated .FriendRequest entry = 1; */ public Builder clearEntry() { if (entryBuilder_ == null) { entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entryBuilder_.clear(); } return this; } /** * repeated .FriendRequest entry = 1; */ public Builder removeEntry(int index) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.remove(index); onChanged(); } else { entryBuilder_.remove(index); } return this; } /** * repeated .FriendRequest entry = 1; */ public cn.wildfirechat.proto.WFCMessage.FriendRequest.Builder getEntryBuilder( int index) { return getEntryFieldBuilder().getBuilder(index); } /** * repeated .FriendRequest entry = 1; */ public cn.wildfirechat.proto.WFCMessage.FriendRequestOrBuilder getEntryOrBuilder( int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { return entryBuilder_.getMessageOrBuilder(index); } } /** * repeated .FriendRequest entry = 1; */ public java.util.List getEntryOrBuilderList() { if (entryBuilder_ != null) { return entryBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entry_); } } /** * repeated .FriendRequest entry = 1; */ public cn.wildfirechat.proto.WFCMessage.FriendRequest.Builder addEntryBuilder() { return getEntryFieldBuilder().addBuilder( cn.wildfirechat.proto.WFCMessage.FriendRequest.getDefaultInstance()); } /** * repeated .FriendRequest entry = 1; */ public cn.wildfirechat.proto.WFCMessage.FriendRequest.Builder addEntryBuilder( int index) { return getEntryFieldBuilder().addBuilder( index, cn.wildfirechat.proto.WFCMessage.FriendRequest.getDefaultInstance()); } /** * repeated .FriendRequest entry = 1; */ public java.util.List getEntryBuilderList() { return getEntryFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.FriendRequest, cn.wildfirechat.proto.WFCMessage.FriendRequest.Builder, cn.wildfirechat.proto.WFCMessage.FriendRequestOrBuilder> getEntryFieldBuilder() { if (entryBuilder_ == null) { entryBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.FriendRequest, cn.wildfirechat.proto.WFCMessage.FriendRequest.Builder, cn.wildfirechat.proto.WFCMessage.FriendRequestOrBuilder>( entry_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); entry_ = null; } return entryBuilder_; } // @@protoc_insertion_point(builder_scope:GetFriendRequestResult) } static { defaultInstance = new GetFriendRequestResult(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:GetFriendRequestResult) } public interface ConnectAckPayloadOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 msg_head = 1; /** * optional int64 msg_head = 1; */ boolean hasMsgHead(); /** * optional int64 msg_head = 1; */ long getMsgHead(); // optional int64 friend_head = 2; /** * optional int64 friend_head = 2; */ boolean hasFriendHead(); /** * optional int64 friend_head = 2; */ long getFriendHead(); // optional int64 friend_rq_head = 3; /** * optional int64 friend_rq_head = 3; */ boolean hasFriendRqHead(); /** * optional int64 friend_rq_head = 3; */ long getFriendRqHead(); // optional int64 setting_head = 4; /** * optional int64 setting_head = 4; */ boolean hasSettingHead(); /** * optional int64 setting_head = 4; */ long getSettingHead(); // optional string node_addr = 5; /** * optional string node_addr = 5; */ boolean hasNodeAddr(); /** * optional string node_addr = 5; */ java.lang.String getNodeAddr(); /** * optional string node_addr = 5; */ com.google.protobuf.ByteString getNodeAddrBytes(); // optional int32 node_port = 6; /** * optional int32 node_port = 6; */ boolean hasNodePort(); /** * optional int32 node_port = 6; */ int getNodePort(); // optional int64 server_time = 7; /** * optional int64 server_time = 7; */ boolean hasServerTime(); /** * optional int64 server_time = 7; */ long getServerTime(); } /** * Protobuf type {@code ConnectAckPayload} */ public static final class ConnectAckPayload extends com.google.protobuf.GeneratedMessage implements ConnectAckPayloadOrBuilder { // Use ConnectAckPayload.newBuilder() to construct. private ConnectAckPayload(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ConnectAckPayload(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ConnectAckPayload defaultInstance; public static ConnectAckPayload getDefaultInstance() { return defaultInstance; } public ConnectAckPayload getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConnectAckPayload( 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; msgHead_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; friendHead_ = input.readInt64(); break; } case 24: { bitField0_ |= 0x00000004; friendRqHead_ = input.readInt64(); break; } case 32: { bitField0_ |= 0x00000008; settingHead_ = input.readInt64(); break; } case 42: { bitField0_ |= 0x00000010; nodeAddr_ = input.readBytes(); break; } case 48: { bitField0_ |= 0x00000020; nodePort_ = input.readInt32(); break; } case 56: { bitField0_ |= 0x00000040; serverTime_ = input.readInt64(); 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 cn.wildfirechat.proto.WFCMessage.internal_static_ConnectAckPayload_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ConnectAckPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ConnectAckPayload.class, cn.wildfirechat.proto.WFCMessage.ConnectAckPayload.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ConnectAckPayload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConnectAckPayload(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional int64 msg_head = 1; public static final int MSG_HEAD_FIELD_NUMBER = 1; private long msgHead_; /** * optional int64 msg_head = 1; */ public boolean hasMsgHead() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 msg_head = 1; */ public long getMsgHead() { return msgHead_; } // optional int64 friend_head = 2; public static final int FRIEND_HEAD_FIELD_NUMBER = 2; private long friendHead_; /** * optional int64 friend_head = 2; */ public boolean hasFriendHead() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 friend_head = 2; */ public long getFriendHead() { return friendHead_; } // optional int64 friend_rq_head = 3; public static final int FRIEND_RQ_HEAD_FIELD_NUMBER = 3; private long friendRqHead_; /** * optional int64 friend_rq_head = 3; */ public boolean hasFriendRqHead() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 friend_rq_head = 3; */ public long getFriendRqHead() { return friendRqHead_; } // optional int64 setting_head = 4; public static final int SETTING_HEAD_FIELD_NUMBER = 4; private long settingHead_; /** * optional int64 setting_head = 4; */ public boolean hasSettingHead() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 setting_head = 4; */ public long getSettingHead() { return settingHead_; } // optional string node_addr = 5; public static final int NODE_ADDR_FIELD_NUMBER = 5; private java.lang.Object nodeAddr_; /** * optional string node_addr = 5; */ public boolean hasNodeAddr() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string node_addr = 5; */ public java.lang.String getNodeAddr() { java.lang.Object ref = nodeAddr_; 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()) { nodeAddr_ = s; } return s; } } /** * optional string node_addr = 5; */ public com.google.protobuf.ByteString getNodeAddrBytes() { java.lang.Object ref = nodeAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nodeAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 node_port = 6; public static final int NODE_PORT_FIELD_NUMBER = 6; private int nodePort_; /** * optional int32 node_port = 6; */ public boolean hasNodePort() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 node_port = 6; */ public int getNodePort() { return nodePort_; } // optional int64 server_time = 7; public static final int SERVER_TIME_FIELD_NUMBER = 7; private long serverTime_; /** * optional int64 server_time = 7; */ public boolean hasServerTime() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 server_time = 7; */ public long getServerTime() { return serverTime_; } private void initFields() { msgHead_ = 0L; friendHead_ = 0L; friendRqHead_ = 0L; settingHead_ = 0L; nodeAddr_ = ""; nodePort_ = 0; serverTime_ = 0L; } 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.writeInt64(1, msgHead_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, friendHead_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, friendRqHead_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, settingHead_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getNodeAddrBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt32(6, nodePort_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt64(7, serverTime_); } 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 .computeInt64Size(1, msgHead_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, friendHead_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, friendRqHead_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, settingHead_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getNodeAddrBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, nodePort_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, serverTime_); } 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 cn.wildfirechat.proto.WFCMessage.ConnectAckPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ConnectAckPayload parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ConnectAckPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ConnectAckPayload parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ConnectAckPayload parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ConnectAckPayload parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ConnectAckPayload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ConnectAckPayload parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ConnectAckPayload parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ConnectAckPayload 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(cn.wildfirechat.proto.WFCMessage.ConnectAckPayload 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 ConnectAckPayload} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.ConnectAckPayloadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ConnectAckPayload_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ConnectAckPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ConnectAckPayload.class, cn.wildfirechat.proto.WFCMessage.ConnectAckPayload.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.ConnectAckPayload.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(); msgHead_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); friendHead_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); friendRqHead_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); settingHead_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); nodeAddr_ = ""; bitField0_ = (bitField0_ & ~0x00000010); nodePort_ = 0; bitField0_ = (bitField0_ & ~0x00000020); serverTime_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_ConnectAckPayload_descriptor; } public cn.wildfirechat.proto.WFCMessage.ConnectAckPayload getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.ConnectAckPayload.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.ConnectAckPayload build() { cn.wildfirechat.proto.WFCMessage.ConnectAckPayload result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.ConnectAckPayload buildPartial() { cn.wildfirechat.proto.WFCMessage.ConnectAckPayload result = new cn.wildfirechat.proto.WFCMessage.ConnectAckPayload(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.msgHead_ = msgHead_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.friendHead_ = friendHead_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.friendRqHead_ = friendRqHead_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.settingHead_ = settingHead_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.nodeAddr_ = nodeAddr_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.nodePort_ = nodePort_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.serverTime_ = serverTime_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.ConnectAckPayload) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.ConnectAckPayload)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ConnectAckPayload other) { if (other == cn.wildfirechat.proto.WFCMessage.ConnectAckPayload.getDefaultInstance()) return this; if (other.hasMsgHead()) { setMsgHead(other.getMsgHead()); } if (other.hasFriendHead()) { setFriendHead(other.getFriendHead()); } if (other.hasFriendRqHead()) { setFriendRqHead(other.getFriendRqHead()); } if (other.hasSettingHead()) { setSettingHead(other.getSettingHead()); } if (other.hasNodeAddr()) { bitField0_ |= 0x00000010; nodeAddr_ = other.nodeAddr_; onChanged(); } if (other.hasNodePort()) { setNodePort(other.getNodePort()); } if (other.hasServerTime()) { setServerTime(other.getServerTime()); } 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 { cn.wildfirechat.proto.WFCMessage.ConnectAckPayload parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.ConnectAckPayload) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 msg_head = 1; private long msgHead_ ; /** * optional int64 msg_head = 1; */ public boolean hasMsgHead() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 msg_head = 1; */ public long getMsgHead() { return msgHead_; } /** * optional int64 msg_head = 1; */ public Builder setMsgHead(long value) { bitField0_ |= 0x00000001; msgHead_ = value; onChanged(); return this; } /** * optional int64 msg_head = 1; */ public Builder clearMsgHead() { bitField0_ = (bitField0_ & ~0x00000001); msgHead_ = 0L; onChanged(); return this; } // optional int64 friend_head = 2; private long friendHead_ ; /** * optional int64 friend_head = 2; */ public boolean hasFriendHead() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 friend_head = 2; */ public long getFriendHead() { return friendHead_; } /** * optional int64 friend_head = 2; */ public Builder setFriendHead(long value) { bitField0_ |= 0x00000002; friendHead_ = value; onChanged(); return this; } /** * optional int64 friend_head = 2; */ public Builder clearFriendHead() { bitField0_ = (bitField0_ & ~0x00000002); friendHead_ = 0L; onChanged(); return this; } // optional int64 friend_rq_head = 3; private long friendRqHead_ ; /** * optional int64 friend_rq_head = 3; */ public boolean hasFriendRqHead() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 friend_rq_head = 3; */ public long getFriendRqHead() { return friendRqHead_; } /** * optional int64 friend_rq_head = 3; */ public Builder setFriendRqHead(long value) { bitField0_ |= 0x00000004; friendRqHead_ = value; onChanged(); return this; } /** * optional int64 friend_rq_head = 3; */ public Builder clearFriendRqHead() { bitField0_ = (bitField0_ & ~0x00000004); friendRqHead_ = 0L; onChanged(); return this; } // optional int64 setting_head = 4; private long settingHead_ ; /** * optional int64 setting_head = 4; */ public boolean hasSettingHead() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int64 setting_head = 4; */ public long getSettingHead() { return settingHead_; } /** * optional int64 setting_head = 4; */ public Builder setSettingHead(long value) { bitField0_ |= 0x00000008; settingHead_ = value; onChanged(); return this; } /** * optional int64 setting_head = 4; */ public Builder clearSettingHead() { bitField0_ = (bitField0_ & ~0x00000008); settingHead_ = 0L; onChanged(); return this; } // optional string node_addr = 5; private java.lang.Object nodeAddr_ = ""; /** * optional string node_addr = 5; */ public boolean hasNodeAddr() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string node_addr = 5; */ public java.lang.String getNodeAddr() { java.lang.Object ref = nodeAddr_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); nodeAddr_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string node_addr = 5; */ public com.google.protobuf.ByteString getNodeAddrBytes() { java.lang.Object ref = nodeAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nodeAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string node_addr = 5; */ public Builder setNodeAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; nodeAddr_ = value; onChanged(); return this; } /** * optional string node_addr = 5; */ public Builder clearNodeAddr() { bitField0_ = (bitField0_ & ~0x00000010); nodeAddr_ = getDefaultInstance().getNodeAddr(); onChanged(); return this; } /** * optional string node_addr = 5; */ public Builder setNodeAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; nodeAddr_ = value; onChanged(); return this; } // optional int32 node_port = 6; private int nodePort_ ; /** * optional int32 node_port = 6; */ public boolean hasNodePort() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int32 node_port = 6; */ public int getNodePort() { return nodePort_; } /** * optional int32 node_port = 6; */ public Builder setNodePort(int value) { bitField0_ |= 0x00000020; nodePort_ = value; onChanged(); return this; } /** * optional int32 node_port = 6; */ public Builder clearNodePort() { bitField0_ = (bitField0_ & ~0x00000020); nodePort_ = 0; onChanged(); return this; } // optional int64 server_time = 7; private long serverTime_ ; /** * optional int64 server_time = 7; */ public boolean hasServerTime() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional int64 server_time = 7; */ public long getServerTime() { return serverTime_; } /** * optional int64 server_time = 7; */ public Builder setServerTime(long value) { bitField0_ |= 0x00000040; serverTime_ = value; onChanged(); return this; } /** * optional int64 server_time = 7; */ public Builder clearServerTime() { bitField0_ = (bitField0_ & ~0x00000040); serverTime_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ConnectAckPayload) } static { defaultInstance = new ConnectAckPayload(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ConnectAckPayload) } public interface IMHttpWrapperOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string token = 1; /** * required string token = 1; */ boolean hasToken(); /** * required string token = 1; */ java.lang.String getToken(); /** * required string token = 1; */ com.google.protobuf.ByteString getTokenBytes(); // required string client_id = 2; /** * required string client_id = 2; */ boolean hasClientId(); /** * required string client_id = 2; */ java.lang.String getClientId(); /** * required string client_id = 2; */ com.google.protobuf.ByteString getClientIdBytes(); // required string request = 3; /** * required string request = 3; */ boolean hasRequest(); /** * required string request = 3; */ java.lang.String getRequest(); /** * required string request = 3; */ com.google.protobuf.ByteString getRequestBytes(); // optional bytes data = 4; /** * optional bytes data = 4; */ boolean hasData(); /** * optional bytes data = 4; */ com.google.protobuf.ByteString getData(); } /** * Protobuf type {@code IMHttpWrapper} */ public static final class IMHttpWrapper extends com.google.protobuf.GeneratedMessage implements IMHttpWrapperOrBuilder { // Use IMHttpWrapper.newBuilder() to construct. private IMHttpWrapper(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private IMHttpWrapper(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final IMHttpWrapper defaultInstance; public static IMHttpWrapper getDefaultInstance() { return defaultInstance; } public IMHttpWrapper getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IMHttpWrapper( 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; token_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; clientId_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; request_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; data_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_IMHttpWrapper_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_IMHttpWrapper_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.IMHttpWrapper.class, cn.wildfirechat.proto.WFCMessage.IMHttpWrapper.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IMHttpWrapper parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IMHttpWrapper(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string token = 1; public static final int TOKEN_FIELD_NUMBER = 1; private java.lang.Object token_; /** * required string token = 1; */ public boolean hasToken() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string token = 1; */ public java.lang.String getToken() { java.lang.Object ref = token_; 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()) { token_ = s; } return s; } } /** * required string token = 1; */ public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); token_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string client_id = 2; public static final int CLIENT_ID_FIELD_NUMBER = 2; private java.lang.Object clientId_; /** * required string client_id = 2; */ public boolean hasClientId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string client_id = 2; */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; 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()) { clientId_ = s; } return s; } } /** * required string client_id = 2; */ public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string request = 3; public static final int REQUEST_FIELD_NUMBER = 3; private java.lang.Object request_; /** * required string request = 3; */ public boolean hasRequest() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string request = 3; */ public java.lang.String getRequest() { java.lang.Object ref = request_; 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()) { request_ = s; } return s; } } /** * required string request = 3; */ public com.google.protobuf.ByteString getRequestBytes() { java.lang.Object ref = request_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); request_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bytes data = 4; public static final int DATA_FIELD_NUMBER = 4; private com.google.protobuf.ByteString data_; /** * optional bytes data = 4; */ public boolean hasData() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bytes data = 4; */ public com.google.protobuf.ByteString getData() { return data_; } private void initFields() { token_ = ""; clientId_ = ""; request_ = ""; data_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasToken()) { memoizedIsInitialized = 0; return false; } if (!hasClientId()) { memoizedIsInitialized = 0; return false; } if (!hasRequest()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getTokenBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getClientIdBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getRequestBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, data_); } 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, getTokenBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getClientIdBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getRequestBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, data_); } 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 cn.wildfirechat.proto.WFCMessage.IMHttpWrapper parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.IMHttpWrapper parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.IMHttpWrapper parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.IMHttpWrapper parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.IMHttpWrapper parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.IMHttpWrapper parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.IMHttpWrapper parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.IMHttpWrapper parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.IMHttpWrapper parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.IMHttpWrapper 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(cn.wildfirechat.proto.WFCMessage.IMHttpWrapper 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 IMHttpWrapper} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.IMHttpWrapperOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_IMHttpWrapper_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_IMHttpWrapper_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.IMHttpWrapper.class, cn.wildfirechat.proto.WFCMessage.IMHttpWrapper.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.IMHttpWrapper.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(); token_ = ""; bitField0_ = (bitField0_ & ~0x00000001); clientId_ = ""; bitField0_ = (bitField0_ & ~0x00000002); request_ = ""; bitField0_ = (bitField0_ & ~0x00000004); data_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_IMHttpWrapper_descriptor; } public cn.wildfirechat.proto.WFCMessage.IMHttpWrapper getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.IMHttpWrapper.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.IMHttpWrapper build() { cn.wildfirechat.proto.WFCMessage.IMHttpWrapper result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.IMHttpWrapper buildPartial() { cn.wildfirechat.proto.WFCMessage.IMHttpWrapper result = new cn.wildfirechat.proto.WFCMessage.IMHttpWrapper(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.token_ = token_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.clientId_ = clientId_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.request_ = request_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.data_ = data_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.IMHttpWrapper) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.IMHttpWrapper)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.IMHttpWrapper other) { if (other == cn.wildfirechat.proto.WFCMessage.IMHttpWrapper.getDefaultInstance()) return this; if (other.hasToken()) { bitField0_ |= 0x00000001; token_ = other.token_; onChanged(); } if (other.hasClientId()) { bitField0_ |= 0x00000002; clientId_ = other.clientId_; onChanged(); } if (other.hasRequest()) { bitField0_ |= 0x00000004; request_ = other.request_; onChanged(); } if (other.hasData()) { setData(other.getData()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasToken()) { return false; } if (!hasClientId()) { return false; } if (!hasRequest()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.IMHttpWrapper parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.IMHttpWrapper) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string token = 1; private java.lang.Object token_ = ""; /** * required string token = 1; */ public boolean hasToken() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string token = 1; */ public java.lang.String getToken() { java.lang.Object ref = token_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); token_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string token = 1; */ public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); token_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string token = 1; */ public Builder setToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; token_ = value; onChanged(); return this; } /** * required string token = 1; */ public Builder clearToken() { bitField0_ = (bitField0_ & ~0x00000001); token_ = getDefaultInstance().getToken(); onChanged(); return this; } /** * required string token = 1; */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; token_ = value; onChanged(); return this; } // required string client_id = 2; private java.lang.Object clientId_ = ""; /** * required string client_id = 2; */ public boolean hasClientId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string client_id = 2; */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); clientId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string client_id = 2; */ public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string client_id = 2; */ public Builder setClientId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; clientId_ = value; onChanged(); return this; } /** * required string client_id = 2; */ public Builder clearClientId() { bitField0_ = (bitField0_ & ~0x00000002); clientId_ = getDefaultInstance().getClientId(); onChanged(); return this; } /** * required string client_id = 2; */ public Builder setClientIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; clientId_ = value; onChanged(); return this; } // required string request = 3; private java.lang.Object request_ = ""; /** * required string request = 3; */ public boolean hasRequest() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string request = 3; */ public java.lang.String getRequest() { java.lang.Object ref = request_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); request_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string request = 3; */ public com.google.protobuf.ByteString getRequestBytes() { java.lang.Object ref = request_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); request_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string request = 3; */ public Builder setRequest( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; request_ = value; onChanged(); return this; } /** * required string request = 3; */ public Builder clearRequest() { bitField0_ = (bitField0_ & ~0x00000004); request_ = getDefaultInstance().getRequest(); onChanged(); return this; } /** * required string request = 3; */ public Builder setRequestBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; request_ = value; onChanged(); return this; } // optional bytes data = 4; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes data = 4; */ public boolean hasData() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional bytes data = 4; */ public com.google.protobuf.ByteString getData() { return data_; } /** * optional bytes data = 4; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; data_ = value; onChanged(); return this; } /** * optional bytes data = 4; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000008); data_ = getDefaultInstance().getData(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:IMHttpWrapper) } static { defaultInstance = new IMHttpWrapper(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:IMHttpWrapper) } public interface SearchUserRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string keyword = 1; /** * required string keyword = 1; */ boolean hasKeyword(); /** * required string keyword = 1; */ java.lang.String getKeyword(); /** * required string keyword = 1; */ com.google.protobuf.ByteString getKeywordBytes(); // optional int32 fuzzy = 2; /** * optional int32 fuzzy = 2; */ boolean hasFuzzy(); /** * optional int32 fuzzy = 2; */ int getFuzzy(); // optional int32 page = 3; /** * optional int32 page = 3; */ boolean hasPage(); /** * optional int32 page = 3; */ int getPage(); // optional string domain_id = 4; /** * optional string domain_id = 4; */ boolean hasDomainId(); /** * optional string domain_id = 4; */ java.lang.String getDomainId(); /** * optional string domain_id = 4; */ com.google.protobuf.ByteString getDomainIdBytes(); // optional int32 type = 5; /** * optional int32 type = 5; */ boolean hasType(); /** * optional int32 type = 5; */ int getType(); } /** * Protobuf type {@code SearchUserRequest} */ public static final class SearchUserRequest extends com.google.protobuf.GeneratedMessage implements SearchUserRequestOrBuilder { // Use SearchUserRequest.newBuilder() to construct. private SearchUserRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SearchUserRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SearchUserRequest defaultInstance; public static SearchUserRequest getDefaultInstance() { return defaultInstance; } public SearchUserRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SearchUserRequest( 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; keyword_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; fuzzy_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; page_ = input.readInt32(); break; } case 34: { bitField0_ |= 0x00000008; domainId_ = input.readBytes(); break; } case 40: { bitField0_ |= 0x00000010; type_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_SearchUserRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_SearchUserRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.SearchUserRequest.class, cn.wildfirechat.proto.WFCMessage.SearchUserRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SearchUserRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SearchUserRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string keyword = 1; public static final int KEYWORD_FIELD_NUMBER = 1; private java.lang.Object keyword_; /** * required string keyword = 1; */ public boolean hasKeyword() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string keyword = 1; */ public java.lang.String getKeyword() { java.lang.Object ref = keyword_; 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()) { keyword_ = s; } return s; } } /** * required string keyword = 1; */ public com.google.protobuf.ByteString getKeywordBytes() { java.lang.Object ref = keyword_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keyword_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 fuzzy = 2; public static final int FUZZY_FIELD_NUMBER = 2; private int fuzzy_; /** * optional int32 fuzzy = 2; */ public boolean hasFuzzy() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 fuzzy = 2; */ public int getFuzzy() { return fuzzy_; } // optional int32 page = 3; public static final int PAGE_FIELD_NUMBER = 3; private int page_; /** * optional int32 page = 3; */ public boolean hasPage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 page = 3; */ public int getPage() { return page_; } // optional string domain_id = 4; public static final int DOMAIN_ID_FIELD_NUMBER = 4; private java.lang.Object domainId_; /** * optional string domain_id = 4; */ public boolean hasDomainId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string domain_id = 4; */ public java.lang.String getDomainId() { java.lang.Object ref = domainId_; 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()) { domainId_ = s; } return s; } } /** * optional string domain_id = 4; */ public com.google.protobuf.ByteString getDomainIdBytes() { java.lang.Object ref = domainId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domainId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 type = 5; public static final int TYPE_FIELD_NUMBER = 5; private int type_; /** * optional int32 type = 5; */ public boolean hasType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 type = 5; */ public int getType() { return type_; } private void initFields() { keyword_ = ""; fuzzy_ = 0; page_ = 0; domainId_ = ""; type_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasKeyword()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getKeywordBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, fuzzy_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, page_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getDomainIdBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, type_); } 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, getKeywordBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, fuzzy_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, page_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getDomainIdBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, type_); } 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 cn.wildfirechat.proto.WFCMessage.SearchUserRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.SearchUserRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.SearchUserRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.SearchUserRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.SearchUserRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.SearchUserRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.SearchUserRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.SearchUserRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.SearchUserRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.SearchUserRequest 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(cn.wildfirechat.proto.WFCMessage.SearchUserRequest 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 SearchUserRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.SearchUserRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_SearchUserRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_SearchUserRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.SearchUserRequest.class, cn.wildfirechat.proto.WFCMessage.SearchUserRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.SearchUserRequest.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(); keyword_ = ""; bitField0_ = (bitField0_ & ~0x00000001); fuzzy_ = 0; bitField0_ = (bitField0_ & ~0x00000002); page_ = 0; bitField0_ = (bitField0_ & ~0x00000004); domainId_ = ""; bitField0_ = (bitField0_ & ~0x00000008); type_ = 0; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_SearchUserRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.SearchUserRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.SearchUserRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.SearchUserRequest build() { cn.wildfirechat.proto.WFCMessage.SearchUserRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.SearchUserRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.SearchUserRequest result = new cn.wildfirechat.proto.WFCMessage.SearchUserRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.keyword_ = keyword_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.fuzzy_ = fuzzy_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.page_ = page_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.domainId_ = domainId_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.SearchUserRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.SearchUserRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.SearchUserRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.SearchUserRequest.getDefaultInstance()) return this; if (other.hasKeyword()) { bitField0_ |= 0x00000001; keyword_ = other.keyword_; onChanged(); } if (other.hasFuzzy()) { setFuzzy(other.getFuzzy()); } if (other.hasPage()) { setPage(other.getPage()); } if (other.hasDomainId()) { bitField0_ |= 0x00000008; domainId_ = other.domainId_; onChanged(); } if (other.hasType()) { setType(other.getType()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasKeyword()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.SearchUserRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.SearchUserRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string keyword = 1; private java.lang.Object keyword_ = ""; /** * required string keyword = 1; */ public boolean hasKeyword() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string keyword = 1; */ public java.lang.String getKeyword() { java.lang.Object ref = keyword_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); keyword_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string keyword = 1; */ public com.google.protobuf.ByteString getKeywordBytes() { java.lang.Object ref = keyword_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keyword_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string keyword = 1; */ public Builder setKeyword( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; keyword_ = value; onChanged(); return this; } /** * required string keyword = 1; */ public Builder clearKeyword() { bitField0_ = (bitField0_ & ~0x00000001); keyword_ = getDefaultInstance().getKeyword(); onChanged(); return this; } /** * required string keyword = 1; */ public Builder setKeywordBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; keyword_ = value; onChanged(); return this; } // optional int32 fuzzy = 2; private int fuzzy_ ; /** * optional int32 fuzzy = 2; */ public boolean hasFuzzy() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 fuzzy = 2; */ public int getFuzzy() { return fuzzy_; } /** * optional int32 fuzzy = 2; */ public Builder setFuzzy(int value) { bitField0_ |= 0x00000002; fuzzy_ = value; onChanged(); return this; } /** * optional int32 fuzzy = 2; */ public Builder clearFuzzy() { bitField0_ = (bitField0_ & ~0x00000002); fuzzy_ = 0; onChanged(); return this; } // optional int32 page = 3; private int page_ ; /** * optional int32 page = 3; */ public boolean hasPage() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 page = 3; */ public int getPage() { return page_; } /** * optional int32 page = 3; */ public Builder setPage(int value) { bitField0_ |= 0x00000004; page_ = value; onChanged(); return this; } /** * optional int32 page = 3; */ public Builder clearPage() { bitField0_ = (bitField0_ & ~0x00000004); page_ = 0; onChanged(); return this; } // optional string domain_id = 4; private java.lang.Object domainId_ = ""; /** * optional string domain_id = 4; */ public boolean hasDomainId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string domain_id = 4; */ public java.lang.String getDomainId() { java.lang.Object ref = domainId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); domainId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string domain_id = 4; */ public com.google.protobuf.ByteString getDomainIdBytes() { java.lang.Object ref = domainId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); domainId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string domain_id = 4; */ public Builder setDomainId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; domainId_ = value; onChanged(); return this; } /** * optional string domain_id = 4; */ public Builder clearDomainId() { bitField0_ = (bitField0_ & ~0x00000008); domainId_ = getDefaultInstance().getDomainId(); onChanged(); return this; } /** * optional string domain_id = 4; */ public Builder setDomainIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; domainId_ = value; onChanged(); return this; } // optional int32 type = 5; private int type_ ; /** * optional int32 type = 5; */ public boolean hasType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int32 type = 5; */ public int getType() { return type_; } /** * optional int32 type = 5; */ public Builder setType(int value) { bitField0_ |= 0x00000010; type_ = value; onChanged(); return this; } /** * optional int32 type = 5; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000010); type_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:SearchUserRequest) } static { defaultInstance = new SearchUserRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:SearchUserRequest) } public interface SearchUserResultOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .User entry = 1; /** * repeated .User entry = 1; */ java.util.List getEntryList(); /** * repeated .User entry = 1; */ cn.wildfirechat.proto.WFCMessage.User getEntry(int index); /** * repeated .User entry = 1; */ int getEntryCount(); /** * repeated .User entry = 1; */ java.util.List getEntryOrBuilderList(); /** * repeated .User entry = 1; */ cn.wildfirechat.proto.WFCMessage.UserOrBuilder getEntryOrBuilder( int index); } /** * Protobuf type {@code SearchUserResult} */ public static final class SearchUserResult extends com.google.protobuf.GeneratedMessage implements SearchUserResultOrBuilder { // Use SearchUserResult.newBuilder() to construct. private SearchUserResult(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SearchUserResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SearchUserResult defaultInstance; public static SearchUserResult getDefaultInstance() { return defaultInstance; } public SearchUserResult getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SearchUserResult( 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)) { entry_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } entry_.add(input.readMessage(cn.wildfirechat.proto.WFCMessage.User.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)) { entry_ = java.util.Collections.unmodifiableList(entry_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_SearchUserResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_SearchUserResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.SearchUserResult.class, cn.wildfirechat.proto.WFCMessage.SearchUserResult.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SearchUserResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SearchUserResult(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .User entry = 1; public static final int ENTRY_FIELD_NUMBER = 1; private java.util.List entry_; /** * repeated .User entry = 1; */ public java.util.List getEntryList() { return entry_; } /** * repeated .User entry = 1; */ public java.util.List getEntryOrBuilderList() { return entry_; } /** * repeated .User entry = 1; */ public int getEntryCount() { return entry_.size(); } /** * repeated .User entry = 1; */ public cn.wildfirechat.proto.WFCMessage.User getEntry(int index) { return entry_.get(index); } /** * repeated .User entry = 1; */ public cn.wildfirechat.proto.WFCMessage.UserOrBuilder getEntryOrBuilder( int index) { return entry_.get(index); } private void initFields() { entry_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getEntryCount(); i++) { if (!getEntry(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < entry_.size(); i++) { output.writeMessage(1, entry_.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 < entry_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, entry_.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 cn.wildfirechat.proto.WFCMessage.SearchUserResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.SearchUserResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.SearchUserResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.SearchUserResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.SearchUserResult parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.SearchUserResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.SearchUserResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.SearchUserResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.SearchUserResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.SearchUserResult 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(cn.wildfirechat.proto.WFCMessage.SearchUserResult 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 SearchUserResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.SearchUserResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_SearchUserResult_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_SearchUserResult_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.SearchUserResult.class, cn.wildfirechat.proto.WFCMessage.SearchUserResult.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.SearchUserResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getEntryFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (entryBuilder_ == null) { entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { entryBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_SearchUserResult_descriptor; } public cn.wildfirechat.proto.WFCMessage.SearchUserResult getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.SearchUserResult.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.SearchUserResult build() { cn.wildfirechat.proto.WFCMessage.SearchUserResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.SearchUserResult buildPartial() { cn.wildfirechat.proto.WFCMessage.SearchUserResult result = new cn.wildfirechat.proto.WFCMessage.SearchUserResult(this); int from_bitField0_ = bitField0_; if (entryBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { entry_ = java.util.Collections.unmodifiableList(entry_); bitField0_ = (bitField0_ & ~0x00000001); } result.entry_ = entry_; } else { result.entry_ = entryBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.SearchUserResult) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.SearchUserResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.SearchUserResult other) { if (other == cn.wildfirechat.proto.WFCMessage.SearchUserResult.getDefaultInstance()) return this; if (entryBuilder_ == null) { if (!other.entry_.isEmpty()) { if (entry_.isEmpty()) { entry_ = other.entry_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntryIsMutable(); entry_.addAll(other.entry_); } onChanged(); } } else { if (!other.entry_.isEmpty()) { if (entryBuilder_.isEmpty()) { entryBuilder_.dispose(); entryBuilder_ = null; entry_ = other.entry_; bitField0_ = (bitField0_ & ~0x00000001); entryBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getEntryFieldBuilder() : null; } else { entryBuilder_.addAllMessages(other.entry_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getEntryCount(); i++) { if (!getEntry(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.SearchUserResult parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.SearchUserResult) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .User entry = 1; private java.util.List entry_ = java.util.Collections.emptyList(); private void ensureEntryIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { entry_ = new java.util.ArrayList(entry_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.User, cn.wildfirechat.proto.WFCMessage.User.Builder, cn.wildfirechat.proto.WFCMessage.UserOrBuilder> entryBuilder_; /** * repeated .User entry = 1; */ public java.util.List getEntryList() { if (entryBuilder_ == null) { return java.util.Collections.unmodifiableList(entry_); } else { return entryBuilder_.getMessageList(); } } /** * repeated .User entry = 1; */ public int getEntryCount() { if (entryBuilder_ == null) { return entry_.size(); } else { return entryBuilder_.getCount(); } } /** * repeated .User entry = 1; */ public cn.wildfirechat.proto.WFCMessage.User getEntry(int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { return entryBuilder_.getMessage(index); } } /** * repeated .User entry = 1; */ public Builder setEntry( int index, cn.wildfirechat.proto.WFCMessage.User value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.set(index, value); onChanged(); } else { entryBuilder_.setMessage(index, value); } return this; } /** * repeated .User entry = 1; */ public Builder setEntry( int index, cn.wildfirechat.proto.WFCMessage.User.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.set(index, builderForValue.build()); onChanged(); } else { entryBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .User entry = 1; */ public Builder addEntry(cn.wildfirechat.proto.WFCMessage.User value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.add(value); onChanged(); } else { entryBuilder_.addMessage(value); } return this; } /** * repeated .User entry = 1; */ public Builder addEntry( int index, cn.wildfirechat.proto.WFCMessage.User value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.add(index, value); onChanged(); } else { entryBuilder_.addMessage(index, value); } return this; } /** * repeated .User entry = 1; */ public Builder addEntry( cn.wildfirechat.proto.WFCMessage.User.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(builderForValue.build()); onChanged(); } else { entryBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .User entry = 1; */ public Builder addEntry( int index, cn.wildfirechat.proto.WFCMessage.User.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(index, builderForValue.build()); onChanged(); } else { entryBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .User entry = 1; */ public Builder addAllEntry( java.lang.Iterable values) { if (entryBuilder_ == null) { ensureEntryIsMutable(); super.addAll(values, entry_); onChanged(); } else { entryBuilder_.addAllMessages(values); } return this; } /** * repeated .User entry = 1; */ public Builder clearEntry() { if (entryBuilder_ == null) { entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entryBuilder_.clear(); } return this; } /** * repeated .User entry = 1; */ public Builder removeEntry(int index) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.remove(index); onChanged(); } else { entryBuilder_.remove(index); } return this; } /** * repeated .User entry = 1; */ public cn.wildfirechat.proto.WFCMessage.User.Builder getEntryBuilder( int index) { return getEntryFieldBuilder().getBuilder(index); } /** * repeated .User entry = 1; */ public cn.wildfirechat.proto.WFCMessage.UserOrBuilder getEntryOrBuilder( int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { return entryBuilder_.getMessageOrBuilder(index); } } /** * repeated .User entry = 1; */ public java.util.List getEntryOrBuilderList() { if (entryBuilder_ != null) { return entryBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entry_); } } /** * repeated .User entry = 1; */ public cn.wildfirechat.proto.WFCMessage.User.Builder addEntryBuilder() { return getEntryFieldBuilder().addBuilder( cn.wildfirechat.proto.WFCMessage.User.getDefaultInstance()); } /** * repeated .User entry = 1; */ public cn.wildfirechat.proto.WFCMessage.User.Builder addEntryBuilder( int index) { return getEntryFieldBuilder().addBuilder( index, cn.wildfirechat.proto.WFCMessage.User.getDefaultInstance()); } /** * repeated .User entry = 1; */ public java.util.List getEntryBuilderList() { return getEntryFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.User, cn.wildfirechat.proto.WFCMessage.User.Builder, cn.wildfirechat.proto.WFCMessage.UserOrBuilder> getEntryFieldBuilder() { if (entryBuilder_ == null) { entryBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< cn.wildfirechat.proto.WFCMessage.User, cn.wildfirechat.proto.WFCMessage.User.Builder, cn.wildfirechat.proto.WFCMessage.UserOrBuilder>( entry_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); entry_ = null; } return entryBuilder_; } // @@protoc_insertion_point(builder_scope:SearchUserResult) } static { defaultInstance = new SearchUserResult(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:SearchUserResult) } public interface GetChatroomInfoRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string chatroom_id = 1; /** * required string chatroom_id = 1; */ boolean hasChatroomId(); /** * required string chatroom_id = 1; */ java.lang.String getChatroomId(); /** * required string chatroom_id = 1; */ com.google.protobuf.ByteString getChatroomIdBytes(); // optional int64 update_dt = 2; /** * optional int64 update_dt = 2; */ boolean hasUpdateDt(); /** * optional int64 update_dt = 2; */ long getUpdateDt(); } /** * Protobuf type {@code GetChatroomInfoRequest} */ public static final class GetChatroomInfoRequest extends com.google.protobuf.GeneratedMessage implements GetChatroomInfoRequestOrBuilder { // Use GetChatroomInfoRequest.newBuilder() to construct. private GetChatroomInfoRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetChatroomInfoRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetChatroomInfoRequest defaultInstance; public static GetChatroomInfoRequest getDefaultInstance() { return defaultInstance; } public GetChatroomInfoRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetChatroomInfoRequest( 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; chatroomId_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; updateDt_ = input.readInt64(); 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 cn.wildfirechat.proto.WFCMessage.internal_static_GetChatroomInfoRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetChatroomInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest.class, cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetChatroomInfoRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetChatroomInfoRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string chatroom_id = 1; public static final int CHATROOM_ID_FIELD_NUMBER = 1; private java.lang.Object chatroomId_; /** * required string chatroom_id = 1; */ public boolean hasChatroomId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string chatroom_id = 1; */ public java.lang.String getChatroomId() { java.lang.Object ref = chatroomId_; 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()) { chatroomId_ = s; } return s; } } /** * required string chatroom_id = 1; */ public com.google.protobuf.ByteString getChatroomIdBytes() { java.lang.Object ref = chatroomId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chatroomId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int64 update_dt = 2; public static final int UPDATE_DT_FIELD_NUMBER = 2; private long updateDt_; /** * optional int64 update_dt = 2; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 update_dt = 2; */ public long getUpdateDt() { return updateDt_; } private void initFields() { chatroomId_ = ""; updateDt_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasChatroomId()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getChatroomIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, updateDt_); } 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, getChatroomIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, updateDt_); } 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 cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest 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(cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest 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 GetChatroomInfoRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetChatroomInfoRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetChatroomInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest.class, cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest.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(); chatroomId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); updateDt_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetChatroomInfoRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest build() { cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest result = new cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.chatroomId_ = chatroomId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.updateDt_ = updateDt_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest.getDefaultInstance()) return this; if (other.hasChatroomId()) { bitField0_ |= 0x00000001; chatroomId_ = other.chatroomId_; onChanged(); } if (other.hasUpdateDt()) { setUpdateDt(other.getUpdateDt()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasChatroomId()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.GetChatroomInfoRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string chatroom_id = 1; private java.lang.Object chatroomId_ = ""; /** * required string chatroom_id = 1; */ public boolean hasChatroomId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string chatroom_id = 1; */ public java.lang.String getChatroomId() { java.lang.Object ref = chatroomId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); chatroomId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string chatroom_id = 1; */ public com.google.protobuf.ByteString getChatroomIdBytes() { java.lang.Object ref = chatroomId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chatroomId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string chatroom_id = 1; */ public Builder setChatroomId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; chatroomId_ = value; onChanged(); return this; } /** * required string chatroom_id = 1; */ public Builder clearChatroomId() { bitField0_ = (bitField0_ & ~0x00000001); chatroomId_ = getDefaultInstance().getChatroomId(); onChanged(); return this; } /** * required string chatroom_id = 1; */ public Builder setChatroomIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; chatroomId_ = value; onChanged(); return this; } // optional int64 update_dt = 2; private long updateDt_ ; /** * optional int64 update_dt = 2; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 update_dt = 2; */ public long getUpdateDt() { return updateDt_; } /** * optional int64 update_dt = 2; */ public Builder setUpdateDt(long value) { bitField0_ |= 0x00000002; updateDt_ = value; onChanged(); return this; } /** * optional int64 update_dt = 2; */ public Builder clearUpdateDt() { bitField0_ = (bitField0_ & ~0x00000002); updateDt_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:GetChatroomInfoRequest) } static { defaultInstance = new GetChatroomInfoRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:GetChatroomInfoRequest) } public interface ChatroomInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string title = 1; /** * required string title = 1; */ boolean hasTitle(); /** * required string title = 1; */ java.lang.String getTitle(); /** * required string title = 1; */ com.google.protobuf.ByteString getTitleBytes(); // optional string desc = 2; /** * optional string desc = 2; */ boolean hasDesc(); /** * optional string desc = 2; */ java.lang.String getDesc(); /** * optional string desc = 2; */ com.google.protobuf.ByteString getDescBytes(); // optional string portrait = 3; /** * optional string portrait = 3; */ boolean hasPortrait(); /** * optional string portrait = 3; */ java.lang.String getPortrait(); /** * optional string portrait = 3; */ com.google.protobuf.ByteString getPortraitBytes(); // optional int32 member_count = 4; /** * optional int32 member_count = 4; */ boolean hasMemberCount(); /** * optional int32 member_count = 4; */ int getMemberCount(); // optional int64 create_dt = 5; /** * optional int64 create_dt = 5; */ boolean hasCreateDt(); /** * optional int64 create_dt = 5; */ long getCreateDt(); // optional int64 update_dt = 6; /** * optional int64 update_dt = 6; */ boolean hasUpdateDt(); /** * optional int64 update_dt = 6; */ long getUpdateDt(); // optional string extra = 7; /** * optional string extra = 7; */ boolean hasExtra(); /** * optional string extra = 7; */ java.lang.String getExtra(); /** * optional string extra = 7; */ com.google.protobuf.ByteString getExtraBytes(); // optional int32 state = 8; /** * optional int32 state = 8; */ boolean hasState(); /** * optional int32 state = 8; */ int getState(); } /** * Protobuf type {@code ChatroomInfo} */ public static final class ChatroomInfo extends com.google.protobuf.GeneratedMessage implements ChatroomInfoOrBuilder { // Use ChatroomInfo.newBuilder() to construct. private ChatroomInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ChatroomInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ChatroomInfo defaultInstance; public static ChatroomInfo getDefaultInstance() { return defaultInstance; } public ChatroomInfo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChatroomInfo( 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; title_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; desc_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; portrait_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; memberCount_ = input.readInt32(); break; } case 40: { bitField0_ |= 0x00000010; createDt_ = input.readInt64(); break; } case 48: { bitField0_ |= 0x00000020; updateDt_ = input.readInt64(); break; } case 58: { bitField0_ |= 0x00000040; extra_ = input.readBytes(); break; } case 64: { bitField0_ |= 0x00000080; state_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_ChatroomInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChatroomInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ChatroomInfo.class, cn.wildfirechat.proto.WFCMessage.ChatroomInfo.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChatroomInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChatroomInfo(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string title = 1; public static final int TITLE_FIELD_NUMBER = 1; private java.lang.Object title_; /** * required string title = 1; */ public boolean hasTitle() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string title = 1; */ public java.lang.String getTitle() { java.lang.Object ref = title_; 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()) { title_ = s; } return s; } } /** * required string title = 1; */ public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string desc = 2; public static final int DESC_FIELD_NUMBER = 2; private java.lang.Object desc_; /** * optional string desc = 2; */ public boolean hasDesc() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string desc = 2; */ public java.lang.String getDesc() { java.lang.Object ref = desc_; 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()) { desc_ = s; } return s; } } /** * optional string desc = 2; */ public com.google.protobuf.ByteString getDescBytes() { java.lang.Object ref = desc_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); desc_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string portrait = 3; public static final int PORTRAIT_FIELD_NUMBER = 3; private java.lang.Object portrait_; /** * optional string portrait = 3; */ public boolean hasPortrait() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string portrait = 3; */ public java.lang.String getPortrait() { java.lang.Object ref = portrait_; 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()) { portrait_ = s; } return s; } } /** * optional string portrait = 3; */ public com.google.protobuf.ByteString getPortraitBytes() { java.lang.Object ref = portrait_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); portrait_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 member_count = 4; public static final int MEMBER_COUNT_FIELD_NUMBER = 4; private int memberCount_; /** * optional int32 member_count = 4; */ public boolean hasMemberCount() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int32 member_count = 4; */ public int getMemberCount() { return memberCount_; } // optional int64 create_dt = 5; public static final int CREATE_DT_FIELD_NUMBER = 5; private long createDt_; /** * optional int64 create_dt = 5; */ public boolean hasCreateDt() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 create_dt = 5; */ public long getCreateDt() { return createDt_; } // optional int64 update_dt = 6; public static final int UPDATE_DT_FIELD_NUMBER = 6; private long updateDt_; /** * optional int64 update_dt = 6; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int64 update_dt = 6; */ public long getUpdateDt() { return updateDt_; } // optional string extra = 7; public static final int EXTRA_FIELD_NUMBER = 7; private java.lang.Object extra_; /** * optional string extra = 7; */ public boolean hasExtra() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string extra = 7; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; 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()) { extra_ = s; } return s; } } /** * optional string extra = 7; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 state = 8; public static final int STATE_FIELD_NUMBER = 8; private int state_; /** * optional int32 state = 8; */ public boolean hasState() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int32 state = 8; */ public int getState() { return state_; } private void initFields() { title_ = ""; desc_ = ""; portrait_ = ""; memberCount_ = 0; createDt_ = 0L; updateDt_ = 0L; extra_ = ""; state_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasTitle()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getTitleBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getDescBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getPortraitBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, memberCount_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(5, createDt_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt64(6, updateDt_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(7, getExtraBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt32(8, state_); } 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, getTitleBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getDescBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getPortraitBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, memberCount_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, createDt_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, updateDt_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, getExtraBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, state_); } 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 cn.wildfirechat.proto.WFCMessage.ChatroomInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ChatroomInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChatroomInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ChatroomInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChatroomInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ChatroomInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChatroomInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ChatroomInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChatroomInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ChatroomInfo 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(cn.wildfirechat.proto.WFCMessage.ChatroomInfo 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 ChatroomInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.ChatroomInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChatroomInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChatroomInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ChatroomInfo.class, cn.wildfirechat.proto.WFCMessage.ChatroomInfo.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.ChatroomInfo.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(); title_ = ""; bitField0_ = (bitField0_ & ~0x00000001); desc_ = ""; bitField0_ = (bitField0_ & ~0x00000002); portrait_ = ""; bitField0_ = (bitField0_ & ~0x00000004); memberCount_ = 0; bitField0_ = (bitField0_ & ~0x00000008); createDt_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); updateDt_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); extra_ = ""; bitField0_ = (bitField0_ & ~0x00000040); state_ = 0; bitField0_ = (bitField0_ & ~0x00000080); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChatroomInfo_descriptor; } public cn.wildfirechat.proto.WFCMessage.ChatroomInfo getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.ChatroomInfo.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.ChatroomInfo build() { cn.wildfirechat.proto.WFCMessage.ChatroomInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.ChatroomInfo buildPartial() { cn.wildfirechat.proto.WFCMessage.ChatroomInfo result = new cn.wildfirechat.proto.WFCMessage.ChatroomInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.title_ = title_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.desc_ = desc_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.portrait_ = portrait_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.memberCount_ = memberCount_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.createDt_ = createDt_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.updateDt_ = updateDt_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.extra_ = extra_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.state_ = state_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.ChatroomInfo) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.ChatroomInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ChatroomInfo other) { if (other == cn.wildfirechat.proto.WFCMessage.ChatroomInfo.getDefaultInstance()) return this; if (other.hasTitle()) { bitField0_ |= 0x00000001; title_ = other.title_; onChanged(); } if (other.hasDesc()) { bitField0_ |= 0x00000002; desc_ = other.desc_; onChanged(); } if (other.hasPortrait()) { bitField0_ |= 0x00000004; portrait_ = other.portrait_; onChanged(); } if (other.hasMemberCount()) { setMemberCount(other.getMemberCount()); } if (other.hasCreateDt()) { setCreateDt(other.getCreateDt()); } if (other.hasUpdateDt()) { setUpdateDt(other.getUpdateDt()); } if (other.hasExtra()) { bitField0_ |= 0x00000040; extra_ = other.extra_; onChanged(); } if (other.hasState()) { setState(other.getState()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasTitle()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.ChatroomInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.ChatroomInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string title = 1; private java.lang.Object title_ = ""; /** * required string title = 1; */ public boolean hasTitle() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string title = 1; */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); title_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string title = 1; */ public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string title = 1; */ public Builder setTitle( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; title_ = value; onChanged(); return this; } /** * required string title = 1; */ public Builder clearTitle() { bitField0_ = (bitField0_ & ~0x00000001); title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** * required string title = 1; */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; title_ = value; onChanged(); return this; } // optional string desc = 2; private java.lang.Object desc_ = ""; /** * optional string desc = 2; */ public boolean hasDesc() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string desc = 2; */ public java.lang.String getDesc() { java.lang.Object ref = desc_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); desc_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string desc = 2; */ public com.google.protobuf.ByteString getDescBytes() { java.lang.Object ref = desc_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); desc_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string desc = 2; */ public Builder setDesc( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; desc_ = value; onChanged(); return this; } /** * optional string desc = 2; */ public Builder clearDesc() { bitField0_ = (bitField0_ & ~0x00000002); desc_ = getDefaultInstance().getDesc(); onChanged(); return this; } /** * optional string desc = 2; */ public Builder setDescBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; desc_ = value; onChanged(); return this; } // optional string portrait = 3; private java.lang.Object portrait_ = ""; /** * optional string portrait = 3; */ public boolean hasPortrait() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string portrait = 3; */ public java.lang.String getPortrait() { java.lang.Object ref = portrait_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); portrait_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string portrait = 3; */ public com.google.protobuf.ByteString getPortraitBytes() { java.lang.Object ref = portrait_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); portrait_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string portrait = 3; */ public Builder setPortrait( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; portrait_ = value; onChanged(); return this; } /** * optional string portrait = 3; */ public Builder clearPortrait() { bitField0_ = (bitField0_ & ~0x00000004); portrait_ = getDefaultInstance().getPortrait(); onChanged(); return this; } /** * optional string portrait = 3; */ public Builder setPortraitBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; portrait_ = value; onChanged(); return this; } // optional int32 member_count = 4; private int memberCount_ ; /** * optional int32 member_count = 4; */ public boolean hasMemberCount() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional int32 member_count = 4; */ public int getMemberCount() { return memberCount_; } /** * optional int32 member_count = 4; */ public Builder setMemberCount(int value) { bitField0_ |= 0x00000008; memberCount_ = value; onChanged(); return this; } /** * optional int32 member_count = 4; */ public Builder clearMemberCount() { bitField0_ = (bitField0_ & ~0x00000008); memberCount_ = 0; onChanged(); return this; } // optional int64 create_dt = 5; private long createDt_ ; /** * optional int64 create_dt = 5; */ public boolean hasCreateDt() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional int64 create_dt = 5; */ public long getCreateDt() { return createDt_; } /** * optional int64 create_dt = 5; */ public Builder setCreateDt(long value) { bitField0_ |= 0x00000010; createDt_ = value; onChanged(); return this; } /** * optional int64 create_dt = 5; */ public Builder clearCreateDt() { bitField0_ = (bitField0_ & ~0x00000010); createDt_ = 0L; onChanged(); return this; } // optional int64 update_dt = 6; private long updateDt_ ; /** * optional int64 update_dt = 6; */ public boolean hasUpdateDt() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int64 update_dt = 6; */ public long getUpdateDt() { return updateDt_; } /** * optional int64 update_dt = 6; */ public Builder setUpdateDt(long value) { bitField0_ |= 0x00000020; updateDt_ = value; onChanged(); return this; } /** * optional int64 update_dt = 6; */ public Builder clearUpdateDt() { bitField0_ = (bitField0_ & ~0x00000020); updateDt_ = 0L; onChanged(); return this; } // optional string extra = 7; private java.lang.Object extra_ = ""; /** * optional string extra = 7; */ public boolean hasExtra() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string extra = 7; */ public java.lang.String getExtra() { java.lang.Object ref = extra_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); extra_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string extra = 7; */ public com.google.protobuf.ByteString getExtraBytes() { java.lang.Object ref = extra_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extra_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string extra = 7; */ public Builder setExtra( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; extra_ = value; onChanged(); return this; } /** * optional string extra = 7; */ public Builder clearExtra() { bitField0_ = (bitField0_ & ~0x00000040); extra_ = getDefaultInstance().getExtra(); onChanged(); return this; } /** * optional string extra = 7; */ public Builder setExtraBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; extra_ = value; onChanged(); return this; } // optional int32 state = 8; private int state_ ; /** * optional int32 state = 8; */ public boolean hasState() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional int32 state = 8; */ public int getState() { return state_; } /** * optional int32 state = 8; */ public Builder setState(int value) { bitField0_ |= 0x00000080; state_ = value; onChanged(); return this; } /** * optional int32 state = 8; */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000080); state_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ChatroomInfo) } static { defaultInstance = new ChatroomInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ChatroomInfo) } public interface GetChatroomMemberInfoRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string chatroom_id = 1; /** * required string chatroom_id = 1; */ boolean hasChatroomId(); /** * required string chatroom_id = 1; */ java.lang.String getChatroomId(); /** * required string chatroom_id = 1; */ com.google.protobuf.ByteString getChatroomIdBytes(); // optional int32 max_count = 2; /** * optional int32 max_count = 2; */ boolean hasMaxCount(); /** * optional int32 max_count = 2; */ int getMaxCount(); } /** * Protobuf type {@code GetChatroomMemberInfoRequest} */ public static final class GetChatroomMemberInfoRequest extends com.google.protobuf.GeneratedMessage implements GetChatroomMemberInfoRequestOrBuilder { // Use GetChatroomMemberInfoRequest.newBuilder() to construct. private GetChatroomMemberInfoRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetChatroomMemberInfoRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetChatroomMemberInfoRequest defaultInstance; public static GetChatroomMemberInfoRequest getDefaultInstance() { return defaultInstance; } public GetChatroomMemberInfoRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetChatroomMemberInfoRequest( 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; chatroomId_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; maxCount_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_GetChatroomMemberInfoRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetChatroomMemberInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest.class, cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetChatroomMemberInfoRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetChatroomMemberInfoRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string chatroom_id = 1; public static final int CHATROOM_ID_FIELD_NUMBER = 1; private java.lang.Object chatroomId_; /** * required string chatroom_id = 1; */ public boolean hasChatroomId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string chatroom_id = 1; */ public java.lang.String getChatroomId() { java.lang.Object ref = chatroomId_; 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()) { chatroomId_ = s; } return s; } } /** * required string chatroom_id = 1; */ public com.google.protobuf.ByteString getChatroomIdBytes() { java.lang.Object ref = chatroomId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chatroomId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 max_count = 2; public static final int MAX_COUNT_FIELD_NUMBER = 2; private int maxCount_; /** * optional int32 max_count = 2; */ public boolean hasMaxCount() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 max_count = 2; */ public int getMaxCount() { return maxCount_; } private void initFields() { chatroomId_ = ""; maxCount_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasChatroomId()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getChatroomIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, maxCount_); } 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, getChatroomIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, maxCount_); } 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 cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest 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(cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest 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 GetChatroomMemberInfoRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetChatroomMemberInfoRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetChatroomMemberInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest.class, cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest.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(); chatroomId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); maxCount_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetChatroomMemberInfoRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest build() { cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest result = new cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.chatroomId_ = chatroomId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.maxCount_ = maxCount_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest.getDefaultInstance()) return this; if (other.hasChatroomId()) { bitField0_ |= 0x00000001; chatroomId_ = other.chatroomId_; onChanged(); } if (other.hasMaxCount()) { setMaxCount(other.getMaxCount()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasChatroomId()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.GetChatroomMemberInfoRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string chatroom_id = 1; private java.lang.Object chatroomId_ = ""; /** * required string chatroom_id = 1; */ public boolean hasChatroomId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string chatroom_id = 1; */ public java.lang.String getChatroomId() { java.lang.Object ref = chatroomId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); chatroomId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string chatroom_id = 1; */ public com.google.protobuf.ByteString getChatroomIdBytes() { java.lang.Object ref = chatroomId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chatroomId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string chatroom_id = 1; */ public Builder setChatroomId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; chatroomId_ = value; onChanged(); return this; } /** * required string chatroom_id = 1; */ public Builder clearChatroomId() { bitField0_ = (bitField0_ & ~0x00000001); chatroomId_ = getDefaultInstance().getChatroomId(); onChanged(); return this; } /** * required string chatroom_id = 1; */ public Builder setChatroomIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; chatroomId_ = value; onChanged(); return this; } // optional int32 max_count = 2; private int maxCount_ ; /** * optional int32 max_count = 2; */ public boolean hasMaxCount() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 max_count = 2; */ public int getMaxCount() { return maxCount_; } /** * optional int32 max_count = 2; */ public Builder setMaxCount(int value) { bitField0_ |= 0x00000002; maxCount_ = value; onChanged(); return this; } /** * optional int32 max_count = 2; */ public Builder clearMaxCount() { bitField0_ = (bitField0_ & ~0x00000002); maxCount_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:GetChatroomMemberInfoRequest) } static { defaultInstance = new GetChatroomMemberInfoRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:GetChatroomMemberInfoRequest) } public interface ChatroomMemberInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int32 member_count = 1; /** * optional int32 member_count = 1; */ boolean hasMemberCount(); /** * optional int32 member_count = 1; */ int getMemberCount(); // repeated string members = 2; /** * repeated string members = 2; */ java.util.List getMembersList(); /** * repeated string members = 2; */ int getMembersCount(); /** * repeated string members = 2; */ java.lang.String getMembers(int index); /** * repeated string members = 2; */ com.google.protobuf.ByteString getMembersBytes(int index); } /** * Protobuf type {@code ChatroomMemberInfo} */ public static final class ChatroomMemberInfo extends com.google.protobuf.GeneratedMessage implements ChatroomMemberInfoOrBuilder { // Use ChatroomMemberInfo.newBuilder() to construct. private ChatroomMemberInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ChatroomMemberInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ChatroomMemberInfo defaultInstance; public static ChatroomMemberInfo getDefaultInstance() { return defaultInstance; } public ChatroomMemberInfo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChatroomMemberInfo( 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; memberCount_ = input.readInt32(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { members_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } members_.add(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 { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { members_ = new com.google.protobuf.UnmodifiableLazyStringList(members_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChatroomMemberInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChatroomMemberInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo.class, cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChatroomMemberInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChatroomMemberInfo(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional int32 member_count = 1; public static final int MEMBER_COUNT_FIELD_NUMBER = 1; private int memberCount_; /** * optional int32 member_count = 1; */ public boolean hasMemberCount() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 member_count = 1; */ public int getMemberCount() { return memberCount_; } // repeated string members = 2; public static final int MEMBERS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList members_; /** * repeated string members = 2; */ public java.util.List getMembersList() { return members_; } /** * repeated string members = 2; */ public int getMembersCount() { return members_.size(); } /** * repeated string members = 2; */ public java.lang.String getMembers(int index) { return members_.get(index); } /** * repeated string members = 2; */ public com.google.protobuf.ByteString getMembersBytes(int index) { return members_.getByteString(index); } private void initFields() { memberCount_ = 0; members_ = com.google.protobuf.LazyStringArrayList.EMPTY; } 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, memberCount_); } for (int i = 0; i < members_.size(); i++) { output.writeBytes(2, members_.getByteString(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, memberCount_); } { int dataSize = 0; for (int i = 0; i < members_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(members_.getByteString(i)); } size += dataSize; size += 1 * getMembersList().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 cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo 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(cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo 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 ChatroomMemberInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChatroomMemberInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChatroomMemberInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo.class, cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo.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(); memberCount_ = 0; bitField0_ = (bitField0_ & ~0x00000001); members_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_ChatroomMemberInfo_descriptor; } public cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo build() { cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo buildPartial() { cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo result = new cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.memberCount_ = memberCount_; if (((bitField0_ & 0x00000002) == 0x00000002)) { members_ = new com.google.protobuf.UnmodifiableLazyStringList( members_); bitField0_ = (bitField0_ & ~0x00000002); } result.members_ = members_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo other) { if (other == cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo.getDefaultInstance()) return this; if (other.hasMemberCount()) { setMemberCount(other.getMemberCount()); } if (!other.members_.isEmpty()) { if (members_.isEmpty()) { members_ = other.members_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMembersIsMutable(); members_.addAll(other.members_); } 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 { cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.ChatroomMemberInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 member_count = 1; private int memberCount_ ; /** * optional int32 member_count = 1; */ public boolean hasMemberCount() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 member_count = 1; */ public int getMemberCount() { return memberCount_; } /** * optional int32 member_count = 1; */ public Builder setMemberCount(int value) { bitField0_ |= 0x00000001; memberCount_ = value; onChanged(); return this; } /** * optional int32 member_count = 1; */ public Builder clearMemberCount() { bitField0_ = (bitField0_ & ~0x00000001); memberCount_ = 0; onChanged(); return this; } // repeated string members = 2; private com.google.protobuf.LazyStringList members_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMembersIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { members_ = new com.google.protobuf.LazyStringArrayList(members_); bitField0_ |= 0x00000002; } } /** * repeated string members = 2; */ public java.util.List getMembersList() { return java.util.Collections.unmodifiableList(members_); } /** * repeated string members = 2; */ public int getMembersCount() { return members_.size(); } /** * repeated string members = 2; */ public java.lang.String getMembers(int index) { return members_.get(index); } /** * repeated string members = 2; */ public com.google.protobuf.ByteString getMembersBytes(int index) { return members_.getByteString(index); } /** * repeated string members = 2; */ public Builder setMembers( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.set(index, value); onChanged(); return this; } /** * repeated string members = 2; */ public Builder addMembers( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(value); onChanged(); return this; } /** * repeated string members = 2; */ public Builder addAllMembers( java.lang.Iterable values) { ensureMembersIsMutable(); super.addAll(values, members_); onChanged(); return this; } /** * repeated string members = 2; */ public Builder clearMembers() { members_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string members = 2; */ public Builder addMembersBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureMembersIsMutable(); members_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ChatroomMemberInfo) } static { defaultInstance = new ChatroomMemberInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ChatroomMemberInfo) } public interface INT64BufOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int64 id = 1; /** * required int64 id = 1; */ boolean hasId(); /** * required int64 id = 1; */ long getId(); } /** * Protobuf type {@code INT64Buf} */ public static final class INT64Buf extends com.google.protobuf.GeneratedMessage implements INT64BufOrBuilder { // Use INT64Buf.newBuilder() to construct. private INT64Buf(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private INT64Buf(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final INT64Buf defaultInstance; public static INT64Buf getDefaultInstance() { return defaultInstance; } public INT64Buf getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private INT64Buf( 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; id_ = input.readInt64(); 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 cn.wildfirechat.proto.WFCMessage.internal_static_INT64Buf_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_INT64Buf_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.INT64Buf.class, cn.wildfirechat.proto.WFCMessage.INT64Buf.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public INT64Buf parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new INT64Buf(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required int64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * required int64 id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 id = 1; */ public long getId() { return id_; } private void initFields() { id_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasId()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, id_); } 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 .computeInt64Size(1, id_); } 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 cn.wildfirechat.proto.WFCMessage.INT64Buf parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.INT64Buf parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.INT64Buf parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.INT64Buf parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.INT64Buf parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.INT64Buf parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.INT64Buf parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.INT64Buf parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.INT64Buf parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.INT64Buf 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(cn.wildfirechat.proto.WFCMessage.INT64Buf 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 INT64Buf} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.INT64BufOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_INT64Buf_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_INT64Buf_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.INT64Buf.class, cn.wildfirechat.proto.WFCMessage.INT64Buf.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.INT64Buf.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_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_INT64Buf_descriptor; } public cn.wildfirechat.proto.WFCMessage.INT64Buf getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.INT64Buf.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.INT64Buf build() { cn.wildfirechat.proto.WFCMessage.INT64Buf result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.INT64Buf buildPartial() { cn.wildfirechat.proto.WFCMessage.INT64Buf result = new cn.wildfirechat.proto.WFCMessage.INT64Buf(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 cn.wildfirechat.proto.WFCMessage.INT64Buf) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.INT64Buf)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.INT64Buf other) { if (other == cn.wildfirechat.proto.WFCMessage.INT64Buf.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasId()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.INT64Buf parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.INT64Buf) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int64 id = 1; private long id_ ; /** * required int64 id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 id = 1; */ public long getId() { return id_; } /** * required int64 id = 1; */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * required int64 id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:INT64Buf) } static { defaultInstance = new INT64Buf(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:INT64Buf) } public interface NotifyRecallMessageOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int64 id = 1; /** * required int64 id = 1; */ boolean hasId(); /** * required int64 id = 1; */ long getId(); // required string from_user = 2; /** * required string from_user = 2; */ boolean hasFromUser(); /** * required string from_user = 2; */ java.lang.String getFromUser(); /** * required string from_user = 2; */ com.google.protobuf.ByteString getFromUserBytes(); } /** * Protobuf type {@code NotifyRecallMessage} */ public static final class NotifyRecallMessage extends com.google.protobuf.GeneratedMessage implements NotifyRecallMessageOrBuilder { // Use NotifyRecallMessage.newBuilder() to construct. private NotifyRecallMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private NotifyRecallMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final NotifyRecallMessage defaultInstance; public static NotifyRecallMessage getDefaultInstance() { return defaultInstance; } public NotifyRecallMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NotifyRecallMessage( 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; id_ = input.readInt64(); break; } case 18: { bitField0_ |= 0x00000002; fromUser_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_NotifyRecallMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_NotifyRecallMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage.class, cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NotifyRecallMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NotifyRecallMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required int64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * required int64 id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 id = 1; */ public long getId() { return id_; } // required string from_user = 2; public static final int FROM_USER_FIELD_NUMBER = 2; private java.lang.Object fromUser_; /** * required string from_user = 2; */ public boolean hasFromUser() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string from_user = 2; */ public java.lang.String getFromUser() { java.lang.Object ref = fromUser_; 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()) { fromUser_ = s; } return s; } } /** * required string from_user = 2; */ public com.google.protobuf.ByteString getFromUserBytes() { java.lang.Object ref = fromUser_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fromUser_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { id_ = 0L; fromUser_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasId()) { memoizedIsInitialized = 0; return false; } if (!hasFromUser()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getFromUserBytes()); } 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 .computeInt64Size(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getFromUserBytes()); } 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 cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage 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(cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage 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 NotifyRecallMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.NotifyRecallMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_NotifyRecallMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_NotifyRecallMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage.class, cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage.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_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); fromUser_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_NotifyRecallMessage_descriptor; } public cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage build() { cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage buildPartial() { cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage result = new cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage(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.fromUser_ = fromUser_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage other) { if (other == cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasFromUser()) { bitField0_ |= 0x00000002; fromUser_ = other.fromUser_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasId()) { return false; } if (!hasFromUser()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.NotifyRecallMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int64 id = 1; private long id_ ; /** * required int64 id = 1; */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 id = 1; */ public long getId() { return id_; } /** * required int64 id = 1; */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * required int64 id = 1; */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // required string from_user = 2; private java.lang.Object fromUser_ = ""; /** * required string from_user = 2; */ public boolean hasFromUser() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string from_user = 2; */ public java.lang.String getFromUser() { java.lang.Object ref = fromUser_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); fromUser_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string from_user = 2; */ public com.google.protobuf.ByteString getFromUserBytes() { java.lang.Object ref = fromUser_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fromUser_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string from_user = 2; */ public Builder setFromUser( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fromUser_ = value; onChanged(); return this; } /** * required string from_user = 2; */ public Builder clearFromUser() { bitField0_ = (bitField0_ & ~0x00000002); fromUser_ = getDefaultInstance().getFromUser(); onChanged(); return this; } /** * required string from_user = 2; */ public Builder setFromUserBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; fromUser_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:NotifyRecallMessage) } static { defaultInstance = new NotifyRecallMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:NotifyRecallMessage) } public interface BlackUserRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string uid = 1; /** * required string uid = 1; */ boolean hasUid(); /** * required string uid = 1; */ java.lang.String getUid(); /** * required string uid = 1; */ com.google.protobuf.ByteString getUidBytes(); // required int32 status = 2; /** * required int32 status = 2; */ boolean hasStatus(); /** * required int32 status = 2; */ int getStatus(); } /** * Protobuf type {@code BlackUserRequest} */ public static final class BlackUserRequest extends com.google.protobuf.GeneratedMessage implements BlackUserRequestOrBuilder { // Use BlackUserRequest.newBuilder() to construct. private BlackUserRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private BlackUserRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final BlackUserRequest defaultInstance; public static BlackUserRequest getDefaultInstance() { return defaultInstance; } public BlackUserRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BlackUserRequest( 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; uid_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; status_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_BlackUserRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_BlackUserRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.BlackUserRequest.class, cn.wildfirechat.proto.WFCMessage.BlackUserRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BlackUserRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BlackUserRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string uid = 1; public static final int UID_FIELD_NUMBER = 1; private java.lang.Object uid_; /** * required string uid = 1; */ public boolean hasUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string uid = 1; */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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()) { uid_ = s; } return s; } } /** * required string uid = 1; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 status = 2; public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** * required int32 status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 status = 2; */ public int getStatus() { return status_; } private void initFields() { uid_ = ""; status_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasUid()) { memoizedIsInitialized = 0; return false; } if (!hasStatus()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getUidBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, status_); } 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, getUidBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, status_); } 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 cn.wildfirechat.proto.WFCMessage.BlackUserRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.BlackUserRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.BlackUserRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.BlackUserRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.BlackUserRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.BlackUserRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.BlackUserRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.BlackUserRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.BlackUserRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.BlackUserRequest 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(cn.wildfirechat.proto.WFCMessage.BlackUserRequest 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 BlackUserRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.BlackUserRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_BlackUserRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_BlackUserRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.BlackUserRequest.class, cn.wildfirechat.proto.WFCMessage.BlackUserRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.BlackUserRequest.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_ = ""; bitField0_ = (bitField0_ & ~0x00000001); status_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_BlackUserRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.BlackUserRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.BlackUserRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.BlackUserRequest build() { cn.wildfirechat.proto.WFCMessage.BlackUserRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.BlackUserRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.BlackUserRequest result = new cn.wildfirechat.proto.WFCMessage.BlackUserRequest(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.status_ = status_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.BlackUserRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.BlackUserRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.BlackUserRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.BlackUserRequest.getDefaultInstance()) return this; if (other.hasUid()) { bitField0_ |= 0x00000001; uid_ = other.uid_; onChanged(); } if (other.hasStatus()) { setStatus(other.getStatus()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasUid()) { return false; } if (!hasStatus()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.BlackUserRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.BlackUserRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string uid = 1; private java.lang.Object uid_ = ""; /** * required string uid = 1; */ public boolean hasUid() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string uid = 1; */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); uid_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string uid = 1; */ public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string uid = 1; */ public Builder setUid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uid_ = value; onChanged(); return this; } /** * required string uid = 1; */ public Builder clearUid() { bitField0_ = (bitField0_ & ~0x00000001); uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** * required string uid = 1; */ public Builder setUidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; uid_ = value; onChanged(); return this; } // required int32 status = 2; private int status_ ; /** * required int32 status = 2; */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 status = 2; */ public int getStatus() { return status_; } /** * required int32 status = 2; */ public Builder setStatus(int value) { bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } /** * required int32 status = 2; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); status_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:BlackUserRequest) } static { defaultInstance = new BlackUserRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:BlackUserRequest) } public interface RouteRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string app = 1; /** * optional string app = 1; */ boolean hasApp(); /** * optional string app = 1; */ java.lang.String getApp(); /** * optional string app = 1; */ com.google.protobuf.ByteString getAppBytes(); // optional int32 platform = 2; /** * optional int32 platform = 2; */ boolean hasPlatform(); /** * optional int32 platform = 2; */ int getPlatform(); // optional int32 push_type = 3; /** * optional int32 push_type = 3; */ boolean hasPushType(); /** * optional int32 push_type = 3; */ int getPushType(); // optional string device_name = 4; /** * optional string device_name = 4; */ boolean hasDeviceName(); /** * optional string device_name = 4; */ java.lang.String getDeviceName(); /** * optional string device_name = 4; */ com.google.protobuf.ByteString getDeviceNameBytes(); // optional string device_version = 5; /** * optional string device_version = 5; */ boolean hasDeviceVersion(); /** * optional string device_version = 5; */ java.lang.String getDeviceVersion(); /** * optional string device_version = 5; */ com.google.protobuf.ByteString getDeviceVersionBytes(); // optional string phone_name = 6; /** * optional string phone_name = 6; */ boolean hasPhoneName(); /** * optional string phone_name = 6; */ java.lang.String getPhoneName(); /** * optional string phone_name = 6; */ com.google.protobuf.ByteString getPhoneNameBytes(); // optional string language = 7; /** * optional string language = 7; */ boolean hasLanguage(); /** * optional string language = 7; */ java.lang.String getLanguage(); /** * optional string language = 7; */ com.google.protobuf.ByteString getLanguageBytes(); // optional string carrier_name = 8; /** * optional string carrier_name = 8; */ boolean hasCarrierName(); /** * optional string carrier_name = 8; */ java.lang.String getCarrierName(); /** * optional string carrier_name = 8; */ com.google.protobuf.ByteString getCarrierNameBytes(); // optional string app_version = 9; /** * optional string app_version = 9; */ boolean hasAppVersion(); /** * optional string app_version = 9; */ java.lang.String getAppVersion(); /** * optional string app_version = 9; */ com.google.protobuf.ByteString getAppVersionBytes(); // optional string sdk_version = 10; /** * optional string sdk_version = 10; */ boolean hasSdkVersion(); /** * optional string sdk_version = 10; */ java.lang.String getSdkVersion(); /** * optional string sdk_version = 10; */ com.google.protobuf.ByteString getSdkVersionBytes(); } /** * Protobuf type {@code RouteRequest} */ public static final class RouteRequest extends com.google.protobuf.GeneratedMessage implements RouteRequestOrBuilder { // Use RouteRequest.newBuilder() to construct. private RouteRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RouteRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RouteRequest defaultInstance; public static RouteRequest getDefaultInstance() { return defaultInstance; } public RouteRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RouteRequest( 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; app_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; platform_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; pushType_ = input.readInt32(); break; } case 34: { bitField0_ |= 0x00000008; deviceName_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000010; deviceVersion_ = input.readBytes(); break; } case 50: { bitField0_ |= 0x00000020; phoneName_ = input.readBytes(); break; } case 58: { bitField0_ |= 0x00000040; language_ = input.readBytes(); break; } case 66: { bitField0_ |= 0x00000080; carrierName_ = input.readBytes(); break; } case 74: { bitField0_ |= 0x00000100; appVersion_ = input.readBytes(); break; } case 82: { bitField0_ |= 0x00000200; sdkVersion_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_RouteRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_RouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.RouteRequest.class, cn.wildfirechat.proto.WFCMessage.RouteRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RouteRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RouteRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string app = 1; public static final int APP_FIELD_NUMBER = 1; private java.lang.Object app_; /** * optional string app = 1; */ public boolean hasApp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string app = 1; */ public java.lang.String getApp() { java.lang.Object ref = app_; 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()) { app_ = s; } return s; } } /** * optional string app = 1; */ public com.google.protobuf.ByteString getAppBytes() { java.lang.Object ref = app_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); app_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 platform = 2; public static final int PLATFORM_FIELD_NUMBER = 2; private int platform_; /** * optional int32 platform = 2; */ public boolean hasPlatform() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 platform = 2; */ public int getPlatform() { return platform_; } // optional int32 push_type = 3; public static final int PUSH_TYPE_FIELD_NUMBER = 3; private int pushType_; /** * optional int32 push_type = 3; */ public boolean hasPushType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 push_type = 3; */ public int getPushType() { return pushType_; } // optional string device_name = 4; public static final int DEVICE_NAME_FIELD_NUMBER = 4; private java.lang.Object deviceName_; /** * optional string device_name = 4; */ public boolean hasDeviceName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string device_name = 4; */ public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; 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()) { deviceName_ = s; } return s; } } /** * optional string device_name = 4; */ public com.google.protobuf.ByteString getDeviceNameBytes() { java.lang.Object ref = deviceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string device_version = 5; public static final int DEVICE_VERSION_FIELD_NUMBER = 5; private java.lang.Object deviceVersion_; /** * optional string device_version = 5; */ public boolean hasDeviceVersion() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string device_version = 5; */ public java.lang.String getDeviceVersion() { java.lang.Object ref = deviceVersion_; 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()) { deviceVersion_ = s; } return s; } } /** * optional string device_version = 5; */ public com.google.protobuf.ByteString getDeviceVersionBytes() { java.lang.Object ref = deviceVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string phone_name = 6; public static final int PHONE_NAME_FIELD_NUMBER = 6; private java.lang.Object phoneName_; /** * optional string phone_name = 6; */ public boolean hasPhoneName() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string phone_name = 6; */ public java.lang.String getPhoneName() { java.lang.Object ref = phoneName_; 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()) { phoneName_ = s; } return s; } } /** * optional string phone_name = 6; */ public com.google.protobuf.ByteString getPhoneNameBytes() { java.lang.Object ref = phoneName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phoneName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string language = 7; public static final int LANGUAGE_FIELD_NUMBER = 7; private java.lang.Object language_; /** * optional string language = 7; */ public boolean hasLanguage() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string language = 7; */ public java.lang.String getLanguage() { java.lang.Object ref = language_; 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()) { language_ = s; } return s; } } /** * optional string language = 7; */ public com.google.protobuf.ByteString getLanguageBytes() { java.lang.Object ref = language_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); language_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string carrier_name = 8; public static final int CARRIER_NAME_FIELD_NUMBER = 8; private java.lang.Object carrierName_; /** * optional string carrier_name = 8; */ public boolean hasCarrierName() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string carrier_name = 8; */ public java.lang.String getCarrierName() { java.lang.Object ref = carrierName_; 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()) { carrierName_ = s; } return s; } } /** * optional string carrier_name = 8; */ public com.google.protobuf.ByteString getCarrierNameBytes() { java.lang.Object ref = carrierName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); carrierName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string app_version = 9; public static final int APP_VERSION_FIELD_NUMBER = 9; private java.lang.Object appVersion_; /** * optional string app_version = 9; */ public boolean hasAppVersion() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional string app_version = 9; */ public java.lang.String getAppVersion() { java.lang.Object ref = appVersion_; 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()) { appVersion_ = s; } return s; } } /** * optional string app_version = 9; */ public com.google.protobuf.ByteString getAppVersionBytes() { java.lang.Object ref = appVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string sdk_version = 10; public static final int SDK_VERSION_FIELD_NUMBER = 10; private java.lang.Object sdkVersion_; /** * optional string sdk_version = 10; */ public boolean hasSdkVersion() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional string sdk_version = 10; */ public java.lang.String getSdkVersion() { java.lang.Object ref = sdkVersion_; 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()) { sdkVersion_ = s; } return s; } } /** * optional string sdk_version = 10; */ public com.google.protobuf.ByteString getSdkVersionBytes() { java.lang.Object ref = sdkVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sdkVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { app_ = ""; platform_ = 0; pushType_ = 0; deviceName_ = ""; deviceVersion_ = ""; phoneName_ = ""; language_ = ""; carrierName_ = ""; appVersion_ = ""; sdkVersion_ = ""; } 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, getAppBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, platform_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, pushType_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getDeviceNameBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getDeviceVersionBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getPhoneNameBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(7, getLanguageBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(8, getCarrierNameBytes()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBytes(9, getAppVersionBytes()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBytes(10, getSdkVersionBytes()); } 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, getAppBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, platform_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, pushType_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getDeviceNameBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getDeviceVersionBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getPhoneNameBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, getLanguageBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, getCarrierNameBytes()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, getAppVersionBytes()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, getSdkVersionBytes()); } 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 cn.wildfirechat.proto.WFCMessage.RouteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.RouteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.RouteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.RouteRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.RouteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.RouteRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.RouteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.RouteRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.RouteRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.RouteRequest 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(cn.wildfirechat.proto.WFCMessage.RouteRequest 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 RouteRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.RouteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_RouteRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_RouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.RouteRequest.class, cn.wildfirechat.proto.WFCMessage.RouteRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.RouteRequest.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(); app_ = ""; bitField0_ = (bitField0_ & ~0x00000001); platform_ = 0; bitField0_ = (bitField0_ & ~0x00000002); pushType_ = 0; bitField0_ = (bitField0_ & ~0x00000004); deviceName_ = ""; bitField0_ = (bitField0_ & ~0x00000008); deviceVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000010); phoneName_ = ""; bitField0_ = (bitField0_ & ~0x00000020); language_ = ""; bitField0_ = (bitField0_ & ~0x00000040); carrierName_ = ""; bitField0_ = (bitField0_ & ~0x00000080); appVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000100); sdkVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000200); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_RouteRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.RouteRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.RouteRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.RouteRequest build() { cn.wildfirechat.proto.WFCMessage.RouteRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.RouteRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.RouteRequest result = new cn.wildfirechat.proto.WFCMessage.RouteRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.app_ = app_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.platform_ = platform_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.pushType_ = pushType_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.deviceName_ = deviceName_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.deviceVersion_ = deviceVersion_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.phoneName_ = phoneName_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.language_ = language_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.carrierName_ = carrierName_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.appVersion_ = appVersion_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.sdkVersion_ = sdkVersion_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.RouteRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.RouteRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.RouteRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.RouteRequest.getDefaultInstance()) return this; if (other.hasApp()) { bitField0_ |= 0x00000001; app_ = other.app_; onChanged(); } if (other.hasPlatform()) { setPlatform(other.getPlatform()); } if (other.hasPushType()) { setPushType(other.getPushType()); } if (other.hasDeviceName()) { bitField0_ |= 0x00000008; deviceName_ = other.deviceName_; onChanged(); } if (other.hasDeviceVersion()) { bitField0_ |= 0x00000010; deviceVersion_ = other.deviceVersion_; onChanged(); } if (other.hasPhoneName()) { bitField0_ |= 0x00000020; phoneName_ = other.phoneName_; onChanged(); } if (other.hasLanguage()) { bitField0_ |= 0x00000040; language_ = other.language_; onChanged(); } if (other.hasCarrierName()) { bitField0_ |= 0x00000080; carrierName_ = other.carrierName_; onChanged(); } if (other.hasAppVersion()) { bitField0_ |= 0x00000100; appVersion_ = other.appVersion_; onChanged(); } if (other.hasSdkVersion()) { bitField0_ |= 0x00000200; sdkVersion_ = other.sdkVersion_; 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 { cn.wildfirechat.proto.WFCMessage.RouteRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.RouteRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string app = 1; private java.lang.Object app_ = ""; /** * optional string app = 1; */ public boolean hasApp() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string app = 1; */ public java.lang.String getApp() { java.lang.Object ref = app_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); app_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string app = 1; */ public com.google.protobuf.ByteString getAppBytes() { java.lang.Object ref = app_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); app_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string app = 1; */ public Builder setApp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; app_ = value; onChanged(); return this; } /** * optional string app = 1; */ public Builder clearApp() { bitField0_ = (bitField0_ & ~0x00000001); app_ = getDefaultInstance().getApp(); onChanged(); return this; } /** * optional string app = 1; */ public Builder setAppBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; app_ = value; onChanged(); return this; } // optional int32 platform = 2; private int platform_ ; /** * optional int32 platform = 2; */ public boolean hasPlatform() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 platform = 2; */ public int getPlatform() { return platform_; } /** * optional int32 platform = 2; */ public Builder setPlatform(int value) { bitField0_ |= 0x00000002; platform_ = value; onChanged(); return this; } /** * optional int32 platform = 2; */ public Builder clearPlatform() { bitField0_ = (bitField0_ & ~0x00000002); platform_ = 0; onChanged(); return this; } // optional int32 push_type = 3; private int pushType_ ; /** * optional int32 push_type = 3; */ public boolean hasPushType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 push_type = 3; */ public int getPushType() { return pushType_; } /** * optional int32 push_type = 3; */ public Builder setPushType(int value) { bitField0_ |= 0x00000004; pushType_ = value; onChanged(); return this; } /** * optional int32 push_type = 3; */ public Builder clearPushType() { bitField0_ = (bitField0_ & ~0x00000004); pushType_ = 0; onChanged(); return this; } // optional string device_name = 4; private java.lang.Object deviceName_ = ""; /** * optional string device_name = 4; */ public boolean hasDeviceName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string device_name = 4; */ public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); deviceName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string device_name = 4; */ public com.google.protobuf.ByteString getDeviceNameBytes() { java.lang.Object ref = deviceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string device_name = 4; */ public Builder setDeviceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; deviceName_ = value; onChanged(); return this; } /** * optional string device_name = 4; */ public Builder clearDeviceName() { bitField0_ = (bitField0_ & ~0x00000008); deviceName_ = getDefaultInstance().getDeviceName(); onChanged(); return this; } /** * optional string device_name = 4; */ public Builder setDeviceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; deviceName_ = value; onChanged(); return this; } // optional string device_version = 5; private java.lang.Object deviceVersion_ = ""; /** * optional string device_version = 5; */ public boolean hasDeviceVersion() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string device_version = 5; */ public java.lang.String getDeviceVersion() { java.lang.Object ref = deviceVersion_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); deviceVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string device_version = 5; */ public com.google.protobuf.ByteString getDeviceVersionBytes() { java.lang.Object ref = deviceVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deviceVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string device_version = 5; */ public Builder setDeviceVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; deviceVersion_ = value; onChanged(); return this; } /** * optional string device_version = 5; */ public Builder clearDeviceVersion() { bitField0_ = (bitField0_ & ~0x00000010); deviceVersion_ = getDefaultInstance().getDeviceVersion(); onChanged(); return this; } /** * optional string device_version = 5; */ public Builder setDeviceVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; deviceVersion_ = value; onChanged(); return this; } // optional string phone_name = 6; private java.lang.Object phoneName_ = ""; /** * optional string phone_name = 6; */ public boolean hasPhoneName() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string phone_name = 6; */ public java.lang.String getPhoneName() { java.lang.Object ref = phoneName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); phoneName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string phone_name = 6; */ public com.google.protobuf.ByteString getPhoneNameBytes() { java.lang.Object ref = phoneName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phoneName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string phone_name = 6; */ public Builder setPhoneName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; phoneName_ = value; onChanged(); return this; } /** * optional string phone_name = 6; */ public Builder clearPhoneName() { bitField0_ = (bitField0_ & ~0x00000020); phoneName_ = getDefaultInstance().getPhoneName(); onChanged(); return this; } /** * optional string phone_name = 6; */ public Builder setPhoneNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; phoneName_ = value; onChanged(); return this; } // optional string language = 7; private java.lang.Object language_ = ""; /** * optional string language = 7; */ public boolean hasLanguage() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional string language = 7; */ public java.lang.String getLanguage() { java.lang.Object ref = language_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); language_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string language = 7; */ public com.google.protobuf.ByteString getLanguageBytes() { java.lang.Object ref = language_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); language_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string language = 7; */ public Builder setLanguage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; language_ = value; onChanged(); return this; } /** * optional string language = 7; */ public Builder clearLanguage() { bitField0_ = (bitField0_ & ~0x00000040); language_ = getDefaultInstance().getLanguage(); onChanged(); return this; } /** * optional string language = 7; */ public Builder setLanguageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; language_ = value; onChanged(); return this; } // optional string carrier_name = 8; private java.lang.Object carrierName_ = ""; /** * optional string carrier_name = 8; */ public boolean hasCarrierName() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional string carrier_name = 8; */ public java.lang.String getCarrierName() { java.lang.Object ref = carrierName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); carrierName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string carrier_name = 8; */ public com.google.protobuf.ByteString getCarrierNameBytes() { java.lang.Object ref = carrierName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); carrierName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string carrier_name = 8; */ public Builder setCarrierName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; carrierName_ = value; onChanged(); return this; } /** * optional string carrier_name = 8; */ public Builder clearCarrierName() { bitField0_ = (bitField0_ & ~0x00000080); carrierName_ = getDefaultInstance().getCarrierName(); onChanged(); return this; } /** * optional string carrier_name = 8; */ public Builder setCarrierNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; carrierName_ = value; onChanged(); return this; } // optional string app_version = 9; private java.lang.Object appVersion_ = ""; /** * optional string app_version = 9; */ public boolean hasAppVersion() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional string app_version = 9; */ public java.lang.String getAppVersion() { java.lang.Object ref = appVersion_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); appVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string app_version = 9; */ public com.google.protobuf.ByteString getAppVersionBytes() { java.lang.Object ref = appVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string app_version = 9; */ public Builder setAppVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; appVersion_ = value; onChanged(); return this; } /** * optional string app_version = 9; */ public Builder clearAppVersion() { bitField0_ = (bitField0_ & ~0x00000100); appVersion_ = getDefaultInstance().getAppVersion(); onChanged(); return this; } /** * optional string app_version = 9; */ public Builder setAppVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; appVersion_ = value; onChanged(); return this; } // optional string sdk_version = 10; private java.lang.Object sdkVersion_ = ""; /** * optional string sdk_version = 10; */ public boolean hasSdkVersion() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional string sdk_version = 10; */ public java.lang.String getSdkVersion() { java.lang.Object ref = sdkVersion_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); sdkVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string sdk_version = 10; */ public com.google.protobuf.ByteString getSdkVersionBytes() { java.lang.Object ref = sdkVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sdkVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string sdk_version = 10; */ public Builder setSdkVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; sdkVersion_ = value; onChanged(); return this; } /** * optional string sdk_version = 10; */ public Builder clearSdkVersion() { bitField0_ = (bitField0_ & ~0x00000200); sdkVersion_ = getDefaultInstance().getSdkVersion(); onChanged(); return this; } /** * optional string sdk_version = 10; */ public Builder setSdkVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; sdkVersion_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RouteRequest) } static { defaultInstance = new RouteRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RouteRequest) } public interface RouteResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string host = 1; /** * required string host = 1; */ boolean hasHost(); /** * required string host = 1; */ java.lang.String getHost(); /** * required string host = 1; */ com.google.protobuf.ByteString getHostBytes(); // required int32 long_port = 2; /** * required int32 long_port = 2; */ boolean hasLongPort(); /** * required int32 long_port = 2; */ int getLongPort(); // required int32 short_port = 3; /** * required int32 short_port = 3; */ boolean hasShortPort(); /** * required int32 short_port = 3; */ int getShortPort(); } /** * Protobuf type {@code RouteResponse} */ public static final class RouteResponse extends com.google.protobuf.GeneratedMessage implements RouteResponseOrBuilder { // Use RouteResponse.newBuilder() to construct. private RouteResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RouteResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RouteResponse defaultInstance; public static RouteResponse getDefaultInstance() { return defaultInstance; } public RouteResponse getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RouteResponse( 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; host_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; longPort_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; shortPort_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_RouteResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_RouteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.RouteResponse.class, cn.wildfirechat.proto.WFCMessage.RouteResponse.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RouteResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RouteResponse(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string host = 1; public static final int HOST_FIELD_NUMBER = 1; private java.lang.Object host_; /** * required string host = 1; */ public boolean hasHost() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string host = 1; */ public java.lang.String getHost() { java.lang.Object ref = host_; 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()) { host_ = s; } return s; } } /** * required string host = 1; */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 long_port = 2; public static final int LONG_PORT_FIELD_NUMBER = 2; private int longPort_; /** * required int32 long_port = 2; */ public boolean hasLongPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 long_port = 2; */ public int getLongPort() { return longPort_; } // required int32 short_port = 3; public static final int SHORT_PORT_FIELD_NUMBER = 3; private int shortPort_; /** * required int32 short_port = 3; */ public boolean hasShortPort() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 short_port = 3; */ public int getShortPort() { return shortPort_; } private void initFields() { host_ = ""; longPort_ = 0; shortPort_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasHost()) { memoizedIsInitialized = 0; return false; } if (!hasLongPort()) { memoizedIsInitialized = 0; return false; } if (!hasShortPort()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getHostBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, longPort_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, shortPort_); } 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, getHostBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, longPort_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, shortPort_); } 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 cn.wildfirechat.proto.WFCMessage.RouteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.RouteResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.RouteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.RouteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.RouteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.RouteResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.RouteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.RouteResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.RouteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.RouteResponse 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(cn.wildfirechat.proto.WFCMessage.RouteResponse 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 RouteResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.RouteResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_RouteResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_RouteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.RouteResponse.class, cn.wildfirechat.proto.WFCMessage.RouteResponse.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.RouteResponse.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(); host_ = ""; bitField0_ = (bitField0_ & ~0x00000001); longPort_ = 0; bitField0_ = (bitField0_ & ~0x00000002); shortPort_ = 0; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_RouteResponse_descriptor; } public cn.wildfirechat.proto.WFCMessage.RouteResponse getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.RouteResponse.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.RouteResponse build() { cn.wildfirechat.proto.WFCMessage.RouteResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.RouteResponse buildPartial() { cn.wildfirechat.proto.WFCMessage.RouteResponse result = new cn.wildfirechat.proto.WFCMessage.RouteResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.host_ = host_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.longPort_ = longPort_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.shortPort_ = shortPort_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.RouteResponse) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.RouteResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.RouteResponse other) { if (other == cn.wildfirechat.proto.WFCMessage.RouteResponse.getDefaultInstance()) return this; if (other.hasHost()) { bitField0_ |= 0x00000001; host_ = other.host_; onChanged(); } if (other.hasLongPort()) { setLongPort(other.getLongPort()); } if (other.hasShortPort()) { setShortPort(other.getShortPort()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasHost()) { return false; } if (!hasLongPort()) { return false; } if (!hasShortPort()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.RouteResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.RouteResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string host = 1; private java.lang.Object host_ = ""; /** * required string host = 1; */ public boolean hasHost() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string host = 1; */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); host_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string host = 1; */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string host = 1; */ public Builder setHost( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; host_ = value; onChanged(); return this; } /** * required string host = 1; */ public Builder clearHost() { bitField0_ = (bitField0_ & ~0x00000001); host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** * required string host = 1; */ public Builder setHostBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; host_ = value; onChanged(); return this; } // required int32 long_port = 2; private int longPort_ ; /** * required int32 long_port = 2; */ public boolean hasLongPort() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 long_port = 2; */ public int getLongPort() { return longPort_; } /** * required int32 long_port = 2; */ public Builder setLongPort(int value) { bitField0_ |= 0x00000002; longPort_ = value; onChanged(); return this; } /** * required int32 long_port = 2; */ public Builder clearLongPort() { bitField0_ = (bitField0_ & ~0x00000002); longPort_ = 0; onChanged(); return this; } // required int32 short_port = 3; private int shortPort_ ; /** * required int32 short_port = 3; */ public boolean hasShortPort() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 short_port = 3; */ public int getShortPort() { return shortPort_; } /** * required int32 short_port = 3; */ public Builder setShortPort(int value) { bitField0_ |= 0x00000004; shortPort_ = value; onChanged(); return this; } /** * required int32 short_port = 3; */ public Builder clearShortPort() { bitField0_ = (bitField0_ & ~0x00000004); shortPort_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RouteResponse) } static { defaultInstance = new RouteResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RouteResponse) } public interface GetTokenRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string user_id = 1; /** * required string user_id = 1; */ boolean hasUserId(); /** * required string user_id = 1; */ java.lang.String getUserId(); /** * required string user_id = 1; */ com.google.protobuf.ByteString getUserIdBytes(); // required string client_id = 2; /** * required string client_id = 2; */ boolean hasClientId(); /** * required string client_id = 2; */ java.lang.String getClientId(); /** * required string client_id = 2; */ com.google.protobuf.ByteString getClientIdBytes(); // optional int32 platform = 3; /** * optional int32 platform = 3; */ boolean hasPlatform(); /** * optional int32 platform = 3; */ int getPlatform(); } /** * Protobuf type {@code GetTokenRequest} */ public static final class GetTokenRequest extends com.google.protobuf.GeneratedMessage implements GetTokenRequestOrBuilder { // Use GetTokenRequest.newBuilder() to construct. private GetTokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetTokenRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetTokenRequest defaultInstance; public static GetTokenRequest getDefaultInstance() { return defaultInstance; } public GetTokenRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetTokenRequest( 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; userId_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; clientId_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; platform_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_GetTokenRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetTokenRequest.class, cn.wildfirechat.proto.WFCMessage.GetTokenRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetTokenRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetTokenRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string user_id = 1; public static final int USER_ID_FIELD_NUMBER = 1; private java.lang.Object userId_; /** * required string user_id = 1; */ public boolean hasUserId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string user_id = 1; */ public java.lang.String getUserId() { java.lang.Object ref = userId_; 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()) { userId_ = s; } return s; } } /** * required string user_id = 1; */ public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string client_id = 2; public static final int CLIENT_ID_FIELD_NUMBER = 2; private java.lang.Object clientId_; /** * required string client_id = 2; */ public boolean hasClientId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string client_id = 2; */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; 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()) { clientId_ = s; } return s; } } /** * required string client_id = 2; */ public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 platform = 3; public static final int PLATFORM_FIELD_NUMBER = 3; private int platform_; /** * optional int32 platform = 3; */ public boolean hasPlatform() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 platform = 3; */ public int getPlatform() { return platform_; } private void initFields() { userId_ = ""; clientId_ = ""; platform_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasUserId()) { memoizedIsInitialized = 0; return false; } if (!hasClientId()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getUserIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getClientIdBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, platform_); } 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, getUserIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getClientIdBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, platform_); } 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 cn.wildfirechat.proto.WFCMessage.GetTokenRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetTokenRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetTokenRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.GetTokenRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetTokenRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetTokenRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetTokenRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetTokenRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.GetTokenRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.GetTokenRequest 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(cn.wildfirechat.proto.WFCMessage.GetTokenRequest 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 GetTokenRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.GetTokenRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetTokenRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.GetTokenRequest.class, cn.wildfirechat.proto.WFCMessage.GetTokenRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.GetTokenRequest.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(); userId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); clientId_ = ""; bitField0_ = (bitField0_ & ~0x00000002); platform_ = 0; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_GetTokenRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.GetTokenRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.GetTokenRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.GetTokenRequest build() { cn.wildfirechat.proto.WFCMessage.GetTokenRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.GetTokenRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.GetTokenRequest result = new cn.wildfirechat.proto.WFCMessage.GetTokenRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.userId_ = userId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.clientId_ = clientId_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.platform_ = platform_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.GetTokenRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.GetTokenRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.GetTokenRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.GetTokenRequest.getDefaultInstance()) return this; if (other.hasUserId()) { bitField0_ |= 0x00000001; userId_ = other.userId_; onChanged(); } if (other.hasClientId()) { bitField0_ |= 0x00000002; clientId_ = other.clientId_; onChanged(); } if (other.hasPlatform()) { setPlatform(other.getPlatform()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasUserId()) { return false; } if (!hasClientId()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.GetTokenRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.GetTokenRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string user_id = 1; private java.lang.Object userId_ = ""; /** * required string user_id = 1; */ public boolean hasUserId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string user_id = 1; */ public java.lang.String getUserId() { java.lang.Object ref = userId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); userId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string user_id = 1; */ public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string user_id = 1; */ public Builder setUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; userId_ = value; onChanged(); return this; } /** * required string user_id = 1; */ public Builder clearUserId() { bitField0_ = (bitField0_ & ~0x00000001); userId_ = getDefaultInstance().getUserId(); onChanged(); return this; } /** * required string user_id = 1; */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; userId_ = value; onChanged(); return this; } // required string client_id = 2; private java.lang.Object clientId_ = ""; /** * required string client_id = 2; */ public boolean hasClientId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string client_id = 2; */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); clientId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string client_id = 2; */ public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string client_id = 2; */ public Builder setClientId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; clientId_ = value; onChanged(); return this; } /** * required string client_id = 2; */ public Builder clearClientId() { bitField0_ = (bitField0_ & ~0x00000002); clientId_ = getDefaultInstance().getClientId(); onChanged(); return this; } /** * required string client_id = 2; */ public Builder setClientIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; clientId_ = value; onChanged(); return this; } // optional int32 platform = 3; private int platform_ ; /** * optional int32 platform = 3; */ public boolean hasPlatform() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 platform = 3; */ public int getPlatform() { return platform_; } /** * optional int32 platform = 3; */ public Builder setPlatform(int value) { bitField0_ |= 0x00000004; platform_ = value; onChanged(); return this; } /** * optional int32 platform = 3; */ public Builder clearPlatform() { bitField0_ = (bitField0_ & ~0x00000004); platform_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:GetTokenRequest) } static { defaultInstance = new GetTokenRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:GetTokenRequest) } public interface LoadRemoteMessagesOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .Conversation conversation = 1; /** * required .Conversation conversation = 1; */ boolean hasConversation(); /** * required .Conversation conversation = 1; */ cn.wildfirechat.proto.WFCMessage.Conversation getConversation(); /** * required .Conversation conversation = 1; */ cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder getConversationOrBuilder(); // required int64 before_uid = 2; /** * required int64 before_uid = 2; */ boolean hasBeforeUid(); /** * required int64 before_uid = 2; */ long getBeforeUid(); // required int32 count = 3; /** * required int32 count = 3; */ boolean hasCount(); /** * required int32 count = 3; */ int getCount(); // repeated int32 content_type = 4; /** * repeated int32 content_type = 4; */ java.util.List getContentTypeList(); /** * repeated int32 content_type = 4; */ int getContentTypeCount(); /** * repeated int32 content_type = 4; */ int getContentType(int index); } /** * Protobuf type {@code LoadRemoteMessages} */ public static final class LoadRemoteMessages extends com.google.protobuf.GeneratedMessage implements LoadRemoteMessagesOrBuilder { // Use LoadRemoteMessages.newBuilder() to construct. private LoadRemoteMessages(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private LoadRemoteMessages(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final LoadRemoteMessages defaultInstance; public static LoadRemoteMessages getDefaultInstance() { return defaultInstance; } public LoadRemoteMessages getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LoadRemoteMessages( 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: { cn.wildfirechat.proto.WFCMessage.Conversation.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = conversation_.toBuilder(); } conversation_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.Conversation.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(conversation_); conversation_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000002; beforeUid_ = input.readInt64(); break; } case 24: { bitField0_ |= 0x00000004; count_ = input.readInt32(); break; } case 32: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { contentType_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } contentType_.add(input.readInt32()); break; } case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { contentType_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } while (input.getBytesUntilLimit() > 0) { contentType_.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)) { contentType_ = java.util.Collections.unmodifiableList(contentType_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_LoadRemoteMessages_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_LoadRemoteMessages_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages.class, cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LoadRemoteMessages parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LoadRemoteMessages(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required .Conversation conversation = 1; public static final int CONVERSATION_FIELD_NUMBER = 1; private cn.wildfirechat.proto.WFCMessage.Conversation conversation_; /** * required .Conversation conversation = 1; */ public boolean hasConversation() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .Conversation conversation = 1; */ public cn.wildfirechat.proto.WFCMessage.Conversation getConversation() { return conversation_; } /** * required .Conversation conversation = 1; */ public cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder getConversationOrBuilder() { return conversation_; } // required int64 before_uid = 2; public static final int BEFORE_UID_FIELD_NUMBER = 2; private long beforeUid_; /** * required int64 before_uid = 2; */ public boolean hasBeforeUid() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int64 before_uid = 2; */ public long getBeforeUid() { return beforeUid_; } // required int32 count = 3; public static final int COUNT_FIELD_NUMBER = 3; private int count_; /** * required int32 count = 3; */ public boolean hasCount() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 count = 3; */ public int getCount() { return count_; } // repeated int32 content_type = 4; public static final int CONTENT_TYPE_FIELD_NUMBER = 4; private java.util.List contentType_; /** * repeated int32 content_type = 4; */ public java.util.List getContentTypeList() { return contentType_; } /** * repeated int32 content_type = 4; */ public int getContentTypeCount() { return contentType_.size(); } /** * repeated int32 content_type = 4; */ public int getContentType(int index) { return contentType_.get(index); } private void initFields() { conversation_ = cn.wildfirechat.proto.WFCMessage.Conversation.getDefaultInstance(); beforeUid_ = 0L; count_ = 0; contentType_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasConversation()) { memoizedIsInitialized = 0; return false; } if (!hasBeforeUid()) { memoizedIsInitialized = 0; return false; } if (!hasCount()) { memoizedIsInitialized = 0; return false; } if (!getConversation().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, conversation_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, beforeUid_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, count_); } for (int i = 0; i < contentType_.size(); i++) { output.writeInt32(4, contentType_.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 .computeMessageSize(1, conversation_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, beforeUid_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, count_); } { int dataSize = 0; for (int i = 0; i < contentType_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(contentType_.get(i)); } size += dataSize; size += 1 * getContentTypeList().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 cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages 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(cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages 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 LoadRemoteMessages} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.LoadRemoteMessagesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_LoadRemoteMessages_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_LoadRemoteMessages_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages.class, cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getConversationFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (conversationBuilder_ == null) { conversation_ = cn.wildfirechat.proto.WFCMessage.Conversation.getDefaultInstance(); } else { conversationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); beforeUid_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); count_ = 0; bitField0_ = (bitField0_ & ~0x00000004); contentType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_LoadRemoteMessages_descriptor; } public cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages build() { cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages buildPartial() { cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages result = new cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (conversationBuilder_ == null) { result.conversation_ = conversation_; } else { result.conversation_ = conversationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.beforeUid_ = beforeUid_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.count_ = count_; if (((bitField0_ & 0x00000008) == 0x00000008)) { contentType_ = java.util.Collections.unmodifiableList(contentType_); bitField0_ = (bitField0_ & ~0x00000008); } result.contentType_ = contentType_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages other) { if (other == cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages.getDefaultInstance()) return this; if (other.hasConversation()) { mergeConversation(other.getConversation()); } if (other.hasBeforeUid()) { setBeforeUid(other.getBeforeUid()); } if (other.hasCount()) { setCount(other.getCount()); } if (!other.contentType_.isEmpty()) { if (contentType_.isEmpty()) { contentType_ = other.contentType_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureContentTypeIsMutable(); contentType_.addAll(other.contentType_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasConversation()) { return false; } if (!hasBeforeUid()) { return false; } if (!hasCount()) { return false; } if (!getConversation().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.LoadRemoteMessages) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .Conversation conversation = 1; private cn.wildfirechat.proto.WFCMessage.Conversation conversation_ = cn.wildfirechat.proto.WFCMessage.Conversation.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.Conversation, cn.wildfirechat.proto.WFCMessage.Conversation.Builder, cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder> conversationBuilder_; /** * required .Conversation conversation = 1; */ public boolean hasConversation() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .Conversation conversation = 1; */ public cn.wildfirechat.proto.WFCMessage.Conversation getConversation() { if (conversationBuilder_ == null) { return conversation_; } else { return conversationBuilder_.getMessage(); } } /** * required .Conversation conversation = 1; */ public Builder setConversation(cn.wildfirechat.proto.WFCMessage.Conversation value) { if (conversationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } conversation_ = value; onChanged(); } else { conversationBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .Conversation conversation = 1; */ public Builder setConversation( cn.wildfirechat.proto.WFCMessage.Conversation.Builder builderForValue) { if (conversationBuilder_ == null) { conversation_ = builderForValue.build(); onChanged(); } else { conversationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .Conversation conversation = 1; */ public Builder mergeConversation(cn.wildfirechat.proto.WFCMessage.Conversation value) { if (conversationBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && conversation_ != cn.wildfirechat.proto.WFCMessage.Conversation.getDefaultInstance()) { conversation_ = cn.wildfirechat.proto.WFCMessage.Conversation.newBuilder(conversation_).mergeFrom(value).buildPartial(); } else { conversation_ = value; } onChanged(); } else { conversationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .Conversation conversation = 1; */ public Builder clearConversation() { if (conversationBuilder_ == null) { conversation_ = cn.wildfirechat.proto.WFCMessage.Conversation.getDefaultInstance(); onChanged(); } else { conversationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .Conversation conversation = 1; */ public cn.wildfirechat.proto.WFCMessage.Conversation.Builder getConversationBuilder() { bitField0_ |= 0x00000001; onChanged(); return getConversationFieldBuilder().getBuilder(); } /** * required .Conversation conversation = 1; */ public cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder getConversationOrBuilder() { if (conversationBuilder_ != null) { return conversationBuilder_.getMessageOrBuilder(); } else { return conversation_; } } /** * required .Conversation conversation = 1; */ private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.Conversation, cn.wildfirechat.proto.WFCMessage.Conversation.Builder, cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder> getConversationFieldBuilder() { if (conversationBuilder_ == null) { conversationBuilder_ = new com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.Conversation, cn.wildfirechat.proto.WFCMessage.Conversation.Builder, cn.wildfirechat.proto.WFCMessage.ConversationOrBuilder>( conversation_, getParentForChildren(), isClean()); conversation_ = null; } return conversationBuilder_; } // required int64 before_uid = 2; private long beforeUid_ ; /** * required int64 before_uid = 2; */ public boolean hasBeforeUid() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int64 before_uid = 2; */ public long getBeforeUid() { return beforeUid_; } /** * required int64 before_uid = 2; */ public Builder setBeforeUid(long value) { bitField0_ |= 0x00000002; beforeUid_ = value; onChanged(); return this; } /** * required int64 before_uid = 2; */ public Builder clearBeforeUid() { bitField0_ = (bitField0_ & ~0x00000002); beforeUid_ = 0L; onChanged(); return this; } // required int32 count = 3; private int count_ ; /** * required int32 count = 3; */ public boolean hasCount() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 count = 3; */ public int getCount() { return count_; } /** * required int32 count = 3; */ public Builder setCount(int value) { bitField0_ |= 0x00000004; count_ = value; onChanged(); return this; } /** * required int32 count = 3; */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000004); count_ = 0; onChanged(); return this; } // repeated int32 content_type = 4; private java.util.List contentType_ = java.util.Collections.emptyList(); private void ensureContentTypeIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { contentType_ = new java.util.ArrayList(contentType_); bitField0_ |= 0x00000008; } } /** * repeated int32 content_type = 4; */ public java.util.List getContentTypeList() { return java.util.Collections.unmodifiableList(contentType_); } /** * repeated int32 content_type = 4; */ public int getContentTypeCount() { return contentType_.size(); } /** * repeated int32 content_type = 4; */ public int getContentType(int index) { return contentType_.get(index); } /** * repeated int32 content_type = 4; */ public Builder setContentType( int index, int value) { ensureContentTypeIsMutable(); contentType_.set(index, value); onChanged(); return this; } /** * repeated int32 content_type = 4; */ public Builder addContentType(int value) { ensureContentTypeIsMutable(); contentType_.add(value); onChanged(); return this; } /** * repeated int32 content_type = 4; */ public Builder addAllContentType( java.lang.Iterable values) { ensureContentTypeIsMutable(); super.addAll(values, contentType_); onChanged(); return this; } /** * repeated int32 content_type = 4; */ public Builder clearContentType() { contentType_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:LoadRemoteMessages) } static { defaultInstance = new LoadRemoteMessages(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:LoadRemoteMessages) } public interface MultiCastMessageOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string from_user = 1; /** * required string from_user = 1; */ boolean hasFromUser(); /** * required string from_user = 1; */ java.lang.String getFromUser(); /** * required string from_user = 1; */ com.google.protobuf.ByteString getFromUserBytes(); // required .MessageContent content = 2; /** * required .MessageContent content = 2; */ boolean hasContent(); /** * required .MessageContent content = 2; */ cn.wildfirechat.proto.WFCMessage.MessageContent getContent(); /** * required .MessageContent content = 2; */ cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getContentOrBuilder(); // repeated string to = 3; /** * repeated string to = 3; */ java.util.List getToList(); /** * repeated string to = 3; */ int getToCount(); /** * repeated string to = 3; */ java.lang.String getTo(int index); /** * repeated string to = 3; */ com.google.protobuf.ByteString getToBytes(int index); // required int32 line = 4; /** * required int32 line = 4; */ boolean hasLine(); /** * required int32 line = 4; */ int getLine(); } /** * Protobuf type {@code MultiCastMessage} */ public static final class MultiCastMessage extends com.google.protobuf.GeneratedMessage implements MultiCastMessageOrBuilder { // Use MultiCastMessage.newBuilder() to construct. private MultiCastMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private MultiCastMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final MultiCastMessage defaultInstance; public static MultiCastMessage getDefaultInstance() { return defaultInstance; } public MultiCastMessage getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MultiCastMessage( 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; fromUser_ = input.readBytes(); break; } case 18: { cn.wildfirechat.proto.WFCMessage.MessageContent.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = content_.toBuilder(); } content_ = input.readMessage(cn.wildfirechat.proto.WFCMessage.MessageContent.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(content_); content_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { to_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } to_.add(input.readBytes()); break; } case 32: { bitField0_ |= 0x00000004; line_ = 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 { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { to_ = new com.google.protobuf.UnmodifiableLazyStringList(to_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_MultiCastMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_MultiCastMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.MultiCastMessage.class, cn.wildfirechat.proto.WFCMessage.MultiCastMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MultiCastMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MultiCastMessage(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string from_user = 1; public static final int FROM_USER_FIELD_NUMBER = 1; private java.lang.Object fromUser_; /** * required string from_user = 1; */ public boolean hasFromUser() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string from_user = 1; */ public java.lang.String getFromUser() { java.lang.Object ref = fromUser_; 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()) { fromUser_ = s; } return s; } } /** * required string from_user = 1; */ public com.google.protobuf.ByteString getFromUserBytes() { java.lang.Object ref = fromUser_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fromUser_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required .MessageContent content = 2; public static final int CONTENT_FIELD_NUMBER = 2; private cn.wildfirechat.proto.WFCMessage.MessageContent content_; /** * required .MessageContent content = 2; */ public boolean hasContent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .MessageContent content = 2; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getContent() { return content_; } /** * required .MessageContent content = 2; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getContentOrBuilder() { return content_; } // repeated string to = 3; public static final int TO_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList to_; /** * repeated string to = 3; */ public java.util.List getToList() { return to_; } /** * repeated string to = 3; */ public int getToCount() { return to_.size(); } /** * repeated string to = 3; */ public java.lang.String getTo(int index) { return to_.get(index); } /** * repeated string to = 3; */ public com.google.protobuf.ByteString getToBytes(int index) { return to_.getByteString(index); } // required int32 line = 4; public static final int LINE_FIELD_NUMBER = 4; private int line_; /** * required int32 line = 4; */ public boolean hasLine() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int32 line = 4; */ public int getLine() { return line_; } private void initFields() { fromUser_ = ""; content_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); to_ = com.google.protobuf.LazyStringArrayList.EMPTY; line_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasFromUser()) { memoizedIsInitialized = 0; return false; } if (!hasContent()) { memoizedIsInitialized = 0; return false; } if (!hasLine()) { memoizedIsInitialized = 0; return false; } if (!getContent().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getFromUserBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, content_); } for (int i = 0; i < to_.size(); i++) { output.writeBytes(3, to_.getByteString(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(4, line_); } 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, getFromUserBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, content_); } { int dataSize = 0; for (int i = 0; i < to_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(to_.getByteString(i)); } size += dataSize; size += 1 * getToList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, line_); } 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 cn.wildfirechat.proto.WFCMessage.MultiCastMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.MultiCastMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.MultiCastMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.MultiCastMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.MultiCastMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.MultiCastMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.MultiCastMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.MultiCastMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.MultiCastMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.MultiCastMessage 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(cn.wildfirechat.proto.WFCMessage.MultiCastMessage 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 MultiCastMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.MultiCastMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_MultiCastMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_MultiCastMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.MultiCastMessage.class, cn.wildfirechat.proto.WFCMessage.MultiCastMessage.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.MultiCastMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getContentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); fromUser_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (contentBuilder_ == null) { content_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); } else { contentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); to_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); line_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_MultiCastMessage_descriptor; } public cn.wildfirechat.proto.WFCMessage.MultiCastMessage getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.MultiCastMessage.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.MultiCastMessage build() { cn.wildfirechat.proto.WFCMessage.MultiCastMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.MultiCastMessage buildPartial() { cn.wildfirechat.proto.WFCMessage.MultiCastMessage result = new cn.wildfirechat.proto.WFCMessage.MultiCastMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.fromUser_ = fromUser_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (contentBuilder_ == null) { result.content_ = content_; } else { result.content_ = contentBuilder_.build(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { to_ = new com.google.protobuf.UnmodifiableLazyStringList( to_); bitField0_ = (bitField0_ & ~0x00000004); } result.to_ = to_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.line_ = line_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.MultiCastMessage) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.MultiCastMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.MultiCastMessage other) { if (other == cn.wildfirechat.proto.WFCMessage.MultiCastMessage.getDefaultInstance()) return this; if (other.hasFromUser()) { bitField0_ |= 0x00000001; fromUser_ = other.fromUser_; onChanged(); } if (other.hasContent()) { mergeContent(other.getContent()); } if (!other.to_.isEmpty()) { if (to_.isEmpty()) { to_ = other.to_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureToIsMutable(); to_.addAll(other.to_); } onChanged(); } if (other.hasLine()) { setLine(other.getLine()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasFromUser()) { return false; } if (!hasContent()) { return false; } if (!hasLine()) { return false; } if (!getContent().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.MultiCastMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.MultiCastMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string from_user = 1; private java.lang.Object fromUser_ = ""; /** * required string from_user = 1; */ public boolean hasFromUser() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string from_user = 1; */ public java.lang.String getFromUser() { java.lang.Object ref = fromUser_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); fromUser_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string from_user = 1; */ public com.google.protobuf.ByteString getFromUserBytes() { java.lang.Object ref = fromUser_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fromUser_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string from_user = 1; */ public Builder setFromUser( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; fromUser_ = value; onChanged(); return this; } /** * required string from_user = 1; */ public Builder clearFromUser() { bitField0_ = (bitField0_ & ~0x00000001); fromUser_ = getDefaultInstance().getFromUser(); onChanged(); return this; } /** * required string from_user = 1; */ public Builder setFromUserBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; fromUser_ = value; onChanged(); return this; } // required .MessageContent content = 2; private cn.wildfirechat.proto.WFCMessage.MessageContent content_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> contentBuilder_; /** * required .MessageContent content = 2; */ public boolean hasContent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .MessageContent content = 2; */ public cn.wildfirechat.proto.WFCMessage.MessageContent getContent() { if (contentBuilder_ == null) { return content_; } else { return contentBuilder_.getMessage(); } } /** * required .MessageContent content = 2; */ public Builder setContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (contentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { contentBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * required .MessageContent content = 2; */ public Builder setContent( cn.wildfirechat.proto.WFCMessage.MessageContent.Builder builderForValue) { if (contentBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { contentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * required .MessageContent content = 2; */ public Builder mergeContent(cn.wildfirechat.proto.WFCMessage.MessageContent value) { if (contentBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && content_ != cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance()) { content_ = cn.wildfirechat.proto.WFCMessage.MessageContent.newBuilder(content_).mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { contentBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * required .MessageContent content = 2; */ public Builder clearContent() { if (contentBuilder_ == null) { content_ = cn.wildfirechat.proto.WFCMessage.MessageContent.getDefaultInstance(); onChanged(); } else { contentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * required .MessageContent content = 2; */ public cn.wildfirechat.proto.WFCMessage.MessageContent.Builder getContentBuilder() { bitField0_ |= 0x00000002; onChanged(); return getContentFieldBuilder().getBuilder(); } /** * required .MessageContent content = 2; */ public cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder getContentOrBuilder() { if (contentBuilder_ != null) { return contentBuilder_.getMessageOrBuilder(); } else { return content_; } } /** * required .MessageContent content = 2; */ private com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder> getContentFieldBuilder() { if (contentBuilder_ == null) { contentBuilder_ = new com.google.protobuf.SingleFieldBuilder< cn.wildfirechat.proto.WFCMessage.MessageContent, cn.wildfirechat.proto.WFCMessage.MessageContent.Builder, cn.wildfirechat.proto.WFCMessage.MessageContentOrBuilder>( content_, getParentForChildren(), isClean()); content_ = null; } return contentBuilder_; } // repeated string to = 3; private com.google.protobuf.LazyStringList to_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureToIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { to_ = new com.google.protobuf.LazyStringArrayList(to_); bitField0_ |= 0x00000004; } } /** * repeated string to = 3; */ public java.util.List getToList() { return java.util.Collections.unmodifiableList(to_); } /** * repeated string to = 3; */ public int getToCount() { return to_.size(); } /** * repeated string to = 3; */ public java.lang.String getTo(int index) { return to_.get(index); } /** * repeated string to = 3; */ public com.google.protobuf.ByteString getToBytes(int index) { return to_.getByteString(index); } /** * repeated string to = 3; */ public Builder setTo( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureToIsMutable(); to_.set(index, value); onChanged(); return this; } /** * repeated string to = 3; */ public Builder addTo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureToIsMutable(); to_.add(value); onChanged(); return this; } /** * repeated string to = 3; */ public Builder addAllTo( java.lang.Iterable values) { ensureToIsMutable(); super.addAll(values, to_); onChanged(); return this; } /** * repeated string to = 3; */ public Builder clearTo() { to_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * repeated string to = 3; */ public Builder addToBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureToIsMutable(); to_.add(value); onChanged(); return this; } // required int32 line = 4; private int line_ ; /** * required int32 line = 4; */ public boolean hasLine() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required int32 line = 4; */ public int getLine() { return line_; } /** * required int32 line = 4; */ public Builder setLine(int value) { bitField0_ |= 0x00000008; line_ = value; onChanged(); return this; } /** * required int32 line = 4; */ public Builder clearLine() { bitField0_ = (bitField0_ & ~0x00000008); line_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:MultiCastMessage) } static { defaultInstance = new MultiCastMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:MultiCastMessage) } public interface RecallMultiCastMessageRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required int64 message_id = 1; /** * required int64 message_id = 1; */ boolean hasMessageId(); /** * required int64 message_id = 1; */ long getMessageId(); // repeated string receiver = 2; /** * repeated string receiver = 2; */ java.util.List getReceiverList(); /** * repeated string receiver = 2; */ int getReceiverCount(); /** * repeated string receiver = 2; */ java.lang.String getReceiver(int index); /** * repeated string receiver = 2; */ com.google.protobuf.ByteString getReceiverBytes(int index); } /** * Protobuf type {@code RecallMultiCastMessageRequest} */ public static final class RecallMultiCastMessageRequest extends com.google.protobuf.GeneratedMessage implements RecallMultiCastMessageRequestOrBuilder { // Use RecallMultiCastMessageRequest.newBuilder() to construct. private RecallMultiCastMessageRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RecallMultiCastMessageRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RecallMultiCastMessageRequest defaultInstance; public static RecallMultiCastMessageRequest getDefaultInstance() { return defaultInstance; } public RecallMultiCastMessageRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RecallMultiCastMessageRequest( 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; messageId_ = input.readInt64(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { receiver_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } receiver_.add(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 { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { receiver_ = new com.google.protobuf.UnmodifiableLazyStringList(receiver_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_RecallMultiCastMessageRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_RecallMultiCastMessageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest.class, cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RecallMultiCastMessageRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RecallMultiCastMessageRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required int64 message_id = 1; public static final int MESSAGE_ID_FIELD_NUMBER = 1; private long messageId_; /** * required int64 message_id = 1; */ public boolean hasMessageId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 message_id = 1; */ public long getMessageId() { return messageId_; } // repeated string receiver = 2; public static final int RECEIVER_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList receiver_; /** * repeated string receiver = 2; */ public java.util.List getReceiverList() { return receiver_; } /** * repeated string receiver = 2; */ public int getReceiverCount() { return receiver_.size(); } /** * repeated string receiver = 2; */ public java.lang.String getReceiver(int index) { return receiver_.get(index); } /** * repeated string receiver = 2; */ public com.google.protobuf.ByteString getReceiverBytes(int index) { return receiver_.getByteString(index); } private void initFields() { messageId_ = 0L; receiver_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasMessageId()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, messageId_); } for (int i = 0; i < receiver_.size(); i++) { output.writeBytes(2, receiver_.getByteString(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 .computeInt64Size(1, messageId_); } { int dataSize = 0; for (int i = 0; i < receiver_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(receiver_.getByteString(i)); } size += dataSize; size += 1 * getReceiverList().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 cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest 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(cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest 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 RecallMultiCastMessageRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_RecallMultiCastMessageRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_RecallMultiCastMessageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest.class, cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest.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(); messageId_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); receiver_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_RecallMultiCastMessageRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest build() { cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest result = new cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.messageId_ = messageId_; if (((bitField0_ & 0x00000002) == 0x00000002)) { receiver_ = new com.google.protobuf.UnmodifiableLazyStringList( receiver_); bitField0_ = (bitField0_ & ~0x00000002); } result.receiver_ = receiver_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest.getDefaultInstance()) return this; if (other.hasMessageId()) { setMessageId(other.getMessageId()); } if (!other.receiver_.isEmpty()) { if (receiver_.isEmpty()) { receiver_ = other.receiver_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureReceiverIsMutable(); receiver_.addAll(other.receiver_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasMessageId()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.RecallMultiCastMessageRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required int64 message_id = 1; private long messageId_ ; /** * required int64 message_id = 1; */ public boolean hasMessageId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required int64 message_id = 1; */ public long getMessageId() { return messageId_; } /** * required int64 message_id = 1; */ public Builder setMessageId(long value) { bitField0_ |= 0x00000001; messageId_ = value; onChanged(); return this; } /** * required int64 message_id = 1; */ public Builder clearMessageId() { bitField0_ = (bitField0_ & ~0x00000001); messageId_ = 0L; onChanged(); return this; } // repeated string receiver = 2; private com.google.protobuf.LazyStringList receiver_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureReceiverIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { receiver_ = new com.google.protobuf.LazyStringArrayList(receiver_); bitField0_ |= 0x00000002; } } /** * repeated string receiver = 2; */ public java.util.List getReceiverList() { return java.util.Collections.unmodifiableList(receiver_); } /** * repeated string receiver = 2; */ public int getReceiverCount() { return receiver_.size(); } /** * repeated string receiver = 2; */ public java.lang.String getReceiver(int index) { return receiver_.get(index); } /** * repeated string receiver = 2; */ public com.google.protobuf.ByteString getReceiverBytes(int index) { return receiver_.getByteString(index); } /** * repeated string receiver = 2; */ public Builder setReceiver( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureReceiverIsMutable(); receiver_.set(index, value); onChanged(); return this; } /** * repeated string receiver = 2; */ public Builder addReceiver( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureReceiverIsMutable(); receiver_.add(value); onChanged(); return this; } /** * repeated string receiver = 2; */ public Builder addAllReceiver( java.lang.Iterable values) { ensureReceiverIsMutable(); super.addAll(values, receiver_); onChanged(); return this; } /** * repeated string receiver = 2; */ public Builder clearReceiver() { receiver_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string receiver = 2; */ public Builder addReceiverBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureReceiverIsMutable(); receiver_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:RecallMultiCastMessageRequest) } static { defaultInstance = new RecallMultiCastMessageRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:RecallMultiCastMessageRequest) } public interface AuthCodeRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string target_id = 1; /** * required string target_id = 1; */ boolean hasTargetId(); /** * required string target_id = 1; */ java.lang.String getTargetId(); /** * required string target_id = 1; */ com.google.protobuf.ByteString getTargetIdBytes(); // required int32 type = 2; /** * required int32 type = 2; */ boolean hasType(); /** * required int32 type = 2; */ int getType(); // required string host = 3; /** * required string host = 3; */ boolean hasHost(); /** * required string host = 3; */ java.lang.String getHost(); /** * required string host = 3; */ com.google.protobuf.ByteString getHostBytes(); } /** * Protobuf type {@code AuthCodeRequest} */ public static final class AuthCodeRequest extends com.google.protobuf.GeneratedMessage implements AuthCodeRequestOrBuilder { // Use AuthCodeRequest.newBuilder() to construct. private AuthCodeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AuthCodeRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AuthCodeRequest defaultInstance; public static AuthCodeRequest getDefaultInstance() { return defaultInstance; } public AuthCodeRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AuthCodeRequest( 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; targetId_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; type_ = input.readInt32(); break; } case 26: { bitField0_ |= 0x00000004; host_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_AuthCodeRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_AuthCodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.AuthCodeRequest.class, cn.wildfirechat.proto.WFCMessage.AuthCodeRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AuthCodeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AuthCodeRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string target_id = 1; public static final int TARGET_ID_FIELD_NUMBER = 1; private java.lang.Object targetId_; /** * required string target_id = 1; */ public boolean hasTargetId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string target_id = 1; */ public java.lang.String getTargetId() { java.lang.Object ref = targetId_; 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()) { targetId_ = s; } return s; } } /** * required string target_id = 1; */ public com.google.protobuf.ByteString getTargetIdBytes() { java.lang.Object ref = targetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 type = 2; public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** * required int32 type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 type = 2; */ public int getType() { return type_; } // required string host = 3; public static final int HOST_FIELD_NUMBER = 3; private java.lang.Object host_; /** * required string host = 3; */ public boolean hasHost() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string host = 3; */ public java.lang.String getHost() { java.lang.Object ref = host_; 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()) { host_ = s; } return s; } } /** * required string host = 3; */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { targetId_ = ""; type_ = 0; host_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasTargetId()) { memoizedIsInitialized = 0; return false; } if (!hasType()) { memoizedIsInitialized = 0; return false; } if (!hasHost()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getTargetIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getHostBytes()); } 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, getTargetIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, type_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getHostBytes()); } 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 cn.wildfirechat.proto.WFCMessage.AuthCodeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.AuthCodeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.AuthCodeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.AuthCodeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.AuthCodeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.AuthCodeRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.AuthCodeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.AuthCodeRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.AuthCodeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.AuthCodeRequest 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(cn.wildfirechat.proto.WFCMessage.AuthCodeRequest 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 AuthCodeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.AuthCodeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_AuthCodeRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_AuthCodeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.AuthCodeRequest.class, cn.wildfirechat.proto.WFCMessage.AuthCodeRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.AuthCodeRequest.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(); targetId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; bitField0_ = (bitField0_ & ~0x00000002); host_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_AuthCodeRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.AuthCodeRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.AuthCodeRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.AuthCodeRequest build() { cn.wildfirechat.proto.WFCMessage.AuthCodeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.AuthCodeRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.AuthCodeRequest result = new cn.wildfirechat.proto.WFCMessage.AuthCodeRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.targetId_ = targetId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.host_ = host_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.AuthCodeRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.AuthCodeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.AuthCodeRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.AuthCodeRequest.getDefaultInstance()) return this; if (other.hasTargetId()) { bitField0_ |= 0x00000001; targetId_ = other.targetId_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (other.hasHost()) { bitField0_ |= 0x00000004; host_ = other.host_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasTargetId()) { return false; } if (!hasType()) { return false; } if (!hasHost()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.AuthCodeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.AuthCodeRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string target_id = 1; private java.lang.Object targetId_ = ""; /** * required string target_id = 1; */ public boolean hasTargetId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string target_id = 1; */ public java.lang.String getTargetId() { java.lang.Object ref = targetId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); targetId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string target_id = 1; */ public com.google.protobuf.ByteString getTargetIdBytes() { java.lang.Object ref = targetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); targetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string target_id = 1; */ public Builder setTargetId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; targetId_ = value; onChanged(); return this; } /** * required string target_id = 1; */ public Builder clearTargetId() { bitField0_ = (bitField0_ & ~0x00000001); targetId_ = getDefaultInstance().getTargetId(); onChanged(); return this; } /** * required string target_id = 1; */ public Builder setTargetIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; targetId_ = value; onChanged(); return this; } // required int32 type = 2; private int type_ ; /** * required int32 type = 2; */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 type = 2; */ public int getType() { return type_; } /** * required int32 type = 2; */ public Builder setType(int value) { bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } /** * required int32 type = 2; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; } // required string host = 3; private java.lang.Object host_ = ""; /** * required string host = 3; */ public boolean hasHost() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string host = 3; */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); host_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string host = 3; */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string host = 3; */ public Builder setHost( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; host_ = value; onChanged(); return this; } /** * required string host = 3; */ public Builder clearHost() { bitField0_ = (bitField0_ & ~0x00000004); host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** * required string host = 3; */ public Builder setHostBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; host_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:AuthCodeRequest) } static { defaultInstance = new AuthCodeRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:AuthCodeRequest) } public interface ApplicationConfigRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string appId = 1; /** * required string appId = 1; */ boolean hasAppId(); /** * required string appId = 1; */ java.lang.String getAppId(); /** * required string appId = 1; */ com.google.protobuf.ByteString getAppIdBytes(); // required int32 appType = 2; /** * required int32 appType = 2; */ boolean hasAppType(); /** * required int32 appType = 2; */ int getAppType(); // required int64 timestamp = 3; /** * required int64 timestamp = 3; */ boolean hasTimestamp(); /** * required int64 timestamp = 3; */ long getTimestamp(); // required string nonce = 4; /** * required string nonce = 4; */ boolean hasNonce(); /** * required string nonce = 4; */ java.lang.String getNonce(); /** * required string nonce = 4; */ com.google.protobuf.ByteString getNonceBytes(); // required string signature = 5; /** * required string signature = 5; */ boolean hasSignature(); /** * required string signature = 5; */ java.lang.String getSignature(); /** * required string signature = 5; */ com.google.protobuf.ByteString getSignatureBytes(); } /** * Protobuf type {@code ApplicationConfigRequest} */ public static final class ApplicationConfigRequest extends com.google.protobuf.GeneratedMessage implements ApplicationConfigRequestOrBuilder { // Use ApplicationConfigRequest.newBuilder() to construct. private ApplicationConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ApplicationConfigRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ApplicationConfigRequest defaultInstance; public static ApplicationConfigRequest getDefaultInstance() { return defaultInstance; } public ApplicationConfigRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ApplicationConfigRequest( 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; appId_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; appType_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; timestamp_ = input.readInt64(); break; } case 34: { bitField0_ |= 0x00000008; nonce_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000010; signature_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_ApplicationConfigRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ApplicationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest.class, cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ApplicationConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ApplicationConfigRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string appId = 1; public static final int APPID_FIELD_NUMBER = 1; private java.lang.Object appId_; /** * required string appId = 1; */ public boolean hasAppId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string appId = 1; */ public java.lang.String getAppId() { java.lang.Object ref = appId_; 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()) { appId_ = s; } return s; } } /** * required string appId = 1; */ public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 appType = 2; public static final int APPTYPE_FIELD_NUMBER = 2; private int appType_; /** * required int32 appType = 2; */ public boolean hasAppType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 appType = 2; */ public int getAppType() { return appType_; } // required int64 timestamp = 3; public static final int TIMESTAMP_FIELD_NUMBER = 3; private long timestamp_; /** * required int64 timestamp = 3; */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int64 timestamp = 3; */ public long getTimestamp() { return timestamp_; } // required string nonce = 4; public static final int NONCE_FIELD_NUMBER = 4; private java.lang.Object nonce_; /** * required string nonce = 4; */ public boolean hasNonce() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required string nonce = 4; */ public java.lang.String getNonce() { java.lang.Object ref = nonce_; 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()) { nonce_ = s; } return s; } } /** * required string nonce = 4; */ public com.google.protobuf.ByteString getNonceBytes() { java.lang.Object ref = nonce_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nonce_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string signature = 5; public static final int SIGNATURE_FIELD_NUMBER = 5; private java.lang.Object signature_; /** * required string signature = 5; */ public boolean hasSignature() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * required string signature = 5; */ public java.lang.String getSignature() { java.lang.Object ref = signature_; 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()) { signature_ = s; } return s; } } /** * required string signature = 5; */ public com.google.protobuf.ByteString getSignatureBytes() { java.lang.Object ref = signature_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); signature_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { appId_ = ""; appType_ = 0; timestamp_ = 0L; nonce_ = ""; signature_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasAppId()) { memoizedIsInitialized = 0; return false; } if (!hasAppType()) { memoizedIsInitialized = 0; return false; } if (!hasTimestamp()) { memoizedIsInitialized = 0; return false; } if (!hasNonce()) { memoizedIsInitialized = 0; return false; } if (!hasSignature()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getAppIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, appType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, timestamp_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getNonceBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getSignatureBytes()); } 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, getAppIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, appType_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, timestamp_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getNonceBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getSignatureBytes()); } 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 cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest 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(cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest 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 ApplicationConfigRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_ApplicationConfigRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_ApplicationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest.class, cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest.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(); appId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); appType_ = 0; bitField0_ = (bitField0_ & ~0x00000002); timestamp_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); nonce_ = ""; bitField0_ = (bitField0_ & ~0x00000008); signature_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_ApplicationConfigRequest_descriptor; } public cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest build() { cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest buildPartial() { cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest result = new cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.appId_ = appId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.appType_ = appType_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.timestamp_ = timestamp_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.nonce_ = nonce_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.signature_ = signature_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest other) { if (other == cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest.getDefaultInstance()) return this; if (other.hasAppId()) { bitField0_ |= 0x00000001; appId_ = other.appId_; onChanged(); } if (other.hasAppType()) { setAppType(other.getAppType()); } if (other.hasTimestamp()) { setTimestamp(other.getTimestamp()); } if (other.hasNonce()) { bitField0_ |= 0x00000008; nonce_ = other.nonce_; onChanged(); } if (other.hasSignature()) { bitField0_ |= 0x00000010; signature_ = other.signature_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasAppId()) { return false; } if (!hasAppType()) { return false; } if (!hasTimestamp()) { return false; } if (!hasNonce()) { return false; } if (!hasSignature()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.ApplicationConfigRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string appId = 1; private java.lang.Object appId_ = ""; /** * required string appId = 1; */ public boolean hasAppId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string appId = 1; */ public java.lang.String getAppId() { java.lang.Object ref = appId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); appId_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string appId = 1; */ public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string appId = 1; */ public Builder setAppId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; appId_ = value; onChanged(); return this; } /** * required string appId = 1; */ public Builder clearAppId() { bitField0_ = (bitField0_ & ~0x00000001); appId_ = getDefaultInstance().getAppId(); onChanged(); return this; } /** * required string appId = 1; */ public Builder setAppIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; appId_ = value; onChanged(); return this; } // required int32 appType = 2; private int appType_ ; /** * required int32 appType = 2; */ public boolean hasAppType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required int32 appType = 2; */ public int getAppType() { return appType_; } /** * required int32 appType = 2; */ public Builder setAppType(int value) { bitField0_ |= 0x00000002; appType_ = value; onChanged(); return this; } /** * required int32 appType = 2; */ public Builder clearAppType() { bitField0_ = (bitField0_ & ~0x00000002); appType_ = 0; onChanged(); return this; } // required int64 timestamp = 3; private long timestamp_ ; /** * required int64 timestamp = 3; */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required int64 timestamp = 3; */ public long getTimestamp() { return timestamp_; } /** * required int64 timestamp = 3; */ public Builder setTimestamp(long value) { bitField0_ |= 0x00000004; timestamp_ = value; onChanged(); return this; } /** * required int64 timestamp = 3; */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000004); timestamp_ = 0L; onChanged(); return this; } // required string nonce = 4; private java.lang.Object nonce_ = ""; /** * required string nonce = 4; */ public boolean hasNonce() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required string nonce = 4; */ public java.lang.String getNonce() { java.lang.Object ref = nonce_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); nonce_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string nonce = 4; */ public com.google.protobuf.ByteString getNonceBytes() { java.lang.Object ref = nonce_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nonce_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string nonce = 4; */ public Builder setNonce( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; nonce_ = value; onChanged(); return this; } /** * required string nonce = 4; */ public Builder clearNonce() { bitField0_ = (bitField0_ & ~0x00000008); nonce_ = getDefaultInstance().getNonce(); onChanged(); return this; } /** * required string nonce = 4; */ public Builder setNonceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; nonce_ = value; onChanged(); return this; } // required string signature = 5; private java.lang.Object signature_ = ""; /** * required string signature = 5; */ public boolean hasSignature() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * required string signature = 5; */ public java.lang.String getSignature() { java.lang.Object ref = signature_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); signature_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string signature = 5; */ public com.google.protobuf.ByteString getSignatureBytes() { java.lang.Object ref = signature_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); signature_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string signature = 5; */ public Builder setSignature( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; signature_ = value; onChanged(); return this; } /** * required string signature = 5; */ public Builder clearSignature() { bitField0_ = (bitField0_ & ~0x00000010); signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } /** * required string signature = 5; */ public Builder setSignatureBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; signature_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:ApplicationConfigRequest) } static { defaultInstance = new ApplicationConfigRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:ApplicationConfigRequest) } public interface StringPairOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string key = 1; /** * required string key = 1; */ boolean hasKey(); /** * required string key = 1; */ java.lang.String getKey(); /** * required string key = 1; */ com.google.protobuf.ByteString getKeyBytes(); // optional string value = 2; /** * optional string value = 2; */ boolean hasValue(); /** * optional string value = 2; */ java.lang.String getValue(); /** * optional string value = 2; */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code StringPair} */ public static final class StringPair extends com.google.protobuf.GeneratedMessage implements StringPairOrBuilder { // Use StringPair.newBuilder() to construct. private StringPair(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private StringPair(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final StringPair defaultInstance; public static StringPair getDefaultInstance() { return defaultInstance; } public StringPair getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StringPair( 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; key_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; value_ = 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 cn.wildfirechat.proto.WFCMessage.internal_static_StringPair_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_StringPair_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.StringPair.class, cn.wildfirechat.proto.WFCMessage.StringPair.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StringPair parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StringPair(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required string key = 1; public static final int KEY_FIELD_NUMBER = 1; private java.lang.Object key_; /** * required string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } } /** * required string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string value = 2; public static final int VALUE_FIELD_NUMBER = 2; private java.lang.Object value_; /** * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { key_ = ""; value_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasKey()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getValueBytes()); } 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, getKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getValueBytes()); } 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 cn.wildfirechat.proto.WFCMessage.StringPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.StringPair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.StringPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cn.wildfirechat.proto.WFCMessage.StringPair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.StringPair parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.StringPair parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.StringPair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static cn.wildfirechat.proto.WFCMessage.StringPair parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static cn.wildfirechat.proto.WFCMessage.StringPair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static cn.wildfirechat.proto.WFCMessage.StringPair 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(cn.wildfirechat.proto.WFCMessage.StringPair 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 StringPair} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements cn.wildfirechat.proto.WFCMessage.StringPairOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cn.wildfirechat.proto.WFCMessage.internal_static_StringPair_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return cn.wildfirechat.proto.WFCMessage.internal_static_StringPair_fieldAccessorTable .ensureFieldAccessorsInitialized( cn.wildfirechat.proto.WFCMessage.StringPair.class, cn.wildfirechat.proto.WFCMessage.StringPair.Builder.class); } // Construct using cn.wildfirechat.proto.WFCMessage.StringPair.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(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cn.wildfirechat.proto.WFCMessage.internal_static_StringPair_descriptor; } public cn.wildfirechat.proto.WFCMessage.StringPair getDefaultInstanceForType() { return cn.wildfirechat.proto.WFCMessage.StringPair.getDefaultInstance(); } public cn.wildfirechat.proto.WFCMessage.StringPair build() { cn.wildfirechat.proto.WFCMessage.StringPair result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public cn.wildfirechat.proto.WFCMessage.StringPair buildPartial() { cn.wildfirechat.proto.WFCMessage.StringPair result = new cn.wildfirechat.proto.WFCMessage.StringPair(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cn.wildfirechat.proto.WFCMessage.StringPair) { return mergeFrom((cn.wildfirechat.proto.WFCMessage.StringPair)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cn.wildfirechat.proto.WFCMessage.StringPair other) { if (other == cn.wildfirechat.proto.WFCMessage.StringPair.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasKey()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cn.wildfirechat.proto.WFCMessage.StringPair parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cn.wildfirechat.proto.WFCMessage.StringPair) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string key = 1; private java.lang.Object key_ = ""; /** * required string key = 1; */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string key = 1; */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string key = 1; */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** * required string key = 1; */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * required string key = 1; */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } // optional string value = 2; private java.lang.Object value_ = ""; /** * optional string value = 2; */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string value = 2; */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string value = 2; */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * optional string value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * optional string value = 2; */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:StringPair) } static { defaultInstance = new StringPair(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:StringPair) } private static com.google.protobuf.Descriptors.Descriptor internal_static_AddFriendRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_AddFriendRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_Conversation_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Conversation_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_GroupInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_GroupInfo_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_GroupMember_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_GroupMember_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_Group_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Group_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ChannelMenu_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ChannelMenu_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ChannelMenuList_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ChannelMenuList_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ChannelInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ChannelInfo_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ModifyChannelInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ModifyChannelInfo_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_TransferChannel_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_TransferChannel_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_PullChannelInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_PullChannelInfo_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_PullChannelListener_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_PullChannelListener_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_PullChannelListenerResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_PullChannelListenerResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ListenChannel_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ListenChannel_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_SearchChannelResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_SearchChannelResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_MessageContent_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_MessageContent_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_AddGroupMemberRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_AddGroupMemberRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_CreateGroupRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_CreateGroupRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_DismissGroupRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_DismissGroupRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_FriendRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_FriendRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_GeneralResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_GeneralResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_GetUploadTokenRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_GetUploadTokenRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_GetUploadTokenResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_GetUploadTokenResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_HandleFriendRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_HandleFriendRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_IDBuf_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_IDBuf_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_IDListBuf_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_IDListBuf_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_Message_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Message_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_User_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_User_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_Robot_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Robot_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_GetRobotsResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_GetRobotsResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_UploadDeviceTokenRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_UploadDeviceTokenRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ModifyGroupInfoRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ModifyGroupInfoRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_SetGroupManagerRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_SetGroupManagerRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_InfoEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_InfoEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ModifyMyInfoRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ModifyMyInfoRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_NotifyMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_NotifyMessage_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_PullMessageRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_PullMessageRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_PullMessageResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_PullMessageResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_PullGroupInfoResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_PullGroupInfoResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_PullGroupMemberRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_PullGroupMemberRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_PullGroupMemberResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_PullGroupMemberResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_UserRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_UserRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_PullUserRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_PullUserRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_UserResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_UserResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_PullUserResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_PullUserResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_QuitGroupRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_QuitGroupRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_RemoveGroupMemberRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RemoveGroupMemberRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_TransferGroupRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_TransferGroupRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ModifyGroupMemberAlias_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ModifyGroupMemberAlias_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ModifyGroupMemberExtra_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ModifyGroupMemberExtra_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_UserSettingEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_UserSettingEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ModifyUserSettingReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ModifyUserSettingReq_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_Version_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Version_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_GetUserSettingResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_GetUserSettingResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_Friend_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_Friend_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_GetFriendsResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_GetFriendsResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_GetFriendRequestResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_GetFriendRequestResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ConnectAckPayload_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ConnectAckPayload_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_IMHttpWrapper_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_IMHttpWrapper_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_SearchUserRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_SearchUserRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_SearchUserResult_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_SearchUserResult_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_GetChatroomInfoRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_GetChatroomInfoRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ChatroomInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ChatroomInfo_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_GetChatroomMemberInfoRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_GetChatroomMemberInfoRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ChatroomMemberInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ChatroomMemberInfo_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_INT64Buf_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_INT64Buf_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_NotifyRecallMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_NotifyRecallMessage_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_BlackUserRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_BlackUserRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_RouteRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RouteRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_RouteResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RouteResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_GetTokenRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_GetTokenRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_LoadRemoteMessages_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_LoadRemoteMessages_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_MultiCastMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_MultiCastMessage_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_RecallMultiCastMessageRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_RecallMultiCastMessageRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_AuthCodeRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_AuthCodeRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_ApplicationConfigRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_ApplicationConfigRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_StringPair_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_StringPair_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\032wfcmessage_community.proto\"E\n\020AddFrien" + "dRequest\022\022\n\ntarget_uid\030\001 \002(\t\022\016\n\006reason\030\002" + " \002(\t\022\r\n\005extra\030\003 \001(\t\":\n\014Conversation\022\014\n\004t" + "ype\030\001 \002(\005\022\016\n\006target\030\002 \002(\t\022\014\n\004line\030\003 \002(\005\"" + "\321\002\n\tGroupInfo\022\021\n\ttarget_id\030\001 \001(\t\022\014\n\004name" + "\030\002 \002(\t\022\020\n\010portrait\030\003 \001(\t\022\r\n\005owner\030\004 \001(\t\022" + "\014\n\004type\030\005 \002(\005\022\024\n\014member_count\030\006 \001(\005\022\r\n\005e" + "xtra\030\007 \001(\t\022\021\n\tupdate_dt\030\010 \001(\003\022\030\n\020member_" + "update_dt\030\t \001(\003\022\014\n\004mute\030\n \001(\005\022\021\n\tjoin_ty" + "pe\030\013 \001(\005\022\024\n\014private_chat\030\014 \001(\005\022\022\n\nsearch", "able\030\r \001(\005\022\030\n\020max_member_count\030\016 \001(\005\022\027\n\017" + "history_message\030\017 \001(\005\022\023\n\013super_group\030\020 \001" + "(\005\022\017\n\007deleted\030\021 \001(\005\"r\n\013GroupMember\022\021\n\tme" + "mber_id\030\001 \002(\t\022\r\n\005alias\030\002 \001(\t\022\014\n\004type\030\003 \002" + "(\005\022\021\n\tupdate_dt\030\004 \001(\003\022\021\n\tcreate_dt\030\005 \001(\003" + "\022\r\n\005extra\030\006 \001(\t\"F\n\005Group\022\036\n\ngroup_info\030\001" + " \002(\0132\n.GroupInfo\022\035\n\007members\030\002 \003(\0132\014.Grou" + "pMember\"\313\001\n\013ChannelMenu\022\014\n\004type\030\001 \002(\t\022\014\n" + "\004name\030\002 \002(\t\022\013\n\003key\030\003 \001(\t\022\013\n\003url\030\004 \001(\t\022\020\n" + "\010media_id\030\005 \001(\t\022\022\n\narticle_id\030\006 \001(\t\022\016\n\006a", "pp_id\030\007 \001(\t\022\020\n\010app_page\030\010 \001(\t\022\036\n\010sub_men" + "u\030\t \003(\0132\014.ChannelMenu\022\017\n\007menu_id\030\n \001(\t\022\r" + "\n\005extra\030\013 \001(\t\"-\n\017ChannelMenuList\022\032\n\004menu" + "\030\001 \003(\0132\014.ChannelMenu\"\340\001\n\013ChannelInfo\022\021\n\t" + "target_id\030\001 \001(\t\022\014\n\004name\030\002 \002(\t\022\020\n\010portrai" + "t\030\003 \001(\t\022\r\n\005owner\030\004 \001(\t\022\016\n\006status\030\005 \001(\005\022\014" + "\n\004desc\030\006 \001(\t\022\r\n\005extra\030\007 \001(\t\022\021\n\tupdate_dt" + "\030\010 \001(\003\022\016\n\006secret\030\t \001(\t\022\020\n\010callback\030\n \001(\t" + "\022\021\n\tautomatic\030\013 \001(\005\022\032\n\004menu\030\014 \003(\0132\014.Chan" + "nelMenu\"D\n\021ModifyChannelInfo\022\022\n\nchannel_", "id\030\001 \002(\t\022\014\n\004type\030\002 \002(\005\022\r\n\005value\030\003 \002(\t\"8\n" + "\017TransferChannel\022\022\n\nchannel_id\030\001 \002(\t\022\021\n\t" + "new_owner\030\002 \002(\t\"3\n\017PullChannelInfo\022\022\n\nch" + "annel_id\030\001 \002(\t\022\014\n\004head\030\002 \002(\003\"H\n\023PullChan" + "nelListener\022\022\n\nchannel_id\030\001 \002(\t\022\016\n\006offse" + "t\030\002 \002(\005\022\r\n\005count\030\003 \002(\005\"R\n\031PullChannelLis" + "tenerResult\022\023\n\013total_count\030\001 \002(\005\022\016\n\006offs" + "et\030\002 \002(\005\022\020\n\010listener\030\003 \003(\t\"3\n\rListenChan" + "nel\022\022\n\nchannel_id\030\001 \002(\t\022\016\n\006listen\030\002 \002(\005\"" + "E\n\023SearchChannelResult\022\035\n\007channel\030\001 \003(\0132", "\014.ChannelInfo\022\017\n\007keyword\030\002 \002(\t\"\235\002\n\016Messa" + "geContent\022\014\n\004type\030\001 \002(\005\022\032\n\022searchable_co" + "ntent\030\002 \001(\t\022\024\n\014push_content\030\003 \001(\t\022\017\n\007con" + "tent\030\004 \001(\t\022\014\n\004data\030\005 \001(\014\022\021\n\tmediaType\030\006 " + "\001(\005\022\026\n\016remoteMediaUrl\030\007 \001(\t\022\024\n\014persist_f" + "lag\030\010 \001(\005\022\027\n\017expire_duration\030\t \001(\005\022\026\n\016me" + "ntioned_type\030\n \001(\005\022\030\n\020mentioned_target\030\013" + " \003(\t\022\r\n\005extra\030\014 \001(\t\022\021\n\tpush_data\030\r \001(\t\"\226" + "\001\n\025AddGroupMemberRequest\022\020\n\010group_id\030\001 \002" + "(\t\022\"\n\014added_member\030\002 \003(\0132\014.GroupMember\022\017", "\n\007to_line\030\003 \003(\005\022\'\n\016notify_content\030\004 \001(\0132" + "\017.MessageContent\022\r\n\005extra\030\005 \001(\t\"{\n\022Creat" + "eGroupRequest\022\025\n\005group\030\001 \002(\0132\006.Group\022\017\n\007" + "to_line\030\002 \003(\005\022\'\n\016notify_content\030\003 \001(\0132\017." + "MessageContent\022\024\n\014member_extra\030\004 \001(\t\"a\n\023" + "DismissGroupRequest\022\020\n\010group_id\030\001 \002(\t\022\017\n" + "\007to_line\030\002 \003(\005\022\'\n\016notify_content\030\003 \001(\0132\017" + ".MessageContent\"\245\001\n\rFriendRequest\022\020\n\010fro" + "m_uid\030\001 \001(\t\022\016\n\006to_uid\030\002 \002(\t\022\016\n\006reason\030\003 " + "\002(\t\022\016\n\006status\030\004 \001(\005\022\021\n\tupdate_dt\030\005 \001(\003\022\030", "\n\020from_read_status\030\006 \001(\010\022\026\n\016to_read_stat" + "us\030\007 \001(\010\022\r\n\005extra\030\010 \001(\t\"#\n\rGeneralResult" + "\022\022\n\nerror_code\030\001 \002(\005\"?\n\025GetUploadTokenRe" + "quest\022\022\n\nmedia_type\030\001 \002(\005\022\022\n\nmedia_path\030" + "\002 \002(\t\"S\n\024GetUploadTokenResult\022\016\n\006domain\030" + "\001 \002(\t\022\r\n\005token\030\002 \002(\t\022\016\n\006server\030\003 \002(\t\022\014\n\004" + "port\030\004 \001(\005\"H\n\023HandleFriendRequest\022\022\n\ntar" + "get_uid\030\001 \002(\t\022\016\n\006status\030\002 \002(\005\022\r\n\005extra\030\003" + " \001(\t\"\023\n\005IDBuf\022\n\n\002id\030\001 \002(\t\"\027\n\tIDListBuf\022\n" + "\n\002id\030\001 \003(\t\"\256\001\n\007Message\022#\n\014conversation\030\001", " \002(\0132\r.Conversation\022\021\n\tfrom_user\030\002 \002(\t\022 " + "\n\007content\030\003 \002(\0132\017.MessageContent\022\022\n\nmess" + "age_id\030\004 \001(\003\022\030\n\020server_timestamp\030\005 \001(\003\022\017" + "\n\007to_user\030\006 \001(\t\022\n\n\002to\030\007 \003(\t\"\353\001\n\004User\022\013\n\003" + "uid\030\001 \002(\t\022\014\n\004name\030\002 \001(\t\022\024\n\014display_name\030" + "\003 \001(\t\022\020\n\010portrait\030\004 \001(\t\022\016\n\006mobile\030\005 \001(\t\022" + "\r\n\005email\030\006 \001(\t\022\017\n\007address\030\007 \001(\t\022\017\n\007compa" + "ny\030\010 \001(\t\022\r\n\005extra\030\t \001(\t\022\021\n\tupdate_dt\030\n \001" + "(\003\022\016\n\006gender\030\013 \001(\005\022\016\n\006social\030\014 \001(\t\022\014\n\004ty" + "pe\030\r \001(\005\022\017\n\007deleted\030\016 \001(\005\"c\n\005Robot\022\013\n\003ui", "d\030\001 \002(\t\022\r\n\005state\030\002 \002(\005\022\r\n\005owner\030\003 \001(\t\022\016\n" + "\006secret\030\004 \001(\t\022\020\n\010callback\030\005 \001(\t\022\r\n\005extra" + "\030\006 \001(\t\"(\n\017GetRobotsResult\022\025\n\005entry\030\001 \003(\013" + "2\006.Robot\"g\n\030UploadDeviceTokenRequest\022\020\n\010" + "platform\030\001 \002(\005\022\020\n\010app_name\030\002 \002(\t\022\024\n\014devi" + "ce_token\030\003 \002(\t\022\021\n\tpush_type\030\004 \002(\005\"\201\001\n\026Mo" + "difyGroupInfoRequest\022\020\n\010group_id\030\001 \002(\t\022\014" + "\n\004type\030\002 \002(\005\022\r\n\005value\030\003 \002(\t\022\017\n\007to_line\030\004" + " \003(\005\022\'\n\016notify_content\030\005 \001(\0132\017.MessageCo" + "ntent\"\203\001\n\026SetGroupManagerRequest\022\020\n\010grou", "p_id\030\001 \002(\t\022\014\n\004type\030\002 \002(\005\022\017\n\007user_id\030\003 \003(" + "\t\022\017\n\007to_line\030\004 \003(\005\022\'\n\016notify_content\030\005 \001" + "(\0132\017.MessageContent\"(\n\tInfoEntry\022\014\n\004type" + "\030\001 \002(\005\022\r\n\005value\030\002 \002(\t\"0\n\023ModifyMyInfoReq" + "uest\022\031\n\005entry\030\001 \003(\0132\n.InfoEntry\";\n\rNotif" + "yMessage\022\014\n\004type\030\001 \002(\005\022\014\n\004head\030\002 \002(\003\022\016\n\006" + "target\030\003 \001(\t\"=\n\022PullMessageRequest\022\n\n\002id" + "\030\001 \002(\003\022\014\n\004type\030\002 \002(\005\022\r\n\005delay\030\003 \001(\003\"M\n\021P" + "ullMessageResult\022\031\n\007message\030\001 \003(\0132\010.Mess" + "age\022\017\n\007current\030\002 \002(\003\022\014\n\004head\030\003 \002(\003\"/\n\023Pu", "llGroupInfoResult\022\030\n\004info\030\001 \003(\0132\n.GroupI" + "nfo\"6\n\026PullGroupMemberRequest\022\016\n\006target\030" + "\001 \002(\t\022\014\n\004head\030\002 \002(\003\"5\n\025PullGroupMemberRe" + "sult\022\034\n\006member\030\001 \003(\0132\014.GroupMember\"-\n\013Us" + "erRequest\022\013\n\003uid\030\001 \002(\t\022\021\n\tupdate_dt\030\002 \001(" + "\003\"0\n\017PullUserRequest\022\035\n\007request\030\001 \003(\0132\014." + "UserRequest\"/\n\nUserResult\022\023\n\004user\030\001 \002(\0132" + "\005.User\022\014\n\004code\030\002 \002(\005\"-\n\016PullUserResult\022\033" + "\n\006result\030\001 \003(\0132\013.UserResult\"p\n\020QuitGroup" + "Request\022\020\n\010group_id\030\001 \002(\t\022\017\n\007to_line\030\002 \003", "(\005\022\'\n\016notify_content\030\003 \001(\0132\017.MessageCont" + "ent\022\020\n\010keep_msg\030\004 \001(\005\"~\n\030RemoveGroupMemb" + "erRequest\022\020\n\010group_id\030\001 \002(\t\022\026\n\016removed_m" + "ember\030\002 \003(\t\022\017\n\007to_line\030\003 \003(\005\022\'\n\016notify_c" + "ontent\030\004 \001(\0132\017.MessageContent\"u\n\024Transfe" + "rGroupRequest\022\020\n\010group_id\030\001 \002(\t\022\021\n\tnew_o" + "wner\030\002 \002(\t\022\017\n\007to_line\030\003 \003(\005\022\'\n\016notify_co" + "ntent\030\004 \001(\0132\017.MessageContent\"\206\001\n\026ModifyG" + "roupMemberAlias\022\020\n\010group_id\030\001 \002(\t\022\r\n\005ali" + "as\030\002 \002(\t\022\017\n\007to_line\030\003 \003(\005\022\'\n\016notify_cont", "ent\030\004 \001(\0132\017.MessageContent\022\021\n\tmember_id\030" + "\005 \001(\t\"\206\001\n\026ModifyGroupMemberExtra\022\020\n\010grou" + "p_id\030\001 \002(\t\022\017\n\007to_line\030\002 \003(\005\022\'\n\016notify_co" + "ntent\030\003 \001(\0132\017.MessageContent\022\r\n\005extra\030\004 " + "\001(\t\022\021\n\tmember_id\030\005 \001(\t\"P\n\020UserSettingEnt" + "ry\022\r\n\005scope\030\001 \002(\005\022\013\n\003key\030\002 \002(\t\022\r\n\005value\030" + "\003 \002(\t\022\021\n\tupdate_dt\030\004 \002(\003\"A\n\024ModifyUserSe" + "ttingReq\022\r\n\005scope\030\001 \002(\005\022\013\n\003key\030\002 \002(\t\022\r\n\005" + "value\030\003 \002(\t\"\032\n\007Version\022\017\n\007version\030\001 \002(\003\"" + "8\n\024GetUserSettingResult\022 \n\005entry\030\001 \003(\0132\021", ".UserSettingEntry\"f\n\006Friend\022\013\n\003uid\030\001 \002(\t" + "\022\r\n\005state\030\002 \002(\005\022\021\n\tupdate_dt\030\003 \002(\003\022\r\n\005al" + "ias\030\004 \001(\t\022\017\n\007blacked\030\005 \001(\005\022\r\n\005extra\030\006 \001(" + "\t\"*\n\020GetFriendsResult\022\026\n\005entry\030\001 \003(\0132\007.F" + "riend\"7\n\026GetFriendRequestResult\022\035\n\005entry" + "\030\001 \003(\0132\016.FriendRequest\"\243\001\n\021ConnectAckPay" + "load\022\020\n\010msg_head\030\001 \001(\003\022\023\n\013friend_head\030\002 " + "\001(\003\022\026\n\016friend_rq_head\030\003 \001(\003\022\024\n\014setting_h" + "ead\030\004 \001(\003\022\021\n\tnode_addr\030\005 \001(\t\022\021\n\tnode_por" + "t\030\006 \001(\005\022\023\n\013server_time\030\007 \001(\003\"P\n\rIMHttpWr", "apper\022\r\n\005token\030\001 \002(\t\022\021\n\tclient_id\030\002 \002(\t\022" + "\017\n\007request\030\003 \002(\t\022\014\n\004data\030\004 \001(\014\"b\n\021Search" + "UserRequest\022\017\n\007keyword\030\001 \002(\t\022\r\n\005fuzzy\030\002 " + "\001(\005\022\014\n\004page\030\003 \001(\005\022\021\n\tdomain_id\030\004 \001(\t\022\014\n\004" + "type\030\005 \001(\005\"(\n\020SearchUserResult\022\024\n\005entry\030" + "\001 \003(\0132\005.User\"@\n\026GetChatroomInfoRequest\022\023" + "\n\013chatroom_id\030\001 \002(\t\022\021\n\tupdate_dt\030\002 \001(\003\"\227" + "\001\n\014ChatroomInfo\022\r\n\005title\030\001 \002(\t\022\014\n\004desc\030\002" + " \001(\t\022\020\n\010portrait\030\003 \001(\t\022\024\n\014member_count\030\004" + " \001(\005\022\021\n\tcreate_dt\030\005 \001(\003\022\021\n\tupdate_dt\030\006 \001", "(\003\022\r\n\005extra\030\007 \001(\t\022\r\n\005state\030\010 \001(\005\"F\n\034GetC" + "hatroomMemberInfoRequest\022\023\n\013chatroom_id\030" + "\001 \002(\t\022\021\n\tmax_count\030\002 \001(\005\";\n\022ChatroomMemb" + "erInfo\022\024\n\014member_count\030\001 \001(\005\022\017\n\007members\030" + "\002 \003(\t\"\026\n\010INT64Buf\022\n\n\002id\030\001 \002(\003\"4\n\023NotifyR" + "ecallMessage\022\n\n\002id\030\001 \002(\003\022\021\n\tfrom_user\030\002 " + "\002(\t\"/\n\020BlackUserRequest\022\013\n\003uid\030\001 \002(\t\022\016\n\006" + "status\030\002 \002(\005\"\323\001\n\014RouteRequest\022\013\n\003app\030\001 \001" + "(\t\022\020\n\010platform\030\002 \001(\005\022\021\n\tpush_type\030\003 \001(\005\022" + "\023\n\013device_name\030\004 \001(\t\022\026\n\016device_version\030\005", " \001(\t\022\022\n\nphone_name\030\006 \001(\t\022\020\n\010language\030\007 \001" + "(\t\022\024\n\014carrier_name\030\010 \001(\t\022\023\n\013app_version\030" + "\t \001(\t\022\023\n\013sdk_version\030\n \001(\t\"D\n\rRouteRespo" + "nse\022\014\n\004host\030\001 \002(\t\022\021\n\tlong_port\030\002 \002(\005\022\022\n\n" + "short_port\030\003 \002(\005\"G\n\017GetTokenRequest\022\017\n\007u" + "ser_id\030\001 \002(\t\022\021\n\tclient_id\030\002 \002(\t\022\020\n\010platf" + "orm\030\003 \001(\005\"r\n\022LoadRemoteMessages\022#\n\014conve" + "rsation\030\001 \002(\0132\r.Conversation\022\022\n\nbefore_u" + "id\030\002 \002(\003\022\r\n\005count\030\003 \002(\005\022\024\n\014content_type\030" + "\004 \003(\005\"a\n\020MultiCastMessage\022\021\n\tfrom_user\030\001", " \002(\t\022 \n\007content\030\002 \002(\0132\017.MessageContent\022\n" + "\n\002to\030\003 \003(\t\022\014\n\004line\030\004 \002(\005\"E\n\035RecallMultiC" + "astMessageRequest\022\022\n\nmessage_id\030\001 \002(\003\022\020\n" + "\010receiver\030\002 \003(\t\"@\n\017AuthCodeRequest\022\021\n\tta" + "rget_id\030\001 \002(\t\022\014\n\004type\030\002 \002(\005\022\014\n\004host\030\003 \002(" + "\t\"o\n\030ApplicationConfigRequest\022\r\n\005appId\030\001" + " \002(\t\022\017\n\007appType\030\002 \002(\005\022\021\n\ttimestamp\030\003 \002(\003" + "\022\r\n\005nonce\030\004 \002(\t\022\021\n\tsignature\030\005 \002(\t\"(\n\nSt" + "ringPair\022\013\n\003key\030\001 \002(\t\022\r\n\005value\030\002 \001(\tB/\n\025" + "cn.wildfirechat.protoB\nWFCMessageZ\n./go;", "proto" }; 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_AddFriendRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_AddFriendRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_AddFriendRequest_descriptor, new java.lang.String[] { "TargetUid", "Reason", "Extra", }); internal_static_Conversation_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Conversation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Conversation_descriptor, new java.lang.String[] { "Type", "Target", "Line", }); internal_static_GroupInfo_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_GroupInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_GroupInfo_descriptor, new java.lang.String[] { "TargetId", "Name", "Portrait", "Owner", "Type", "MemberCount", "Extra", "UpdateDt", "MemberUpdateDt", "Mute", "JoinType", "PrivateChat", "Searchable", "MaxMemberCount", "HistoryMessage", "SuperGroup", "Deleted", }); internal_static_GroupMember_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_GroupMember_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_GroupMember_descriptor, new java.lang.String[] { "MemberId", "Alias", "Type", "UpdateDt", "CreateDt", "Extra", }); internal_static_Group_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_Group_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Group_descriptor, new java.lang.String[] { "GroupInfo", "Members", }); internal_static_ChannelMenu_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_ChannelMenu_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ChannelMenu_descriptor, new java.lang.String[] { "Type", "Name", "Key", "Url", "MediaId", "ArticleId", "AppId", "AppPage", "SubMenu", "MenuId", "Extra", }); internal_static_ChannelMenuList_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_ChannelMenuList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ChannelMenuList_descriptor, new java.lang.String[] { "Menu", }); internal_static_ChannelInfo_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_ChannelInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ChannelInfo_descriptor, new java.lang.String[] { "TargetId", "Name", "Portrait", "Owner", "Status", "Desc", "Extra", "UpdateDt", "Secret", "Callback", "Automatic", "Menu", }); internal_static_ModifyChannelInfo_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_ModifyChannelInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ModifyChannelInfo_descriptor, new java.lang.String[] { "ChannelId", "Type", "Value", }); internal_static_TransferChannel_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_TransferChannel_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_TransferChannel_descriptor, new java.lang.String[] { "ChannelId", "NewOwner", }); internal_static_PullChannelInfo_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_PullChannelInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_PullChannelInfo_descriptor, new java.lang.String[] { "ChannelId", "Head", }); internal_static_PullChannelListener_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_PullChannelListener_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_PullChannelListener_descriptor, new java.lang.String[] { "ChannelId", "Offset", "Count", }); internal_static_PullChannelListenerResult_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_PullChannelListenerResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_PullChannelListenerResult_descriptor, new java.lang.String[] { "TotalCount", "Offset", "Listener", }); internal_static_ListenChannel_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_ListenChannel_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ListenChannel_descriptor, new java.lang.String[] { "ChannelId", "Listen", }); internal_static_SearchChannelResult_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_SearchChannelResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_SearchChannelResult_descriptor, new java.lang.String[] { "Channel", "Keyword", }); internal_static_MessageContent_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_MessageContent_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_MessageContent_descriptor, new java.lang.String[] { "Type", "SearchableContent", "PushContent", "Content", "Data", "MediaType", "RemoteMediaUrl", "PersistFlag", "ExpireDuration", "MentionedType", "MentionedTarget", "Extra", "PushData", }); internal_static_AddGroupMemberRequest_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_AddGroupMemberRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_AddGroupMemberRequest_descriptor, new java.lang.String[] { "GroupId", "AddedMember", "ToLine", "NotifyContent", "Extra", }); internal_static_CreateGroupRequest_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_CreateGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_CreateGroupRequest_descriptor, new java.lang.String[] { "Group", "ToLine", "NotifyContent", "MemberExtra", }); internal_static_DismissGroupRequest_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_DismissGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_DismissGroupRequest_descriptor, new java.lang.String[] { "GroupId", "ToLine", "NotifyContent", }); internal_static_FriendRequest_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_FriendRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_FriendRequest_descriptor, new java.lang.String[] { "FromUid", "ToUid", "Reason", "Status", "UpdateDt", "FromReadStatus", "ToReadStatus", "Extra", }); internal_static_GeneralResult_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_GeneralResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_GeneralResult_descriptor, new java.lang.String[] { "ErrorCode", }); internal_static_GetUploadTokenRequest_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_GetUploadTokenRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_GetUploadTokenRequest_descriptor, new java.lang.String[] { "MediaType", "MediaPath", }); internal_static_GetUploadTokenResult_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_GetUploadTokenResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_GetUploadTokenResult_descriptor, new java.lang.String[] { "Domain", "Token", "Server", "Port", }); internal_static_HandleFriendRequest_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_HandleFriendRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_HandleFriendRequest_descriptor, new java.lang.String[] { "TargetUid", "Status", "Extra", }); internal_static_IDBuf_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_IDBuf_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_IDBuf_descriptor, new java.lang.String[] { "Id", }); internal_static_IDListBuf_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_IDListBuf_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_IDListBuf_descriptor, new java.lang.String[] { "Id", }); internal_static_Message_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_Message_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Message_descriptor, new java.lang.String[] { "Conversation", "FromUser", "Content", "MessageId", "ServerTimestamp", "ToUser", "To", }); internal_static_User_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_User_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_User_descriptor, new java.lang.String[] { "Uid", "Name", "DisplayName", "Portrait", "Mobile", "Email", "Address", "Company", "Extra", "UpdateDt", "Gender", "Social", "Type", "Deleted", }); internal_static_Robot_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_Robot_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Robot_descriptor, new java.lang.String[] { "Uid", "State", "Owner", "Secret", "Callback", "Extra", }); internal_static_GetRobotsResult_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_GetRobotsResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_GetRobotsResult_descriptor, new java.lang.String[] { "Entry", }); internal_static_UploadDeviceTokenRequest_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_UploadDeviceTokenRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_UploadDeviceTokenRequest_descriptor, new java.lang.String[] { "Platform", "AppName", "DeviceToken", "PushType", }); internal_static_ModifyGroupInfoRequest_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_ModifyGroupInfoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ModifyGroupInfoRequest_descriptor, new java.lang.String[] { "GroupId", "Type", "Value", "ToLine", "NotifyContent", }); internal_static_SetGroupManagerRequest_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_SetGroupManagerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_SetGroupManagerRequest_descriptor, new java.lang.String[] { "GroupId", "Type", "UserId", "ToLine", "NotifyContent", }); internal_static_InfoEntry_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_InfoEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_InfoEntry_descriptor, new java.lang.String[] { "Type", "Value", }); internal_static_ModifyMyInfoRequest_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_ModifyMyInfoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ModifyMyInfoRequest_descriptor, new java.lang.String[] { "Entry", }); internal_static_NotifyMessage_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_NotifyMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_NotifyMessage_descriptor, new java.lang.String[] { "Type", "Head", "Target", }); internal_static_PullMessageRequest_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_PullMessageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_PullMessageRequest_descriptor, new java.lang.String[] { "Id", "Type", "Delay", }); internal_static_PullMessageResult_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_PullMessageResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_PullMessageResult_descriptor, new java.lang.String[] { "Message", "Current", "Head", }); internal_static_PullGroupInfoResult_descriptor = getDescriptor().getMessageTypes().get(38); internal_static_PullGroupInfoResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_PullGroupInfoResult_descriptor, new java.lang.String[] { "Info", }); internal_static_PullGroupMemberRequest_descriptor = getDescriptor().getMessageTypes().get(39); internal_static_PullGroupMemberRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_PullGroupMemberRequest_descriptor, new java.lang.String[] { "Target", "Head", }); internal_static_PullGroupMemberResult_descriptor = getDescriptor().getMessageTypes().get(40); internal_static_PullGroupMemberResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_PullGroupMemberResult_descriptor, new java.lang.String[] { "Member", }); internal_static_UserRequest_descriptor = getDescriptor().getMessageTypes().get(41); internal_static_UserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_UserRequest_descriptor, new java.lang.String[] { "Uid", "UpdateDt", }); internal_static_PullUserRequest_descriptor = getDescriptor().getMessageTypes().get(42); internal_static_PullUserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_PullUserRequest_descriptor, new java.lang.String[] { "Request", }); internal_static_UserResult_descriptor = getDescriptor().getMessageTypes().get(43); internal_static_UserResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_UserResult_descriptor, new java.lang.String[] { "User", "Code", }); internal_static_PullUserResult_descriptor = getDescriptor().getMessageTypes().get(44); internal_static_PullUserResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_PullUserResult_descriptor, new java.lang.String[] { "Result", }); internal_static_QuitGroupRequest_descriptor = getDescriptor().getMessageTypes().get(45); internal_static_QuitGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_QuitGroupRequest_descriptor, new java.lang.String[] { "GroupId", "ToLine", "NotifyContent", "KeepMsg", }); internal_static_RemoveGroupMemberRequest_descriptor = getDescriptor().getMessageTypes().get(46); internal_static_RemoveGroupMemberRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RemoveGroupMemberRequest_descriptor, new java.lang.String[] { "GroupId", "RemovedMember", "ToLine", "NotifyContent", }); internal_static_TransferGroupRequest_descriptor = getDescriptor().getMessageTypes().get(47); internal_static_TransferGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_TransferGroupRequest_descriptor, new java.lang.String[] { "GroupId", "NewOwner", "ToLine", "NotifyContent", }); internal_static_ModifyGroupMemberAlias_descriptor = getDescriptor().getMessageTypes().get(48); internal_static_ModifyGroupMemberAlias_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ModifyGroupMemberAlias_descriptor, new java.lang.String[] { "GroupId", "Alias", "ToLine", "NotifyContent", "MemberId", }); internal_static_ModifyGroupMemberExtra_descriptor = getDescriptor().getMessageTypes().get(49); internal_static_ModifyGroupMemberExtra_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ModifyGroupMemberExtra_descriptor, new java.lang.String[] { "GroupId", "ToLine", "NotifyContent", "Extra", "MemberId", }); internal_static_UserSettingEntry_descriptor = getDescriptor().getMessageTypes().get(50); internal_static_UserSettingEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_UserSettingEntry_descriptor, new java.lang.String[] { "Scope", "Key", "Value", "UpdateDt", }); internal_static_ModifyUserSettingReq_descriptor = getDescriptor().getMessageTypes().get(51); internal_static_ModifyUserSettingReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ModifyUserSettingReq_descriptor, new java.lang.String[] { "Scope", "Key", "Value", }); internal_static_Version_descriptor = getDescriptor().getMessageTypes().get(52); internal_static_Version_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Version_descriptor, new java.lang.String[] { "Version", }); internal_static_GetUserSettingResult_descriptor = getDescriptor().getMessageTypes().get(53); internal_static_GetUserSettingResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_GetUserSettingResult_descriptor, new java.lang.String[] { "Entry", }); internal_static_Friend_descriptor = getDescriptor().getMessageTypes().get(54); internal_static_Friend_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_Friend_descriptor, new java.lang.String[] { "Uid", "State", "UpdateDt", "Alias", "Blacked", "Extra", }); internal_static_GetFriendsResult_descriptor = getDescriptor().getMessageTypes().get(55); internal_static_GetFriendsResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_GetFriendsResult_descriptor, new java.lang.String[] { "Entry", }); internal_static_GetFriendRequestResult_descriptor = getDescriptor().getMessageTypes().get(56); internal_static_GetFriendRequestResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_GetFriendRequestResult_descriptor, new java.lang.String[] { "Entry", }); internal_static_ConnectAckPayload_descriptor = getDescriptor().getMessageTypes().get(57); internal_static_ConnectAckPayload_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ConnectAckPayload_descriptor, new java.lang.String[] { "MsgHead", "FriendHead", "FriendRqHead", "SettingHead", "NodeAddr", "NodePort", "ServerTime", }); internal_static_IMHttpWrapper_descriptor = getDescriptor().getMessageTypes().get(58); internal_static_IMHttpWrapper_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_IMHttpWrapper_descriptor, new java.lang.String[] { "Token", "ClientId", "Request", "Data", }); internal_static_SearchUserRequest_descriptor = getDescriptor().getMessageTypes().get(59); internal_static_SearchUserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_SearchUserRequest_descriptor, new java.lang.String[] { "Keyword", "Fuzzy", "Page", "DomainId", "Type", }); internal_static_SearchUserResult_descriptor = getDescriptor().getMessageTypes().get(60); internal_static_SearchUserResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_SearchUserResult_descriptor, new java.lang.String[] { "Entry", }); internal_static_GetChatroomInfoRequest_descriptor = getDescriptor().getMessageTypes().get(61); internal_static_GetChatroomInfoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_GetChatroomInfoRequest_descriptor, new java.lang.String[] { "ChatroomId", "UpdateDt", }); internal_static_ChatroomInfo_descriptor = getDescriptor().getMessageTypes().get(62); internal_static_ChatroomInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ChatroomInfo_descriptor, new java.lang.String[] { "Title", "Desc", "Portrait", "MemberCount", "CreateDt", "UpdateDt", "Extra", "State", }); internal_static_GetChatroomMemberInfoRequest_descriptor = getDescriptor().getMessageTypes().get(63); internal_static_GetChatroomMemberInfoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_GetChatroomMemberInfoRequest_descriptor, new java.lang.String[] { "ChatroomId", "MaxCount", }); internal_static_ChatroomMemberInfo_descriptor = getDescriptor().getMessageTypes().get(64); internal_static_ChatroomMemberInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ChatroomMemberInfo_descriptor, new java.lang.String[] { "MemberCount", "Members", }); internal_static_INT64Buf_descriptor = getDescriptor().getMessageTypes().get(65); internal_static_INT64Buf_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_INT64Buf_descriptor, new java.lang.String[] { "Id", }); internal_static_NotifyRecallMessage_descriptor = getDescriptor().getMessageTypes().get(66); internal_static_NotifyRecallMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_NotifyRecallMessage_descriptor, new java.lang.String[] { "Id", "FromUser", }); internal_static_BlackUserRequest_descriptor = getDescriptor().getMessageTypes().get(67); internal_static_BlackUserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_BlackUserRequest_descriptor, new java.lang.String[] { "Uid", "Status", }); internal_static_RouteRequest_descriptor = getDescriptor().getMessageTypes().get(68); internal_static_RouteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RouteRequest_descriptor, new java.lang.String[] { "App", "Platform", "PushType", "DeviceName", "DeviceVersion", "PhoneName", "Language", "CarrierName", "AppVersion", "SdkVersion", }); internal_static_RouteResponse_descriptor = getDescriptor().getMessageTypes().get(69); internal_static_RouteResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RouteResponse_descriptor, new java.lang.String[] { "Host", "LongPort", "ShortPort", }); internal_static_GetTokenRequest_descriptor = getDescriptor().getMessageTypes().get(70); internal_static_GetTokenRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_GetTokenRequest_descriptor, new java.lang.String[] { "UserId", "ClientId", "Platform", }); internal_static_LoadRemoteMessages_descriptor = getDescriptor().getMessageTypes().get(71); internal_static_LoadRemoteMessages_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_LoadRemoteMessages_descriptor, new java.lang.String[] { "Conversation", "BeforeUid", "Count", "ContentType", }); internal_static_MultiCastMessage_descriptor = getDescriptor().getMessageTypes().get(72); internal_static_MultiCastMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_MultiCastMessage_descriptor, new java.lang.String[] { "FromUser", "Content", "To", "Line", }); internal_static_RecallMultiCastMessageRequest_descriptor = getDescriptor().getMessageTypes().get(73); internal_static_RecallMultiCastMessageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_RecallMultiCastMessageRequest_descriptor, new java.lang.String[] { "MessageId", "Receiver", }); internal_static_AuthCodeRequest_descriptor = getDescriptor().getMessageTypes().get(74); internal_static_AuthCodeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_AuthCodeRequest_descriptor, new java.lang.String[] { "TargetId", "Type", "Host", }); internal_static_ApplicationConfigRequest_descriptor = getDescriptor().getMessageTypes().get(75); internal_static_ApplicationConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_ApplicationConfigRequest_descriptor, new java.lang.String[] { "AppId", "AppType", "Timestamp", "Nonce", "Signature", }); internal_static_StringPair_descriptor = getDescriptor().getMessageTypes().get(76); internal_static_StringPair_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_StringPair_descriptor, new java.lang.String[] { "Key", "Value", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }