// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ChangeGroupMsg.proto package protocol.Msg; public final class ChangeGroupMsg { private ChangeGroupMsg() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface ChangeGroupReqOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string groupId = 1; /** * <code>required string groupId = 1;</code> */ boolean hasGroupId(); /** * <code>required string groupId = 1;</code> */ java.lang.String getGroupId(); /** * <code>required string groupId = 1;</code> */ com.google.protobuf.ByteString getGroupIdBytes(); // required .protocol.ChangeGroupReq.ChangeType changeType = 2; /** * <code>required .protocol.ChangeGroupReq.ChangeType changeType = 2;</code> */ boolean hasChangeType(); /** * <code>required .protocol.ChangeGroupReq.ChangeType changeType = 2;</code> */ protocol.Msg.ChangeGroupMsg.ChangeGroupReq.ChangeType getChangeType(); // repeated string userId = 3; /** * <code>repeated string userId = 3;</code> */ java.util.List<java.lang.String> getUserIdList(); /** * <code>repeated string userId = 3;</code> */ int getUserIdCount(); /** * <code>repeated string userId = 3;</code> */ java.lang.String getUserId(int index); /** * <code>repeated string userId = 3;</code> */ com.google.protobuf.ByteString getUserIdBytes(int index); // optional string groupName = 4; /** * <code>optional string groupName = 4;</code> */ boolean hasGroupName(); /** * <code>optional string groupName = 4;</code> */ java.lang.String getGroupName(); /** * <code>optional string groupName = 4;</code> */ com.google.protobuf.ByteString getGroupNameBytes(); } /** * Protobuf type {@code protocol.ChangeGroupReq} */ public static final class ChangeGroupReq extends com.google.protobuf.GeneratedMessage implements ChangeGroupReqOrBuilder { // Use ChangeGroupReq.newBuilder() to construct. private ChangeGroupReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ChangeGroupReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ChangeGroupReq defaultInstance; public static ChangeGroupReq getDefaultInstance() { return defaultInstance; } public ChangeGroupReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChangeGroupReq( 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: { int rawValue = input.readEnum(); protocol.Msg.ChangeGroupMsg.ChangeGroupReq.ChangeType value = protocol.Msg.ChangeGroupMsg.ChangeGroupReq.ChangeType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; changeType_ = value; } break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { userId_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } userId_.add(input.readBytes()); break; } case 34: { bitField0_ |= 0x00000004; groupName_ = 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)) { userId_ = new com.google.protobuf.UnmodifiableLazyStringList(userId_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protocol.Msg.ChangeGroupMsg.internal_static_protocol_ChangeGroupReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protocol.Msg.ChangeGroupMsg.internal_static_protocol_ChangeGroupReq_fieldAccessorTable .ensureFieldAccessorsInitialized( protocol.Msg.ChangeGroupMsg.ChangeGroupReq.class, protocol.Msg.ChangeGroupMsg.ChangeGroupReq.Builder.class); } public static com.google.protobuf.Parser<ChangeGroupReq> PARSER = new com.google.protobuf.AbstractParser<ChangeGroupReq>() { public ChangeGroupReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChangeGroupReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ChangeGroupReq> getParserForType() { return PARSER; } /** * Protobuf enum {@code protocol.ChangeGroupReq.ChangeType} */ public enum ChangeType implements com.google.protobuf.ProtocolMessageEnum { /** * <code>ADD = 0;</code> */ ADD(0, 0), /** * <code>DELETE = 1;</code> */ DELETE(1, 1), /** * <code>UPDATE_INFO = 2;</code> */ UPDATE_INFO(2, 2), ; /** * <code>ADD = 0;</code> */ public static final int ADD_VALUE = 0; /** * <code>DELETE = 1;</code> */ public static final int DELETE_VALUE = 1; /** * <code>UPDATE_INFO = 2;</code> */ public static final int UPDATE_INFO_VALUE = 2; public final int getNumber() { return value; } public static ChangeType valueOf(int value) { switch (value) { case 0: return ADD; case 1: return DELETE; case 2: return UPDATE_INFO; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<ChangeType> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<ChangeType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<ChangeType>() { public ChangeType findValueByNumber(int number) { return ChangeType.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return protocol.Msg.ChangeGroupMsg.ChangeGroupReq.getDescriptor().getEnumTypes().get(0); } private static final ChangeType[] VALUES = values(); public static ChangeType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private ChangeType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:protocol.ChangeGroupReq.ChangeType) } private int bitField0_; // required string groupId = 1; public static final int GROUPID_FIELD_NUMBER = 1; private java.lang.Object groupId_; /** * <code>required string groupId = 1;</code> */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string groupId = 1;</code> */ 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; } } /** * <code>required string groupId = 1;</code> */ 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 .protocol.ChangeGroupReq.ChangeType changeType = 2; public static final int CHANGETYPE_FIELD_NUMBER = 2; private protocol.Msg.ChangeGroupMsg.ChangeGroupReq.ChangeType changeType_; /** * <code>required .protocol.ChangeGroupReq.ChangeType changeType = 2;</code> */ public boolean hasChangeType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required .protocol.ChangeGroupReq.ChangeType changeType = 2;</code> */ public protocol.Msg.ChangeGroupMsg.ChangeGroupReq.ChangeType getChangeType() { return changeType_; } // repeated string userId = 3; public static final int USERID_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList userId_; /** * <code>repeated string userId = 3;</code> */ public java.util.List<java.lang.String> getUserIdList() { return userId_; } /** * <code>repeated string userId = 3;</code> */ public int getUserIdCount() { return userId_.size(); } /** * <code>repeated string userId = 3;</code> */ public java.lang.String getUserId(int index) { return userId_.get(index); } /** * <code>repeated string userId = 3;</code> */ public com.google.protobuf.ByteString getUserIdBytes(int index) { return userId_.getByteString(index); } // optional string groupName = 4; public static final int GROUPNAME_FIELD_NUMBER = 4; private java.lang.Object groupName_; /** * <code>optional string groupName = 4;</code> */ public boolean hasGroupName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string groupName = 4;</code> */ public java.lang.String getGroupName() { java.lang.Object ref = groupName_; 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()) { groupName_ = s; } return s; } } /** * <code>optional string groupName = 4;</code> */ public com.google.protobuf.ByteString getGroupNameBytes() { java.lang.Object ref = groupName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { groupId_ = ""; changeType_ = protocol.Msg.ChangeGroupMsg.ChangeGroupReq.ChangeType.ADD; userId_ = com.google.protobuf.LazyStringArrayList.EMPTY; groupName_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasGroupId()) { memoizedIsInitialized = 0; return false; } if (!hasChangeType()) { 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.writeEnum(2, changeType_.getNumber()); } for (int i = 0; i < userId_.size(); i++) { output.writeBytes(3, userId_.getByteString(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(4, getGroupNameBytes()); } 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 .computeEnumSize(2, changeType_.getNumber()); } { 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(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getGroupNameBytes()); } 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 protocol.Msg.ChangeGroupMsg.ChangeGroupReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupReq 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(protocol.Msg.ChangeGroupMsg.ChangeGroupReq 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 protocol.ChangeGroupReq} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements protocol.Msg.ChangeGroupMsg.ChangeGroupReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protocol.Msg.ChangeGroupMsg.internal_static_protocol_ChangeGroupReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protocol.Msg.ChangeGroupMsg.internal_static_protocol_ChangeGroupReq_fieldAccessorTable .ensureFieldAccessorsInitialized( protocol.Msg.ChangeGroupMsg.ChangeGroupReq.class, protocol.Msg.ChangeGroupMsg.ChangeGroupReq.Builder.class); } // Construct using protocol.Msg.ChangeGroupMsg.ChangeGroupReq.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(); groupId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); changeType_ = protocol.Msg.ChangeGroupMsg.ChangeGroupReq.ChangeType.ADD; bitField0_ = (bitField0_ & ~0x00000002); userId_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); groupName_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protocol.Msg.ChangeGroupMsg.internal_static_protocol_ChangeGroupReq_descriptor; } public protocol.Msg.ChangeGroupMsg.ChangeGroupReq getDefaultInstanceForType() { return protocol.Msg.ChangeGroupMsg.ChangeGroupReq.getDefaultInstance(); } public protocol.Msg.ChangeGroupMsg.ChangeGroupReq build() { protocol.Msg.ChangeGroupMsg.ChangeGroupReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protocol.Msg.ChangeGroupMsg.ChangeGroupReq buildPartial() { protocol.Msg.ChangeGroupMsg.ChangeGroupReq result = new protocol.Msg.ChangeGroupMsg.ChangeGroupReq(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.changeType_ = changeType_; if (((bitField0_ & 0x00000004) == 0x00000004)) { userId_ = new com.google.protobuf.UnmodifiableLazyStringList( userId_); bitField0_ = (bitField0_ & ~0x00000004); } result.userId_ = userId_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.groupName_ = groupName_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protocol.Msg.ChangeGroupMsg.ChangeGroupReq) { return mergeFrom((protocol.Msg.ChangeGroupMsg.ChangeGroupReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protocol.Msg.ChangeGroupMsg.ChangeGroupReq other) { if (other == protocol.Msg.ChangeGroupMsg.ChangeGroupReq.getDefaultInstance()) return this; if (other.hasGroupId()) { bitField0_ |= 0x00000001; groupId_ = other.groupId_; onChanged(); } if (other.hasChangeType()) { setChangeType(other.getChangeType()); } if (!other.userId_.isEmpty()) { if (userId_.isEmpty()) { userId_ = other.userId_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureUserIdIsMutable(); userId_.addAll(other.userId_); } onChanged(); } if (other.hasGroupName()) { bitField0_ |= 0x00000008; groupName_ = other.groupName_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasGroupId()) { return false; } if (!hasChangeType()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protocol.Msg.ChangeGroupMsg.ChangeGroupReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protocol.Msg.ChangeGroupMsg.ChangeGroupReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string groupId = 1; private java.lang.Object groupId_ = ""; /** * <code>required string groupId = 1;</code> */ public boolean hasGroupId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string groupId = 1;</code> */ 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; } } /** * <code>required string groupId = 1;</code> */ 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; } } /** * <code>required string groupId = 1;</code> */ public Builder setGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } /** * <code>required string groupId = 1;</code> */ public Builder clearGroupId() { bitField0_ = (bitField0_ & ~0x00000001); groupId_ = getDefaultInstance().getGroupId(); onChanged(); return this; } /** * <code>required string groupId = 1;</code> */ public Builder setGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } // required .protocol.ChangeGroupReq.ChangeType changeType = 2; private protocol.Msg.ChangeGroupMsg.ChangeGroupReq.ChangeType changeType_ = protocol.Msg.ChangeGroupMsg.ChangeGroupReq.ChangeType.ADD; /** * <code>required .protocol.ChangeGroupReq.ChangeType changeType = 2;</code> */ public boolean hasChangeType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required .protocol.ChangeGroupReq.ChangeType changeType = 2;</code> */ public protocol.Msg.ChangeGroupMsg.ChangeGroupReq.ChangeType getChangeType() { return changeType_; } /** * <code>required .protocol.ChangeGroupReq.ChangeType changeType = 2;</code> */ public Builder setChangeType(protocol.Msg.ChangeGroupMsg.ChangeGroupReq.ChangeType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; changeType_ = value; onChanged(); return this; } /** * <code>required .protocol.ChangeGroupReq.ChangeType changeType = 2;</code> */ public Builder clearChangeType() { bitField0_ = (bitField0_ & ~0x00000002); changeType_ = protocol.Msg.ChangeGroupMsg.ChangeGroupReq.ChangeType.ADD; onChanged(); return this; } // repeated string userId = 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; } } /** * <code>repeated string userId = 3;</code> */ public java.util.List<java.lang.String> getUserIdList() { return java.util.Collections.unmodifiableList(userId_); } /** * <code>repeated string userId = 3;</code> */ public int getUserIdCount() { return userId_.size(); } /** * <code>repeated string userId = 3;</code> */ public java.lang.String getUserId(int index) { return userId_.get(index); } /** * <code>repeated string userId = 3;</code> */ public com.google.protobuf.ByteString getUserIdBytes(int index) { return userId_.getByteString(index); } /** * <code>repeated string userId = 3;</code> */ public Builder setUserId( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUserIdIsMutable(); userId_.set(index, value); onChanged(); return this; } /** * <code>repeated string userId = 3;</code> */ public Builder addUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUserIdIsMutable(); userId_.add(value); onChanged(); return this; } /** * <code>repeated string userId = 3;</code> */ public Builder addAllUserId( java.lang.Iterable<java.lang.String> values) { ensureUserIdIsMutable(); super.addAll(values, userId_); onChanged(); return this; } /** * <code>repeated string userId = 3;</code> */ public Builder clearUserId() { userId_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * <code>repeated string userId = 3;</code> */ public Builder addUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureUserIdIsMutable(); userId_.add(value); onChanged(); return this; } // optional string groupName = 4; private java.lang.Object groupName_ = ""; /** * <code>optional string groupName = 4;</code> */ public boolean hasGroupName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string groupName = 4;</code> */ public java.lang.String getGroupName() { java.lang.Object ref = groupName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); groupName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string groupName = 4;</code> */ public com.google.protobuf.ByteString getGroupNameBytes() { java.lang.Object ref = groupName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string groupName = 4;</code> */ public Builder setGroupName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; groupName_ = value; onChanged(); return this; } /** * <code>optional string groupName = 4;</code> */ public Builder clearGroupName() { bitField0_ = (bitField0_ & ~0x00000008); groupName_ = getDefaultInstance().getGroupName(); onChanged(); return this; } /** * <code>optional string groupName = 4;</code> */ public Builder setGroupNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; groupName_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protocol.ChangeGroupReq) } static { defaultInstance = new ChangeGroupReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protocol.ChangeGroupReq) } public interface ChangeGroupRspOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .protocol.ChangeGroupRsp.ResultCode resultCode = 1; /** * <code>required .protocol.ChangeGroupRsp.ResultCode resultCode = 1;</code> */ boolean hasResultCode(); /** * <code>required .protocol.ChangeGroupRsp.ResultCode resultCode = 1;</code> */ protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.ResultCode getResultCode(); } /** * Protobuf type {@code protocol.ChangeGroupRsp} */ public static final class ChangeGroupRsp extends com.google.protobuf.GeneratedMessage implements ChangeGroupRspOrBuilder { // Use ChangeGroupRsp.newBuilder() to construct. private ChangeGroupRsp(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ChangeGroupRsp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ChangeGroupRsp defaultInstance; public static ChangeGroupRsp getDefaultInstance() { return defaultInstance; } public ChangeGroupRsp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChangeGroupRsp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.ResultCode value = protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.ResultCode.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; resultCode_ = value; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protocol.Msg.ChangeGroupMsg.internal_static_protocol_ChangeGroupRsp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protocol.Msg.ChangeGroupMsg.internal_static_protocol_ChangeGroupRsp_fieldAccessorTable .ensureFieldAccessorsInitialized( protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.class, protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.Builder.class); } public static com.google.protobuf.Parser<ChangeGroupRsp> PARSER = new com.google.protobuf.AbstractParser<ChangeGroupRsp>() { public ChangeGroupRsp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChangeGroupRsp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ChangeGroupRsp> getParserForType() { return PARSER; } /** * Protobuf enum {@code protocol.ChangeGroupRsp.ResultCode} */ public enum ResultCode implements com.google.protobuf.ProtocolMessageEnum { /** * <code>SUCCESS = 0;</code> */ SUCCESS(0, 0), /** * <code>FAIL = 1;</code> */ FAIL(1, 1), /** * <code>NO_AUTHORITY = 2;</code> */ NO_AUTHORITY(2, 2), ; /** * <code>SUCCESS = 0;</code> */ public static final int SUCCESS_VALUE = 0; /** * <code>FAIL = 1;</code> */ public static final int FAIL_VALUE = 1; /** * <code>NO_AUTHORITY = 2;</code> */ public static final int NO_AUTHORITY_VALUE = 2; public final int getNumber() { return value; } public static ResultCode valueOf(int value) { switch (value) { case 0: return SUCCESS; case 1: return FAIL; case 2: return NO_AUTHORITY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<ResultCode> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<ResultCode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<ResultCode>() { public ResultCode findValueByNumber(int number) { return ResultCode.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.getDescriptor().getEnumTypes().get(0); } private static final ResultCode[] VALUES = values(); public static ResultCode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private ResultCode(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:protocol.ChangeGroupRsp.ResultCode) } private int bitField0_; // required .protocol.ChangeGroupRsp.ResultCode resultCode = 1; public static final int RESULTCODE_FIELD_NUMBER = 1; private protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.ResultCode resultCode_; /** * <code>required .protocol.ChangeGroupRsp.ResultCode resultCode = 1;</code> */ public boolean hasResultCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .protocol.ChangeGroupRsp.ResultCode resultCode = 1;</code> */ public protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.ResultCode getResultCode() { return resultCode_; } private void initFields() { resultCode_ = protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.ResultCode.SUCCESS; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasResultCode()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, resultCode_.getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, resultCode_.getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupRsp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupRsp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupRsp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupRsp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupRsp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupRsp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupRsp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupRsp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupRsp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupRsp 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(protocol.Msg.ChangeGroupMsg.ChangeGroupRsp 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 protocol.ChangeGroupRsp} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements protocol.Msg.ChangeGroupMsg.ChangeGroupRspOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protocol.Msg.ChangeGroupMsg.internal_static_protocol_ChangeGroupRsp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protocol.Msg.ChangeGroupMsg.internal_static_protocol_ChangeGroupRsp_fieldAccessorTable .ensureFieldAccessorsInitialized( protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.class, protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.Builder.class); } // Construct using protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); resultCode_ = protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.ResultCode.SUCCESS; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protocol.Msg.ChangeGroupMsg.internal_static_protocol_ChangeGroupRsp_descriptor; } public protocol.Msg.ChangeGroupMsg.ChangeGroupRsp getDefaultInstanceForType() { return protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.getDefaultInstance(); } public protocol.Msg.ChangeGroupMsg.ChangeGroupRsp build() { protocol.Msg.ChangeGroupMsg.ChangeGroupRsp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protocol.Msg.ChangeGroupMsg.ChangeGroupRsp buildPartial() { protocol.Msg.ChangeGroupMsg.ChangeGroupRsp result = new protocol.Msg.ChangeGroupMsg.ChangeGroupRsp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.resultCode_ = resultCode_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protocol.Msg.ChangeGroupMsg.ChangeGroupRsp) { return mergeFrom((protocol.Msg.ChangeGroupMsg.ChangeGroupRsp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protocol.Msg.ChangeGroupMsg.ChangeGroupRsp other) { if (other == protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.getDefaultInstance()) return this; if (other.hasResultCode()) { setResultCode(other.getResultCode()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasResultCode()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protocol.Msg.ChangeGroupMsg.ChangeGroupRsp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protocol.Msg.ChangeGroupMsg.ChangeGroupRsp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .protocol.ChangeGroupRsp.ResultCode resultCode = 1; private protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.ResultCode resultCode_ = protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.ResultCode.SUCCESS; /** * <code>required .protocol.ChangeGroupRsp.ResultCode resultCode = 1;</code> */ public boolean hasResultCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .protocol.ChangeGroupRsp.ResultCode resultCode = 1;</code> */ public protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.ResultCode getResultCode() { return resultCode_; } /** * <code>required .protocol.ChangeGroupRsp.ResultCode resultCode = 1;</code> */ public Builder setResultCode(protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.ResultCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; resultCode_ = value; onChanged(); return this; } /** * <code>required .protocol.ChangeGroupRsp.ResultCode resultCode = 1;</code> */ public Builder clearResultCode() { bitField0_ = (bitField0_ & ~0x00000001); resultCode_ = protocol.Msg.ChangeGroupMsg.ChangeGroupRsp.ResultCode.SUCCESS; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protocol.ChangeGroupRsp) } static { defaultInstance = new ChangeGroupRsp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protocol.ChangeGroupRsp) } public interface ChangeGroupSyncOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .protocol.GroupItem groupItem = 1; /** * <code>required .protocol.GroupItem groupItem = 1;</code> */ boolean hasGroupItem(); /** * <code>required .protocol.GroupItem groupItem = 1;</code> */ protocol.Data.GroupData.GroupItem getGroupItem(); /** * <code>required .protocol.GroupItem groupItem = 1;</code> */ protocol.Data.GroupData.GroupItemOrBuilder getGroupItemOrBuilder(); } /** * Protobuf type {@code protocol.ChangeGroupSync} */ public static final class ChangeGroupSync extends com.google.protobuf.GeneratedMessage implements ChangeGroupSyncOrBuilder { // Use ChangeGroupSync.newBuilder() to construct. private ChangeGroupSync(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ChangeGroupSync(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ChangeGroupSync defaultInstance; public static ChangeGroupSync getDefaultInstance() { return defaultInstance; } public ChangeGroupSync getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChangeGroupSync( 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: { protocol.Data.GroupData.GroupItem.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = groupItem_.toBuilder(); } groupItem_ = input.readMessage(protocol.Data.GroupData.GroupItem.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(groupItem_); groupItem_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protocol.Msg.ChangeGroupMsg.internal_static_protocol_ChangeGroupSync_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protocol.Msg.ChangeGroupMsg.internal_static_protocol_ChangeGroupSync_fieldAccessorTable .ensureFieldAccessorsInitialized( protocol.Msg.ChangeGroupMsg.ChangeGroupSync.class, protocol.Msg.ChangeGroupMsg.ChangeGroupSync.Builder.class); } public static com.google.protobuf.Parser<ChangeGroupSync> PARSER = new com.google.protobuf.AbstractParser<ChangeGroupSync>() { public ChangeGroupSync parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChangeGroupSync(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ChangeGroupSync> getParserForType() { return PARSER; } private int bitField0_; // required .protocol.GroupItem groupItem = 1; public static final int GROUPITEM_FIELD_NUMBER = 1; private protocol.Data.GroupData.GroupItem groupItem_; /** * <code>required .protocol.GroupItem groupItem = 1;</code> */ public boolean hasGroupItem() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .protocol.GroupItem groupItem = 1;</code> */ public protocol.Data.GroupData.GroupItem getGroupItem() { return groupItem_; } /** * <code>required .protocol.GroupItem groupItem = 1;</code> */ public protocol.Data.GroupData.GroupItemOrBuilder getGroupItemOrBuilder() { return groupItem_; } private void initFields() { groupItem_ = protocol.Data.GroupData.GroupItem.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasGroupItem()) { memoizedIsInitialized = 0; return false; } if (!getGroupItem().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, groupItem_); } 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, groupItem_); } 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 protocol.Msg.ChangeGroupMsg.ChangeGroupSync parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupSync parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupSync parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupSync parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupSync parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupSync parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupSync parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupSync parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupSync parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protocol.Msg.ChangeGroupMsg.ChangeGroupSync 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(protocol.Msg.ChangeGroupMsg.ChangeGroupSync 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 protocol.ChangeGroupSync} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements protocol.Msg.ChangeGroupMsg.ChangeGroupSyncOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protocol.Msg.ChangeGroupMsg.internal_static_protocol_ChangeGroupSync_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protocol.Msg.ChangeGroupMsg.internal_static_protocol_ChangeGroupSync_fieldAccessorTable .ensureFieldAccessorsInitialized( protocol.Msg.ChangeGroupMsg.ChangeGroupSync.class, protocol.Msg.ChangeGroupMsg.ChangeGroupSync.Builder.class); } // Construct using protocol.Msg.ChangeGroupMsg.ChangeGroupSync.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getGroupItemFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (groupItemBuilder_ == null) { groupItem_ = protocol.Data.GroupData.GroupItem.getDefaultInstance(); } else { groupItemBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protocol.Msg.ChangeGroupMsg.internal_static_protocol_ChangeGroupSync_descriptor; } public protocol.Msg.ChangeGroupMsg.ChangeGroupSync getDefaultInstanceForType() { return protocol.Msg.ChangeGroupMsg.ChangeGroupSync.getDefaultInstance(); } public protocol.Msg.ChangeGroupMsg.ChangeGroupSync build() { protocol.Msg.ChangeGroupMsg.ChangeGroupSync result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protocol.Msg.ChangeGroupMsg.ChangeGroupSync buildPartial() { protocol.Msg.ChangeGroupMsg.ChangeGroupSync result = new protocol.Msg.ChangeGroupMsg.ChangeGroupSync(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (groupItemBuilder_ == null) { result.groupItem_ = groupItem_; } else { result.groupItem_ = groupItemBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protocol.Msg.ChangeGroupMsg.ChangeGroupSync) { return mergeFrom((protocol.Msg.ChangeGroupMsg.ChangeGroupSync)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protocol.Msg.ChangeGroupMsg.ChangeGroupSync other) { if (other == protocol.Msg.ChangeGroupMsg.ChangeGroupSync.getDefaultInstance()) return this; if (other.hasGroupItem()) { mergeGroupItem(other.getGroupItem()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasGroupItem()) { return false; } if (!getGroupItem().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protocol.Msg.ChangeGroupMsg.ChangeGroupSync parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protocol.Msg.ChangeGroupMsg.ChangeGroupSync) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .protocol.GroupItem groupItem = 1; private protocol.Data.GroupData.GroupItem groupItem_ = protocol.Data.GroupData.GroupItem.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< protocol.Data.GroupData.GroupItem, protocol.Data.GroupData.GroupItem.Builder, protocol.Data.GroupData.GroupItemOrBuilder> groupItemBuilder_; /** * <code>required .protocol.GroupItem groupItem = 1;</code> */ public boolean hasGroupItem() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .protocol.GroupItem groupItem = 1;</code> */ public protocol.Data.GroupData.GroupItem getGroupItem() { if (groupItemBuilder_ == null) { return groupItem_; } else { return groupItemBuilder_.getMessage(); } } /** * <code>required .protocol.GroupItem groupItem = 1;</code> */ public Builder setGroupItem(protocol.Data.GroupData.GroupItem value) { if (groupItemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } groupItem_ = value; onChanged(); } else { groupItemBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * <code>required .protocol.GroupItem groupItem = 1;</code> */ public Builder setGroupItem( protocol.Data.GroupData.GroupItem.Builder builderForValue) { if (groupItemBuilder_ == null) { groupItem_ = builderForValue.build(); onChanged(); } else { groupItemBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * <code>required .protocol.GroupItem groupItem = 1;</code> */ public Builder mergeGroupItem(protocol.Data.GroupData.GroupItem value) { if (groupItemBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && groupItem_ != protocol.Data.GroupData.GroupItem.getDefaultInstance()) { groupItem_ = protocol.Data.GroupData.GroupItem.newBuilder(groupItem_).mergeFrom(value).buildPartial(); } else { groupItem_ = value; } onChanged(); } else { groupItemBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * <code>required .protocol.GroupItem groupItem = 1;</code> */ public Builder clearGroupItem() { if (groupItemBuilder_ == null) { groupItem_ = protocol.Data.GroupData.GroupItem.getDefaultInstance(); onChanged(); } else { groupItemBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>required .protocol.GroupItem groupItem = 1;</code> */ public protocol.Data.GroupData.GroupItem.Builder getGroupItemBuilder() { bitField0_ |= 0x00000001; onChanged(); return getGroupItemFieldBuilder().getBuilder(); } /** * <code>required .protocol.GroupItem groupItem = 1;</code> */ public protocol.Data.GroupData.GroupItemOrBuilder getGroupItemOrBuilder() { if (groupItemBuilder_ != null) { return groupItemBuilder_.getMessageOrBuilder(); } else { return groupItem_; } } /** * <code>required .protocol.GroupItem groupItem = 1;</code> */ private com.google.protobuf.SingleFieldBuilder< protocol.Data.GroupData.GroupItem, protocol.Data.GroupData.GroupItem.Builder, protocol.Data.GroupData.GroupItemOrBuilder> getGroupItemFieldBuilder() { if (groupItemBuilder_ == null) { groupItemBuilder_ = new com.google.protobuf.SingleFieldBuilder< protocol.Data.GroupData.GroupItem, protocol.Data.GroupData.GroupItem.Builder, protocol.Data.GroupData.GroupItemOrBuilder>( groupItem_, getParentForChildren(), isClean()); groupItem_ = null; } return groupItemBuilder_; } // @@protoc_insertion_point(builder_scope:protocol.ChangeGroupSync) } static { defaultInstance = new ChangeGroupSync(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protocol.ChangeGroupSync) } private static com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ChangeGroupReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protocol_ChangeGroupReq_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ChangeGroupRsp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protocol_ChangeGroupRsp_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_protocol_ChangeGroupSync_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protocol_ChangeGroupSync_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\024ChangeGroupMsg.proto\022\010protocol\032\017GroupD" + "ata.proto\"\261\001\n\016ChangeGroupReq\022\017\n\007groupId\030" + "\001 \002(\t\0227\n\nchangeType\030\002 \002(\0162#.protocol.Cha" + "ngeGroupReq.ChangeType\022\016\n\006userId\030\003 \003(\t\022\021" + "\n\tgroupName\030\004 \001(\t\"2\n\nChangeType\022\007\n\003ADD\020\000" + "\022\n\n\006DELETE\020\001\022\017\n\013UPDATE_INFO\020\002\"\200\001\n\016Change" + "GroupRsp\0227\n\nresultCode\030\001 \002(\0162#.protocol." + "ChangeGroupRsp.ResultCode\"5\n\nResultCode\022" + "\013\n\007SUCCESS\020\000\022\010\n\004FAIL\020\001\022\020\n\014NO_AUTHORITY\020\002" + "\"9\n\017ChangeGroupSync\022&\n\tgroupItem\030\001 \002(\0132\023", ".protocol.GroupItemB\016\n\014protocol.Msg" }; 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_protocol_ChangeGroupReq_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protocol_ChangeGroupReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protocol_ChangeGroupReq_descriptor, new java.lang.String[] { "GroupId", "ChangeType", "UserId", "GroupName", }); internal_static_protocol_ChangeGroupRsp_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_protocol_ChangeGroupRsp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protocol_ChangeGroupRsp_descriptor, new java.lang.String[] { "ResultCode", }); internal_static_protocol_ChangeGroupSync_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_protocol_ChangeGroupSync_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protocol_ChangeGroupSync_descriptor, new java.lang.String[] { "GroupItem", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { protocol.Data.GroupData.getDescriptor(), }, assigner); } // @@protoc_insertion_point(outer_class_scope) }