// Generated by the protocol buffer compiler. DO NOT EDIT! // source: UserData.proto package protocol.Data; public final class UserData { private UserData() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface UserItemOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string userId = 1; /** * <code>required string userId = 1;</code> */ boolean hasUserId(); /** * <code>required string userId = 1;</code> */ java.lang.String getUserId(); /** * <code>required string userId = 1;</code> */ com.google.protobuf.ByteString getUserIdBytes(); // required string userName = 2; /** * <code>required string userName = 2;</code> */ boolean hasUserName(); /** * <code>required string userName = 2;</code> */ java.lang.String getUserName(); /** * <code>required string userName = 2;</code> */ com.google.protobuf.ByteString getUserNameBytes(); // optional int32 headIndex = 3; /** * <code>optional int32 headIndex = 3;</code> */ boolean hasHeadIndex(); /** * <code>optional int32 headIndex = 3;</code> */ int getHeadIndex(); } /** * Protobuf type {@code protocol.UserItem} */ public static final class UserItem extends com.google.protobuf.GeneratedMessage implements UserItemOrBuilder { // Use UserItem.newBuilder() to construct. private UserItem(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private UserItem(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final UserItem defaultInstance; public static UserItem getDefaultInstance() { return defaultInstance; } public UserItem getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UserItem( 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; userName_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; headIndex_ = 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 protocol.Data.UserData.internal_static_protocol_UserItem_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protocol.Data.UserData.internal_static_protocol_UserItem_fieldAccessorTable .ensureFieldAccessorsInitialized( protocol.Data.UserData.UserItem.class, protocol.Data.UserData.UserItem.Builder.class); } public static com.google.protobuf.Parser<UserItem> PARSER = new com.google.protobuf.AbstractParser<UserItem>() { public UserItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UserItem(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<UserItem> getParserForType() { return PARSER; } private int bitField0_; // required string userId = 1; public static final int USERID_FIELD_NUMBER = 1; private java.lang.Object userId_; /** * <code>required string userId = 1;</code> */ public boolean hasUserId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string userId = 1;</code> */ 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; } } /** * <code>required string userId = 1;</code> */ 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 userName = 2; public static final int USERNAME_FIELD_NUMBER = 2; private java.lang.Object userName_; /** * <code>required string userName = 2;</code> */ public boolean hasUserName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string userName = 2;</code> */ public java.lang.String getUserName() { java.lang.Object ref = userName_; 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()) { userName_ = s; } return s; } } /** * <code>required string userName = 2;</code> */ public com.google.protobuf.ByteString getUserNameBytes() { java.lang.Object ref = userName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 headIndex = 3; public static final int HEADINDEX_FIELD_NUMBER = 3; private int headIndex_; /** * <code>optional int32 headIndex = 3;</code> */ public boolean hasHeadIndex() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int32 headIndex = 3;</code> */ public int getHeadIndex() { return headIndex_; } private void initFields() { userId_ = ""; userName_ = ""; headIndex_ = 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 (!hasUserName()) { 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, getUserNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, headIndex_); } 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, getUserNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, headIndex_); } 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.Data.UserData.UserItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protocol.Data.UserData.UserItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protocol.Data.UserData.UserItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static protocol.Data.UserData.UserItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static protocol.Data.UserData.UserItem parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protocol.Data.UserData.UserItem parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static protocol.Data.UserData.UserItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static protocol.Data.UserData.UserItem parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static protocol.Data.UserData.UserItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static protocol.Data.UserData.UserItem 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.Data.UserData.UserItem 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.UserItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements protocol.Data.UserData.UserItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return protocol.Data.UserData.internal_static_protocol_UserItem_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return protocol.Data.UserData.internal_static_protocol_UserItem_fieldAccessorTable .ensureFieldAccessorsInitialized( protocol.Data.UserData.UserItem.class, protocol.Data.UserData.UserItem.Builder.class); } // Construct using protocol.Data.UserData.UserItem.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); userName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); headIndex_ = 0; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return protocol.Data.UserData.internal_static_protocol_UserItem_descriptor; } public protocol.Data.UserData.UserItem getDefaultInstanceForType() { return protocol.Data.UserData.UserItem.getDefaultInstance(); } public protocol.Data.UserData.UserItem build() { protocol.Data.UserData.UserItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public protocol.Data.UserData.UserItem buildPartial() { protocol.Data.UserData.UserItem result = new protocol.Data.UserData.UserItem(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.userName_ = userName_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.headIndex_ = headIndex_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof protocol.Data.UserData.UserItem) { return mergeFrom((protocol.Data.UserData.UserItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(protocol.Data.UserData.UserItem other) { if (other == protocol.Data.UserData.UserItem.getDefaultInstance()) return this; if (other.hasUserId()) { bitField0_ |= 0x00000001; userId_ = other.userId_; onChanged(); } if (other.hasUserName()) { bitField0_ |= 0x00000002; userName_ = other.userName_; onChanged(); } if (other.hasHeadIndex()) { setHeadIndex(other.getHeadIndex()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasUserId()) { return false; } if (!hasUserName()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { protocol.Data.UserData.UserItem parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (protocol.Data.UserData.UserItem) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string userId = 1; private java.lang.Object userId_ = ""; /** * <code>required string userId = 1;</code> */ public boolean hasUserId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string userId = 1;</code> */ 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; } } /** * <code>required string userId = 1;</code> */ 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; } } /** * <code>required string userId = 1;</code> */ public Builder setUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; userId_ = value; onChanged(); return this; } /** * <code>required string userId = 1;</code> */ public Builder clearUserId() { bitField0_ = (bitField0_ & ~0x00000001); userId_ = getDefaultInstance().getUserId(); onChanged(); return this; } /** * <code>required string userId = 1;</code> */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; userId_ = value; onChanged(); return this; } // required string userName = 2; private java.lang.Object userName_ = ""; /** * <code>required string userName = 2;</code> */ public boolean hasUserName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string userName = 2;</code> */ public java.lang.String getUserName() { java.lang.Object ref = userName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); userName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>required string userName = 2;</code> */ public com.google.protobuf.ByteString getUserNameBytes() { java.lang.Object ref = userName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string userName = 2;</code> */ public Builder setUserName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; userName_ = value; onChanged(); return this; } /** * <code>required string userName = 2;</code> */ public Builder clearUserName() { bitField0_ = (bitField0_ & ~0x00000002); userName_ = getDefaultInstance().getUserName(); onChanged(); return this; } /** * <code>required string userName = 2;</code> */ public Builder setUserNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; userName_ = value; onChanged(); return this; } // optional int32 headIndex = 3; private int headIndex_ ; /** * <code>optional int32 headIndex = 3;</code> */ public boolean hasHeadIndex() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int32 headIndex = 3;</code> */ public int getHeadIndex() { return headIndex_; } /** * <code>optional int32 headIndex = 3;</code> */ public Builder setHeadIndex(int value) { bitField0_ |= 0x00000004; headIndex_ = value; onChanged(); return this; } /** * <code>optional int32 headIndex = 3;</code> */ public Builder clearHeadIndex() { bitField0_ = (bitField0_ & ~0x00000004); headIndex_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:protocol.UserItem) } static { defaultInstance = new UserItem(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:protocol.UserItem) } private static com.google.protobuf.Descriptors.Descriptor internal_static_protocol_UserItem_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_protocol_UserItem_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\016UserData.proto\022\010protocol\"?\n\010UserItem\022\016" + "\n\006userId\030\001 \002(\t\022\020\n\010userName\030\002 \002(\t\022\021\n\thead" + "Index\030\003 \001(\005B\017\n\rprotocol.Data" }; 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_UserItem_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_protocol_UserItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_protocol_UserItem_descriptor, new java.lang.String[] { "UserId", "UserName", "HeadIndex", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }