// 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 { /** *
*非群成员 ** *
NONMEMBER = 0;
*/
NONMEMBER(0),
/**
* *群成员 ** *
MEMBER = 1;
*/
MEMBER(1),
/**
* *群所有者 ** *
OWNER = 2;
*/
OWNER(2),
/**
* *群管理员 ** *
ADMIN = 3;
*/
ADMIN(3),
UNRECOGNIZED(-1),
;
/**
* *非群成员 ** *
NONMEMBER = 0;
*/
public static final int NONMEMBER_VALUE = 0;
/**
* *群成员 ** *
MEMBER = 1;
*/
public static final int MEMBER_VALUE = 1;
/**
* *群所有者 ** *
OWNER = 2;
*/
public static final int OWNER_VALUE = 2;
/**
* *群管理员 ** *
ADMIN = 3;
*/
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*已经解散的群组 ** *
GROUP_DELETE = 0;
*/
GROUP_DELETE(0),
/**
* *正常的群组 ** *
GROUP_NORMAL = 1;
*/
GROUP_NORMAL(1),
UNRECOGNIZED(-1),
;
/**
* *已经解散的群组 ** *
GROUP_DELETE = 0;
*/
public static final int GROUP_DELETE_VALUE = 0;
/**
* *正常的群组 ** *
GROUP_NORMAL = 1;
*/
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.EnumLiteMapstring id = 1;
*/
java.lang.String getId();
/**
* string id = 1;
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* string name = 2;
*/
java.lang.String getName();
/**
* string name = 2;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* string icon = 4;
*/
java.lang.String getIcon();
/**
* string icon = 4;
*/
com.google.protobuf.ByteString
getIconBytes();
/**
* string group_notice = 5;
*/
java.lang.String getGroupNotice();
/**
* string group_notice = 5;
*/
com.google.protobuf.ByteString
getGroupNoticeBytes();
}
/**
* *简单的group file ** * 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_; /** *
string id = 1;
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
* string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* string name = 2;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 2;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ICON_FIELD_NUMBER = 4;
private volatile java.lang.Object icon_;
/**
* string icon = 4;
*/
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;
}
}
/**
* string icon = 4;
*/
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_;
/**
* string group_notice = 5;
*/
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;
}
}
/**
* string group_notice = 5;
*/
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;
}
/**
* *简单的group file ** * Protobuf type {@code core.GroupProfile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
string id = 1;
*/
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;
}
}
/**
* string id = 1;
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string id = 1;
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* string id = 1;
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* string id = 1;
*/
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_ = "";
/**
* string name = 2;
*/
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;
}
}
/**
* string name = 2;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 2;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 2;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 2;
*/
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_ = "";
/**
* string icon = 4;
*/
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;
}
}
/**
* string icon = 4;
*/
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;
}
}
/**
* string icon = 4;
*/
public Builder setIcon(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
icon_ = value;
onChanged();
return this;
}
/**
* string icon = 4;
*/
public Builder clearIcon() {
icon_ = getDefaultInstance().getIcon();
onChanged();
return this;
}
/**
* string icon = 4;
*/
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_ = "";
/**
* string group_notice = 5;
*/
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;
}
}
/**
* string group_notice = 5;
*/
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;
}
}
/**
* string group_notice = 5;
*/
public Builder setGroupNotice(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
groupNotice_ = value;
onChanged();
return this;
}
/**
* string group_notice = 5;
*/
public Builder clearGroupNotice() {
groupNotice_ = getDefaultInstance().getGroupNotice();
onChanged();
return this;
}
/**
* string group_notice = 5;
*/
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.Parserstring group_id = 1;
*/
java.lang.String getGroupId();
/**
* string group_id = 1;
*/
com.google.protobuf.ByteString
getGroupIdBytes();
/**
* string group_name = 2;
*/
java.lang.String getGroupName();
/**
* string group_name = 2;
*/
com.google.protobuf.ByteString
getGroupNameBytes();
/**
* string group_icon = 3;
*/
java.lang.String getGroupIcon();
/**
* string group_icon = 3;
*/
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_;
/**
* string group_id = 1;
*/
public java.lang.String getGroupId() {
java.lang.Object ref = groupId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
groupId_ = s;
return s;
}
}
/**
* string group_id = 1;
*/
public com.google.protobuf.ByteString
getGroupIdBytes() {
java.lang.Object ref = groupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
groupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GROUP_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object groupName_;
/**
* string group_name = 2;
*/
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;
}
}
/**
* string group_name = 2;
*/
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_;
/**
* string group_icon = 3;
*/
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;
}
}
/**
* string group_icon = 3;
*/
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.Builderstring group_id = 1;
*/
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;
}
}
/**
* string group_id = 1;
*/
public com.google.protobuf.ByteString
getGroupIdBytes() {
java.lang.Object ref = groupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
groupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string group_id = 1;
*/
public Builder setGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
groupId_ = value;
onChanged();
return this;
}
/**
* string group_id = 1;
*/
public Builder clearGroupId() {
groupId_ = getDefaultInstance().getGroupId();
onChanged();
return this;
}
/**
* string group_id = 1;
*/
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_ = "";
/**
* string group_name = 2;
*/
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;
}
}
/**
* string group_name = 2;
*/
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;
}
}
/**
* string group_name = 2;
*/
public Builder setGroupName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
groupName_ = value;
onChanged();
return this;
}
/**
* string group_name = 2;
*/
public Builder clearGroupName() {
groupName_ = getDefaultInstance().getGroupName();
onChanged();
return this;
}
/**
* string group_name = 2;
*/
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_ = "";
/**
* string group_icon = 3;
*/
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;
}
}
/**
* string group_icon = 3;
*/
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;
}
}
/**
* string group_icon = 3;
*/
public Builder setGroupIcon(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
groupIcon_ = value;
onChanged();
return this;
}
/**
* string group_icon = 3;
*/
public Builder clearGroupIcon() {
groupIcon_ = getDefaultInstance().getGroupIcon();
onChanged();
return this;
}
/**
* string group_icon = 3;
*/
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.core.GroupMemberRole role = 1;
*/
int getRoleValue();
/**
* .core.GroupMemberRole role = 1;
*/
com.akaxin.proto.core.GroupProto.GroupMemberRole getRole();
/**
* .core.UserProfile profile = 2;
*/
boolean hasProfile();
/**
* .core.UserProfile profile = 2;
*/
com.akaxin.proto.core.UserProto.UserProfile getProfile();
/**
* .core.UserProfile profile = 2;
*/
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_;
/**
* .core.GroupMemberRole role = 1;
*/
public int getRoleValue() {
return role_;
}
/**
* .core.GroupMemberRole role = 1;
*/
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_;
/**
* .core.UserProfile profile = 2;
*/
public boolean hasProfile() {
return profile_ != null;
}
/**
* .core.UserProfile profile = 2;
*/
public com.akaxin.proto.core.UserProto.UserProfile getProfile() {
return profile_ == null ? com.akaxin.proto.core.UserProto.UserProfile.getDefaultInstance() : profile_;
}
/**
* .core.UserProfile profile = 2;
*/
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.core.GroupMemberRole role = 1;
*/
public int getRoleValue() {
return role_;
}
/**
* .core.GroupMemberRole role = 1;
*/
public Builder setRoleValue(int value) {
role_ = value;
onChanged();
return this;
}
/**
* .core.GroupMemberRole role = 1;
*/
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;
}
/**
* .core.GroupMemberRole role = 1;
*/
public Builder setRole(com.akaxin.proto.core.GroupProto.GroupMemberRole value) {
if (value == null) {
throw new NullPointerException();
}
role_ = value.getNumber();
onChanged();
return this;
}
/**
* .core.GroupMemberRole role = 1;
*/
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_;
/**
* .core.UserProfile profile = 2;
*/
public boolean hasProfile() {
return profileBuilder_ != null || profile_ != null;
}
/**
* .core.UserProfile profile = 2;
*/
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();
}
}
/**
* .core.UserProfile profile = 2;
*/
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;
}
/**
* .core.UserProfile profile = 2;
*/
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;
}
/**
* .core.UserProfile profile = 2;
*/
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;
}
/**
* .core.UserProfile profile = 2;
*/
public Builder clearProfile() {
if (profileBuilder_ == null) {
profile_ = null;
onChanged();
} else {
profile_ = null;
profileBuilder_ = null;
}
return this;
}
/**
* .core.UserProfile profile = 2;
*/
public com.akaxin.proto.core.UserProto.UserProfile.Builder getProfileBuilder() {
onChanged();
return getProfileFieldBuilder().getBuilder();
}
/**
* .core.UserProfile profile = 2;
*/
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_;
}
}
/**
* .core.UserProfile profile = 2;
*/
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