2760 lines
90 KiB
Java
Executable File
2760 lines
90 KiB
Java
Executable File
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: core/group.proto
|
|
|
|
package com.akaxin.proto.core;
|
|
|
|
public final class GroupProto {
|
|
private GroupProto() {}
|
|
public static void registerAllExtensions(
|
|
com.google.protobuf.ExtensionRegistryLite registry) {
|
|
}
|
|
|
|
public static void registerAllExtensions(
|
|
com.google.protobuf.ExtensionRegistry registry) {
|
|
registerAllExtensions(
|
|
(com.google.protobuf.ExtensionRegistryLite) registry);
|
|
}
|
|
/**
|
|
* Protobuf enum {@code core.GroupMemberRole}
|
|
*/
|
|
public enum GroupMemberRole
|
|
implements com.google.protobuf.ProtocolMessageEnum {
|
|
/**
|
|
* <pre>
|
|
*非群成员
|
|
* </pre>
|
|
*
|
|
* <code>NONMEMBER = 0;</code>
|
|
*/
|
|
NONMEMBER(0),
|
|
/**
|
|
* <pre>
|
|
*群成员
|
|
* </pre>
|
|
*
|
|
* <code>MEMBER = 1;</code>
|
|
*/
|
|
MEMBER(1),
|
|
/**
|
|
* <pre>
|
|
*群所有者
|
|
* </pre>
|
|
*
|
|
* <code>OWNER = 2;</code>
|
|
*/
|
|
OWNER(2),
|
|
/**
|
|
* <pre>
|
|
*群管理员
|
|
* </pre>
|
|
*
|
|
* <code>ADMIN = 3;</code>
|
|
*/
|
|
ADMIN(3),
|
|
UNRECOGNIZED(-1),
|
|
;
|
|
|
|
/**
|
|
* <pre>
|
|
*非群成员
|
|
* </pre>
|
|
*
|
|
* <code>NONMEMBER = 0;</code>
|
|
*/
|
|
public static final int NONMEMBER_VALUE = 0;
|
|
/**
|
|
* <pre>
|
|
*群成员
|
|
* </pre>
|
|
*
|
|
* <code>MEMBER = 1;</code>
|
|
*/
|
|
public static final int MEMBER_VALUE = 1;
|
|
/**
|
|
* <pre>
|
|
*群所有者
|
|
* </pre>
|
|
*
|
|
* <code>OWNER = 2;</code>
|
|
*/
|
|
public static final int OWNER_VALUE = 2;
|
|
/**
|
|
* <pre>
|
|
*群管理员
|
|
* </pre>
|
|
*
|
|
* <code>ADMIN = 3;</code>
|
|
*/
|
|
public static final int ADMIN_VALUE = 3;
|
|
|
|
|
|
public final int getNumber() {
|
|
if (this == UNRECOGNIZED) {
|
|
throw new java.lang.IllegalArgumentException(
|
|
"Can't get the number of an unknown enum value.");
|
|
}
|
|
return value;
|
|
}
|
|
|
|
/**
|
|
* @deprecated Use {@link #forNumber(int)} instead.
|
|
*/
|
|
@java.lang.Deprecated
|
|
public static GroupMemberRole valueOf(int value) {
|
|
return forNumber(value);
|
|
}
|
|
|
|
public static GroupMemberRole forNumber(int value) {
|
|
switch (value) {
|
|
case 0: return NONMEMBER;
|
|
case 1: return MEMBER;
|
|
case 2: return OWNER;
|
|
case 3: return ADMIN;
|
|
default: return null;
|
|
}
|
|
}
|
|
|
|
public static com.google.protobuf.Internal.EnumLiteMap<GroupMemberRole>
|
|
internalGetValueMap() {
|
|
return internalValueMap;
|
|
}
|
|
private static final com.google.protobuf.Internal.EnumLiteMap<
|
|
GroupMemberRole> internalValueMap =
|
|
new com.google.protobuf.Internal.EnumLiteMap<GroupMemberRole>() {
|
|
public GroupMemberRole findValueByNumber(int number) {
|
|
return GroupMemberRole.forNumber(number);
|
|
}
|
|
};
|
|
|
|
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
|
getValueDescriptor() {
|
|
return getDescriptor().getValues().get(ordinal());
|
|
}
|
|
public final com.google.protobuf.Descriptors.EnumDescriptor
|
|
getDescriptorForType() {
|
|
return getDescriptor();
|
|
}
|
|
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
|
getDescriptor() {
|
|
return com.akaxin.proto.core.GroupProto.getDescriptor().getEnumTypes().get(0);
|
|
}
|
|
|
|
private static final GroupMemberRole[] VALUES = values();
|
|
|
|
public static GroupMemberRole valueOf(
|
|
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
|
if (desc.getType() != getDescriptor()) {
|
|
throw new java.lang.IllegalArgumentException(
|
|
"EnumValueDescriptor is not for this type.");
|
|
}
|
|
if (desc.getIndex() == -1) {
|
|
return UNRECOGNIZED;
|
|
}
|
|
return VALUES[desc.getIndex()];
|
|
}
|
|
|
|
private final int value;
|
|
|
|
private GroupMemberRole(int value) {
|
|
this.value = value;
|
|
}
|
|
|
|
// @@protoc_insertion_point(enum_scope:core.GroupMemberRole)
|
|
}
|
|
|
|
/**
|
|
* Protobuf enum {@code core.GroupStatus}
|
|
*/
|
|
public enum GroupStatus
|
|
implements com.google.protobuf.ProtocolMessageEnum {
|
|
/**
|
|
* <pre>
|
|
*已经解散的群组
|
|
* </pre>
|
|
*
|
|
* <code>GROUP_DELETE = 0;</code>
|
|
*/
|
|
GROUP_DELETE(0),
|
|
/**
|
|
* <pre>
|
|
*正常的群组
|
|
* </pre>
|
|
*
|
|
* <code>GROUP_NORMAL = 1;</code>
|
|
*/
|
|
GROUP_NORMAL(1),
|
|
UNRECOGNIZED(-1),
|
|
;
|
|
|
|
/**
|
|
* <pre>
|
|
*已经解散的群组
|
|
* </pre>
|
|
*
|
|
* <code>GROUP_DELETE = 0;</code>
|
|
*/
|
|
public static final int GROUP_DELETE_VALUE = 0;
|
|
/**
|
|
* <pre>
|
|
*正常的群组
|
|
* </pre>
|
|
*
|
|
* <code>GROUP_NORMAL = 1;</code>
|
|
*/
|
|
public static final int GROUP_NORMAL_VALUE = 1;
|
|
|
|
|
|
public final int getNumber() {
|
|
if (this == UNRECOGNIZED) {
|
|
throw new java.lang.IllegalArgumentException(
|
|
"Can't get the number of an unknown enum value.");
|
|
}
|
|
return value;
|
|
}
|
|
|
|
/**
|
|
* @deprecated Use {@link #forNumber(int)} instead.
|
|
*/
|
|
@java.lang.Deprecated
|
|
public static GroupStatus valueOf(int value) {
|
|
return forNumber(value);
|
|
}
|
|
|
|
public static GroupStatus forNumber(int value) {
|
|
switch (value) {
|
|
case 0: return GROUP_DELETE;
|
|
case 1: return GROUP_NORMAL;
|
|
default: return null;
|
|
}
|
|
}
|
|
|
|
public static com.google.protobuf.Internal.EnumLiteMap<GroupStatus>
|
|
internalGetValueMap() {
|
|
return internalValueMap;
|
|
}
|
|
private static final com.google.protobuf.Internal.EnumLiteMap<
|
|
GroupStatus> internalValueMap =
|
|
new com.google.protobuf.Internal.EnumLiteMap<GroupStatus>() {
|
|
public GroupStatus findValueByNumber(int number) {
|
|
return GroupStatus.forNumber(number);
|
|
}
|
|
};
|
|
|
|
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
|
getValueDescriptor() {
|
|
return getDescriptor().getValues().get(ordinal());
|
|
}
|
|
public final com.google.protobuf.Descriptors.EnumDescriptor
|
|
getDescriptorForType() {
|
|
return getDescriptor();
|
|
}
|
|
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
|
getDescriptor() {
|
|
return com.akaxin.proto.core.GroupProto.getDescriptor().getEnumTypes().get(1);
|
|
}
|
|
|
|
private static final GroupStatus[] VALUES = values();
|
|
|
|
public static GroupStatus valueOf(
|
|
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
|
if (desc.getType() != getDescriptor()) {
|
|
throw new java.lang.IllegalArgumentException(
|
|
"EnumValueDescriptor is not for this type.");
|
|
}
|
|
if (desc.getIndex() == -1) {
|
|
return UNRECOGNIZED;
|
|
}
|
|
return VALUES[desc.getIndex()];
|
|
}
|
|
|
|
private final int value;
|
|
|
|
private GroupStatus(int value) {
|
|
this.value = value;
|
|
}
|
|
|
|
// @@protoc_insertion_point(enum_scope:core.GroupStatus)
|
|
}
|
|
|
|
public interface GroupProfileOrBuilder extends
|
|
// @@protoc_insertion_point(interface_extends:core.GroupProfile)
|
|
com.google.protobuf.MessageOrBuilder {
|
|
|
|
/**
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
java.lang.String getId();
|
|
/**
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getIdBytes();
|
|
|
|
/**
|
|
* <code>string name = 2;</code>
|
|
*/
|
|
java.lang.String getName();
|
|
/**
|
|
* <code>string name = 2;</code>
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getNameBytes();
|
|
|
|
/**
|
|
* <code>string icon = 4;</code>
|
|
*/
|
|
java.lang.String getIcon();
|
|
/**
|
|
* <code>string icon = 4;</code>
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getIconBytes();
|
|
|
|
/**
|
|
* <code>string group_notice = 5;</code>
|
|
*/
|
|
java.lang.String getGroupNotice();
|
|
/**
|
|
* <code>string group_notice = 5;</code>
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getGroupNoticeBytes();
|
|
}
|
|
/**
|
|
* <pre>
|
|
*简单的group file
|
|
* </pre>
|
|
*
|
|
* Protobuf type {@code core.GroupProfile}
|
|
*/
|
|
public static final class GroupProfile extends
|
|
com.google.protobuf.GeneratedMessageV3 implements
|
|
// @@protoc_insertion_point(message_implements:core.GroupProfile)
|
|
GroupProfileOrBuilder {
|
|
private static final long serialVersionUID = 0L;
|
|
// Use GroupProfile.newBuilder() to construct.
|
|
private GroupProfile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
super(builder);
|
|
}
|
|
private GroupProfile() {
|
|
id_ = "";
|
|
name_ = "";
|
|
icon_ = "";
|
|
groupNotice_ = "";
|
|
}
|
|
|
|
@java.lang.Override
|
|
public final com.google.protobuf.UnknownFieldSet
|
|
getUnknownFields() {
|
|
return this.unknownFields;
|
|
}
|
|
private GroupProfile(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
this();
|
|
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 (!parseUnknownFieldProto3(
|
|
input, unknownFields, extensionRegistry, tag)) {
|
|
done = true;
|
|
}
|
|
break;
|
|
}
|
|
case 10: {
|
|
java.lang.String s = input.readStringRequireUtf8();
|
|
|
|
id_ = s;
|
|
break;
|
|
}
|
|
case 18: {
|
|
java.lang.String s = input.readStringRequireUtf8();
|
|
|
|
name_ = s;
|
|
break;
|
|
}
|
|
case 34: {
|
|
java.lang.String s = input.readStringRequireUtf8();
|
|
|
|
icon_ = s;
|
|
break;
|
|
}
|
|
case 42: {
|
|
java.lang.String s = input.readStringRequireUtf8();
|
|
|
|
groupNotice_ = s;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
throw e.setUnfinishedMessage(this);
|
|
} catch (java.io.IOException e) {
|
|
throw new com.google.protobuf.InvalidProtocolBufferException(
|
|
e).setUnfinishedMessage(this);
|
|
} finally {
|
|
this.unknownFields = unknownFields.build();
|
|
makeExtensionsImmutable();
|
|
}
|
|
}
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return com.akaxin.proto.core.GroupProto.internal_static_core_GroupProfile_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.core.GroupProto.internal_static_core_GroupProfile_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.core.GroupProto.GroupProfile.class, com.akaxin.proto.core.GroupProto.GroupProfile.Builder.class);
|
|
}
|
|
|
|
public static final int ID_FIELD_NUMBER = 1;
|
|
private volatile java.lang.Object id_;
|
|
/**
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
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();
|
|
id_ = s;
|
|
return s;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
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;
|
|
}
|
|
}
|
|
|
|
public static final int NAME_FIELD_NUMBER = 2;
|
|
private volatile java.lang.Object name_;
|
|
/**
|
|
* <code>string name = 2;</code>
|
|
*/
|
|
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();
|
|
name_ = s;
|
|
return s;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string name = 2;</code>
|
|
*/
|
|
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;
|
|
}
|
|
}
|
|
|
|
public static final int ICON_FIELD_NUMBER = 4;
|
|
private volatile java.lang.Object icon_;
|
|
/**
|
|
* <code>string icon = 4;</code>
|
|
*/
|
|
public java.lang.String getIcon() {
|
|
java.lang.Object ref = icon_;
|
|
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();
|
|
icon_ = s;
|
|
return s;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string icon = 4;</code>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getIconBytes() {
|
|
java.lang.Object ref = icon_;
|
|
if (ref instanceof java.lang.String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
icon_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
|
|
public static final int GROUP_NOTICE_FIELD_NUMBER = 5;
|
|
private volatile java.lang.Object groupNotice_;
|
|
/**
|
|
* <code>string group_notice = 5;</code>
|
|
*/
|
|
public java.lang.String getGroupNotice() {
|
|
java.lang.Object ref = groupNotice_;
|
|
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();
|
|
groupNotice_ = s;
|
|
return s;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string group_notice = 5;</code>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getGroupNoticeBytes() {
|
|
java.lang.Object ref = groupNotice_;
|
|
if (ref instanceof java.lang.String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
groupNotice_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
|
|
private byte memoizedIsInitialized = -1;
|
|
public final boolean isInitialized() {
|
|
byte isInitialized = memoizedIsInitialized;
|
|
if (isInitialized == 1) return true;
|
|
if (isInitialized == 0) return false;
|
|
|
|
memoizedIsInitialized = 1;
|
|
return true;
|
|
}
|
|
|
|
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
|
throws java.io.IOException {
|
|
if (!getIdBytes().isEmpty()) {
|
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
|
|
}
|
|
if (!getNameBytes().isEmpty()) {
|
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
|
|
}
|
|
if (!getIconBytes().isEmpty()) {
|
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, icon_);
|
|
}
|
|
if (!getGroupNoticeBytes().isEmpty()) {
|
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, groupNotice_);
|
|
}
|
|
unknownFields.writeTo(output);
|
|
}
|
|
|
|
public int getSerializedSize() {
|
|
int size = memoizedSize;
|
|
if (size != -1) return size;
|
|
|
|
size = 0;
|
|
if (!getIdBytes().isEmpty()) {
|
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
|
|
}
|
|
if (!getNameBytes().isEmpty()) {
|
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
|
|
}
|
|
if (!getIconBytes().isEmpty()) {
|
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, icon_);
|
|
}
|
|
if (!getGroupNoticeBytes().isEmpty()) {
|
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, groupNotice_);
|
|
}
|
|
size += unknownFields.getSerializedSize();
|
|
memoizedSize = size;
|
|
return size;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public boolean equals(final java.lang.Object obj) {
|
|
if (obj == this) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof com.akaxin.proto.core.GroupProto.GroupProfile)) {
|
|
return super.equals(obj);
|
|
}
|
|
com.akaxin.proto.core.GroupProto.GroupProfile other = (com.akaxin.proto.core.GroupProto.GroupProfile) obj;
|
|
|
|
boolean result = true;
|
|
result = result && getId()
|
|
.equals(other.getId());
|
|
result = result && getName()
|
|
.equals(other.getName());
|
|
result = result && getIcon()
|
|
.equals(other.getIcon());
|
|
result = result && getGroupNotice()
|
|
.equals(other.getGroupNotice());
|
|
result = result && unknownFields.equals(other.unknownFields);
|
|
return result;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public int hashCode() {
|
|
if (memoizedHashCode != 0) {
|
|
return memoizedHashCode;
|
|
}
|
|
int hash = 41;
|
|
hash = (19 * hash) + getDescriptor().hashCode();
|
|
hash = (37 * hash) + ID_FIELD_NUMBER;
|
|
hash = (53 * hash) + getId().hashCode();
|
|
hash = (37 * hash) + NAME_FIELD_NUMBER;
|
|
hash = (53 * hash) + getName().hashCode();
|
|
hash = (37 * hash) + ICON_FIELD_NUMBER;
|
|
hash = (53 * hash) + getIcon().hashCode();
|
|
hash = (37 * hash) + GROUP_NOTICE_FIELD_NUMBER;
|
|
hash = (53 * hash) + getGroupNotice().hashCode();
|
|
hash = (29 * hash) + unknownFields.hashCode();
|
|
memoizedHashCode = hash;
|
|
return hash;
|
|
}
|
|
|
|
public static com.akaxin.proto.core.GroupProto.GroupProfile parseFrom(
|
|
java.nio.ByteBuffer data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupProfile parseFrom(
|
|
java.nio.ByteBuffer data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupProfile parseFrom(
|
|
com.google.protobuf.ByteString data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupProfile parseFrom(
|
|
com.google.protobuf.ByteString data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupProfile parseFrom(byte[] data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupProfile parseFrom(
|
|
byte[] data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupProfile parseFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupProfile parseFrom(
|
|
java.io.InputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupProfile parseDelimitedFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseDelimitedWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupProfile parseDelimitedFrom(
|
|
java.io.InputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupProfile parseFrom(
|
|
com.google.protobuf.CodedInputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupProfile parseFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input, extensionRegistry);
|
|
}
|
|
|
|
public Builder newBuilderForType() { return newBuilder(); }
|
|
public static Builder newBuilder() {
|
|
return DEFAULT_INSTANCE.toBuilder();
|
|
}
|
|
public static Builder newBuilder(com.akaxin.proto.core.GroupProto.GroupProfile prototype) {
|
|
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
|
}
|
|
public Builder toBuilder() {
|
|
return this == DEFAULT_INSTANCE
|
|
? new Builder() : new Builder().mergeFrom(this);
|
|
}
|
|
|
|
@java.lang.Override
|
|
protected Builder newBuilderForType(
|
|
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
Builder builder = new Builder(parent);
|
|
return builder;
|
|
}
|
|
/**
|
|
* <pre>
|
|
*简单的group file
|
|
* </pre>
|
|
*
|
|
* Protobuf type {@code core.GroupProfile}
|
|
*/
|
|
public static final class Builder extends
|
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
// @@protoc_insertion_point(builder_implements:core.GroupProfile)
|
|
com.akaxin.proto.core.GroupProto.GroupProfileOrBuilder {
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return com.akaxin.proto.core.GroupProto.internal_static_core_GroupProfile_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.core.GroupProto.internal_static_core_GroupProfile_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.core.GroupProto.GroupProfile.class, com.akaxin.proto.core.GroupProto.GroupProfile.Builder.class);
|
|
}
|
|
|
|
// Construct using com.akaxin.proto.core.GroupProto.GroupProfile.newBuilder()
|
|
private Builder() {
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
|
|
private Builder(
|
|
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
super(parent);
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
private void maybeForceBuilderInitialization() {
|
|
if (com.google.protobuf.GeneratedMessageV3
|
|
.alwaysUseFieldBuilders) {
|
|
}
|
|
}
|
|
public Builder clear() {
|
|
super.clear();
|
|
id_ = "";
|
|
|
|
name_ = "";
|
|
|
|
icon_ = "";
|
|
|
|
groupNotice_ = "";
|
|
|
|
return this;
|
|
}
|
|
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptorForType() {
|
|
return com.akaxin.proto.core.GroupProto.internal_static_core_GroupProfile_descriptor;
|
|
}
|
|
|
|
public com.akaxin.proto.core.GroupProto.GroupProfile getDefaultInstanceForType() {
|
|
return com.akaxin.proto.core.GroupProto.GroupProfile.getDefaultInstance();
|
|
}
|
|
|
|
public com.akaxin.proto.core.GroupProto.GroupProfile build() {
|
|
com.akaxin.proto.core.GroupProto.GroupProfile result = buildPartial();
|
|
if (!result.isInitialized()) {
|
|
throw newUninitializedMessageException(result);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
public com.akaxin.proto.core.GroupProto.GroupProfile buildPartial() {
|
|
com.akaxin.proto.core.GroupProto.GroupProfile result = new com.akaxin.proto.core.GroupProto.GroupProfile(this);
|
|
result.id_ = id_;
|
|
result.name_ = name_;
|
|
result.icon_ = icon_;
|
|
result.groupNotice_ = groupNotice_;
|
|
onBuilt();
|
|
return result;
|
|
}
|
|
|
|
public Builder clone() {
|
|
return (Builder) super.clone();
|
|
}
|
|
public Builder setField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
java.lang.Object value) {
|
|
return (Builder) super.setField(field, value);
|
|
}
|
|
public Builder clearField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
|
return (Builder) super.clearField(field);
|
|
}
|
|
public Builder clearOneof(
|
|
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
|
return (Builder) super.clearOneof(oneof);
|
|
}
|
|
public Builder setRepeatedField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
int index, java.lang.Object value) {
|
|
return (Builder) super.setRepeatedField(field, index, value);
|
|
}
|
|
public Builder addRepeatedField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
java.lang.Object value) {
|
|
return (Builder) super.addRepeatedField(field, value);
|
|
}
|
|
public Builder mergeFrom(com.google.protobuf.Message other) {
|
|
if (other instanceof com.akaxin.proto.core.GroupProto.GroupProfile) {
|
|
return mergeFrom((com.akaxin.proto.core.GroupProto.GroupProfile)other);
|
|
} else {
|
|
super.mergeFrom(other);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public Builder mergeFrom(com.akaxin.proto.core.GroupProto.GroupProfile other) {
|
|
if (other == com.akaxin.proto.core.GroupProto.GroupProfile.getDefaultInstance()) return this;
|
|
if (!other.getId().isEmpty()) {
|
|
id_ = other.id_;
|
|
onChanged();
|
|
}
|
|
if (!other.getName().isEmpty()) {
|
|
name_ = other.name_;
|
|
onChanged();
|
|
}
|
|
if (!other.getIcon().isEmpty()) {
|
|
icon_ = other.icon_;
|
|
onChanged();
|
|
}
|
|
if (!other.getGroupNotice().isEmpty()) {
|
|
groupNotice_ = other.groupNotice_;
|
|
onChanged();
|
|
}
|
|
this.mergeUnknownFields(other.unknownFields);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
public final boolean isInitialized() {
|
|
return true;
|
|
}
|
|
|
|
public Builder mergeFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
com.akaxin.proto.core.GroupProto.GroupProfile parsedMessage = null;
|
|
try {
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
parsedMessage = (com.akaxin.proto.core.GroupProto.GroupProfile) e.getUnfinishedMessage();
|
|
throw e.unwrapIOException();
|
|
} finally {
|
|
if (parsedMessage != null) {
|
|
mergeFrom(parsedMessage);
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
private java.lang.Object id_ = "";
|
|
/**
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
public java.lang.String getId() {
|
|
java.lang.Object ref = id_;
|
|
if (!(ref instanceof java.lang.String)) {
|
|
com.google.protobuf.ByteString bs =
|
|
(com.google.protobuf.ByteString) ref;
|
|
java.lang.String s = bs.toStringUtf8();
|
|
id_ = s;
|
|
return s;
|
|
} else {
|
|
return (java.lang.String) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
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;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
public Builder setId(
|
|
java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
id_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
public Builder clearId() {
|
|
|
|
id_ = getDefaultInstance().getId();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string id = 1;</code>
|
|
*/
|
|
public Builder setIdBytes(
|
|
com.google.protobuf.ByteString value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
checkByteStringIsUtf8(value);
|
|
|
|
id_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private java.lang.Object name_ = "";
|
|
/**
|
|
* <code>string name = 2;</code>
|
|
*/
|
|
public java.lang.String getName() {
|
|
java.lang.Object ref = name_;
|
|
if (!(ref instanceof java.lang.String)) {
|
|
com.google.protobuf.ByteString bs =
|
|
(com.google.protobuf.ByteString) ref;
|
|
java.lang.String s = bs.toStringUtf8();
|
|
name_ = s;
|
|
return s;
|
|
} else {
|
|
return (java.lang.String) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string name = 2;</code>
|
|
*/
|
|
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;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string name = 2;</code>
|
|
*/
|
|
public Builder setName(
|
|
java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
name_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string name = 2;</code>
|
|
*/
|
|
public Builder clearName() {
|
|
|
|
name_ = getDefaultInstance().getName();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string name = 2;</code>
|
|
*/
|
|
public Builder setNameBytes(
|
|
com.google.protobuf.ByteString value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
checkByteStringIsUtf8(value);
|
|
|
|
name_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private java.lang.Object icon_ = "";
|
|
/**
|
|
* <code>string icon = 4;</code>
|
|
*/
|
|
public java.lang.String getIcon() {
|
|
java.lang.Object ref = icon_;
|
|
if (!(ref instanceof java.lang.String)) {
|
|
com.google.protobuf.ByteString bs =
|
|
(com.google.protobuf.ByteString) ref;
|
|
java.lang.String s = bs.toStringUtf8();
|
|
icon_ = s;
|
|
return s;
|
|
} else {
|
|
return (java.lang.String) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string icon = 4;</code>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getIconBytes() {
|
|
java.lang.Object ref = icon_;
|
|
if (ref instanceof String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
icon_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string icon = 4;</code>
|
|
*/
|
|
public Builder setIcon(
|
|
java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
icon_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string icon = 4;</code>
|
|
*/
|
|
public Builder clearIcon() {
|
|
|
|
icon_ = getDefaultInstance().getIcon();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string icon = 4;</code>
|
|
*/
|
|
public Builder setIconBytes(
|
|
com.google.protobuf.ByteString value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
checkByteStringIsUtf8(value);
|
|
|
|
icon_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private java.lang.Object groupNotice_ = "";
|
|
/**
|
|
* <code>string group_notice = 5;</code>
|
|
*/
|
|
public java.lang.String getGroupNotice() {
|
|
java.lang.Object ref = groupNotice_;
|
|
if (!(ref instanceof java.lang.String)) {
|
|
com.google.protobuf.ByteString bs =
|
|
(com.google.protobuf.ByteString) ref;
|
|
java.lang.String s = bs.toStringUtf8();
|
|
groupNotice_ = s;
|
|
return s;
|
|
} else {
|
|
return (java.lang.String) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string group_notice = 5;</code>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getGroupNoticeBytes() {
|
|
java.lang.Object ref = groupNotice_;
|
|
if (ref instanceof String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
groupNotice_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string group_notice = 5;</code>
|
|
*/
|
|
public Builder setGroupNotice(
|
|
java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
groupNotice_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string group_notice = 5;</code>
|
|
*/
|
|
public Builder clearGroupNotice() {
|
|
|
|
groupNotice_ = getDefaultInstance().getGroupNotice();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string group_notice = 5;</code>
|
|
*/
|
|
public Builder setGroupNoticeBytes(
|
|
com.google.protobuf.ByteString value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
checkByteStringIsUtf8(value);
|
|
|
|
groupNotice_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
public final Builder setUnknownFields(
|
|
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
return super.setUnknownFieldsProto3(unknownFields);
|
|
}
|
|
|
|
public final Builder mergeUnknownFields(
|
|
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
return super.mergeUnknownFields(unknownFields);
|
|
}
|
|
|
|
|
|
// @@protoc_insertion_point(builder_scope:core.GroupProfile)
|
|
}
|
|
|
|
// @@protoc_insertion_point(class_scope:core.GroupProfile)
|
|
private static final com.akaxin.proto.core.GroupProto.GroupProfile DEFAULT_INSTANCE;
|
|
static {
|
|
DEFAULT_INSTANCE = new com.akaxin.proto.core.GroupProto.GroupProfile();
|
|
}
|
|
|
|
public static com.akaxin.proto.core.GroupProto.GroupProfile getDefaultInstance() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
private static final com.google.protobuf.Parser<GroupProfile>
|
|
PARSER = new com.google.protobuf.AbstractParser<GroupProfile>() {
|
|
public GroupProfile parsePartialFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return new GroupProfile(input, extensionRegistry);
|
|
}
|
|
};
|
|
|
|
public static com.google.protobuf.Parser<GroupProfile> parser() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<GroupProfile> getParserForType() {
|
|
return PARSER;
|
|
}
|
|
|
|
public com.akaxin.proto.core.GroupProto.GroupProfile getDefaultInstanceForType() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
}
|
|
|
|
public interface SimpleGroupProfileOrBuilder extends
|
|
// @@protoc_insertion_point(interface_extends:core.SimpleGroupProfile)
|
|
com.google.protobuf.MessageOrBuilder {
|
|
|
|
/**
|
|
* <code>string group_id = 1;</code>
|
|
*/
|
|
java.lang.String getGroupId();
|
|
/**
|
|
* <code>string group_id = 1;</code>
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getGroupIdBytes();
|
|
|
|
/**
|
|
* <code>string group_name = 2;</code>
|
|
*/
|
|
java.lang.String getGroupName();
|
|
/**
|
|
* <code>string group_name = 2;</code>
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getGroupNameBytes();
|
|
|
|
/**
|
|
* <code>string group_icon = 3;</code>
|
|
*/
|
|
java.lang.String getGroupIcon();
|
|
/**
|
|
* <code>string group_icon = 3;</code>
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getGroupIconBytes();
|
|
}
|
|
/**
|
|
* Protobuf type {@code core.SimpleGroupProfile}
|
|
*/
|
|
public static final class SimpleGroupProfile extends
|
|
com.google.protobuf.GeneratedMessageV3 implements
|
|
// @@protoc_insertion_point(message_implements:core.SimpleGroupProfile)
|
|
SimpleGroupProfileOrBuilder {
|
|
private static final long serialVersionUID = 0L;
|
|
// Use SimpleGroupProfile.newBuilder() to construct.
|
|
private SimpleGroupProfile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
super(builder);
|
|
}
|
|
private SimpleGroupProfile() {
|
|
groupId_ = "";
|
|
groupName_ = "";
|
|
groupIcon_ = "";
|
|
}
|
|
|
|
@java.lang.Override
|
|
public final com.google.protobuf.UnknownFieldSet
|
|
getUnknownFields() {
|
|
return this.unknownFields;
|
|
}
|
|
private SimpleGroupProfile(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
this();
|
|
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 (!parseUnknownFieldProto3(
|
|
input, unknownFields, extensionRegistry, tag)) {
|
|
done = true;
|
|
}
|
|
break;
|
|
}
|
|
case 10: {
|
|
java.lang.String s = input.readStringRequireUtf8();
|
|
|
|
groupId_ = s;
|
|
break;
|
|
}
|
|
case 18: {
|
|
java.lang.String s = input.readStringRequireUtf8();
|
|
|
|
groupName_ = s;
|
|
break;
|
|
}
|
|
case 26: {
|
|
java.lang.String s = input.readStringRequireUtf8();
|
|
|
|
groupIcon_ = s;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
throw e.setUnfinishedMessage(this);
|
|
} catch (java.io.IOException e) {
|
|
throw new com.google.protobuf.InvalidProtocolBufferException(
|
|
e).setUnfinishedMessage(this);
|
|
} finally {
|
|
this.unknownFields = unknownFields.build();
|
|
makeExtensionsImmutable();
|
|
}
|
|
}
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return com.akaxin.proto.core.GroupProto.internal_static_core_SimpleGroupProfile_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.core.GroupProto.internal_static_core_SimpleGroupProfile_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.core.GroupProto.SimpleGroupProfile.class, com.akaxin.proto.core.GroupProto.SimpleGroupProfile.Builder.class);
|
|
}
|
|
|
|
public static final int GROUP_ID_FIELD_NUMBER = 1;
|
|
private volatile java.lang.Object groupId_;
|
|
/**
|
|
* <code>string group_id = 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();
|
|
groupId_ = s;
|
|
return s;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string group_id = 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;
|
|
}
|
|
}
|
|
|
|
public static final int GROUP_NAME_FIELD_NUMBER = 2;
|
|
private volatile java.lang.Object groupName_;
|
|
/**
|
|
* <code>string group_name = 2;</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();
|
|
groupName_ = s;
|
|
return s;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string group_name = 2;</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;
|
|
}
|
|
}
|
|
|
|
public static final int GROUP_ICON_FIELD_NUMBER = 3;
|
|
private volatile java.lang.Object groupIcon_;
|
|
/**
|
|
* <code>string group_icon = 3;</code>
|
|
*/
|
|
public java.lang.String getGroupIcon() {
|
|
java.lang.Object ref = groupIcon_;
|
|
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();
|
|
groupIcon_ = s;
|
|
return s;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string group_icon = 3;</code>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getGroupIconBytes() {
|
|
java.lang.Object ref = groupIcon_;
|
|
if (ref instanceof java.lang.String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
groupIcon_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
|
|
private byte memoizedIsInitialized = -1;
|
|
public final boolean isInitialized() {
|
|
byte isInitialized = memoizedIsInitialized;
|
|
if (isInitialized == 1) return true;
|
|
if (isInitialized == 0) return false;
|
|
|
|
memoizedIsInitialized = 1;
|
|
return true;
|
|
}
|
|
|
|
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
|
throws java.io.IOException {
|
|
if (!getGroupIdBytes().isEmpty()) {
|
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, groupId_);
|
|
}
|
|
if (!getGroupNameBytes().isEmpty()) {
|
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groupName_);
|
|
}
|
|
if (!getGroupIconBytes().isEmpty()) {
|
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, groupIcon_);
|
|
}
|
|
unknownFields.writeTo(output);
|
|
}
|
|
|
|
public int getSerializedSize() {
|
|
int size = memoizedSize;
|
|
if (size != -1) return size;
|
|
|
|
size = 0;
|
|
if (!getGroupIdBytes().isEmpty()) {
|
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, groupId_);
|
|
}
|
|
if (!getGroupNameBytes().isEmpty()) {
|
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, groupName_);
|
|
}
|
|
if (!getGroupIconBytes().isEmpty()) {
|
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupIcon_);
|
|
}
|
|
size += unknownFields.getSerializedSize();
|
|
memoizedSize = size;
|
|
return size;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public boolean equals(final java.lang.Object obj) {
|
|
if (obj == this) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof com.akaxin.proto.core.GroupProto.SimpleGroupProfile)) {
|
|
return super.equals(obj);
|
|
}
|
|
com.akaxin.proto.core.GroupProto.SimpleGroupProfile other = (com.akaxin.proto.core.GroupProto.SimpleGroupProfile) obj;
|
|
|
|
boolean result = true;
|
|
result = result && getGroupId()
|
|
.equals(other.getGroupId());
|
|
result = result && getGroupName()
|
|
.equals(other.getGroupName());
|
|
result = result && getGroupIcon()
|
|
.equals(other.getGroupIcon());
|
|
result = result && unknownFields.equals(other.unknownFields);
|
|
return result;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public int hashCode() {
|
|
if (memoizedHashCode != 0) {
|
|
return memoizedHashCode;
|
|
}
|
|
int hash = 41;
|
|
hash = (19 * hash) + getDescriptor().hashCode();
|
|
hash = (37 * hash) + GROUP_ID_FIELD_NUMBER;
|
|
hash = (53 * hash) + getGroupId().hashCode();
|
|
hash = (37 * hash) + GROUP_NAME_FIELD_NUMBER;
|
|
hash = (53 * hash) + getGroupName().hashCode();
|
|
hash = (37 * hash) + GROUP_ICON_FIELD_NUMBER;
|
|
hash = (53 * hash) + getGroupIcon().hashCode();
|
|
hash = (29 * hash) + unknownFields.hashCode();
|
|
memoizedHashCode = hash;
|
|
return hash;
|
|
}
|
|
|
|
public static com.akaxin.proto.core.GroupProto.SimpleGroupProfile parseFrom(
|
|
java.nio.ByteBuffer data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.SimpleGroupProfile parseFrom(
|
|
java.nio.ByteBuffer data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.SimpleGroupProfile parseFrom(
|
|
com.google.protobuf.ByteString data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.SimpleGroupProfile parseFrom(
|
|
com.google.protobuf.ByteString data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.SimpleGroupProfile parseFrom(byte[] data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.SimpleGroupProfile parseFrom(
|
|
byte[] data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.SimpleGroupProfile parseFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.SimpleGroupProfile parseFrom(
|
|
java.io.InputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.SimpleGroupProfile parseDelimitedFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseDelimitedWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.SimpleGroupProfile parseDelimitedFrom(
|
|
java.io.InputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.SimpleGroupProfile parseFrom(
|
|
com.google.protobuf.CodedInputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.SimpleGroupProfile parseFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input, extensionRegistry);
|
|
}
|
|
|
|
public Builder newBuilderForType() { return newBuilder(); }
|
|
public static Builder newBuilder() {
|
|
return DEFAULT_INSTANCE.toBuilder();
|
|
}
|
|
public static Builder newBuilder(com.akaxin.proto.core.GroupProto.SimpleGroupProfile prototype) {
|
|
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
|
}
|
|
public Builder toBuilder() {
|
|
return this == DEFAULT_INSTANCE
|
|
? new Builder() : new Builder().mergeFrom(this);
|
|
}
|
|
|
|
@java.lang.Override
|
|
protected Builder newBuilderForType(
|
|
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
Builder builder = new Builder(parent);
|
|
return builder;
|
|
}
|
|
/**
|
|
* Protobuf type {@code core.SimpleGroupProfile}
|
|
*/
|
|
public static final class Builder extends
|
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
// @@protoc_insertion_point(builder_implements:core.SimpleGroupProfile)
|
|
com.akaxin.proto.core.GroupProto.SimpleGroupProfileOrBuilder {
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return com.akaxin.proto.core.GroupProto.internal_static_core_SimpleGroupProfile_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.core.GroupProto.internal_static_core_SimpleGroupProfile_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.core.GroupProto.SimpleGroupProfile.class, com.akaxin.proto.core.GroupProto.SimpleGroupProfile.Builder.class);
|
|
}
|
|
|
|
// Construct using com.akaxin.proto.core.GroupProto.SimpleGroupProfile.newBuilder()
|
|
private Builder() {
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
|
|
private Builder(
|
|
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
super(parent);
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
private void maybeForceBuilderInitialization() {
|
|
if (com.google.protobuf.GeneratedMessageV3
|
|
.alwaysUseFieldBuilders) {
|
|
}
|
|
}
|
|
public Builder clear() {
|
|
super.clear();
|
|
groupId_ = "";
|
|
|
|
groupName_ = "";
|
|
|
|
groupIcon_ = "";
|
|
|
|
return this;
|
|
}
|
|
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptorForType() {
|
|
return com.akaxin.proto.core.GroupProto.internal_static_core_SimpleGroupProfile_descriptor;
|
|
}
|
|
|
|
public com.akaxin.proto.core.GroupProto.SimpleGroupProfile getDefaultInstanceForType() {
|
|
return com.akaxin.proto.core.GroupProto.SimpleGroupProfile.getDefaultInstance();
|
|
}
|
|
|
|
public com.akaxin.proto.core.GroupProto.SimpleGroupProfile build() {
|
|
com.akaxin.proto.core.GroupProto.SimpleGroupProfile result = buildPartial();
|
|
if (!result.isInitialized()) {
|
|
throw newUninitializedMessageException(result);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
public com.akaxin.proto.core.GroupProto.SimpleGroupProfile buildPartial() {
|
|
com.akaxin.proto.core.GroupProto.SimpleGroupProfile result = new com.akaxin.proto.core.GroupProto.SimpleGroupProfile(this);
|
|
result.groupId_ = groupId_;
|
|
result.groupName_ = groupName_;
|
|
result.groupIcon_ = groupIcon_;
|
|
onBuilt();
|
|
return result;
|
|
}
|
|
|
|
public Builder clone() {
|
|
return (Builder) super.clone();
|
|
}
|
|
public Builder setField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
java.lang.Object value) {
|
|
return (Builder) super.setField(field, value);
|
|
}
|
|
public Builder clearField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
|
return (Builder) super.clearField(field);
|
|
}
|
|
public Builder clearOneof(
|
|
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
|
return (Builder) super.clearOneof(oneof);
|
|
}
|
|
public Builder setRepeatedField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
int index, java.lang.Object value) {
|
|
return (Builder) super.setRepeatedField(field, index, value);
|
|
}
|
|
public Builder addRepeatedField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
java.lang.Object value) {
|
|
return (Builder) super.addRepeatedField(field, value);
|
|
}
|
|
public Builder mergeFrom(com.google.protobuf.Message other) {
|
|
if (other instanceof com.akaxin.proto.core.GroupProto.SimpleGroupProfile) {
|
|
return mergeFrom((com.akaxin.proto.core.GroupProto.SimpleGroupProfile)other);
|
|
} else {
|
|
super.mergeFrom(other);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public Builder mergeFrom(com.akaxin.proto.core.GroupProto.SimpleGroupProfile other) {
|
|
if (other == com.akaxin.proto.core.GroupProto.SimpleGroupProfile.getDefaultInstance()) return this;
|
|
if (!other.getGroupId().isEmpty()) {
|
|
groupId_ = other.groupId_;
|
|
onChanged();
|
|
}
|
|
if (!other.getGroupName().isEmpty()) {
|
|
groupName_ = other.groupName_;
|
|
onChanged();
|
|
}
|
|
if (!other.getGroupIcon().isEmpty()) {
|
|
groupIcon_ = other.groupIcon_;
|
|
onChanged();
|
|
}
|
|
this.mergeUnknownFields(other.unknownFields);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
public final boolean isInitialized() {
|
|
return true;
|
|
}
|
|
|
|
public Builder mergeFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
com.akaxin.proto.core.GroupProto.SimpleGroupProfile parsedMessage = null;
|
|
try {
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
parsedMessage = (com.akaxin.proto.core.GroupProto.SimpleGroupProfile) e.getUnfinishedMessage();
|
|
throw e.unwrapIOException();
|
|
} finally {
|
|
if (parsedMessage != null) {
|
|
mergeFrom(parsedMessage);
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
private java.lang.Object groupId_ = "";
|
|
/**
|
|
* <code>string group_id = 1;</code>
|
|
*/
|
|
public java.lang.String getGroupId() {
|
|
java.lang.Object ref = groupId_;
|
|
if (!(ref instanceof java.lang.String)) {
|
|
com.google.protobuf.ByteString bs =
|
|
(com.google.protobuf.ByteString) ref;
|
|
java.lang.String s = bs.toStringUtf8();
|
|
groupId_ = s;
|
|
return s;
|
|
} else {
|
|
return (java.lang.String) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string group_id = 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>string group_id = 1;</code>
|
|
*/
|
|
public Builder setGroupId(
|
|
java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
groupId_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string group_id = 1;</code>
|
|
*/
|
|
public Builder clearGroupId() {
|
|
|
|
groupId_ = getDefaultInstance().getGroupId();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string group_id = 1;</code>
|
|
*/
|
|
public Builder setGroupIdBytes(
|
|
com.google.protobuf.ByteString value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
checkByteStringIsUtf8(value);
|
|
|
|
groupId_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private java.lang.Object groupName_ = "";
|
|
/**
|
|
* <code>string group_name = 2;</code>
|
|
*/
|
|
public java.lang.String getGroupName() {
|
|
java.lang.Object ref = groupName_;
|
|
if (!(ref instanceof java.lang.String)) {
|
|
com.google.protobuf.ByteString bs =
|
|
(com.google.protobuf.ByteString) ref;
|
|
java.lang.String s = bs.toStringUtf8();
|
|
groupName_ = s;
|
|
return s;
|
|
} else {
|
|
return (java.lang.String) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string group_name = 2;</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>string group_name = 2;</code>
|
|
*/
|
|
public Builder setGroupName(
|
|
java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
groupName_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string group_name = 2;</code>
|
|
*/
|
|
public Builder clearGroupName() {
|
|
|
|
groupName_ = getDefaultInstance().getGroupName();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string group_name = 2;</code>
|
|
*/
|
|
public Builder setGroupNameBytes(
|
|
com.google.protobuf.ByteString value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
checkByteStringIsUtf8(value);
|
|
|
|
groupName_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private java.lang.Object groupIcon_ = "";
|
|
/**
|
|
* <code>string group_icon = 3;</code>
|
|
*/
|
|
public java.lang.String getGroupIcon() {
|
|
java.lang.Object ref = groupIcon_;
|
|
if (!(ref instanceof java.lang.String)) {
|
|
com.google.protobuf.ByteString bs =
|
|
(com.google.protobuf.ByteString) ref;
|
|
java.lang.String s = bs.toStringUtf8();
|
|
groupIcon_ = s;
|
|
return s;
|
|
} else {
|
|
return (java.lang.String) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string group_icon = 3;</code>
|
|
*/
|
|
public com.google.protobuf.ByteString
|
|
getGroupIconBytes() {
|
|
java.lang.Object ref = groupIcon_;
|
|
if (ref instanceof String) {
|
|
com.google.protobuf.ByteString b =
|
|
com.google.protobuf.ByteString.copyFromUtf8(
|
|
(java.lang.String) ref);
|
|
groupIcon_ = b;
|
|
return b;
|
|
} else {
|
|
return (com.google.protobuf.ByteString) ref;
|
|
}
|
|
}
|
|
/**
|
|
* <code>string group_icon = 3;</code>
|
|
*/
|
|
public Builder setGroupIcon(
|
|
java.lang.String value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
groupIcon_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string group_icon = 3;</code>
|
|
*/
|
|
public Builder clearGroupIcon() {
|
|
|
|
groupIcon_ = getDefaultInstance().getGroupIcon();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>string group_icon = 3;</code>
|
|
*/
|
|
public Builder setGroupIconBytes(
|
|
com.google.protobuf.ByteString value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
checkByteStringIsUtf8(value);
|
|
|
|
groupIcon_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
public final Builder setUnknownFields(
|
|
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
return super.setUnknownFieldsProto3(unknownFields);
|
|
}
|
|
|
|
public final Builder mergeUnknownFields(
|
|
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
return super.mergeUnknownFields(unknownFields);
|
|
}
|
|
|
|
|
|
// @@protoc_insertion_point(builder_scope:core.SimpleGroupProfile)
|
|
}
|
|
|
|
// @@protoc_insertion_point(class_scope:core.SimpleGroupProfile)
|
|
private static final com.akaxin.proto.core.GroupProto.SimpleGroupProfile DEFAULT_INSTANCE;
|
|
static {
|
|
DEFAULT_INSTANCE = new com.akaxin.proto.core.GroupProto.SimpleGroupProfile();
|
|
}
|
|
|
|
public static com.akaxin.proto.core.GroupProto.SimpleGroupProfile getDefaultInstance() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
private static final com.google.protobuf.Parser<SimpleGroupProfile>
|
|
PARSER = new com.google.protobuf.AbstractParser<SimpleGroupProfile>() {
|
|
public SimpleGroupProfile parsePartialFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return new SimpleGroupProfile(input, extensionRegistry);
|
|
}
|
|
};
|
|
|
|
public static com.google.protobuf.Parser<SimpleGroupProfile> parser() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<SimpleGroupProfile> getParserForType() {
|
|
return PARSER;
|
|
}
|
|
|
|
public com.akaxin.proto.core.GroupProto.SimpleGroupProfile getDefaultInstanceForType() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
}
|
|
|
|
public interface GroupMemberProfileOrBuilder extends
|
|
// @@protoc_insertion_point(interface_extends:core.GroupMemberProfile)
|
|
com.google.protobuf.MessageOrBuilder {
|
|
|
|
/**
|
|
* <code>.core.GroupMemberRole role = 1;</code>
|
|
*/
|
|
int getRoleValue();
|
|
/**
|
|
* <code>.core.GroupMemberRole role = 1;</code>
|
|
*/
|
|
com.akaxin.proto.core.GroupProto.GroupMemberRole getRole();
|
|
|
|
/**
|
|
* <code>.core.UserProfile profile = 2;</code>
|
|
*/
|
|
boolean hasProfile();
|
|
/**
|
|
* <code>.core.UserProfile profile = 2;</code>
|
|
*/
|
|
com.akaxin.proto.core.UserProto.UserProfile getProfile();
|
|
/**
|
|
* <code>.core.UserProfile profile = 2;</code>
|
|
*/
|
|
com.akaxin.proto.core.UserProto.UserProfileOrBuilder getProfileOrBuilder();
|
|
}
|
|
/**
|
|
* Protobuf type {@code core.GroupMemberProfile}
|
|
*/
|
|
public static final class GroupMemberProfile extends
|
|
com.google.protobuf.GeneratedMessageV3 implements
|
|
// @@protoc_insertion_point(message_implements:core.GroupMemberProfile)
|
|
GroupMemberProfileOrBuilder {
|
|
private static final long serialVersionUID = 0L;
|
|
// Use GroupMemberProfile.newBuilder() to construct.
|
|
private GroupMemberProfile(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
super(builder);
|
|
}
|
|
private GroupMemberProfile() {
|
|
role_ = 0;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public final com.google.protobuf.UnknownFieldSet
|
|
getUnknownFields() {
|
|
return this.unknownFields;
|
|
}
|
|
private GroupMemberProfile(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
this();
|
|
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 (!parseUnknownFieldProto3(
|
|
input, unknownFields, extensionRegistry, tag)) {
|
|
done = true;
|
|
}
|
|
break;
|
|
}
|
|
case 8: {
|
|
int rawValue = input.readEnum();
|
|
|
|
role_ = rawValue;
|
|
break;
|
|
}
|
|
case 18: {
|
|
com.akaxin.proto.core.UserProto.UserProfile.Builder subBuilder = null;
|
|
if (profile_ != null) {
|
|
subBuilder = profile_.toBuilder();
|
|
}
|
|
profile_ = input.readMessage(com.akaxin.proto.core.UserProto.UserProfile.parser(), extensionRegistry);
|
|
if (subBuilder != null) {
|
|
subBuilder.mergeFrom(profile_);
|
|
profile_ = subBuilder.buildPartial();
|
|
}
|
|
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
throw e.setUnfinishedMessage(this);
|
|
} catch (java.io.IOException e) {
|
|
throw new com.google.protobuf.InvalidProtocolBufferException(
|
|
e).setUnfinishedMessage(this);
|
|
} finally {
|
|
this.unknownFields = unknownFields.build();
|
|
makeExtensionsImmutable();
|
|
}
|
|
}
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return com.akaxin.proto.core.GroupProto.internal_static_core_GroupMemberProfile_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.core.GroupProto.internal_static_core_GroupMemberProfile_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.core.GroupProto.GroupMemberProfile.class, com.akaxin.proto.core.GroupProto.GroupMemberProfile.Builder.class);
|
|
}
|
|
|
|
public static final int ROLE_FIELD_NUMBER = 1;
|
|
private int role_;
|
|
/**
|
|
* <code>.core.GroupMemberRole role = 1;</code>
|
|
*/
|
|
public int getRoleValue() {
|
|
return role_;
|
|
}
|
|
/**
|
|
* <code>.core.GroupMemberRole role = 1;</code>
|
|
*/
|
|
public com.akaxin.proto.core.GroupProto.GroupMemberRole getRole() {
|
|
com.akaxin.proto.core.GroupProto.GroupMemberRole result = com.akaxin.proto.core.GroupProto.GroupMemberRole.valueOf(role_);
|
|
return result == null ? com.akaxin.proto.core.GroupProto.GroupMemberRole.UNRECOGNIZED : result;
|
|
}
|
|
|
|
public static final int PROFILE_FIELD_NUMBER = 2;
|
|
private com.akaxin.proto.core.UserProto.UserProfile profile_;
|
|
/**
|
|
* <code>.core.UserProfile profile = 2;</code>
|
|
*/
|
|
public boolean hasProfile() {
|
|
return profile_ != null;
|
|
}
|
|
/**
|
|
* <code>.core.UserProfile profile = 2;</code>
|
|
*/
|
|
public com.akaxin.proto.core.UserProto.UserProfile getProfile() {
|
|
return profile_ == null ? com.akaxin.proto.core.UserProto.UserProfile.getDefaultInstance() : profile_;
|
|
}
|
|
/**
|
|
* <code>.core.UserProfile profile = 2;</code>
|
|
*/
|
|
public com.akaxin.proto.core.UserProto.UserProfileOrBuilder getProfileOrBuilder() {
|
|
return getProfile();
|
|
}
|
|
|
|
private byte memoizedIsInitialized = -1;
|
|
public final boolean isInitialized() {
|
|
byte isInitialized = memoizedIsInitialized;
|
|
if (isInitialized == 1) return true;
|
|
if (isInitialized == 0) return false;
|
|
|
|
memoizedIsInitialized = 1;
|
|
return true;
|
|
}
|
|
|
|
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
|
throws java.io.IOException {
|
|
if (role_ != com.akaxin.proto.core.GroupProto.GroupMemberRole.NONMEMBER.getNumber()) {
|
|
output.writeEnum(1, role_);
|
|
}
|
|
if (profile_ != null) {
|
|
output.writeMessage(2, getProfile());
|
|
}
|
|
unknownFields.writeTo(output);
|
|
}
|
|
|
|
public int getSerializedSize() {
|
|
int size = memoizedSize;
|
|
if (size != -1) return size;
|
|
|
|
size = 0;
|
|
if (role_ != com.akaxin.proto.core.GroupProto.GroupMemberRole.NONMEMBER.getNumber()) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeEnumSize(1, role_);
|
|
}
|
|
if (profile_ != null) {
|
|
size += com.google.protobuf.CodedOutputStream
|
|
.computeMessageSize(2, getProfile());
|
|
}
|
|
size += unknownFields.getSerializedSize();
|
|
memoizedSize = size;
|
|
return size;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public boolean equals(final java.lang.Object obj) {
|
|
if (obj == this) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof com.akaxin.proto.core.GroupProto.GroupMemberProfile)) {
|
|
return super.equals(obj);
|
|
}
|
|
com.akaxin.proto.core.GroupProto.GroupMemberProfile other = (com.akaxin.proto.core.GroupProto.GroupMemberProfile) obj;
|
|
|
|
boolean result = true;
|
|
result = result && role_ == other.role_;
|
|
result = result && (hasProfile() == other.hasProfile());
|
|
if (hasProfile()) {
|
|
result = result && getProfile()
|
|
.equals(other.getProfile());
|
|
}
|
|
result = result && unknownFields.equals(other.unknownFields);
|
|
return result;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public int hashCode() {
|
|
if (memoizedHashCode != 0) {
|
|
return memoizedHashCode;
|
|
}
|
|
int hash = 41;
|
|
hash = (19 * hash) + getDescriptor().hashCode();
|
|
hash = (37 * hash) + ROLE_FIELD_NUMBER;
|
|
hash = (53 * hash) + role_;
|
|
if (hasProfile()) {
|
|
hash = (37 * hash) + PROFILE_FIELD_NUMBER;
|
|
hash = (53 * hash) + getProfile().hashCode();
|
|
}
|
|
hash = (29 * hash) + unknownFields.hashCode();
|
|
memoizedHashCode = hash;
|
|
return hash;
|
|
}
|
|
|
|
public static com.akaxin.proto.core.GroupProto.GroupMemberProfile parseFrom(
|
|
java.nio.ByteBuffer data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupMemberProfile parseFrom(
|
|
java.nio.ByteBuffer data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupMemberProfile parseFrom(
|
|
com.google.protobuf.ByteString data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupMemberProfile parseFrom(
|
|
com.google.protobuf.ByteString data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupMemberProfile parseFrom(byte[] data)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupMemberProfile parseFrom(
|
|
byte[] data,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return PARSER.parseFrom(data, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupMemberProfile parseFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupMemberProfile parseFrom(
|
|
java.io.InputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupMemberProfile parseDelimitedFrom(java.io.InputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseDelimitedWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupMemberProfile parseDelimitedFrom(
|
|
java.io.InputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupMemberProfile parseFrom(
|
|
com.google.protobuf.CodedInputStream input)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input);
|
|
}
|
|
public static com.akaxin.proto.core.GroupProto.GroupMemberProfile parseFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
return com.google.protobuf.GeneratedMessageV3
|
|
.parseWithIOException(PARSER, input, extensionRegistry);
|
|
}
|
|
|
|
public Builder newBuilderForType() { return newBuilder(); }
|
|
public static Builder newBuilder() {
|
|
return DEFAULT_INSTANCE.toBuilder();
|
|
}
|
|
public static Builder newBuilder(com.akaxin.proto.core.GroupProto.GroupMemberProfile prototype) {
|
|
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
|
|
}
|
|
public Builder toBuilder() {
|
|
return this == DEFAULT_INSTANCE
|
|
? new Builder() : new Builder().mergeFrom(this);
|
|
}
|
|
|
|
@java.lang.Override
|
|
protected Builder newBuilderForType(
|
|
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
Builder builder = new Builder(parent);
|
|
return builder;
|
|
}
|
|
/**
|
|
* Protobuf type {@code core.GroupMemberProfile}
|
|
*/
|
|
public static final class Builder extends
|
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
// @@protoc_insertion_point(builder_implements:core.GroupMemberProfile)
|
|
com.akaxin.proto.core.GroupProto.GroupMemberProfileOrBuilder {
|
|
public static final com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptor() {
|
|
return com.akaxin.proto.core.GroupProto.internal_static_core_GroupMemberProfile_descriptor;
|
|
}
|
|
|
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internalGetFieldAccessorTable() {
|
|
return com.akaxin.proto.core.GroupProto.internal_static_core_GroupMemberProfile_fieldAccessorTable
|
|
.ensureFieldAccessorsInitialized(
|
|
com.akaxin.proto.core.GroupProto.GroupMemberProfile.class, com.akaxin.proto.core.GroupProto.GroupMemberProfile.Builder.class);
|
|
}
|
|
|
|
// Construct using com.akaxin.proto.core.GroupProto.GroupMemberProfile.newBuilder()
|
|
private Builder() {
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
|
|
private Builder(
|
|
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
|
super(parent);
|
|
maybeForceBuilderInitialization();
|
|
}
|
|
private void maybeForceBuilderInitialization() {
|
|
if (com.google.protobuf.GeneratedMessageV3
|
|
.alwaysUseFieldBuilders) {
|
|
}
|
|
}
|
|
public Builder clear() {
|
|
super.clear();
|
|
role_ = 0;
|
|
|
|
if (profileBuilder_ == null) {
|
|
profile_ = null;
|
|
} else {
|
|
profile_ = null;
|
|
profileBuilder_ = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public com.google.protobuf.Descriptors.Descriptor
|
|
getDescriptorForType() {
|
|
return com.akaxin.proto.core.GroupProto.internal_static_core_GroupMemberProfile_descriptor;
|
|
}
|
|
|
|
public com.akaxin.proto.core.GroupProto.GroupMemberProfile getDefaultInstanceForType() {
|
|
return com.akaxin.proto.core.GroupProto.GroupMemberProfile.getDefaultInstance();
|
|
}
|
|
|
|
public com.akaxin.proto.core.GroupProto.GroupMemberProfile build() {
|
|
com.akaxin.proto.core.GroupProto.GroupMemberProfile result = buildPartial();
|
|
if (!result.isInitialized()) {
|
|
throw newUninitializedMessageException(result);
|
|
}
|
|
return result;
|
|
}
|
|
|
|
public com.akaxin.proto.core.GroupProto.GroupMemberProfile buildPartial() {
|
|
com.akaxin.proto.core.GroupProto.GroupMemberProfile result = new com.akaxin.proto.core.GroupProto.GroupMemberProfile(this);
|
|
result.role_ = role_;
|
|
if (profileBuilder_ == null) {
|
|
result.profile_ = profile_;
|
|
} else {
|
|
result.profile_ = profileBuilder_.build();
|
|
}
|
|
onBuilt();
|
|
return result;
|
|
}
|
|
|
|
public Builder clone() {
|
|
return (Builder) super.clone();
|
|
}
|
|
public Builder setField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
java.lang.Object value) {
|
|
return (Builder) super.setField(field, value);
|
|
}
|
|
public Builder clearField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
|
return (Builder) super.clearField(field);
|
|
}
|
|
public Builder clearOneof(
|
|
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
|
return (Builder) super.clearOneof(oneof);
|
|
}
|
|
public Builder setRepeatedField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
int index, java.lang.Object value) {
|
|
return (Builder) super.setRepeatedField(field, index, value);
|
|
}
|
|
public Builder addRepeatedField(
|
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
|
java.lang.Object value) {
|
|
return (Builder) super.addRepeatedField(field, value);
|
|
}
|
|
public Builder mergeFrom(com.google.protobuf.Message other) {
|
|
if (other instanceof com.akaxin.proto.core.GroupProto.GroupMemberProfile) {
|
|
return mergeFrom((com.akaxin.proto.core.GroupProto.GroupMemberProfile)other);
|
|
} else {
|
|
super.mergeFrom(other);
|
|
return this;
|
|
}
|
|
}
|
|
|
|
public Builder mergeFrom(com.akaxin.proto.core.GroupProto.GroupMemberProfile other) {
|
|
if (other == com.akaxin.proto.core.GroupProto.GroupMemberProfile.getDefaultInstance()) return this;
|
|
if (other.role_ != 0) {
|
|
setRoleValue(other.getRoleValue());
|
|
}
|
|
if (other.hasProfile()) {
|
|
mergeProfile(other.getProfile());
|
|
}
|
|
this.mergeUnknownFields(other.unknownFields);
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
public final boolean isInitialized() {
|
|
return true;
|
|
}
|
|
|
|
public Builder mergeFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws java.io.IOException {
|
|
com.akaxin.proto.core.GroupProto.GroupMemberProfile parsedMessage = null;
|
|
try {
|
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
parsedMessage = (com.akaxin.proto.core.GroupProto.GroupMemberProfile) e.getUnfinishedMessage();
|
|
throw e.unwrapIOException();
|
|
} finally {
|
|
if (parsedMessage != null) {
|
|
mergeFrom(parsedMessage);
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
private int role_ = 0;
|
|
/**
|
|
* <code>.core.GroupMemberRole role = 1;</code>
|
|
*/
|
|
public int getRoleValue() {
|
|
return role_;
|
|
}
|
|
/**
|
|
* <code>.core.GroupMemberRole role = 1;</code>
|
|
*/
|
|
public Builder setRoleValue(int value) {
|
|
role_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.core.GroupMemberRole role = 1;</code>
|
|
*/
|
|
public com.akaxin.proto.core.GroupProto.GroupMemberRole getRole() {
|
|
com.akaxin.proto.core.GroupProto.GroupMemberRole result = com.akaxin.proto.core.GroupProto.GroupMemberRole.valueOf(role_);
|
|
return result == null ? com.akaxin.proto.core.GroupProto.GroupMemberRole.UNRECOGNIZED : result;
|
|
}
|
|
/**
|
|
* <code>.core.GroupMemberRole role = 1;</code>
|
|
*/
|
|
public Builder setRole(com.akaxin.proto.core.GroupProto.GroupMemberRole value) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
|
|
role_ = value.getNumber();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.core.GroupMemberRole role = 1;</code>
|
|
*/
|
|
public Builder clearRole() {
|
|
|
|
role_ = 0;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private com.akaxin.proto.core.UserProto.UserProfile profile_ = null;
|
|
private com.google.protobuf.SingleFieldBuilderV3<
|
|
com.akaxin.proto.core.UserProto.UserProfile, com.akaxin.proto.core.UserProto.UserProfile.Builder, com.akaxin.proto.core.UserProto.UserProfileOrBuilder> profileBuilder_;
|
|
/**
|
|
* <code>.core.UserProfile profile = 2;</code>
|
|
*/
|
|
public boolean hasProfile() {
|
|
return profileBuilder_ != null || profile_ != null;
|
|
}
|
|
/**
|
|
* <code>.core.UserProfile profile = 2;</code>
|
|
*/
|
|
public com.akaxin.proto.core.UserProto.UserProfile getProfile() {
|
|
if (profileBuilder_ == null) {
|
|
return profile_ == null ? com.akaxin.proto.core.UserProto.UserProfile.getDefaultInstance() : profile_;
|
|
} else {
|
|
return profileBuilder_.getMessage();
|
|
}
|
|
}
|
|
/**
|
|
* <code>.core.UserProfile profile = 2;</code>
|
|
*/
|
|
public Builder setProfile(com.akaxin.proto.core.UserProto.UserProfile value) {
|
|
if (profileBuilder_ == null) {
|
|
if (value == null) {
|
|
throw new NullPointerException();
|
|
}
|
|
profile_ = value;
|
|
onChanged();
|
|
} else {
|
|
profileBuilder_.setMessage(value);
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.core.UserProfile profile = 2;</code>
|
|
*/
|
|
public Builder setProfile(
|
|
com.akaxin.proto.core.UserProto.UserProfile.Builder builderForValue) {
|
|
if (profileBuilder_ == null) {
|
|
profile_ = builderForValue.build();
|
|
onChanged();
|
|
} else {
|
|
profileBuilder_.setMessage(builderForValue.build());
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.core.UserProfile profile = 2;</code>
|
|
*/
|
|
public Builder mergeProfile(com.akaxin.proto.core.UserProto.UserProfile value) {
|
|
if (profileBuilder_ == null) {
|
|
if (profile_ != null) {
|
|
profile_ =
|
|
com.akaxin.proto.core.UserProto.UserProfile.newBuilder(profile_).mergeFrom(value).buildPartial();
|
|
} else {
|
|
profile_ = value;
|
|
}
|
|
onChanged();
|
|
} else {
|
|
profileBuilder_.mergeFrom(value);
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.core.UserProfile profile = 2;</code>
|
|
*/
|
|
public Builder clearProfile() {
|
|
if (profileBuilder_ == null) {
|
|
profile_ = null;
|
|
onChanged();
|
|
} else {
|
|
profile_ = null;
|
|
profileBuilder_ = null;
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <code>.core.UserProfile profile = 2;</code>
|
|
*/
|
|
public com.akaxin.proto.core.UserProto.UserProfile.Builder getProfileBuilder() {
|
|
|
|
onChanged();
|
|
return getProfileFieldBuilder().getBuilder();
|
|
}
|
|
/**
|
|
* <code>.core.UserProfile profile = 2;</code>
|
|
*/
|
|
public com.akaxin.proto.core.UserProto.UserProfileOrBuilder getProfileOrBuilder() {
|
|
if (profileBuilder_ != null) {
|
|
return profileBuilder_.getMessageOrBuilder();
|
|
} else {
|
|
return profile_ == null ?
|
|
com.akaxin.proto.core.UserProto.UserProfile.getDefaultInstance() : profile_;
|
|
}
|
|
}
|
|
/**
|
|
* <code>.core.UserProfile profile = 2;</code>
|
|
*/
|
|
private com.google.protobuf.SingleFieldBuilderV3<
|
|
com.akaxin.proto.core.UserProto.UserProfile, com.akaxin.proto.core.UserProto.UserProfile.Builder, com.akaxin.proto.core.UserProto.UserProfileOrBuilder>
|
|
getProfileFieldBuilder() {
|
|
if (profileBuilder_ == null) {
|
|
profileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
|
com.akaxin.proto.core.UserProto.UserProfile, com.akaxin.proto.core.UserProto.UserProfile.Builder, com.akaxin.proto.core.UserProto.UserProfileOrBuilder>(
|
|
getProfile(),
|
|
getParentForChildren(),
|
|
isClean());
|
|
profile_ = null;
|
|
}
|
|
return profileBuilder_;
|
|
}
|
|
public final Builder setUnknownFields(
|
|
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
return super.setUnknownFieldsProto3(unknownFields);
|
|
}
|
|
|
|
public final Builder mergeUnknownFields(
|
|
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
|
return super.mergeUnknownFields(unknownFields);
|
|
}
|
|
|
|
|
|
// @@protoc_insertion_point(builder_scope:core.GroupMemberProfile)
|
|
}
|
|
|
|
// @@protoc_insertion_point(class_scope:core.GroupMemberProfile)
|
|
private static final com.akaxin.proto.core.GroupProto.GroupMemberProfile DEFAULT_INSTANCE;
|
|
static {
|
|
DEFAULT_INSTANCE = new com.akaxin.proto.core.GroupProto.GroupMemberProfile();
|
|
}
|
|
|
|
public static com.akaxin.proto.core.GroupProto.GroupMemberProfile getDefaultInstance() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
private static final com.google.protobuf.Parser<GroupMemberProfile>
|
|
PARSER = new com.google.protobuf.AbstractParser<GroupMemberProfile>() {
|
|
public GroupMemberProfile parsePartialFrom(
|
|
com.google.protobuf.CodedInputStream input,
|
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
return new GroupMemberProfile(input, extensionRegistry);
|
|
}
|
|
};
|
|
|
|
public static com.google.protobuf.Parser<GroupMemberProfile> parser() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<GroupMemberProfile> getParserForType() {
|
|
return PARSER;
|
|
}
|
|
|
|
public com.akaxin.proto.core.GroupProto.GroupMemberProfile getDefaultInstanceForType() {
|
|
return DEFAULT_INSTANCE;
|
|
}
|
|
|
|
}
|
|
|
|
private static final com.google.protobuf.Descriptors.Descriptor
|
|
internal_static_core_GroupProfile_descriptor;
|
|
private static final
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internal_static_core_GroupProfile_fieldAccessorTable;
|
|
private static final com.google.protobuf.Descriptors.Descriptor
|
|
internal_static_core_SimpleGroupProfile_descriptor;
|
|
private static final
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internal_static_core_SimpleGroupProfile_fieldAccessorTable;
|
|
private static final com.google.protobuf.Descriptors.Descriptor
|
|
internal_static_core_GroupMemberProfile_descriptor;
|
|
private static final
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
internal_static_core_GroupMemberProfile_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\020core/group.proto\022\004core\032\017core/user.prot" +
|
|
"o\"L\n\014GroupProfile\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 " +
|
|
"\001(\t\022\014\n\004icon\030\004 \001(\t\022\024\n\014group_notice\030\005 \001(\t\"" +
|
|
"N\n\022SimpleGroupProfile\022\020\n\010group_id\030\001 \001(\t\022" +
|
|
"\022\n\ngroup_name\030\002 \001(\t\022\022\n\ngroup_icon\030\003 \001(\t\"" +
|
|
"]\n\022GroupMemberProfile\022#\n\004role\030\001 \001(\0162\025.co" +
|
|
"re.GroupMemberRole\022\"\n\007profile\030\002 \001(\0132\021.co" +
|
|
"re.UserProfile*B\n\017GroupMemberRole\022\r\n\tNON" +
|
|
"MEMBER\020\000\022\n\n\006MEMBER\020\001\022\t\n\005OWNER\020\002\022\t\n\005ADMIN" +
|
|
"\020\003*1\n\013GroupStatus\022\020\n\014GROUP_DELETE\020\000\022\020\n\014G",
|
|
"ROUP_NORMAL\020\001B#\n\025com.akaxin.proto.coreB\n" +
|
|
"GroupProtob\006proto3"
|
|
};
|
|
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
|
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
|
|
public com.google.protobuf.ExtensionRegistry assignDescriptors(
|
|
com.google.protobuf.Descriptors.FileDescriptor root) {
|
|
descriptor = root;
|
|
return null;
|
|
}
|
|
};
|
|
com.google.protobuf.Descriptors.FileDescriptor
|
|
.internalBuildGeneratedFileFrom(descriptorData,
|
|
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
com.akaxin.proto.core.UserProto.getDescriptor(),
|
|
}, assigner);
|
|
internal_static_core_GroupProfile_descriptor =
|
|
getDescriptor().getMessageTypes().get(0);
|
|
internal_static_core_GroupProfile_fieldAccessorTable = new
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
internal_static_core_GroupProfile_descriptor,
|
|
new java.lang.String[] { "Id", "Name", "Icon", "GroupNotice", });
|
|
internal_static_core_SimpleGroupProfile_descriptor =
|
|
getDescriptor().getMessageTypes().get(1);
|
|
internal_static_core_SimpleGroupProfile_fieldAccessorTable = new
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
internal_static_core_SimpleGroupProfile_descriptor,
|
|
new java.lang.String[] { "GroupId", "GroupName", "GroupIcon", });
|
|
internal_static_core_GroupMemberProfile_descriptor =
|
|
getDescriptor().getMessageTypes().get(2);
|
|
internal_static_core_GroupMemberProfile_fieldAccessorTable = new
|
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
internal_static_core_GroupMemberProfile_descriptor,
|
|
new java.lang.String[] { "Role", "Profile", });
|
|
com.akaxin.proto.core.UserProto.getDescriptor();
|
|
}
|
|
|
|
// @@protoc_insertion_point(outer_class_scope)
|
|
}
|