- getWrappersList();
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper getWrappers(int index);
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- int getWrappersCount();
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- java.util.List extends org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapperOrBuilder>
- getWrappersOrBuilderList();
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapperOrBuilder getWrappersOrBuilder(
- int index);
+ getAuthorBytes();
/**
- * optional uint32 expirationTimer = 8;
- * @return Whether the expirationTimer field is set.
- */
- boolean hasExpirationTimer();
- /**
- * optional uint32 expirationTimer = 8;
- * @return The expirationTimer.
+ * optional string emoji = 3;
+ * @return Whether the emoji field is set.
*/
- int getExpirationTimer();
-
+ boolean hasEmoji();
/**
- * optional bytes memberPrivateKey = 9;
- * @return Whether the memberPrivateKey field is set.
+ * optional string emoji = 3;
+ * @return The emoji.
*/
- boolean hasMemberPrivateKey();
+ java.lang.String getEmoji();
/**
- * optional bytes memberPrivateKey = 9;
- * @return The memberPrivateKey.
+ * optional string emoji = 3;
+ * @return The bytes for emoji.
*/
- com.google.protobuf.ByteString getMemberPrivateKey();
+ com.google.protobuf.ByteString
+ getEmojiBytes();
/**
- * optional bytes privateKey = 10;
- * @return Whether the privateKey field is set.
+ *
+ * @required
+ *
+ *
+ * required .signalservice.DataMessage.Reaction.Action action = 4;
+ * @return Whether the action field is set.
*/
- boolean hasPrivateKey();
+ boolean hasAction();
/**
- * optional bytes privateKey = 10;
- * @return The privateKey.
+ *
+ * @required
+ *
+ *
+ * required .signalservice.DataMessage.Reaction.Action action = 4;
+ * @return The action.
*/
- com.google.protobuf.ByteString getPrivateKey();
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action getAction();
}
/**
- * Protobuf type {@code signalservice.DataMessage.ClosedGroupControlMessage}
+ * Protobuf type {@code signalservice.DataMessage.Reaction}
*/
- public static final class ClosedGroupControlMessage extends
+ public static final class Reaction extends
com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:signalservice.DataMessage.ClosedGroupControlMessage)
- ClosedGroupControlMessageOrBuilder {
+ // @@protoc_insertion_point(message_implements:signalservice.DataMessage.Reaction)
+ ReactionOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
@@ -21177,220 +20671,63 @@ public static final class ClosedGroupControlMessage extends
/* minor= */ 29,
/* patch= */ 3,
/* suffix= */ "",
- ClosedGroupControlMessage.class.getName());
+ Reaction.class.getName());
}
- // Use ClosedGroupControlMessage.newBuilder() to construct.
- private ClosedGroupControlMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ // Use Reaction.newBuilder() to construct.
+ private Reaction(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
- private ClosedGroupControlMessage() {
- type_ = 1;
- publicKey_ = com.google.protobuf.ByteString.EMPTY;
- name_ = "";
- members_ = emptyList(com.google.protobuf.ByteString.class);
- admins_ = emptyList(com.google.protobuf.ByteString.class);
- wrappers_ = java.util.Collections.emptyList();
- memberPrivateKey_ = com.google.protobuf.ByteString.EMPTY;
- privateKey_ = com.google.protobuf.ByteString.EMPTY;
+ private Reaction() {
+ author_ = "";
+ emoji_ = "";
+ action_ = 0;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_ClosedGroupControlMessage_descriptor;
+ return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_Reaction_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_ClosedGroupControlMessage_fieldAccessorTable
+ return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_Reaction_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.class, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Builder.class);
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.class, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Builder.class);
}
/**
- * Protobuf enum {@code signalservice.DataMessage.ClosedGroupControlMessage.Type}
+ * Protobuf enum {@code signalservice.DataMessage.Reaction.Action}
*/
- public enum Type
+ public enum Action
implements com.google.protobuf.ProtocolMessageEnum {
/**
- *
- * publicKey, name, encryptionKeyPair, members, admins, expireTimer
- *
- *
- * NEW = 1;
+ * REACT = 0;
*/
- NEW(1),
+ REACT(0),
/**
- *
- * publicKey, wrappers
- *
- *
- * ENCRYPTION_KEY_PAIR = 3;
+ * REMOVE = 1;
*/
- ENCRYPTION_KEY_PAIR(3),
+ REMOVE(1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 29,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ Action.class.getName());
+ }
/**
- *
- * name
- *
- *
- * NAME_CHANGE = 4;
+ * REACT = 0;
*/
- NAME_CHANGE(4),
+ public static final int REACT_VALUE = 0;
/**
- *
- * members
- *
- *
- * MEMBERS_ADDED = 5;
- */
- MEMBERS_ADDED(5),
- /**
- *
- * members
- *
- *
- * MEMBERS_REMOVED = 6;
- */
- MEMBERS_REMOVED(6),
- /**
- * MEMBER_LEFT = 7;
- */
- MEMBER_LEFT(7),
- /**
- *
- * publicKey, name, memberPrivateKey
- *
- *
- * INVITE = 9;
- */
- INVITE(9),
- /**
- *
- * publicKey, privateKey
- *
- *
- * PROMOTE = 10;
- */
- PROMOTE(10),
- /**
- *
- * publicKey, members
- *
- *
- * DELETE_GROUP = 11;
- */
- DELETE_GROUP(11),
- /**
- *
- * publicKey
- *
- *
- * DELETE_MESSAGES = 12;
- */
- DELETE_MESSAGES(12),
- /**
- *
- * publicKey
- *
- *
- * DELETE_ATTACHMENTS = 13;
- */
- DELETE_ATTACHMENTS(13),
- ;
-
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 3,
- /* suffix= */ "",
- Type.class.getName());
- }
- /**
- *
- * publicKey, name, encryptionKeyPair, members, admins, expireTimer
- *
- *
- * NEW = 1;
- */
- public static final int NEW_VALUE = 1;
- /**
- *
- * publicKey, wrappers
- *
- *
- * ENCRYPTION_KEY_PAIR = 3;
- */
- public static final int ENCRYPTION_KEY_PAIR_VALUE = 3;
- /**
- *
- * name
- *
- *
- * NAME_CHANGE = 4;
- */
- public static final int NAME_CHANGE_VALUE = 4;
- /**
- *
- * members
- *
- *
- * MEMBERS_ADDED = 5;
- */
- public static final int MEMBERS_ADDED_VALUE = 5;
- /**
- *
- * members
- *
- *
- * MEMBERS_REMOVED = 6;
- */
- public static final int MEMBERS_REMOVED_VALUE = 6;
- /**
- * MEMBER_LEFT = 7;
- */
- public static final int MEMBER_LEFT_VALUE = 7;
- /**
- *
- * publicKey, name, memberPrivateKey
- *
- *
- * INVITE = 9;
- */
- public static final int INVITE_VALUE = 9;
- /**
- *
- * publicKey, privateKey
- *
- *
- * PROMOTE = 10;
- */
- public static final int PROMOTE_VALUE = 10;
- /**
- *
- * publicKey, members
- *
- *
- * DELETE_GROUP = 11;
- */
- public static final int DELETE_GROUP_VALUE = 11;
- /**
- *
- * publicKey
- *
- *
- * DELETE_MESSAGES = 12;
- */
- public static final int DELETE_MESSAGES_VALUE = 12;
- /**
- *
- * publicKey
- *
- *
- * DELETE_ATTACHMENTS = 13;
+ * REMOVE = 1;
*/
- public static final int DELETE_ATTACHMENTS_VALUE = 13;
+ public static final int REMOVE_VALUE = 1;
public final int getNumber() {
@@ -21403,7 +20740,7 @@ public final int getNumber() {
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
- public static Type valueOf(int value) {
+ public static Action valueOf(int value) {
return forNumber(value);
}
@@ -21411,32 +20748,23 @@ public static Type valueOf(int value) {
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
- public static Type forNumber(int value) {
+ public static Action forNumber(int value) {
switch (value) {
- case 1: return NEW;
- case 3: return ENCRYPTION_KEY_PAIR;
- case 4: return NAME_CHANGE;
- case 5: return MEMBERS_ADDED;
- case 6: return MEMBERS_REMOVED;
- case 7: return MEMBER_LEFT;
- case 9: return INVITE;
- case 10: return PROMOTE;
- case 11: return DELETE_GROUP;
- case 12: return DELETE_MESSAGES;
- case 13: return DELETE_ATTACHMENTS;
+ case 0: return REACT;
+ case 1: return REMOVE;
default: return null;
}
}
- public static com.google.protobuf.Internal.EnumLiteMap
+ public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
- Type> internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap() {
- public Type findValueByNumber(int number) {
- return Type.forNumber(number);
+ Action> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public Action findValueByNumber(int number) {
+ return Action.forNumber(number);
}
};
@@ -21450,12 +20778,12 @@ public Type findValueByNumber(int number) {
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.getDescriptor().getEnumTypes().get(0);
+ return org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.getDescriptor().getEnumTypes().get(0);
}
- private static final Type[] VALUES = values();
+ private static final Action[] VALUES = values();
- public static Type valueOf(
+ public static Action valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
@@ -21466,11673 +20794,679 @@ public static Type valueOf(
private final int value;
- private Type(int value) {
+ private Action(int value) {
this.value = value;
}
- // @@protoc_insertion_point(enum_scope:signalservice.DataMessage.ClosedGroupControlMessage.Type)
+ // @@protoc_insertion_point(enum_scope:signalservice.DataMessage.Reaction.Action)
}
- public interface KeyPairWrapperOrBuilder extends
- // @@protoc_insertion_point(interface_extends:signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return Whether the publicKey field is set.
- */
- boolean hasPublicKey();
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return The publicKey.
- */
- com.google.protobuf.ByteString getPublicKey();
-
- /**
- *
- * @required
- *
- *
- * required bytes encryptedKeyPair = 2;
- * @return Whether the encryptedKeyPair field is set.
- */
- boolean hasEncryptedKeyPair();
- /**
- *
- * @required
- *
- *
- * required bytes encryptedKeyPair = 2;
- * @return The encryptedKeyPair.
- */
- com.google.protobuf.ByteString getEncryptedKeyPair();
+ private int bitField0_;
+ public static final int ID_FIELD_NUMBER = 1;
+ private long id_ = 0L;
+ /**
+ *
+ * @required
+ *
+ *
+ * required uint64 id = 1;
+ * @return Whether the id field is set.
+ */
+ @java.lang.Override
+ public boolean hasId() {
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
- * Protobuf type {@code signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper}
+ *
+ * @required
+ *
+ *
+ * required uint64 id = 1;
+ * @return The id.
*/
- public static final class KeyPairWrapper extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper)
- KeyPairWrapperOrBuilder {
- private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 3,
- /* suffix= */ "",
- KeyPairWrapper.class.getName());
- }
- // Use KeyPairWrapper.newBuilder() to construct.
- private KeyPairWrapper(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- }
- private KeyPairWrapper() {
- publicKey_ = com.google.protobuf.ByteString.EMPTY;
- encryptedKeyPair_ = com.google.protobuf.ByteString.EMPTY;
- }
+ @java.lang.Override
+ public long getId() {
+ return id_;
+ }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_ClosedGroupControlMessage_KeyPairWrapper_descriptor;
+ public static final int AUTHOR_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object author_ = "";
+ /**
+ *
+ * @required
+ *
+ *
+ * required string author = 2;
+ * @return Whether the author field is set.
+ */
+ @java.lang.Override
+ public boolean hasAuthor() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ * @required
+ *
+ *
+ * required string author = 2;
+ * @return The author.
+ */
+ @java.lang.Override
+ public java.lang.String getAuthor() {
+ java.lang.Object ref = author_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ author_ = s;
+ }
+ return s;
}
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_ClosedGroupControlMessage_KeyPairWrapper_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.class, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.Builder.class);
+ }
+ /**
+ *
+ * @required
+ *
+ *
+ * required string author = 2;
+ * @return The bytes for author.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getAuthorBytes() {
+ java.lang.Object ref = author_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ author_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
+ }
- private int bitField0_;
- public static final int PUBLICKEY_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return Whether the publicKey field is set.
- */
- @java.lang.Override
- public boolean hasPublicKey() {
- return ((bitField0_ & 0x00000001) != 0);
+ public static final int EMOJI_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object emoji_ = "";
+ /**
+ * optional string emoji = 3;
+ * @return Whether the emoji field is set.
+ */
+ @java.lang.Override
+ public boolean hasEmoji() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional string emoji = 3;
+ * @return The emoji.
+ */
+ @java.lang.Override
+ public java.lang.String getEmoji() {
+ java.lang.Object ref = emoji_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ emoji_ = s;
+ }
+ return s;
}
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return The publicKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getPublicKey() {
- return publicKey_;
+ }
+ /**
+ * optional string emoji = 3;
+ * @return The bytes for emoji.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getEmojiBytes() {
+ java.lang.Object ref = emoji_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ emoji_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
+ }
- public static final int ENCRYPTEDKEYPAIR_FIELD_NUMBER = 2;
- private com.google.protobuf.ByteString encryptedKeyPair_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes encryptedKeyPair = 2;
- * @return Whether the encryptedKeyPair field is set.
- */
- @java.lang.Override
- public boolean hasEncryptedKeyPair() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required bytes encryptedKeyPair = 2;
- * @return The encryptedKeyPair.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getEncryptedKeyPair() {
- return encryptedKeyPair_;
- }
+ public static final int ACTION_FIELD_NUMBER = 4;
+ private int action_ = 0;
+ /**
+ *
+ * @required
+ *
+ *
+ * required .signalservice.DataMessage.Reaction.Action action = 4;
+ * @return Whether the action field is set.
+ */
+ @java.lang.Override public boolean hasAction() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ * @required
+ *
+ *
+ * required .signalservice.DataMessage.Reaction.Action action = 4;
+ * @return The action.
+ */
+ @java.lang.Override public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action getAction() {
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action result = org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action.forNumber(action_);
+ return result == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action.REACT : result;
+ }
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
- if (!hasPublicKey()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasEncryptedKeyPair()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
+ if (!hasId()) {
+ memoizedIsInitialized = 0;
+ return false;
}
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeBytes(1, publicKey_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeBytes(2, encryptedKeyPair_);
- }
- getUnknownFields().writeTo(output);
+ if (!hasAuthor()) {
+ memoizedIsInitialized = 0;
+ return false;
}
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, publicKey_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, encryptedKeyPair_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
+ if (!hasAction()) {
+ memoizedIsInitialized = 0;
+ return false;
}
+ memoizedIsInitialized = 1;
+ return true;
+ }
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper)) {
- return super.equals(obj);
- }
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper other = (org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper) obj;
-
- if (hasPublicKey() != other.hasPublicKey()) return false;
- if (hasPublicKey()) {
- if (!getPublicKey()
- .equals(other.getPublicKey())) return false;
- }
- if (hasEncryptedKeyPair() != other.hasEncryptedKeyPair()) return false;
- if (hasEncryptedKeyPair()) {
- if (!getEncryptedKeyPair()
- .equals(other.getEncryptedKeyPair())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeUInt64(1, id_);
}
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasPublicKey()) {
- hash = (37 * hash) + PUBLICKEY_FIELD_NUMBER;
- hash = (53 * hash) + getPublicKey().hashCode();
- }
- if (hasEncryptedKeyPair()) {
- hash = (37 * hash) + ENCRYPTEDKEYPAIR_FIELD_NUMBER;
- hash = (53 * hash) + getEncryptedKeyPair().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, author_);
}
-
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, emoji_);
}
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeEnum(4, action_);
}
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(1, id_);
}
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, author_);
}
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, emoji_);
}
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(4, action_);
}
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
}
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
+ if (!(obj instanceof org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction)) {
+ return super.equals(obj);
}
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction other = (org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction) obj;
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input);
+ if (hasId() != other.hasId()) return false;
+ if (hasId()) {
+ if (getId()
+ != other.getId()) return false;
}
-
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ if (hasAuthor() != other.hasAuthor()) return false;
+ if (hasAuthor()) {
+ if (!getAuthor()
+ .equals(other.getAuthor())) return false;
}
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
+ if (hasEmoji() != other.hasEmoji()) return false;
+ if (hasEmoji()) {
+ if (!getEmoji()
+ .equals(other.getEmoji())) return false;
}
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
+ if (hasAction() != other.hasAction()) return false;
+ if (hasAction()) {
+ if (action_ != other.action_) return false;
}
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
}
- public static Builder newBuilder(org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasId()) {
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getId());
}
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
+ if (hasAuthor()) {
+ hash = (37 * hash) + AUTHOR_FIELD_NUMBER;
+ hash = (53 * hash) + getAuthor().hashCode();
+ }
+ if (hasEmoji()) {
+ hash = (37 * hash) + EMOJI_FIELD_NUMBER;
+ hash = (53 * hash) + getEmoji().hashCode();
+ }
+ if (hasAction()) {
+ hash = (37 * hash) + ACTION_FIELD_NUMBER;
+ hash = (53 * hash) + action_;
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code signalservice.DataMessage.Reaction}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:signalservice.DataMessage.Reaction)
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.ReactionOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_Reaction_descriptor;
}
@java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_Reaction_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.class, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Builder.class);
}
- /**
- * Protobuf type {@code signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper)
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapperOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_ClosedGroupControlMessage_KeyPairWrapper_descriptor;
- }
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_ClosedGroupControlMessage_KeyPairWrapper_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.class, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.Builder.class);
- }
+ // Construct using org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.newBuilder()
+ private Builder() {
- // Construct using org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.newBuilder()
- private Builder() {
+ }
- }
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ id_ = 0L;
+ author_ = "";
+ emoji_ = "";
+ action_ = 0;
+ return this;
+ }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- publicKey_ = com.google.protobuf.ByteString.EMPTY;
- encryptedKeyPair_ = com.google.protobuf.ByteString.EMPTY;
- return this;
- }
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_Reaction_descriptor;
+ }
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_ClosedGroupControlMessage_KeyPairWrapper_descriptor;
- }
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction getDefaultInstanceForType() {
+ return org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.getDefaultInstance();
+ }
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper getDefaultInstanceForType() {
- return org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.getDefaultInstance();
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction build() {
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
}
+ return result;
+ }
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper build() {
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction buildPartial() {
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction result = new org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper buildPartial() {
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper result = new org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.publicKey_ = publicKey_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.encryptedKeyPair_ = encryptedKeyPair_;
- to_bitField0_ |= 0x00000002;
- }
- result.bitField0_ |= to_bitField0_;
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper) {
- return mergeFrom((org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
+ private void buildPartial0(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.id_ = id_;
+ to_bitField0_ |= 0x00000001;
}
-
- public Builder mergeFrom(org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper other) {
- if (other == org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.getDefaultInstance()) return this;
- if (other.hasPublicKey()) {
- setPublicKey(other.getPublicKey());
- }
- if (other.hasEncryptedKeyPair()) {
- setEncryptedKeyPair(other.getEncryptedKeyPair());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.author_ = author_;
+ to_bitField0_ |= 0x00000002;
}
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasPublicKey()) {
- return false;
- }
- if (!hasEncryptedKeyPair()) {
- return false;
- }
- return true;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.emoji_ = emoji_;
+ to_bitField0_ |= 0x00000004;
}
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- publicKey_ = input.readBytes();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- encryptedKeyPair_ = input.readBytes();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.action_ = action_;
+ to_bitField0_ |= 0x00000008;
}
- private int bitField0_;
+ result.bitField0_ |= to_bitField0_;
+ }
- private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return Whether the publicKey field is set.
- */
- @java.lang.Override
- public boolean hasPublicKey() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return The publicKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getPublicKey() {
- return publicKey_;
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @param value The publicKey to set.
- * @return This builder for chaining.
- */
- public Builder setPublicKey(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- publicKey_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return This builder for chaining.
- */
- public Builder clearPublicKey() {
- bitField0_ = (bitField0_ & ~0x00000001);
- publicKey_ = getDefaultInstance().getPublicKey();
- onChanged();
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction) {
+ return mergeFrom((org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction)other);
+ } else {
+ super.mergeFrom(other);
return this;
}
+ }
- private com.google.protobuf.ByteString encryptedKeyPair_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes encryptedKeyPair = 2;
- * @return Whether the encryptedKeyPair field is set.
- */
- @java.lang.Override
- public boolean hasEncryptedKeyPair() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required bytes encryptedKeyPair = 2;
- * @return The encryptedKeyPair.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getEncryptedKeyPair() {
- return encryptedKeyPair_;
+ public Builder mergeFrom(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction other) {
+ if (other == org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.getDefaultInstance()) return this;
+ if (other.hasId()) {
+ setId(other.getId());
}
- /**
- *
- * @required
- *
- *
- * required bytes encryptedKeyPair = 2;
- * @param value The encryptedKeyPair to set.
- * @return This builder for chaining.
- */
- public Builder setEncryptedKeyPair(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- encryptedKeyPair_ = value;
+ if (other.hasAuthor()) {
+ author_ = other.author_;
bitField0_ |= 0x00000002;
onChanged();
- return this;
}
- /**
- *
- * @required
- *
- *
- * required bytes encryptedKeyPair = 2;
- * @return This builder for chaining.
- */
- public Builder clearEncryptedKeyPair() {
- bitField0_ = (bitField0_ & ~0x00000002);
- encryptedKeyPair_ = getDefaultInstance().getEncryptedKeyPair();
+ if (other.hasEmoji()) {
+ emoji_ = other.emoji_;
+ bitField0_ |= 0x00000004;
onChanged();
- return this;
}
-
- // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper)
- }
-
- // @@protoc_insertion_point(class_scope:signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper)
- private static final org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper();
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public KeyPairWrapper parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
+ if (other.hasAction()) {
+ setAction(other.getAction());
}
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
}
@java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
+ public final boolean isInitialized() {
+ if (!hasId()) {
+ return false;
+ }
+ if (!hasAuthor()) {
+ return false;
+ }
+ if (!hasAction()) {
+ return false;
+ }
+ return true;
}
@java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ id_ = input.readUInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ author_ = input.readBytes();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ emoji_ = input.readBytes();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 32: {
+ int tmpRaw = input.readEnum();
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action tmpValue =
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action.forNumber(tmpRaw);
+ if (tmpValue == null) {
+ mergeUnknownVarintField(4, tmpRaw);
+ } else {
+ action_ = tmpRaw;
+ bitField0_ |= 0x00000008;
+ }
+ break;
+ } // case 32
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
}
+ private int bitField0_;
- }
-
- private int bitField0_;
- public static final int TYPE_FIELD_NUMBER = 1;
- private int type_ = 1;
- /**
- *
- * @required
- *
- *
- * required .signalservice.DataMessage.ClosedGroupControlMessage.Type type = 1;
- * @return Whether the type field is set.
- */
- @java.lang.Override public boolean hasType() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required .signalservice.DataMessage.ClosedGroupControlMessage.Type type = 1;
- * @return The type.
- */
- @java.lang.Override public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Type getType() {
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Type result = org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Type.forNumber(type_);
- return result == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Type.NEW : result;
- }
-
- public static final int PUBLICKEY_FIELD_NUMBER = 2;
- private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- * optional bytes publicKey = 2;
- * @return Whether the publicKey field is set.
- */
- @java.lang.Override
- public boolean hasPublicKey() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * optional bytes publicKey = 2;
- * @return The publicKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getPublicKey() {
- return publicKey_;
- }
-
- public static final int NAME_FIELD_NUMBER = 3;
- @SuppressWarnings("serial")
- private volatile java.lang.Object name_ = "";
- /**
- * optional string name = 3;
- * @return Whether the name field is set.
- */
- @java.lang.Override
- public boolean hasName() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- * optional string name = 3;
- * @return The name.
- */
- @java.lang.Override
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- }
- }
- /**
- * optional string name = 3;
- * @return The bytes for name.
- */
- @java.lang.Override
- 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 ENCRYPTIONKEYPAIR_FIELD_NUMBER = 4;
- private org.session.libsignal.protos.SignalServiceProtos.KeyPair encryptionKeyPair_;
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 4;
- * @return Whether the encryptionKeyPair field is set.
- */
- @java.lang.Override
- public boolean hasEncryptionKeyPair() {
- return ((bitField0_ & 0x00000008) != 0);
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 4;
- * @return The encryptionKeyPair.
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.KeyPair getEncryptionKeyPair() {
- return encryptionKeyPair_ == null ? org.session.libsignal.protos.SignalServiceProtos.KeyPair.getDefaultInstance() : encryptionKeyPair_;
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 4;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.KeyPairOrBuilder getEncryptionKeyPairOrBuilder() {
- return encryptionKeyPair_ == null ? org.session.libsignal.protos.SignalServiceProtos.KeyPair.getDefaultInstance() : encryptionKeyPair_;
- }
-
- public static final int MEMBERS_FIELD_NUMBER = 5;
- @SuppressWarnings("serial")
- private com.google.protobuf.Internal.ProtobufList members_ =
- emptyList(com.google.protobuf.ByteString.class);
- /**
- * repeated bytes members = 5;
- * @return A list containing the members.
- */
- @java.lang.Override
- public java.util.List
- getMembersList() {
- return members_;
- }
- /**
- * repeated bytes members = 5;
- * @return The count of members.
- */
- public int getMembersCount() {
- return members_.size();
- }
- /**
- * repeated bytes members = 5;
- * @param index The index of the element to return.
- * @return The members at the given index.
- */
- public com.google.protobuf.ByteString getMembers(int index) {
- return members_.get(index);
- }
-
- public static final int ADMINS_FIELD_NUMBER = 6;
- @SuppressWarnings("serial")
- private com.google.protobuf.Internal.ProtobufList admins_ =
- emptyList(com.google.protobuf.ByteString.class);
- /**
- * repeated bytes admins = 6;
- * @return A list containing the admins.
- */
- @java.lang.Override
- public java.util.List
- getAdminsList() {
- return admins_;
- }
- /**
- * repeated bytes admins = 6;
- * @return The count of admins.
- */
- public int getAdminsCount() {
- return admins_.size();
- }
- /**
- * repeated bytes admins = 6;
- * @param index The index of the element to return.
- * @return The admins at the given index.
- */
- public com.google.protobuf.ByteString getAdmins(int index) {
- return admins_.get(index);
- }
-
- public static final int WRAPPERS_FIELD_NUMBER = 7;
- @SuppressWarnings("serial")
- private java.util.List wrappers_;
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- @java.lang.Override
- public java.util.List getWrappersList() {
- return wrappers_;
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- @java.lang.Override
- public java.util.List extends org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapperOrBuilder>
- getWrappersOrBuilderList() {
- return wrappers_;
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- @java.lang.Override
- public int getWrappersCount() {
- return wrappers_.size();
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper getWrappers(int index) {
- return wrappers_.get(index);
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapperOrBuilder getWrappersOrBuilder(
- int index) {
- return wrappers_.get(index);
- }
-
- public static final int EXPIRATIONTIMER_FIELD_NUMBER = 8;
- private int expirationTimer_ = 0;
- /**
- * optional uint32 expirationTimer = 8;
- * @return Whether the expirationTimer field is set.
- */
- @java.lang.Override
- public boolean hasExpirationTimer() {
- return ((bitField0_ & 0x00000010) != 0);
- }
- /**
- * optional uint32 expirationTimer = 8;
- * @return The expirationTimer.
- */
- @java.lang.Override
- public int getExpirationTimer() {
- return expirationTimer_;
- }
-
- public static final int MEMBERPRIVATEKEY_FIELD_NUMBER = 9;
- private com.google.protobuf.ByteString memberPrivateKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- * optional bytes memberPrivateKey = 9;
- * @return Whether the memberPrivateKey field is set.
- */
- @java.lang.Override
- public boolean hasMemberPrivateKey() {
- return ((bitField0_ & 0x00000020) != 0);
- }
- /**
- * optional bytes memberPrivateKey = 9;
- * @return The memberPrivateKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getMemberPrivateKey() {
- return memberPrivateKey_;
- }
-
- public static final int PRIVATEKEY_FIELD_NUMBER = 10;
- private com.google.protobuf.ByteString privateKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- * optional bytes privateKey = 10;
- * @return Whether the privateKey field is set.
- */
- @java.lang.Override
- public boolean hasPrivateKey() {
- return ((bitField0_ & 0x00000040) != 0);
- }
- /**
- * optional bytes privateKey = 10;
- * @return The privateKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getPrivateKey() {
- return privateKey_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (!hasType()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (hasEncryptionKeyPair()) {
- if (!getEncryptionKeyPair().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- for (int i = 0; i < getWrappersCount(); i++) {
- if (!getWrappers(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeEnum(1, type_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeBytes(2, publicKey_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 3, name_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- output.writeMessage(4, getEncryptionKeyPair());
- }
- for (int i = 0; i < members_.size(); i++) {
- output.writeBytes(5, members_.get(i));
- }
- for (int i = 0; i < admins_.size(); i++) {
- output.writeBytes(6, admins_.get(i));
- }
- for (int i = 0; i < wrappers_.size(); i++) {
- output.writeMessage(7, wrappers_.get(i));
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- output.writeUInt32(8, expirationTimer_);
- }
- if (((bitField0_ & 0x00000020) != 0)) {
- output.writeBytes(9, memberPrivateKey_);
- }
- if (((bitField0_ & 0x00000040) != 0)) {
- output.writeBytes(10, privateKey_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, type_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, publicKey_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(3, name_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, getEncryptionKeyPair());
- }
- {
- int dataSize = 0;
- for (int i = 0; i < members_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(members_.get(i));
- }
- size += dataSize;
- size += 1 * getMembersList().size();
- }
- {
- int dataSize = 0;
- for (int i = 0; i < admins_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(admins_.get(i));
- }
- size += dataSize;
- size += 1 * getAdminsList().size();
- }
- for (int i = 0; i < wrappers_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(7, wrappers_.get(i));
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(8, expirationTimer_);
- }
- if (((bitField0_ & 0x00000020) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(9, memberPrivateKey_);
- }
- if (((bitField0_ & 0x00000040) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(10, privateKey_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage)) {
- return super.equals(obj);
- }
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage other = (org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage) obj;
-
- if (hasType() != other.hasType()) return false;
- if (hasType()) {
- if (type_ != other.type_) return false;
- }
- if (hasPublicKey() != other.hasPublicKey()) return false;
- if (hasPublicKey()) {
- if (!getPublicKey()
- .equals(other.getPublicKey())) return false;
- }
- if (hasName() != other.hasName()) return false;
- if (hasName()) {
- if (!getName()
- .equals(other.getName())) return false;
- }
- if (hasEncryptionKeyPair() != other.hasEncryptionKeyPair()) return false;
- if (hasEncryptionKeyPair()) {
- if (!getEncryptionKeyPair()
- .equals(other.getEncryptionKeyPair())) return false;
- }
- if (!getMembersList()
- .equals(other.getMembersList())) return false;
- if (!getAdminsList()
- .equals(other.getAdminsList())) return false;
- if (!getWrappersList()
- .equals(other.getWrappersList())) return false;
- if (hasExpirationTimer() != other.hasExpirationTimer()) return false;
- if (hasExpirationTimer()) {
- if (getExpirationTimer()
- != other.getExpirationTimer()) return false;
- }
- if (hasMemberPrivateKey() != other.hasMemberPrivateKey()) return false;
- if (hasMemberPrivateKey()) {
- if (!getMemberPrivateKey()
- .equals(other.getMemberPrivateKey())) return false;
- }
- if (hasPrivateKey() != other.hasPrivateKey()) return false;
- if (hasPrivateKey()) {
- if (!getPrivateKey()
- .equals(other.getPrivateKey())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasType()) {
- hash = (37 * hash) + TYPE_FIELD_NUMBER;
- hash = (53 * hash) + type_;
- }
- if (hasPublicKey()) {
- hash = (37 * hash) + PUBLICKEY_FIELD_NUMBER;
- hash = (53 * hash) + getPublicKey().hashCode();
- }
- if (hasName()) {
- hash = (37 * hash) + NAME_FIELD_NUMBER;
- hash = (53 * hash) + getName().hashCode();
- }
- if (hasEncryptionKeyPair()) {
- hash = (37 * hash) + ENCRYPTIONKEYPAIR_FIELD_NUMBER;
- hash = (53 * hash) + getEncryptionKeyPair().hashCode();
- }
- if (getMembersCount() > 0) {
- hash = (37 * hash) + MEMBERS_FIELD_NUMBER;
- hash = (53 * hash) + getMembersList().hashCode();
- }
- if (getAdminsCount() > 0) {
- hash = (37 * hash) + ADMINS_FIELD_NUMBER;
- hash = (53 * hash) + getAdminsList().hashCode();
- }
- if (getWrappersCount() > 0) {
- hash = (37 * hash) + WRAPPERS_FIELD_NUMBER;
- hash = (53 * hash) + getWrappersList().hashCode();
- }
- if (hasExpirationTimer()) {
- hash = (37 * hash) + EXPIRATIONTIMER_FIELD_NUMBER;
- hash = (53 * hash) + getExpirationTimer();
- }
- if (hasMemberPrivateKey()) {
- hash = (37 * hash) + MEMBERPRIVATEKEY_FIELD_NUMBER;
- hash = (53 * hash) + getMemberPrivateKey().hashCode();
- }
- if (hasPrivateKey()) {
- hash = (37 * hash) + PRIVATEKEY_FIELD_NUMBER;
- hash = (53 * hash) + getPrivateKey().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code signalservice.DataMessage.ClosedGroupControlMessage}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:signalservice.DataMessage.ClosedGroupControlMessage)
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessageOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_ClosedGroupControlMessage_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_ClosedGroupControlMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.class, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Builder.class);
- }
-
- // Construct using org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
- .alwaysUseFieldBuilders) {
- getEncryptionKeyPairFieldBuilder();
- getWrappersFieldBuilder();
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- type_ = 1;
- publicKey_ = com.google.protobuf.ByteString.EMPTY;
- name_ = "";
- encryptionKeyPair_ = null;
- if (encryptionKeyPairBuilder_ != null) {
- encryptionKeyPairBuilder_.dispose();
- encryptionKeyPairBuilder_ = null;
- }
- members_ = emptyList(com.google.protobuf.ByteString.class);
- admins_ = emptyList(com.google.protobuf.ByteString.class);
- if (wrappersBuilder_ == null) {
- wrappers_ = java.util.Collections.emptyList();
- } else {
- wrappers_ = null;
- wrappersBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000040);
- expirationTimer_ = 0;
- memberPrivateKey_ = com.google.protobuf.ByteString.EMPTY;
- privateKey_ = com.google.protobuf.ByteString.EMPTY;
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_ClosedGroupControlMessage_descriptor;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage getDefaultInstanceForType() {
- return org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.getDefaultInstance();
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage build() {
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage buildPartial() {
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage result = new org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage result) {
- if (wrappersBuilder_ == null) {
- if (((bitField0_ & 0x00000040) != 0)) {
- wrappers_ = java.util.Collections.unmodifiableList(wrappers_);
- bitField0_ = (bitField0_ & ~0x00000040);
- }
- result.wrappers_ = wrappers_;
- } else {
- result.wrappers_ = wrappersBuilder_.build();
- }
- }
-
- private void buildPartial0(org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.type_ = type_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.publicKey_ = publicKey_;
- to_bitField0_ |= 0x00000002;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.name_ = name_;
- to_bitField0_ |= 0x00000004;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.encryptionKeyPair_ = encryptionKeyPairBuilder_ == null
- ? encryptionKeyPair_
- : encryptionKeyPairBuilder_.build();
- to_bitField0_ |= 0x00000008;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- members_.makeImmutable();
- result.members_ = members_;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- admins_.makeImmutable();
- result.admins_ = admins_;
- }
- if (((from_bitField0_ & 0x00000080) != 0)) {
- result.expirationTimer_ = expirationTimer_;
- to_bitField0_ |= 0x00000010;
- }
- if (((from_bitField0_ & 0x00000100) != 0)) {
- result.memberPrivateKey_ = memberPrivateKey_;
- to_bitField0_ |= 0x00000020;
- }
- if (((from_bitField0_ & 0x00000200) != 0)) {
- result.privateKey_ = privateKey_;
- to_bitField0_ |= 0x00000040;
- }
- result.bitField0_ |= to_bitField0_;
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage) {
- return mergeFrom((org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage other) {
- if (other == org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.getDefaultInstance()) return this;
- if (other.hasType()) {
- setType(other.getType());
- }
- if (other.hasPublicKey()) {
- setPublicKey(other.getPublicKey());
- }
- if (other.hasName()) {
- name_ = other.name_;
- bitField0_ |= 0x00000004;
- onChanged();
- }
- if (other.hasEncryptionKeyPair()) {
- mergeEncryptionKeyPair(other.getEncryptionKeyPair());
- }
- if (!other.members_.isEmpty()) {
- if (members_.isEmpty()) {
- members_ = other.members_;
- members_.makeImmutable();
- bitField0_ |= 0x00000010;
- } else {
- ensureMembersIsMutable();
- members_.addAll(other.members_);
- }
- onChanged();
- }
- if (!other.admins_.isEmpty()) {
- if (admins_.isEmpty()) {
- admins_ = other.admins_;
- admins_.makeImmutable();
- bitField0_ |= 0x00000020;
- } else {
- ensureAdminsIsMutable();
- admins_.addAll(other.admins_);
- }
- onChanged();
- }
- if (wrappersBuilder_ == null) {
- if (!other.wrappers_.isEmpty()) {
- if (wrappers_.isEmpty()) {
- wrappers_ = other.wrappers_;
- bitField0_ = (bitField0_ & ~0x00000040);
- } else {
- ensureWrappersIsMutable();
- wrappers_.addAll(other.wrappers_);
- }
- onChanged();
- }
- } else {
- if (!other.wrappers_.isEmpty()) {
- if (wrappersBuilder_.isEmpty()) {
- wrappersBuilder_.dispose();
- wrappersBuilder_ = null;
- wrappers_ = other.wrappers_;
- bitField0_ = (bitField0_ & ~0x00000040);
- wrappersBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getWrappersFieldBuilder() : null;
- } else {
- wrappersBuilder_.addAllMessages(other.wrappers_);
- }
- }
- }
- if (other.hasExpirationTimer()) {
- setExpirationTimer(other.getExpirationTimer());
- }
- if (other.hasMemberPrivateKey()) {
- setMemberPrivateKey(other.getMemberPrivateKey());
- }
- if (other.hasPrivateKey()) {
- setPrivateKey(other.getPrivateKey());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasType()) {
- return false;
- }
- if (hasEncryptionKeyPair()) {
- if (!getEncryptionKeyPair().isInitialized()) {
- return false;
- }
- }
- for (int i = 0; i < getWrappersCount(); i++) {
- if (!getWrappers(i).isInitialized()) {
- return false;
- }
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- int tmpRaw = input.readEnum();
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Type tmpValue =
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Type.forNumber(tmpRaw);
- if (tmpValue == null) {
- mergeUnknownVarintField(1, tmpRaw);
- } else {
- type_ = tmpRaw;
- bitField0_ |= 0x00000001;
- }
- break;
- } // case 8
- case 18: {
- publicKey_ = input.readBytes();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26: {
- name_ = input.readBytes();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- case 34: {
- input.readMessage(
- getEncryptionKeyPairFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000008;
- break;
- } // case 34
- case 42: {
- com.google.protobuf.ByteString v = input.readBytes();
- ensureMembersIsMutable();
- members_.add(v);
- break;
- } // case 42
- case 50: {
- com.google.protobuf.ByteString v = input.readBytes();
- ensureAdminsIsMutable();
- admins_.add(v);
- break;
- } // case 50
- case 58: {
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper m =
- input.readMessage(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.parser(),
- extensionRegistry);
- if (wrappersBuilder_ == null) {
- ensureWrappersIsMutable();
- wrappers_.add(m);
- } else {
- wrappersBuilder_.addMessage(m);
- }
- break;
- } // case 58
- case 64: {
- expirationTimer_ = input.readUInt32();
- bitField0_ |= 0x00000080;
- break;
- } // case 64
- case 74: {
- memberPrivateKey_ = input.readBytes();
- bitField0_ |= 0x00000100;
- break;
- } // case 74
- case 82: {
- privateKey_ = input.readBytes();
- bitField0_ |= 0x00000200;
- break;
- } // case 82
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int bitField0_;
-
- private int type_ = 1;
- /**
- *
- * @required
- *
- *
- * required .signalservice.DataMessage.ClosedGroupControlMessage.Type type = 1;
- * @return Whether the type field is set.
- */
- @java.lang.Override public boolean hasType() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required .signalservice.DataMessage.ClosedGroupControlMessage.Type type = 1;
- * @return The type.
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Type getType() {
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Type result = org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Type.forNumber(type_);
- return result == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Type.NEW : result;
- }
- /**
- *
- * @required
- *
- *
- * required .signalservice.DataMessage.ClosedGroupControlMessage.Type type = 1;
- * @param value The type to set.
- * @return This builder for chaining.
- */
- public Builder setType(org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Type value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- type_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required .signalservice.DataMessage.ClosedGroupControlMessage.Type type = 1;
- * @return This builder for chaining.
- */
- public Builder clearType() {
- bitField0_ = (bitField0_ & ~0x00000001);
- type_ = 1;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- * optional bytes publicKey = 2;
- * @return Whether the publicKey field is set.
- */
- @java.lang.Override
- public boolean hasPublicKey() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * optional bytes publicKey = 2;
- * @return The publicKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getPublicKey() {
- return publicKey_;
- }
- /**
- * optional bytes publicKey = 2;
- * @param value The publicKey to set.
- * @return This builder for chaining.
- */
- public Builder setPublicKey(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- publicKey_ = value;
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- * optional bytes publicKey = 2;
- * @return This builder for chaining.
- */
- public Builder clearPublicKey() {
- bitField0_ = (bitField0_ & ~0x00000002);
- publicKey_ = getDefaultInstance().getPublicKey();
- onChanged();
- return this;
- }
-
- private java.lang.Object name_ = "";
- /**
- * optional string name = 3;
- * @return Whether the name field is set.
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- * optional string name = 3;
- * @return The name.
- */
- 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();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string name = 3;
- * @return The bytes for name.
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string name = 3;
- * @param value The name to set.
- * @return This builder for chaining.
- */
- public Builder setName(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- name_ = value;
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * optional string name = 3;
- * @return This builder for chaining.
- */
- public Builder clearName() {
- name_ = getDefaultInstance().getName();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
- }
- /**
- * optional string name = 3;
- * @param value The bytes for name to set.
- * @return This builder for chaining.
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- name_ = value;
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
-
- private org.session.libsignal.protos.SignalServiceProtos.KeyPair encryptionKeyPair_;
- private com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.KeyPair, org.session.libsignal.protos.SignalServiceProtos.KeyPair.Builder, org.session.libsignal.protos.SignalServiceProtos.KeyPairOrBuilder> encryptionKeyPairBuilder_;
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 4;
- * @return Whether the encryptionKeyPair field is set.
- */
- public boolean hasEncryptionKeyPair() {
- return ((bitField0_ & 0x00000008) != 0);
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 4;
- * @return The encryptionKeyPair.
- */
- public org.session.libsignal.protos.SignalServiceProtos.KeyPair getEncryptionKeyPair() {
- if (encryptionKeyPairBuilder_ == null) {
- return encryptionKeyPair_ == null ? org.session.libsignal.protos.SignalServiceProtos.KeyPair.getDefaultInstance() : encryptionKeyPair_;
- } else {
- return encryptionKeyPairBuilder_.getMessage();
- }
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 4;
- */
- public Builder setEncryptionKeyPair(org.session.libsignal.protos.SignalServiceProtos.KeyPair value) {
- if (encryptionKeyPairBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- encryptionKeyPair_ = value;
- } else {
- encryptionKeyPairBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 4;
- */
- public Builder setEncryptionKeyPair(
- org.session.libsignal.protos.SignalServiceProtos.KeyPair.Builder builderForValue) {
- if (encryptionKeyPairBuilder_ == null) {
- encryptionKeyPair_ = builderForValue.build();
- } else {
- encryptionKeyPairBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 4;
- */
- public Builder mergeEncryptionKeyPair(org.session.libsignal.protos.SignalServiceProtos.KeyPair value) {
- if (encryptionKeyPairBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0) &&
- encryptionKeyPair_ != null &&
- encryptionKeyPair_ != org.session.libsignal.protos.SignalServiceProtos.KeyPair.getDefaultInstance()) {
- getEncryptionKeyPairBuilder().mergeFrom(value);
- } else {
- encryptionKeyPair_ = value;
- }
- } else {
- encryptionKeyPairBuilder_.mergeFrom(value);
- }
- if (encryptionKeyPair_ != null) {
- bitField0_ |= 0x00000008;
- onChanged();
- }
- return this;
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 4;
- */
- public Builder clearEncryptionKeyPair() {
- bitField0_ = (bitField0_ & ~0x00000008);
- encryptionKeyPair_ = null;
- if (encryptionKeyPairBuilder_ != null) {
- encryptionKeyPairBuilder_.dispose();
- encryptionKeyPairBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 4;
- */
- public org.session.libsignal.protos.SignalServiceProtos.KeyPair.Builder getEncryptionKeyPairBuilder() {
- bitField0_ |= 0x00000008;
- onChanged();
- return getEncryptionKeyPairFieldBuilder().getBuilder();
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 4;
- */
- public org.session.libsignal.protos.SignalServiceProtos.KeyPairOrBuilder getEncryptionKeyPairOrBuilder() {
- if (encryptionKeyPairBuilder_ != null) {
- return encryptionKeyPairBuilder_.getMessageOrBuilder();
- } else {
- return encryptionKeyPair_ == null ?
- org.session.libsignal.protos.SignalServiceProtos.KeyPair.getDefaultInstance() : encryptionKeyPair_;
- }
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 4;
- */
- private com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.KeyPair, org.session.libsignal.protos.SignalServiceProtos.KeyPair.Builder, org.session.libsignal.protos.SignalServiceProtos.KeyPairOrBuilder>
- getEncryptionKeyPairFieldBuilder() {
- if (encryptionKeyPairBuilder_ == null) {
- encryptionKeyPairBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.KeyPair, org.session.libsignal.protos.SignalServiceProtos.KeyPair.Builder, org.session.libsignal.protos.SignalServiceProtos.KeyPairOrBuilder>(
- getEncryptionKeyPair(),
- getParentForChildren(),
- isClean());
- encryptionKeyPair_ = null;
- }
- return encryptionKeyPairBuilder_;
- }
-
- private com.google.protobuf.Internal.ProtobufList members_ = emptyList(com.google.protobuf.ByteString.class);
- private void ensureMembersIsMutable() {
- if (!members_.isModifiable()) {
- members_ = makeMutableCopy(members_);
- }
- bitField0_ |= 0x00000010;
- }
- /**
- * repeated bytes members = 5;
- * @return A list containing the members.
- */
- public java.util.List
- getMembersList() {
- members_.makeImmutable();
- return members_;
- }
- /**
- * repeated bytes members = 5;
- * @return The count of members.
- */
- public int getMembersCount() {
- return members_.size();
- }
- /**
- * repeated bytes members = 5;
- * @param index The index of the element to return.
- * @return The members at the given index.
- */
- public com.google.protobuf.ByteString getMembers(int index) {
- return members_.get(index);
- }
- /**
- * repeated bytes members = 5;
- * @param index The index to set the value at.
- * @param value The members to set.
- * @return This builder for chaining.
- */
- public Builder setMembers(
- int index, com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- ensureMembersIsMutable();
- members_.set(index, value);
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
- }
- /**
- * repeated bytes members = 5;
- * @param value The members to add.
- * @return This builder for chaining.
- */
- public Builder addMembers(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- ensureMembersIsMutable();
- members_.add(value);
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
- }
- /**
- * repeated bytes members = 5;
- * @param values The members to add.
- * @return This builder for chaining.
- */
- public Builder addAllMembers(
- java.lang.Iterable extends com.google.protobuf.ByteString> values) {
- ensureMembersIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, members_);
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
- }
- /**
- * repeated bytes members = 5;
- * @return This builder for chaining.
- */
- public Builder clearMembers() {
- members_ = emptyList(com.google.protobuf.ByteString.class);
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.ProtobufList admins_ = emptyList(com.google.protobuf.ByteString.class);
- private void ensureAdminsIsMutable() {
- if (!admins_.isModifiable()) {
- admins_ = makeMutableCopy(admins_);
- }
- bitField0_ |= 0x00000020;
- }
- /**
- * repeated bytes admins = 6;
- * @return A list containing the admins.
- */
- public java.util.List
- getAdminsList() {
- admins_.makeImmutable();
- return admins_;
- }
- /**
- * repeated bytes admins = 6;
- * @return The count of admins.
- */
- public int getAdminsCount() {
- return admins_.size();
- }
- /**
- * repeated bytes admins = 6;
- * @param index The index of the element to return.
- * @return The admins at the given index.
- */
- public com.google.protobuf.ByteString getAdmins(int index) {
- return admins_.get(index);
- }
- /**
- * repeated bytes admins = 6;
- * @param index The index to set the value at.
- * @param value The admins to set.
- * @return This builder for chaining.
- */
- public Builder setAdmins(
- int index, com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- ensureAdminsIsMutable();
- admins_.set(index, value);
- bitField0_ |= 0x00000020;
- onChanged();
- return this;
- }
- /**
- * repeated bytes admins = 6;
- * @param value The admins to add.
- * @return This builder for chaining.
- */
- public Builder addAdmins(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- ensureAdminsIsMutable();
- admins_.add(value);
- bitField0_ |= 0x00000020;
- onChanged();
- return this;
- }
- /**
- * repeated bytes admins = 6;
- * @param values The admins to add.
- * @return This builder for chaining.
- */
- public Builder addAllAdmins(
- java.lang.Iterable extends com.google.protobuf.ByteString> values) {
- ensureAdminsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, admins_);
- bitField0_ |= 0x00000020;
- onChanged();
- return this;
- }
- /**
- * repeated bytes admins = 6;
- * @return This builder for chaining.
- */
- public Builder clearAdmins() {
- admins_ = emptyList(com.google.protobuf.ByteString.class);
- bitField0_ = (bitField0_ & ~0x00000020);
- onChanged();
- return this;
- }
-
- private java.util.List wrappers_ =
- java.util.Collections.emptyList();
- private void ensureWrappersIsMutable() {
- if (!((bitField0_ & 0x00000040) != 0)) {
- wrappers_ = new java.util.ArrayList(wrappers_);
- bitField0_ |= 0x00000040;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapperOrBuilder> wrappersBuilder_;
-
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public java.util.List getWrappersList() {
- if (wrappersBuilder_ == null) {
- return java.util.Collections.unmodifiableList(wrappers_);
- } else {
- return wrappersBuilder_.getMessageList();
- }
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public int getWrappersCount() {
- if (wrappersBuilder_ == null) {
- return wrappers_.size();
- } else {
- return wrappersBuilder_.getCount();
- }
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper getWrappers(int index) {
- if (wrappersBuilder_ == null) {
- return wrappers_.get(index);
- } else {
- return wrappersBuilder_.getMessage(index);
- }
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public Builder setWrappers(
- int index, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper value) {
- if (wrappersBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureWrappersIsMutable();
- wrappers_.set(index, value);
- onChanged();
- } else {
- wrappersBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public Builder setWrappers(
- int index, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.Builder builderForValue) {
- if (wrappersBuilder_ == null) {
- ensureWrappersIsMutable();
- wrappers_.set(index, builderForValue.build());
- onChanged();
- } else {
- wrappersBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public Builder addWrappers(org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper value) {
- if (wrappersBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureWrappersIsMutable();
- wrappers_.add(value);
- onChanged();
- } else {
- wrappersBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public Builder addWrappers(
- int index, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper value) {
- if (wrappersBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureWrappersIsMutable();
- wrappers_.add(index, value);
- onChanged();
- } else {
- wrappersBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public Builder addWrappers(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.Builder builderForValue) {
- if (wrappersBuilder_ == null) {
- ensureWrappersIsMutable();
- wrappers_.add(builderForValue.build());
- onChanged();
- } else {
- wrappersBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public Builder addWrappers(
- int index, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.Builder builderForValue) {
- if (wrappersBuilder_ == null) {
- ensureWrappersIsMutable();
- wrappers_.add(index, builderForValue.build());
- onChanged();
- } else {
- wrappersBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public Builder addAllWrappers(
- java.lang.Iterable extends org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper> values) {
- if (wrappersBuilder_ == null) {
- ensureWrappersIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, wrappers_);
- onChanged();
- } else {
- wrappersBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public Builder clearWrappers() {
- if (wrappersBuilder_ == null) {
- wrappers_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
- onChanged();
- } else {
- wrappersBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public Builder removeWrappers(int index) {
- if (wrappersBuilder_ == null) {
- ensureWrappersIsMutable();
- wrappers_.remove(index);
- onChanged();
- } else {
- wrappersBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.Builder getWrappersBuilder(
- int index) {
- return getWrappersFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapperOrBuilder getWrappersOrBuilder(
- int index) {
- if (wrappersBuilder_ == null) {
- return wrappers_.get(index); } else {
- return wrappersBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public java.util.List extends org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapperOrBuilder>
- getWrappersOrBuilderList() {
- if (wrappersBuilder_ != null) {
- return wrappersBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(wrappers_);
- }
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.Builder addWrappersBuilder() {
- return getWrappersFieldBuilder().addBuilder(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.getDefaultInstance());
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.Builder addWrappersBuilder(
- int index) {
- return getWrappersFieldBuilder().addBuilder(
- index, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.getDefaultInstance());
- }
- /**
- * repeated .signalservice.DataMessage.ClosedGroupControlMessage.KeyPairWrapper wrappers = 7;
- */
- public java.util.List
- getWrappersBuilderList() {
- return getWrappersFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapperOrBuilder>
- getWrappersFieldBuilder() {
- if (wrappersBuilder_ == null) {
- wrappersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapper.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.KeyPairWrapperOrBuilder>(
- wrappers_,
- ((bitField0_ & 0x00000040) != 0),
- getParentForChildren(),
- isClean());
- wrappers_ = null;
- }
- return wrappersBuilder_;
- }
-
- private int expirationTimer_ ;
- /**
- * optional uint32 expirationTimer = 8;
- * @return Whether the expirationTimer field is set.
- */
- @java.lang.Override
- public boolean hasExpirationTimer() {
- return ((bitField0_ & 0x00000080) != 0);
- }
- /**
- * optional uint32 expirationTimer = 8;
- * @return The expirationTimer.
- */
- @java.lang.Override
- public int getExpirationTimer() {
- return expirationTimer_;
- }
- /**
- * optional uint32 expirationTimer = 8;
- * @param value The expirationTimer to set.
- * @return This builder for chaining.
- */
- public Builder setExpirationTimer(int value) {
-
- expirationTimer_ = value;
- bitField0_ |= 0x00000080;
- onChanged();
- return this;
- }
- /**
- * optional uint32 expirationTimer = 8;
- * @return This builder for chaining.
- */
- public Builder clearExpirationTimer() {
- bitField0_ = (bitField0_ & ~0x00000080);
- expirationTimer_ = 0;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.ByteString memberPrivateKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- * optional bytes memberPrivateKey = 9;
- * @return Whether the memberPrivateKey field is set.
- */
- @java.lang.Override
- public boolean hasMemberPrivateKey() {
- return ((bitField0_ & 0x00000100) != 0);
- }
- /**
- * optional bytes memberPrivateKey = 9;
- * @return The memberPrivateKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getMemberPrivateKey() {
- return memberPrivateKey_;
- }
- /**
- * optional bytes memberPrivateKey = 9;
- * @param value The memberPrivateKey to set.
- * @return This builder for chaining.
- */
- public Builder setMemberPrivateKey(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- memberPrivateKey_ = value;
- bitField0_ |= 0x00000100;
- onChanged();
- return this;
- }
- /**
- * optional bytes memberPrivateKey = 9;
- * @return This builder for chaining.
- */
- public Builder clearMemberPrivateKey() {
- bitField0_ = (bitField0_ & ~0x00000100);
- memberPrivateKey_ = getDefaultInstance().getMemberPrivateKey();
- onChanged();
- return this;
- }
-
- private com.google.protobuf.ByteString privateKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- * optional bytes privateKey = 10;
- * @return Whether the privateKey field is set.
- */
- @java.lang.Override
- public boolean hasPrivateKey() {
- return ((bitField0_ & 0x00000200) != 0);
- }
- /**
- * optional bytes privateKey = 10;
- * @return The privateKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getPrivateKey() {
- return privateKey_;
- }
- /**
- * optional bytes privateKey = 10;
- * @param value The privateKey to set.
- * @return This builder for chaining.
- */
- public Builder setPrivateKey(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- privateKey_ = value;
- bitField0_ |= 0x00000200;
- onChanged();
- return this;
- }
- /**
- * optional bytes privateKey = 10;
- * @return This builder for chaining.
- */
- public Builder clearPrivateKey() {
- bitField0_ = (bitField0_ & ~0x00000200);
- privateKey_ = getDefaultInstance().getPrivateKey();
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.ClosedGroupControlMessage)
- }
-
- // @@protoc_insertion_point(class_scope:signalservice.DataMessage.ClosedGroupControlMessage)
- private static final org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage();
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public ClosedGroupControlMessage parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface ReactionOrBuilder extends
- // @@protoc_insertion_point(interface_extends:signalservice.DataMessage.Reaction)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- * @required
- *
- *
- * required uint64 id = 1;
- * @return Whether the id field is set.
- */
- boolean hasId();
- /**
- *
- * @required
- *
- *
- * required uint64 id = 1;
- * @return The id.
- */
- long getId();
-
- /**
- *
- * @required
- *
- *
- * required string author = 2;
- * @return Whether the author field is set.
- */
- boolean hasAuthor();
- /**
- *
- * @required
- *
- *
- * required string author = 2;
- * @return The author.
- */
- java.lang.String getAuthor();
- /**
- *
- * @required
- *
- *
- * required string author = 2;
- * @return The bytes for author.
- */
- com.google.protobuf.ByteString
- getAuthorBytes();
-
- /**
- * optional string emoji = 3;
- * @return Whether the emoji field is set.
- */
- boolean hasEmoji();
- /**
- * optional string emoji = 3;
- * @return The emoji.
- */
- java.lang.String getEmoji();
- /**
- * optional string emoji = 3;
- * @return The bytes for emoji.
- */
- com.google.protobuf.ByteString
- getEmojiBytes();
-
- /**
- *
- * @required
- *
- *
- * required .signalservice.DataMessage.Reaction.Action action = 4;
- * @return Whether the action field is set.
- */
- boolean hasAction();
- /**
- *
- * @required
- *
- *
- * required .signalservice.DataMessage.Reaction.Action action = 4;
- * @return The action.
- */
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action getAction();
- }
- /**
- * Protobuf type {@code signalservice.DataMessage.Reaction}
- */
- public static final class Reaction extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:signalservice.DataMessage.Reaction)
- ReactionOrBuilder {
- private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 3,
- /* suffix= */ "",
- Reaction.class.getName());
- }
- // Use Reaction.newBuilder() to construct.
- private Reaction(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- }
- private Reaction() {
- author_ = "";
- emoji_ = "";
- action_ = 0;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_Reaction_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_Reaction_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.class, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Builder.class);
- }
-
- /**
- * Protobuf enum {@code signalservice.DataMessage.Reaction.Action}
- */
- public enum Action
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * REACT = 0;
- */
- REACT(0),
- /**
- * REMOVE = 1;
- */
- REMOVE(1),
- ;
-
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 3,
- /* suffix= */ "",
- Action.class.getName());
- }
- /**
- * REACT = 0;
- */
- public static final int REACT_VALUE = 0;
- /**
- * REMOVE = 1;
- */
- public static final int REMOVE_VALUE = 1;
-
-
- public final int getNumber() {
- return value;
- }
-
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static Action valueOf(int value) {
- return forNumber(value);
- }
-
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- */
- public static Action forNumber(int value) {
- switch (value) {
- case 0: return REACT;
- case 1: return REMOVE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap
- internalGetValueMap() {
- return internalValueMap;
- }
- private static final com.google.protobuf.Internal.EnumLiteMap<
- Action> internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap() {
- public Action findValueByNumber(int number) {
- return Action.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 org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.getDescriptor().getEnumTypes().get(0);
- }
-
- private static final Action[] VALUES = values();
-
- public static Action valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int value;
-
- private Action(int value) {
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:signalservice.DataMessage.Reaction.Action)
- }
-
- private int bitField0_;
- public static final int ID_FIELD_NUMBER = 1;
- private long id_ = 0L;
- /**
- *
- * @required
- *
- *
- * required uint64 id = 1;
- * @return Whether the id field is set.
- */
- @java.lang.Override
- public boolean hasId() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required uint64 id = 1;
- * @return The id.
- */
- @java.lang.Override
- public long getId() {
- return id_;
- }
-
- public static final int AUTHOR_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private volatile java.lang.Object author_ = "";
- /**
- *
- * @required
- *
- *
- * required string author = 2;
- * @return Whether the author field is set.
- */
- @java.lang.Override
- public boolean hasAuthor() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required string author = 2;
- * @return The author.
- */
- @java.lang.Override
- public java.lang.String getAuthor() {
- java.lang.Object ref = author_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- author_ = s;
- }
- return s;
- }
- }
- /**
- *
- * @required
- *
- *
- * required string author = 2;
- * @return The bytes for author.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getAuthorBytes() {
- java.lang.Object ref = author_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- author_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int EMOJI_FIELD_NUMBER = 3;
- @SuppressWarnings("serial")
- private volatile java.lang.Object emoji_ = "";
- /**
- * optional string emoji = 3;
- * @return Whether the emoji field is set.
- */
- @java.lang.Override
- public boolean hasEmoji() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- * optional string emoji = 3;
- * @return The emoji.
- */
- @java.lang.Override
- public java.lang.String getEmoji() {
- java.lang.Object ref = emoji_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- emoji_ = s;
- }
- return s;
- }
- }
- /**
- * optional string emoji = 3;
- * @return The bytes for emoji.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getEmojiBytes() {
- java.lang.Object ref = emoji_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- emoji_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int ACTION_FIELD_NUMBER = 4;
- private int action_ = 0;
- /**
- *
- * @required
- *
- *
- * required .signalservice.DataMessage.Reaction.Action action = 4;
- * @return Whether the action field is set.
- */
- @java.lang.Override public boolean hasAction() {
- return ((bitField0_ & 0x00000008) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required .signalservice.DataMessage.Reaction.Action action = 4;
- * @return The action.
- */
- @java.lang.Override public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action getAction() {
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action result = org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action.forNumber(action_);
- return result == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action.REACT : result;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (!hasId()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasAuthor()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasAction()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeUInt64(1, id_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, author_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 3, emoji_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- output.writeEnum(4, action_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(1, id_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, author_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(3, emoji_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(4, action_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction)) {
- return super.equals(obj);
- }
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction other = (org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction) obj;
-
- if (hasId() != other.hasId()) return false;
- if (hasId()) {
- if (getId()
- != other.getId()) return false;
- }
- if (hasAuthor() != other.hasAuthor()) return false;
- if (hasAuthor()) {
- if (!getAuthor()
- .equals(other.getAuthor())) return false;
- }
- if (hasEmoji() != other.hasEmoji()) return false;
- if (hasEmoji()) {
- if (!getEmoji()
- .equals(other.getEmoji())) return false;
- }
- if (hasAction() != other.hasAction()) return false;
- if (hasAction()) {
- if (action_ != other.action_) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasId()) {
- hash = (37 * hash) + ID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getId());
- }
- if (hasAuthor()) {
- hash = (37 * hash) + AUTHOR_FIELD_NUMBER;
- hash = (53 * hash) + getAuthor().hashCode();
- }
- if (hasEmoji()) {
- hash = (37 * hash) + EMOJI_FIELD_NUMBER;
- hash = (53 * hash) + getEmoji().hashCode();
- }
- if (hasAction()) {
- hash = (37 * hash) + ACTION_FIELD_NUMBER;
- hash = (53 * hash) + action_;
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code signalservice.DataMessage.Reaction}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:signalservice.DataMessage.Reaction)
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ReactionOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_Reaction_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_Reaction_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.class, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Builder.class);
- }
-
- // Construct using org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- id_ = 0L;
- author_ = "";
- emoji_ = "";
- action_ = 0;
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_Reaction_descriptor;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction getDefaultInstanceForType() {
- return org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.getDefaultInstance();
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction build() {
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction buildPartial() {
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction result = new org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.id_ = id_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.author_ = author_;
- to_bitField0_ |= 0x00000002;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.emoji_ = emoji_;
- to_bitField0_ |= 0x00000004;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.action_ = action_;
- to_bitField0_ |= 0x00000008;
- }
- result.bitField0_ |= to_bitField0_;
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction) {
- return mergeFrom((org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction other) {
- if (other == org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.getDefaultInstance()) return this;
- if (other.hasId()) {
- setId(other.getId());
- }
- if (other.hasAuthor()) {
- author_ = other.author_;
- bitField0_ |= 0x00000002;
- onChanged();
- }
- if (other.hasEmoji()) {
- emoji_ = other.emoji_;
- bitField0_ |= 0x00000004;
- onChanged();
- }
- if (other.hasAction()) {
- setAction(other.getAction());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasId()) {
- return false;
- }
- if (!hasAuthor()) {
- return false;
- }
- if (!hasAction()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- id_ = input.readUInt64();
- bitField0_ |= 0x00000001;
- break;
- } // case 8
- case 18: {
- author_ = input.readBytes();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26: {
- emoji_ = input.readBytes();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- case 32: {
- int tmpRaw = input.readEnum();
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action tmpValue =
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action.forNumber(tmpRaw);
- if (tmpValue == null) {
- mergeUnknownVarintField(4, tmpRaw);
- } else {
- action_ = tmpRaw;
- bitField0_ |= 0x00000008;
- }
- break;
- } // case 32
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int bitField0_;
-
- private long id_ ;
- /**
- *
- * @required
- *
- *
- * required uint64 id = 1;
- * @return Whether the id field is set.
- */
- @java.lang.Override
- public boolean hasId() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required uint64 id = 1;
- * @return The id.
- */
- @java.lang.Override
- public long getId() {
- return id_;
- }
- /**
- *
- * @required
- *
- *
- * required uint64 id = 1;
- * @param value The id to set.
- * @return This builder for chaining.
- */
- public Builder setId(long value) {
-
- id_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required uint64 id = 1;
- * @return This builder for chaining.
- */
- public Builder clearId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- id_ = 0L;
- onChanged();
- return this;
- }
-
- private java.lang.Object author_ = "";
- /**
- *
- * @required
- *
- *
- * required string author = 2;
- * @return Whether the author field is set.
- */
- public boolean hasAuthor() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required string author = 2;
- * @return The author.
- */
- public java.lang.String getAuthor() {
- java.lang.Object ref = author_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- author_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- * @required
- *
- *
- * required string author = 2;
- * @return The bytes for author.
- */
- public com.google.protobuf.ByteString
- getAuthorBytes() {
- java.lang.Object ref = author_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- author_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- * @required
- *
- *
- * required string author = 2;
- * @param value The author to set.
- * @return This builder for chaining.
- */
- public Builder setAuthor(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- author_ = value;
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required string author = 2;
- * @return This builder for chaining.
- */
- public Builder clearAuthor() {
- author_ = getDefaultInstance().getAuthor();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required string author = 2;
- * @param value The bytes for author to set.
- * @return This builder for chaining.
- */
- public Builder setAuthorBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- author_ = value;
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
- private java.lang.Object emoji_ = "";
- /**
- * optional string emoji = 3;
- * @return Whether the emoji field is set.
- */
- public boolean hasEmoji() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- * optional string emoji = 3;
- * @return The emoji.
- */
- public java.lang.String getEmoji() {
- java.lang.Object ref = emoji_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- emoji_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string emoji = 3;
- * @return The bytes for emoji.
- */
- public com.google.protobuf.ByteString
- getEmojiBytes() {
- java.lang.Object ref = emoji_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- emoji_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string emoji = 3;
- * @param value The emoji to set.
- * @return This builder for chaining.
- */
- public Builder setEmoji(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- emoji_ = value;
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * optional string emoji = 3;
- * @return This builder for chaining.
- */
- public Builder clearEmoji() {
- emoji_ = getDefaultInstance().getEmoji();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
- }
- /**
- * optional string emoji = 3;
- * @param value The bytes for emoji to set.
- * @return This builder for chaining.
- */
- public Builder setEmojiBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- emoji_ = value;
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
-
- private int action_ = 0;
- /**
- *
- * @required
- *
- *
- * required .signalservice.DataMessage.Reaction.Action action = 4;
- * @return Whether the action field is set.
- */
- @java.lang.Override public boolean hasAction() {
- return ((bitField0_ & 0x00000008) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required .signalservice.DataMessage.Reaction.Action action = 4;
- * @return The action.
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action getAction() {
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action result = org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action.forNumber(action_);
- return result == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action.REACT : result;
- }
- /**
- *
- * @required
- *
- *
- * required .signalservice.DataMessage.Reaction.Action action = 4;
- * @param value The action to set.
- * @return This builder for chaining.
- */
- public Builder setAction(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- action_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required .signalservice.DataMessage.Reaction.Action action = 4;
- * @return This builder for chaining.
- */
- public Builder clearAction() {
- bitField0_ = (bitField0_ & ~0x00000008);
- action_ = 0;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Reaction)
- }
-
- // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Reaction)
- private static final org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction();
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public Reaction parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- private int bitField0_;
- public static final int BODY_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private volatile java.lang.Object body_ = "";
- /**
- * optional string body = 1;
- * @return Whether the body field is set.
- */
- @java.lang.Override
- public boolean hasBody() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * optional string body = 1;
- * @return The body.
- */
- @java.lang.Override
- public java.lang.String getBody() {
- java.lang.Object ref = body_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- body_ = s;
- }
- return s;
- }
- }
- /**
- * optional string body = 1;
- * @return The bytes for body.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getBodyBytes() {
- java.lang.Object ref = body_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- body_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int ATTACHMENTS_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private java.util.List attachments_;
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- @java.lang.Override
- public java.util.List getAttachmentsList() {
- return attachments_;
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- @java.lang.Override
- public java.util.List extends org.session.libsignal.protos.SignalServiceProtos.AttachmentPointerOrBuilder>
- getAttachmentsOrBuilderList() {
- return attachments_;
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- @java.lang.Override
- public int getAttachmentsCount() {
- return attachments_.size();
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer getAttachments(int index) {
- return attachments_.get(index);
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.AttachmentPointerOrBuilder getAttachmentsOrBuilder(
- int index) {
- return attachments_.get(index);
- }
-
- public static final int FLAGS_FIELD_NUMBER = 4;
- private int flags_ = 0;
- /**
- * optional uint32 flags = 4;
- * @return Whether the flags field is set.
- */
- @java.lang.Override
- public boolean hasFlags() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * optional uint32 flags = 4;
- * @return The flags.
- */
- @java.lang.Override
- public int getFlags() {
- return flags_;
- }
-
- public static final int EXPIRETIMER_FIELD_NUMBER = 5;
- private int expireTimer_ = 0;
- /**
- * optional uint32 expireTimer = 5;
- * @return Whether the expireTimer field is set.
- */
- @java.lang.Override
- public boolean hasExpireTimer() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- * optional uint32 expireTimer = 5;
- * @return The expireTimer.
- */
- @java.lang.Override
- public int getExpireTimer() {
- return expireTimer_;
- }
-
- public static final int PROFILEKEY_FIELD_NUMBER = 6;
- private com.google.protobuf.ByteString profileKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- * optional bytes profileKey = 6;
- * @return Whether the profileKey field is set.
- */
- @java.lang.Override
- public boolean hasProfileKey() {
- return ((bitField0_ & 0x00000008) != 0);
- }
- /**
- * optional bytes profileKey = 6;
- * @return The profileKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getProfileKey() {
- return profileKey_;
- }
-
- public static final int TIMESTAMP_FIELD_NUMBER = 7;
- private long timestamp_ = 0L;
- /**
- * optional uint64 timestamp = 7;
- * @return Whether the timestamp field is set.
- */
- @java.lang.Override
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000010) != 0);
- }
- /**
- * optional uint64 timestamp = 7;
- * @return The timestamp.
- */
- @java.lang.Override
- public long getTimestamp() {
- return timestamp_;
- }
-
- public static final int QUOTE_FIELD_NUMBER = 8;
- private org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote quote_;
- /**
- * optional .signalservice.DataMessage.Quote quote = 8;
- * @return Whether the quote field is set.
- */
- @java.lang.Override
- public boolean hasQuote() {
- return ((bitField0_ & 0x00000020) != 0);
- }
- /**
- * optional .signalservice.DataMessage.Quote quote = 8;
- * @return The quote.
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote getQuote() {
- return quote_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.getDefaultInstance() : quote_;
- }
- /**
- * optional .signalservice.DataMessage.Quote quote = 8;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.QuoteOrBuilder getQuoteOrBuilder() {
- return quote_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.getDefaultInstance() : quote_;
- }
-
- public static final int PREVIEW_FIELD_NUMBER = 10;
- @SuppressWarnings("serial")
- private java.util.List preview_;
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- @java.lang.Override
- public java.util.List getPreviewList() {
- return preview_;
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- @java.lang.Override
- public java.util.List extends org.session.libsignal.protos.SignalServiceProtos.DataMessage.PreviewOrBuilder>
- getPreviewOrBuilderList() {
- return preview_;
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- @java.lang.Override
- public int getPreviewCount() {
- return preview_.size();
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview getPreview(int index) {
- return preview_.get(index);
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.PreviewOrBuilder getPreviewOrBuilder(
- int index) {
- return preview_.get(index);
- }
-
- public static final int REACTION_FIELD_NUMBER = 11;
- private org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction reaction_;
- /**
- * optional .signalservice.DataMessage.Reaction reaction = 11;
- * @return Whether the reaction field is set.
- */
- @java.lang.Override
- public boolean hasReaction() {
- return ((bitField0_ & 0x00000040) != 0);
- }
- /**
- * optional .signalservice.DataMessage.Reaction reaction = 11;
- * @return The reaction.
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction getReaction() {
- return reaction_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.getDefaultInstance() : reaction_;
- }
- /**
- * optional .signalservice.DataMessage.Reaction reaction = 11;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ReactionOrBuilder getReactionOrBuilder() {
- return reaction_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.getDefaultInstance() : reaction_;
- }
-
- public static final int PROFILE_FIELD_NUMBER = 101;
- private org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile profile_;
- /**
- * optional .signalservice.DataMessage.LokiProfile profile = 101;
- * @return Whether the profile field is set.
- */
- @java.lang.Override
- public boolean hasProfile() {
- return ((bitField0_ & 0x00000080) != 0);
- }
- /**
- * optional .signalservice.DataMessage.LokiProfile profile = 101;
- * @return The profile.
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile getProfile() {
- return profile_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.getDefaultInstance() : profile_;
- }
- /**
- * optional .signalservice.DataMessage.LokiProfile profile = 101;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfileOrBuilder getProfileOrBuilder() {
- return profile_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.getDefaultInstance() : profile_;
- }
-
- public static final int OPENGROUPINVITATION_FIELD_NUMBER = 102;
- private org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation openGroupInvitation_;
- /**
- * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
- * @return Whether the openGroupInvitation field is set.
- */
- @java.lang.Override
- public boolean hasOpenGroupInvitation() {
- return ((bitField0_ & 0x00000100) != 0);
- }
- /**
- * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
- * @return The openGroupInvitation.
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation getOpenGroupInvitation() {
- return openGroupInvitation_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.getDefaultInstance() : openGroupInvitation_;
- }
- /**
- * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitationOrBuilder getOpenGroupInvitationOrBuilder() {
- return openGroupInvitation_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.getDefaultInstance() : openGroupInvitation_;
- }
-
- public static final int CLOSEDGROUPCONTROLMESSAGE_FIELD_NUMBER = 104;
- private org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage closedGroupControlMessage_;
- /**
- * optional .signalservice.DataMessage.ClosedGroupControlMessage closedGroupControlMessage = 104;
- * @return Whether the closedGroupControlMessage field is set.
- */
- @java.lang.Override
- public boolean hasClosedGroupControlMessage() {
- return ((bitField0_ & 0x00000200) != 0);
- }
- /**
- * optional .signalservice.DataMessage.ClosedGroupControlMessage closedGroupControlMessage = 104;
- * @return The closedGroupControlMessage.
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage getClosedGroupControlMessage() {
- return closedGroupControlMessage_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.getDefaultInstance() : closedGroupControlMessage_;
- }
- /**
- * optional .signalservice.DataMessage.ClosedGroupControlMessage closedGroupControlMessage = 104;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessageOrBuilder getClosedGroupControlMessageOrBuilder() {
- return closedGroupControlMessage_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.getDefaultInstance() : closedGroupControlMessage_;
- }
-
- public static final int SYNCTARGET_FIELD_NUMBER = 105;
- @SuppressWarnings("serial")
- private volatile java.lang.Object syncTarget_ = "";
- /**
- * optional string syncTarget = 105;
- * @return Whether the syncTarget field is set.
- */
- @java.lang.Override
- public boolean hasSyncTarget() {
- return ((bitField0_ & 0x00000400) != 0);
- }
- /**
- * optional string syncTarget = 105;
- * @return The syncTarget.
- */
- @java.lang.Override
- public java.lang.String getSyncTarget() {
- java.lang.Object ref = syncTarget_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- syncTarget_ = s;
- }
- return s;
- }
- }
- /**
- * optional string syncTarget = 105;
- * @return The bytes for syncTarget.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getSyncTargetBytes() {
- java.lang.Object ref = syncTarget_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- syncTarget_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int BLOCKSCOMMUNITYMESSAGEREQUESTS_FIELD_NUMBER = 106;
- private boolean blocksCommunityMessageRequests_ = false;
- /**
- * optional bool blocksCommunityMessageRequests = 106;
- * @return Whether the blocksCommunityMessageRequests field is set.
- */
- @java.lang.Override
- public boolean hasBlocksCommunityMessageRequests() {
- return ((bitField0_ & 0x00000800) != 0);
- }
- /**
- * optional bool blocksCommunityMessageRequests = 106;
- * @return The blocksCommunityMessageRequests.
- */
- @java.lang.Override
- public boolean getBlocksCommunityMessageRequests() {
- return blocksCommunityMessageRequests_;
- }
-
- public static final int GROUPUPDATEMESSAGE_FIELD_NUMBER = 120;
- private org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage groupUpdateMessage_;
- /**
- * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
- * @return Whether the groupUpdateMessage field is set.
- */
- @java.lang.Override
- public boolean hasGroupUpdateMessage() {
- return ((bitField0_ & 0x00001000) != 0);
- }
- /**
- * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
- * @return The groupUpdateMessage.
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage getGroupUpdateMessage() {
- return groupUpdateMessage_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.getDefaultInstance() : groupUpdateMessage_;
- }
- /**
- * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessageOrBuilder getGroupUpdateMessageOrBuilder() {
- return groupUpdateMessage_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.getDefaultInstance() : groupUpdateMessage_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- for (int i = 0; i < getAttachmentsCount(); i++) {
- if (!getAttachments(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- if (hasQuote()) {
- if (!getQuote().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- for (int i = 0; i < getPreviewCount(); i++) {
- if (!getPreview(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- if (hasReaction()) {
- if (!getReaction().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- if (hasOpenGroupInvitation()) {
- if (!getOpenGroupInvitation().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- if (hasClosedGroupControlMessage()) {
- if (!getClosedGroupControlMessage().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- if (hasGroupUpdateMessage()) {
- if (!getGroupUpdateMessage().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, body_);
- }
- for (int i = 0; i < attachments_.size(); i++) {
- output.writeMessage(2, attachments_.get(i));
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeUInt32(4, flags_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- output.writeUInt32(5, expireTimer_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- output.writeBytes(6, profileKey_);
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- output.writeUInt64(7, timestamp_);
- }
- if (((bitField0_ & 0x00000020) != 0)) {
- output.writeMessage(8, getQuote());
- }
- for (int i = 0; i < preview_.size(); i++) {
- output.writeMessage(10, preview_.get(i));
- }
- if (((bitField0_ & 0x00000040) != 0)) {
- output.writeMessage(11, getReaction());
- }
- if (((bitField0_ & 0x00000080) != 0)) {
- output.writeMessage(101, getProfile());
- }
- if (((bitField0_ & 0x00000100) != 0)) {
- output.writeMessage(102, getOpenGroupInvitation());
- }
- if (((bitField0_ & 0x00000200) != 0)) {
- output.writeMessage(104, getClosedGroupControlMessage());
- }
- if (((bitField0_ & 0x00000400) != 0)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 105, syncTarget_);
- }
- if (((bitField0_ & 0x00000800) != 0)) {
- output.writeBool(106, blocksCommunityMessageRequests_);
- }
- if (((bitField0_ & 0x00001000) != 0)) {
- output.writeMessage(120, getGroupUpdateMessage());
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, body_);
- }
- for (int i = 0; i < attachments_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, attachments_.get(i));
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(4, flags_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(5, expireTimer_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(6, profileKey_);
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(7, timestamp_);
- }
- if (((bitField0_ & 0x00000020) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(8, getQuote());
- }
- for (int i = 0; i < preview_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(10, preview_.get(i));
- }
- if (((bitField0_ & 0x00000040) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(11, getReaction());
- }
- if (((bitField0_ & 0x00000080) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(101, getProfile());
- }
- if (((bitField0_ & 0x00000100) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(102, getOpenGroupInvitation());
- }
- if (((bitField0_ & 0x00000200) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(104, getClosedGroupControlMessage());
- }
- if (((bitField0_ & 0x00000400) != 0)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(105, syncTarget_);
- }
- if (((bitField0_ & 0x00000800) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(106, blocksCommunityMessageRequests_);
- }
- if (((bitField0_ & 0x00001000) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(120, getGroupUpdateMessage());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.session.libsignal.protos.SignalServiceProtos.DataMessage)) {
- return super.equals(obj);
- }
- org.session.libsignal.protos.SignalServiceProtos.DataMessage other = (org.session.libsignal.protos.SignalServiceProtos.DataMessage) obj;
-
- if (hasBody() != other.hasBody()) return false;
- if (hasBody()) {
- if (!getBody()
- .equals(other.getBody())) return false;
- }
- if (!getAttachmentsList()
- .equals(other.getAttachmentsList())) return false;
- if (hasFlags() != other.hasFlags()) return false;
- if (hasFlags()) {
- if (getFlags()
- != other.getFlags()) return false;
- }
- if (hasExpireTimer() != other.hasExpireTimer()) return false;
- if (hasExpireTimer()) {
- if (getExpireTimer()
- != other.getExpireTimer()) return false;
- }
- if (hasProfileKey() != other.hasProfileKey()) return false;
- if (hasProfileKey()) {
- if (!getProfileKey()
- .equals(other.getProfileKey())) return false;
- }
- if (hasTimestamp() != other.hasTimestamp()) return false;
- if (hasTimestamp()) {
- if (getTimestamp()
- != other.getTimestamp()) return false;
- }
- if (hasQuote() != other.hasQuote()) return false;
- if (hasQuote()) {
- if (!getQuote()
- .equals(other.getQuote())) return false;
- }
- if (!getPreviewList()
- .equals(other.getPreviewList())) return false;
- if (hasReaction() != other.hasReaction()) return false;
- if (hasReaction()) {
- if (!getReaction()
- .equals(other.getReaction())) return false;
- }
- if (hasProfile() != other.hasProfile()) return false;
- if (hasProfile()) {
- if (!getProfile()
- .equals(other.getProfile())) return false;
- }
- if (hasOpenGroupInvitation() != other.hasOpenGroupInvitation()) return false;
- if (hasOpenGroupInvitation()) {
- if (!getOpenGroupInvitation()
- .equals(other.getOpenGroupInvitation())) return false;
- }
- if (hasClosedGroupControlMessage() != other.hasClosedGroupControlMessage()) return false;
- if (hasClosedGroupControlMessage()) {
- if (!getClosedGroupControlMessage()
- .equals(other.getClosedGroupControlMessage())) return false;
- }
- if (hasSyncTarget() != other.hasSyncTarget()) return false;
- if (hasSyncTarget()) {
- if (!getSyncTarget()
- .equals(other.getSyncTarget())) return false;
- }
- if (hasBlocksCommunityMessageRequests() != other.hasBlocksCommunityMessageRequests()) return false;
- if (hasBlocksCommunityMessageRequests()) {
- if (getBlocksCommunityMessageRequests()
- != other.getBlocksCommunityMessageRequests()) return false;
- }
- if (hasGroupUpdateMessage() != other.hasGroupUpdateMessage()) return false;
- if (hasGroupUpdateMessage()) {
- if (!getGroupUpdateMessage()
- .equals(other.getGroupUpdateMessage())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasBody()) {
- hash = (37 * hash) + BODY_FIELD_NUMBER;
- hash = (53 * hash) + getBody().hashCode();
- }
- if (getAttachmentsCount() > 0) {
- hash = (37 * hash) + ATTACHMENTS_FIELD_NUMBER;
- hash = (53 * hash) + getAttachmentsList().hashCode();
- }
- if (hasFlags()) {
- hash = (37 * hash) + FLAGS_FIELD_NUMBER;
- hash = (53 * hash) + getFlags();
- }
- if (hasExpireTimer()) {
- hash = (37 * hash) + EXPIRETIMER_FIELD_NUMBER;
- hash = (53 * hash) + getExpireTimer();
- }
- if (hasProfileKey()) {
- hash = (37 * hash) + PROFILEKEY_FIELD_NUMBER;
- hash = (53 * hash) + getProfileKey().hashCode();
- }
- if (hasTimestamp()) {
- hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getTimestamp());
- }
- if (hasQuote()) {
- hash = (37 * hash) + QUOTE_FIELD_NUMBER;
- hash = (53 * hash) + getQuote().hashCode();
- }
- if (getPreviewCount() > 0) {
- hash = (37 * hash) + PREVIEW_FIELD_NUMBER;
- hash = (53 * hash) + getPreviewList().hashCode();
- }
- if (hasReaction()) {
- hash = (37 * hash) + REACTION_FIELD_NUMBER;
- hash = (53 * hash) + getReaction().hashCode();
- }
- if (hasProfile()) {
- hash = (37 * hash) + PROFILE_FIELD_NUMBER;
- hash = (53 * hash) + getProfile().hashCode();
- }
- if (hasOpenGroupInvitation()) {
- hash = (37 * hash) + OPENGROUPINVITATION_FIELD_NUMBER;
- hash = (53 * hash) + getOpenGroupInvitation().hashCode();
- }
- if (hasClosedGroupControlMessage()) {
- hash = (37 * hash) + CLOSEDGROUPCONTROLMESSAGE_FIELD_NUMBER;
- hash = (53 * hash) + getClosedGroupControlMessage().hashCode();
- }
- if (hasSyncTarget()) {
- hash = (37 * hash) + SYNCTARGET_FIELD_NUMBER;
- hash = (53 * hash) + getSyncTarget().hashCode();
- }
- if (hasBlocksCommunityMessageRequests()) {
- hash = (37 * hash) + BLOCKSCOMMUNITYMESSAGEREQUESTS_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getBlocksCommunityMessageRequests());
- }
- if (hasGroupUpdateMessage()) {
- hash = (37 * hash) + GROUPUPDATEMESSAGE_FIELD_NUMBER;
- hash = (53 * hash) + getGroupUpdateMessage().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.session.libsignal.protos.SignalServiceProtos.DataMessage prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code signalservice.DataMessage}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:signalservice.DataMessage)
- org.session.libsignal.protos.SignalServiceProtos.DataMessageOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.class, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Builder.class);
- }
-
- // Construct using org.session.libsignal.protos.SignalServiceProtos.DataMessage.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
- .alwaysUseFieldBuilders) {
- getAttachmentsFieldBuilder();
- getQuoteFieldBuilder();
- getPreviewFieldBuilder();
- getReactionFieldBuilder();
- getProfileFieldBuilder();
- getOpenGroupInvitationFieldBuilder();
- getClosedGroupControlMessageFieldBuilder();
- getGroupUpdateMessageFieldBuilder();
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- body_ = "";
- if (attachmentsBuilder_ == null) {
- attachments_ = java.util.Collections.emptyList();
- } else {
- attachments_ = null;
- attachmentsBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000002);
- flags_ = 0;
- expireTimer_ = 0;
- profileKey_ = com.google.protobuf.ByteString.EMPTY;
- timestamp_ = 0L;
- quote_ = null;
- if (quoteBuilder_ != null) {
- quoteBuilder_.dispose();
- quoteBuilder_ = null;
- }
- if (previewBuilder_ == null) {
- preview_ = java.util.Collections.emptyList();
- } else {
- preview_ = null;
- previewBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000080);
- reaction_ = null;
- if (reactionBuilder_ != null) {
- reactionBuilder_.dispose();
- reactionBuilder_ = null;
- }
- profile_ = null;
- if (profileBuilder_ != null) {
- profileBuilder_.dispose();
- profileBuilder_ = null;
- }
- openGroupInvitation_ = null;
- if (openGroupInvitationBuilder_ != null) {
- openGroupInvitationBuilder_.dispose();
- openGroupInvitationBuilder_ = null;
- }
- closedGroupControlMessage_ = null;
- if (closedGroupControlMessageBuilder_ != null) {
- closedGroupControlMessageBuilder_.dispose();
- closedGroupControlMessageBuilder_ = null;
- }
- syncTarget_ = "";
- blocksCommunityMessageRequests_ = false;
- groupUpdateMessage_ = null;
- if (groupUpdateMessageBuilder_ != null) {
- groupUpdateMessageBuilder_.dispose();
- groupUpdateMessageBuilder_ = null;
- }
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_descriptor;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage getDefaultInstanceForType() {
- return org.session.libsignal.protos.SignalServiceProtos.DataMessage.getDefaultInstance();
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage build() {
- org.session.libsignal.protos.SignalServiceProtos.DataMessage result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage buildPartial() {
- org.session.libsignal.protos.SignalServiceProtos.DataMessage result = new org.session.libsignal.protos.SignalServiceProtos.DataMessage(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartialRepeatedFields(org.session.libsignal.protos.SignalServiceProtos.DataMessage result) {
- if (attachmentsBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)) {
- attachments_ = java.util.Collections.unmodifiableList(attachments_);
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.attachments_ = attachments_;
- } else {
- result.attachments_ = attachmentsBuilder_.build();
- }
- if (previewBuilder_ == null) {
- if (((bitField0_ & 0x00000080) != 0)) {
- preview_ = java.util.Collections.unmodifiableList(preview_);
- bitField0_ = (bitField0_ & ~0x00000080);
- }
- result.preview_ = preview_;
- } else {
- result.preview_ = previewBuilder_.build();
- }
- }
-
- private void buildPartial0(org.session.libsignal.protos.SignalServiceProtos.DataMessage result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.body_ = body_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.flags_ = flags_;
- to_bitField0_ |= 0x00000002;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.expireTimer_ = expireTimer_;
- to_bitField0_ |= 0x00000004;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.profileKey_ = profileKey_;
- to_bitField0_ |= 0x00000008;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.timestamp_ = timestamp_;
- to_bitField0_ |= 0x00000010;
- }
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.quote_ = quoteBuilder_ == null
- ? quote_
- : quoteBuilder_.build();
- to_bitField0_ |= 0x00000020;
- }
- if (((from_bitField0_ & 0x00000100) != 0)) {
- result.reaction_ = reactionBuilder_ == null
- ? reaction_
- : reactionBuilder_.build();
- to_bitField0_ |= 0x00000040;
- }
- if (((from_bitField0_ & 0x00000200) != 0)) {
- result.profile_ = profileBuilder_ == null
- ? profile_
- : profileBuilder_.build();
- to_bitField0_ |= 0x00000080;
- }
- if (((from_bitField0_ & 0x00000400) != 0)) {
- result.openGroupInvitation_ = openGroupInvitationBuilder_ == null
- ? openGroupInvitation_
- : openGroupInvitationBuilder_.build();
- to_bitField0_ |= 0x00000100;
- }
- if (((from_bitField0_ & 0x00000800) != 0)) {
- result.closedGroupControlMessage_ = closedGroupControlMessageBuilder_ == null
- ? closedGroupControlMessage_
- : closedGroupControlMessageBuilder_.build();
- to_bitField0_ |= 0x00000200;
- }
- if (((from_bitField0_ & 0x00001000) != 0)) {
- result.syncTarget_ = syncTarget_;
- to_bitField0_ |= 0x00000400;
- }
- if (((from_bitField0_ & 0x00002000) != 0)) {
- result.blocksCommunityMessageRequests_ = blocksCommunityMessageRequests_;
- to_bitField0_ |= 0x00000800;
- }
- if (((from_bitField0_ & 0x00004000) != 0)) {
- result.groupUpdateMessage_ = groupUpdateMessageBuilder_ == null
- ? groupUpdateMessage_
- : groupUpdateMessageBuilder_.build();
- to_bitField0_ |= 0x00001000;
- }
- result.bitField0_ |= to_bitField0_;
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.session.libsignal.protos.SignalServiceProtos.DataMessage) {
- return mergeFrom((org.session.libsignal.protos.SignalServiceProtos.DataMessage)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.session.libsignal.protos.SignalServiceProtos.DataMessage other) {
- if (other == org.session.libsignal.protos.SignalServiceProtos.DataMessage.getDefaultInstance()) return this;
- if (other.hasBody()) {
- body_ = other.body_;
- bitField0_ |= 0x00000001;
- onChanged();
- }
- if (attachmentsBuilder_ == null) {
- if (!other.attachments_.isEmpty()) {
- if (attachments_.isEmpty()) {
- attachments_ = other.attachments_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensureAttachmentsIsMutable();
- attachments_.addAll(other.attachments_);
- }
- onChanged();
- }
- } else {
- if (!other.attachments_.isEmpty()) {
- if (attachmentsBuilder_.isEmpty()) {
- attachmentsBuilder_.dispose();
- attachmentsBuilder_ = null;
- attachments_ = other.attachments_;
- bitField0_ = (bitField0_ & ~0x00000002);
- attachmentsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getAttachmentsFieldBuilder() : null;
- } else {
- attachmentsBuilder_.addAllMessages(other.attachments_);
- }
- }
- }
- if (other.hasFlags()) {
- setFlags(other.getFlags());
- }
- if (other.hasExpireTimer()) {
- setExpireTimer(other.getExpireTimer());
- }
- if (other.hasProfileKey()) {
- setProfileKey(other.getProfileKey());
- }
- if (other.hasTimestamp()) {
- setTimestamp(other.getTimestamp());
- }
- if (other.hasQuote()) {
- mergeQuote(other.getQuote());
- }
- if (previewBuilder_ == null) {
- if (!other.preview_.isEmpty()) {
- if (preview_.isEmpty()) {
- preview_ = other.preview_;
- bitField0_ = (bitField0_ & ~0x00000080);
- } else {
- ensurePreviewIsMutable();
- preview_.addAll(other.preview_);
- }
- onChanged();
- }
- } else {
- if (!other.preview_.isEmpty()) {
- if (previewBuilder_.isEmpty()) {
- previewBuilder_.dispose();
- previewBuilder_ = null;
- preview_ = other.preview_;
- bitField0_ = (bitField0_ & ~0x00000080);
- previewBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getPreviewFieldBuilder() : null;
- } else {
- previewBuilder_.addAllMessages(other.preview_);
- }
- }
- }
- if (other.hasReaction()) {
- mergeReaction(other.getReaction());
- }
- if (other.hasProfile()) {
- mergeProfile(other.getProfile());
- }
- if (other.hasOpenGroupInvitation()) {
- mergeOpenGroupInvitation(other.getOpenGroupInvitation());
- }
- if (other.hasClosedGroupControlMessage()) {
- mergeClosedGroupControlMessage(other.getClosedGroupControlMessage());
- }
- if (other.hasSyncTarget()) {
- syncTarget_ = other.syncTarget_;
- bitField0_ |= 0x00001000;
- onChanged();
- }
- if (other.hasBlocksCommunityMessageRequests()) {
- setBlocksCommunityMessageRequests(other.getBlocksCommunityMessageRequests());
- }
- if (other.hasGroupUpdateMessage()) {
- mergeGroupUpdateMessage(other.getGroupUpdateMessage());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- for (int i = 0; i < getAttachmentsCount(); i++) {
- if (!getAttachments(i).isInitialized()) {
- return false;
- }
- }
- if (hasQuote()) {
- if (!getQuote().isInitialized()) {
- return false;
- }
- }
- for (int i = 0; i < getPreviewCount(); i++) {
- if (!getPreview(i).isInitialized()) {
- return false;
- }
- }
- if (hasReaction()) {
- if (!getReaction().isInitialized()) {
- return false;
- }
- }
- if (hasOpenGroupInvitation()) {
- if (!getOpenGroupInvitation().isInitialized()) {
- return false;
- }
- }
- if (hasClosedGroupControlMessage()) {
- if (!getClosedGroupControlMessage().isInitialized()) {
- return false;
- }
- }
- if (hasGroupUpdateMessage()) {
- if (!getGroupUpdateMessage().isInitialized()) {
- return false;
- }
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- body_ = input.readBytes();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer m =
- input.readMessage(
- org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.parser(),
- extensionRegistry);
- if (attachmentsBuilder_ == null) {
- ensureAttachmentsIsMutable();
- attachments_.add(m);
- } else {
- attachmentsBuilder_.addMessage(m);
- }
- break;
- } // case 18
- case 32: {
- flags_ = input.readUInt32();
- bitField0_ |= 0x00000004;
- break;
- } // case 32
- case 40: {
- expireTimer_ = input.readUInt32();
- bitField0_ |= 0x00000008;
- break;
- } // case 40
- case 50: {
- profileKey_ = input.readBytes();
- bitField0_ |= 0x00000010;
- break;
- } // case 50
- case 56: {
- timestamp_ = input.readUInt64();
- bitField0_ |= 0x00000020;
- break;
- } // case 56
- case 66: {
- input.readMessage(
- getQuoteFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000040;
- break;
- } // case 66
- case 82: {
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview m =
- input.readMessage(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.parser(),
- extensionRegistry);
- if (previewBuilder_ == null) {
- ensurePreviewIsMutable();
- preview_.add(m);
- } else {
- previewBuilder_.addMessage(m);
- }
- break;
- } // case 82
- case 90: {
- input.readMessage(
- getReactionFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000100;
- break;
- } // case 90
- case 810: {
- input.readMessage(
- getProfileFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000200;
- break;
- } // case 810
- case 818: {
- input.readMessage(
- getOpenGroupInvitationFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000400;
- break;
- } // case 818
- case 834: {
- input.readMessage(
- getClosedGroupControlMessageFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000800;
- break;
- } // case 834
- case 842: {
- syncTarget_ = input.readBytes();
- bitField0_ |= 0x00001000;
- break;
- } // case 842
- case 848: {
- blocksCommunityMessageRequests_ = input.readBool();
- bitField0_ |= 0x00002000;
- break;
- } // case 848
- case 962: {
- input.readMessage(
- getGroupUpdateMessageFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00004000;
- break;
- } // case 962
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int bitField0_;
-
- private java.lang.Object body_ = "";
- /**
- * optional string body = 1;
- * @return Whether the body field is set.
- */
- public boolean hasBody() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * optional string body = 1;
- * @return The body.
- */
- public java.lang.String getBody() {
- java.lang.Object ref = body_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- body_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string body = 1;
- * @return The bytes for body.
- */
- public com.google.protobuf.ByteString
- getBodyBytes() {
- java.lang.Object ref = body_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- body_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string body = 1;
- * @param value The body to set.
- * @return This builder for chaining.
- */
- public Builder setBody(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- body_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- * optional string body = 1;
- * @return This builder for chaining.
- */
- public Builder clearBody() {
- body_ = getDefaultInstance().getBody();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- return this;
- }
- /**
- * optional string body = 1;
- * @param value The bytes for body to set.
- * @return This builder for chaining.
- */
- public Builder setBodyBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- body_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
-
- private java.util.List attachments_ =
- java.util.Collections.emptyList();
- private void ensureAttachmentsIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
- attachments_ = new java.util.ArrayList(attachments_);
- bitField0_ |= 0x00000002;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointerOrBuilder> attachmentsBuilder_;
-
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public java.util.List getAttachmentsList() {
- if (attachmentsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(attachments_);
- } else {
- return attachmentsBuilder_.getMessageList();
- }
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public int getAttachmentsCount() {
- if (attachmentsBuilder_ == null) {
- return attachments_.size();
- } else {
- return attachmentsBuilder_.getCount();
- }
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer getAttachments(int index) {
- if (attachmentsBuilder_ == null) {
- return attachments_.get(index);
- } else {
- return attachmentsBuilder_.getMessage(index);
- }
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public Builder setAttachments(
- int index, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer value) {
- if (attachmentsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureAttachmentsIsMutable();
- attachments_.set(index, value);
- onChanged();
- } else {
- attachmentsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public Builder setAttachments(
- int index, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder builderForValue) {
- if (attachmentsBuilder_ == null) {
- ensureAttachmentsIsMutable();
- attachments_.set(index, builderForValue.build());
- onChanged();
- } else {
- attachmentsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public Builder addAttachments(org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer value) {
- if (attachmentsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureAttachmentsIsMutable();
- attachments_.add(value);
- onChanged();
- } else {
- attachmentsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public Builder addAttachments(
- int index, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer value) {
- if (attachmentsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureAttachmentsIsMutable();
- attachments_.add(index, value);
- onChanged();
- } else {
- attachmentsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public Builder addAttachments(
- org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder builderForValue) {
- if (attachmentsBuilder_ == null) {
- ensureAttachmentsIsMutable();
- attachments_.add(builderForValue.build());
- onChanged();
- } else {
- attachmentsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public Builder addAttachments(
- int index, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder builderForValue) {
- if (attachmentsBuilder_ == null) {
- ensureAttachmentsIsMutable();
- attachments_.add(index, builderForValue.build());
- onChanged();
- } else {
- attachmentsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public Builder addAllAttachments(
- java.lang.Iterable extends org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer> values) {
- if (attachmentsBuilder_ == null) {
- ensureAttachmentsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, attachments_);
- onChanged();
- } else {
- attachmentsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public Builder clearAttachments() {
- if (attachmentsBuilder_ == null) {
- attachments_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- } else {
- attachmentsBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public Builder removeAttachments(int index) {
- if (attachmentsBuilder_ == null) {
- ensureAttachmentsIsMutable();
- attachments_.remove(index);
- onChanged();
- } else {
- attachmentsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder getAttachmentsBuilder(
- int index) {
- return getAttachmentsFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public org.session.libsignal.protos.SignalServiceProtos.AttachmentPointerOrBuilder getAttachmentsOrBuilder(
- int index) {
- if (attachmentsBuilder_ == null) {
- return attachments_.get(index); } else {
- return attachmentsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public java.util.List extends org.session.libsignal.protos.SignalServiceProtos.AttachmentPointerOrBuilder>
- getAttachmentsOrBuilderList() {
- if (attachmentsBuilder_ != null) {
- return attachmentsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(attachments_);
- }
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder addAttachmentsBuilder() {
- return getAttachmentsFieldBuilder().addBuilder(
- org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.getDefaultInstance());
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder addAttachmentsBuilder(
- int index) {
- return getAttachmentsFieldBuilder().addBuilder(
- index, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.getDefaultInstance());
- }
- /**
- * repeated .signalservice.AttachmentPointer attachments = 2;
- */
- public java.util.List
- getAttachmentsBuilderList() {
- return getAttachmentsFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointerOrBuilder>
- getAttachmentsFieldBuilder() {
- if (attachmentsBuilder_ == null) {
- attachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointerOrBuilder>(
- attachments_,
- ((bitField0_ & 0x00000002) != 0),
- getParentForChildren(),
- isClean());
- attachments_ = null;
- }
- return attachmentsBuilder_;
- }
-
- private int flags_ ;
- /**
- * optional uint32 flags = 4;
- * @return Whether the flags field is set.
- */
- @java.lang.Override
- public boolean hasFlags() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- * optional uint32 flags = 4;
- * @return The flags.
- */
- @java.lang.Override
- public int getFlags() {
- return flags_;
- }
- /**
- * optional uint32 flags = 4;
- * @param value The flags to set.
- * @return This builder for chaining.
- */
- public Builder setFlags(int value) {
-
- flags_ = value;
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * optional uint32 flags = 4;
- * @return This builder for chaining.
- */
- public Builder clearFlags() {
- bitField0_ = (bitField0_ & ~0x00000004);
- flags_ = 0;
- onChanged();
- return this;
- }
-
- private int expireTimer_ ;
- /**
- * optional uint32 expireTimer = 5;
- * @return Whether the expireTimer field is set.
- */
- @java.lang.Override
- public boolean hasExpireTimer() {
- return ((bitField0_ & 0x00000008) != 0);
- }
- /**
- * optional uint32 expireTimer = 5;
- * @return The expireTimer.
- */
- @java.lang.Override
- public int getExpireTimer() {
- return expireTimer_;
- }
- /**
- * optional uint32 expireTimer = 5;
- * @param value The expireTimer to set.
- * @return This builder for chaining.
- */
- public Builder setExpireTimer(int value) {
-
- expireTimer_ = value;
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- * optional uint32 expireTimer = 5;
- * @return This builder for chaining.
- */
- public Builder clearExpireTimer() {
- bitField0_ = (bitField0_ & ~0x00000008);
- expireTimer_ = 0;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.ByteString profileKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- * optional bytes profileKey = 6;
- * @return Whether the profileKey field is set.
- */
- @java.lang.Override
- public boolean hasProfileKey() {
- return ((bitField0_ & 0x00000010) != 0);
- }
- /**
- * optional bytes profileKey = 6;
- * @return The profileKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getProfileKey() {
- return profileKey_;
- }
- /**
- * optional bytes profileKey = 6;
- * @param value The profileKey to set.
- * @return This builder for chaining.
- */
- public Builder setProfileKey(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- profileKey_ = value;
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
- }
- /**
- * optional bytes profileKey = 6;
- * @return This builder for chaining.
- */
- public Builder clearProfileKey() {
- bitField0_ = (bitField0_ & ~0x00000010);
- profileKey_ = getDefaultInstance().getProfileKey();
- onChanged();
- return this;
- }
-
- private long timestamp_ ;
- /**
- * optional uint64 timestamp = 7;
- * @return Whether the timestamp field is set.
- */
- @java.lang.Override
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00000020) != 0);
- }
- /**
- * optional uint64 timestamp = 7;
- * @return The timestamp.
- */
- @java.lang.Override
- public long getTimestamp() {
- return timestamp_;
- }
- /**
- * optional uint64 timestamp = 7;
- * @param value The timestamp to set.
- * @return This builder for chaining.
- */
- public Builder setTimestamp(long value) {
-
- timestamp_ = value;
- bitField0_ |= 0x00000020;
- onChanged();
- return this;
- }
- /**
- * optional uint64 timestamp = 7;
- * @return This builder for chaining.
- */
- public Builder clearTimestamp() {
- bitField0_ = (bitField0_ & ~0x00000020);
- timestamp_ = 0L;
- onChanged();
- return this;
- }
-
- private org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote quote_;
- private com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.QuoteOrBuilder> quoteBuilder_;
- /**
- * optional .signalservice.DataMessage.Quote quote = 8;
- * @return Whether the quote field is set.
- */
- public boolean hasQuote() {
- return ((bitField0_ & 0x00000040) != 0);
- }
- /**
- * optional .signalservice.DataMessage.Quote quote = 8;
- * @return The quote.
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote getQuote() {
- if (quoteBuilder_ == null) {
- return quote_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.getDefaultInstance() : quote_;
- } else {
- return quoteBuilder_.getMessage();
- }
- }
- /**
- * optional .signalservice.DataMessage.Quote quote = 8;
- */
- public Builder setQuote(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote value) {
- if (quoteBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- quote_ = value;
- } else {
- quoteBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000040;
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.Quote quote = 8;
- */
- public Builder setQuote(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.Builder builderForValue) {
- if (quoteBuilder_ == null) {
- quote_ = builderForValue.build();
- } else {
- quoteBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000040;
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.Quote quote = 8;
- */
- public Builder mergeQuote(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote value) {
- if (quoteBuilder_ == null) {
- if (((bitField0_ & 0x00000040) != 0) &&
- quote_ != null &&
- quote_ != org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.getDefaultInstance()) {
- getQuoteBuilder().mergeFrom(value);
- } else {
- quote_ = value;
- }
- } else {
- quoteBuilder_.mergeFrom(value);
- }
- if (quote_ != null) {
- bitField0_ |= 0x00000040;
- onChanged();
- }
- return this;
- }
- /**
- * optional .signalservice.DataMessage.Quote quote = 8;
- */
- public Builder clearQuote() {
- bitField0_ = (bitField0_ & ~0x00000040);
- quote_ = null;
- if (quoteBuilder_ != null) {
- quoteBuilder_.dispose();
- quoteBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.Quote quote = 8;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.Builder getQuoteBuilder() {
- bitField0_ |= 0x00000040;
- onChanged();
- return getQuoteFieldBuilder().getBuilder();
- }
- /**
- * optional .signalservice.DataMessage.Quote quote = 8;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.QuoteOrBuilder getQuoteOrBuilder() {
- if (quoteBuilder_ != null) {
- return quoteBuilder_.getMessageOrBuilder();
- } else {
- return quote_ == null ?
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.getDefaultInstance() : quote_;
- }
- }
- /**
- * optional .signalservice.DataMessage.Quote quote = 8;
- */
- private com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.QuoteOrBuilder>
- getQuoteFieldBuilder() {
- if (quoteBuilder_ == null) {
- quoteBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.QuoteOrBuilder>(
- getQuote(),
- getParentForChildren(),
- isClean());
- quote_ = null;
- }
- return quoteBuilder_;
- }
-
- private java.util.List preview_ =
- java.util.Collections.emptyList();
- private void ensurePreviewIsMutable() {
- if (!((bitField0_ & 0x00000080) != 0)) {
- preview_ = new java.util.ArrayList(preview_);
- bitField0_ |= 0x00000080;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.PreviewOrBuilder> previewBuilder_;
-
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public java.util.List getPreviewList() {
- if (previewBuilder_ == null) {
- return java.util.Collections.unmodifiableList(preview_);
- } else {
- return previewBuilder_.getMessageList();
- }
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public int getPreviewCount() {
- if (previewBuilder_ == null) {
- return preview_.size();
- } else {
- return previewBuilder_.getCount();
- }
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview getPreview(int index) {
- if (previewBuilder_ == null) {
- return preview_.get(index);
- } else {
- return previewBuilder_.getMessage(index);
- }
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public Builder setPreview(
- int index, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview value) {
- if (previewBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePreviewIsMutable();
- preview_.set(index, value);
- onChanged();
- } else {
- previewBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public Builder setPreview(
- int index, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder builderForValue) {
- if (previewBuilder_ == null) {
- ensurePreviewIsMutable();
- preview_.set(index, builderForValue.build());
- onChanged();
- } else {
- previewBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public Builder addPreview(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview value) {
- if (previewBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePreviewIsMutable();
- preview_.add(value);
- onChanged();
- } else {
- previewBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public Builder addPreview(
- int index, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview value) {
- if (previewBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePreviewIsMutable();
- preview_.add(index, value);
- onChanged();
- } else {
- previewBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public Builder addPreview(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder builderForValue) {
- if (previewBuilder_ == null) {
- ensurePreviewIsMutable();
- preview_.add(builderForValue.build());
- onChanged();
- } else {
- previewBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public Builder addPreview(
- int index, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder builderForValue) {
- if (previewBuilder_ == null) {
- ensurePreviewIsMutable();
- preview_.add(index, builderForValue.build());
- onChanged();
- } else {
- previewBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public Builder addAllPreview(
- java.lang.Iterable extends org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview> values) {
- if (previewBuilder_ == null) {
- ensurePreviewIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, preview_);
- onChanged();
- } else {
- previewBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public Builder clearPreview() {
- if (previewBuilder_ == null) {
- preview_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000080);
- onChanged();
- } else {
- previewBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public Builder removePreview(int index) {
- if (previewBuilder_ == null) {
- ensurePreviewIsMutable();
- preview_.remove(index);
- onChanged();
- } else {
- previewBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder getPreviewBuilder(
- int index) {
- return getPreviewFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.PreviewOrBuilder getPreviewOrBuilder(
- int index) {
- if (previewBuilder_ == null) {
- return preview_.get(index); } else {
- return previewBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public java.util.List extends org.session.libsignal.protos.SignalServiceProtos.DataMessage.PreviewOrBuilder>
- getPreviewOrBuilderList() {
- if (previewBuilder_ != null) {
- return previewBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(preview_);
- }
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder addPreviewBuilder() {
- return getPreviewFieldBuilder().addBuilder(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.getDefaultInstance());
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder addPreviewBuilder(
- int index) {
- return getPreviewFieldBuilder().addBuilder(
- index, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.getDefaultInstance());
- }
- /**
- * repeated .signalservice.DataMessage.Preview preview = 10;
- */
- public java.util.List
- getPreviewBuilderList() {
- return getPreviewFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.PreviewOrBuilder>
- getPreviewFieldBuilder() {
- if (previewBuilder_ == null) {
- previewBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.PreviewOrBuilder>(
- preview_,
- ((bitField0_ & 0x00000080) != 0),
- getParentForChildren(),
- isClean());
- preview_ = null;
- }
- return previewBuilder_;
- }
-
- private org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction reaction_;
- private com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ReactionOrBuilder> reactionBuilder_;
- /**
- * optional .signalservice.DataMessage.Reaction reaction = 11;
- * @return Whether the reaction field is set.
- */
- public boolean hasReaction() {
- return ((bitField0_ & 0x00000100) != 0);
- }
- /**
- * optional .signalservice.DataMessage.Reaction reaction = 11;
- * @return The reaction.
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction getReaction() {
- if (reactionBuilder_ == null) {
- return reaction_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.getDefaultInstance() : reaction_;
- } else {
- return reactionBuilder_.getMessage();
- }
- }
- /**
- * optional .signalservice.DataMessage.Reaction reaction = 11;
- */
- public Builder setReaction(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction value) {
- if (reactionBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- reaction_ = value;
- } else {
- reactionBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000100;
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.Reaction reaction = 11;
- */
- public Builder setReaction(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Builder builderForValue) {
- if (reactionBuilder_ == null) {
- reaction_ = builderForValue.build();
- } else {
- reactionBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000100;
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.Reaction reaction = 11;
- */
- public Builder mergeReaction(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction value) {
- if (reactionBuilder_ == null) {
- if (((bitField0_ & 0x00000100) != 0) &&
- reaction_ != null &&
- reaction_ != org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.getDefaultInstance()) {
- getReactionBuilder().mergeFrom(value);
- } else {
- reaction_ = value;
- }
- } else {
- reactionBuilder_.mergeFrom(value);
- }
- if (reaction_ != null) {
- bitField0_ |= 0x00000100;
- onChanged();
- }
- return this;
- }
- /**
- * optional .signalservice.DataMessage.Reaction reaction = 11;
- */
- public Builder clearReaction() {
- bitField0_ = (bitField0_ & ~0x00000100);
- reaction_ = null;
- if (reactionBuilder_ != null) {
- reactionBuilder_.dispose();
- reactionBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.Reaction reaction = 11;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Builder getReactionBuilder() {
- bitField0_ |= 0x00000100;
- onChanged();
- return getReactionFieldBuilder().getBuilder();
- }
- /**
- * optional .signalservice.DataMessage.Reaction reaction = 11;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ReactionOrBuilder getReactionOrBuilder() {
- if (reactionBuilder_ != null) {
- return reactionBuilder_.getMessageOrBuilder();
- } else {
- return reaction_ == null ?
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.getDefaultInstance() : reaction_;
- }
- }
- /**
- * optional .signalservice.DataMessage.Reaction reaction = 11;
- */
- private com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ReactionOrBuilder>
- getReactionFieldBuilder() {
- if (reactionBuilder_ == null) {
- reactionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ReactionOrBuilder>(
- getReaction(),
- getParentForChildren(),
- isClean());
- reaction_ = null;
- }
- return reactionBuilder_;
- }
-
- private org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile profile_;
- private com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile, org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfileOrBuilder> profileBuilder_;
- /**
- * optional .signalservice.DataMessage.LokiProfile profile = 101;
- * @return Whether the profile field is set.
- */
- public boolean hasProfile() {
- return ((bitField0_ & 0x00000200) != 0);
- }
- /**
- * optional .signalservice.DataMessage.LokiProfile profile = 101;
- * @return The profile.
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile getProfile() {
- if (profileBuilder_ == null) {
- return profile_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.getDefaultInstance() : profile_;
- } else {
- return profileBuilder_.getMessage();
- }
- }
- /**
- * optional .signalservice.DataMessage.LokiProfile profile = 101;
- */
- public Builder setProfile(org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile value) {
- if (profileBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- profile_ = value;
- } else {
- profileBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000200;
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.LokiProfile profile = 101;
- */
- public Builder setProfile(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.Builder builderForValue) {
- if (profileBuilder_ == null) {
- profile_ = builderForValue.build();
- } else {
- profileBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000200;
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.LokiProfile profile = 101;
- */
- public Builder mergeProfile(org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile value) {
- if (profileBuilder_ == null) {
- if (((bitField0_ & 0x00000200) != 0) &&
- profile_ != null &&
- profile_ != org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.getDefaultInstance()) {
- getProfileBuilder().mergeFrom(value);
- } else {
- profile_ = value;
- }
- } else {
- profileBuilder_.mergeFrom(value);
- }
- if (profile_ != null) {
- bitField0_ |= 0x00000200;
- onChanged();
- }
- return this;
- }
- /**
- * optional .signalservice.DataMessage.LokiProfile profile = 101;
- */
- public Builder clearProfile() {
- bitField0_ = (bitField0_ & ~0x00000200);
- profile_ = null;
- if (profileBuilder_ != null) {
- profileBuilder_.dispose();
- profileBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.LokiProfile profile = 101;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.Builder getProfileBuilder() {
- bitField0_ |= 0x00000200;
- onChanged();
- return getProfileFieldBuilder().getBuilder();
- }
- /**
- * optional .signalservice.DataMessage.LokiProfile profile = 101;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfileOrBuilder getProfileOrBuilder() {
- if (profileBuilder_ != null) {
- return profileBuilder_.getMessageOrBuilder();
- } else {
- return profile_ == null ?
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.getDefaultInstance() : profile_;
- }
- }
- /**
- * optional .signalservice.DataMessage.LokiProfile profile = 101;
- */
- private com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile, org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfileOrBuilder>
- getProfileFieldBuilder() {
- if (profileBuilder_ == null) {
- profileBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile, org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfileOrBuilder>(
- getProfile(),
- getParentForChildren(),
- isClean());
- profile_ = null;
- }
- return profileBuilder_;
- }
-
- private org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation openGroupInvitation_;
- private com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation, org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitationOrBuilder> openGroupInvitationBuilder_;
- /**
- * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
- * @return Whether the openGroupInvitation field is set.
- */
- public boolean hasOpenGroupInvitation() {
- return ((bitField0_ & 0x00000400) != 0);
- }
- /**
- * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
- * @return The openGroupInvitation.
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation getOpenGroupInvitation() {
- if (openGroupInvitationBuilder_ == null) {
- return openGroupInvitation_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.getDefaultInstance() : openGroupInvitation_;
- } else {
- return openGroupInvitationBuilder_.getMessage();
- }
- }
- /**
- * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
- */
- public Builder setOpenGroupInvitation(org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation value) {
- if (openGroupInvitationBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- openGroupInvitation_ = value;
- } else {
- openGroupInvitationBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000400;
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
- */
- public Builder setOpenGroupInvitation(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.Builder builderForValue) {
- if (openGroupInvitationBuilder_ == null) {
- openGroupInvitation_ = builderForValue.build();
- } else {
- openGroupInvitationBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000400;
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
- */
- public Builder mergeOpenGroupInvitation(org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation value) {
- if (openGroupInvitationBuilder_ == null) {
- if (((bitField0_ & 0x00000400) != 0) &&
- openGroupInvitation_ != null &&
- openGroupInvitation_ != org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.getDefaultInstance()) {
- getOpenGroupInvitationBuilder().mergeFrom(value);
- } else {
- openGroupInvitation_ = value;
- }
- } else {
- openGroupInvitationBuilder_.mergeFrom(value);
- }
- if (openGroupInvitation_ != null) {
- bitField0_ |= 0x00000400;
- onChanged();
- }
- return this;
- }
- /**
- * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
- */
- public Builder clearOpenGroupInvitation() {
- bitField0_ = (bitField0_ & ~0x00000400);
- openGroupInvitation_ = null;
- if (openGroupInvitationBuilder_ != null) {
- openGroupInvitationBuilder_.dispose();
- openGroupInvitationBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.Builder getOpenGroupInvitationBuilder() {
- bitField0_ |= 0x00000400;
- onChanged();
- return getOpenGroupInvitationFieldBuilder().getBuilder();
- }
- /**
- * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitationOrBuilder getOpenGroupInvitationOrBuilder() {
- if (openGroupInvitationBuilder_ != null) {
- return openGroupInvitationBuilder_.getMessageOrBuilder();
- } else {
- return openGroupInvitation_ == null ?
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.getDefaultInstance() : openGroupInvitation_;
- }
- }
- /**
- * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
- */
- private com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation, org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitationOrBuilder>
- getOpenGroupInvitationFieldBuilder() {
- if (openGroupInvitationBuilder_ == null) {
- openGroupInvitationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation, org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitationOrBuilder>(
- getOpenGroupInvitation(),
- getParentForChildren(),
- isClean());
- openGroupInvitation_ = null;
- }
- return openGroupInvitationBuilder_;
- }
-
- private org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage closedGroupControlMessage_;
- private com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessageOrBuilder> closedGroupControlMessageBuilder_;
- /**
- * optional .signalservice.DataMessage.ClosedGroupControlMessage closedGroupControlMessage = 104;
- * @return Whether the closedGroupControlMessage field is set.
- */
- public boolean hasClosedGroupControlMessage() {
- return ((bitField0_ & 0x00000800) != 0);
- }
- /**
- * optional .signalservice.DataMessage.ClosedGroupControlMessage closedGroupControlMessage = 104;
- * @return The closedGroupControlMessage.
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage getClosedGroupControlMessage() {
- if (closedGroupControlMessageBuilder_ == null) {
- return closedGroupControlMessage_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.getDefaultInstance() : closedGroupControlMessage_;
- } else {
- return closedGroupControlMessageBuilder_.getMessage();
- }
- }
- /**
- * optional .signalservice.DataMessage.ClosedGroupControlMessage closedGroupControlMessage = 104;
- */
- public Builder setClosedGroupControlMessage(org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage value) {
- if (closedGroupControlMessageBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- closedGroupControlMessage_ = value;
- } else {
- closedGroupControlMessageBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000800;
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.ClosedGroupControlMessage closedGroupControlMessage = 104;
- */
- public Builder setClosedGroupControlMessage(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Builder builderForValue) {
- if (closedGroupControlMessageBuilder_ == null) {
- closedGroupControlMessage_ = builderForValue.build();
- } else {
- closedGroupControlMessageBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000800;
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.ClosedGroupControlMessage closedGroupControlMessage = 104;
- */
- public Builder mergeClosedGroupControlMessage(org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage value) {
- if (closedGroupControlMessageBuilder_ == null) {
- if (((bitField0_ & 0x00000800) != 0) &&
- closedGroupControlMessage_ != null &&
- closedGroupControlMessage_ != org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.getDefaultInstance()) {
- getClosedGroupControlMessageBuilder().mergeFrom(value);
- } else {
- closedGroupControlMessage_ = value;
- }
- } else {
- closedGroupControlMessageBuilder_.mergeFrom(value);
- }
- if (closedGroupControlMessage_ != null) {
- bitField0_ |= 0x00000800;
- onChanged();
- }
- return this;
- }
- /**
- * optional .signalservice.DataMessage.ClosedGroupControlMessage closedGroupControlMessage = 104;
- */
- public Builder clearClosedGroupControlMessage() {
- bitField0_ = (bitField0_ & ~0x00000800);
- closedGroupControlMessage_ = null;
- if (closedGroupControlMessageBuilder_ != null) {
- closedGroupControlMessageBuilder_.dispose();
- closedGroupControlMessageBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.ClosedGroupControlMessage closedGroupControlMessage = 104;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Builder getClosedGroupControlMessageBuilder() {
- bitField0_ |= 0x00000800;
- onChanged();
- return getClosedGroupControlMessageFieldBuilder().getBuilder();
- }
- /**
- * optional .signalservice.DataMessage.ClosedGroupControlMessage closedGroupControlMessage = 104;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessageOrBuilder getClosedGroupControlMessageOrBuilder() {
- if (closedGroupControlMessageBuilder_ != null) {
- return closedGroupControlMessageBuilder_.getMessageOrBuilder();
- } else {
- return closedGroupControlMessage_ == null ?
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.getDefaultInstance() : closedGroupControlMessage_;
- }
- }
- /**
- * optional .signalservice.DataMessage.ClosedGroupControlMessage closedGroupControlMessage = 104;
- */
- private com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessageOrBuilder>
- getClosedGroupControlMessageFieldBuilder() {
- if (closedGroupControlMessageBuilder_ == null) {
- closedGroupControlMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessage.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ClosedGroupControlMessageOrBuilder>(
- getClosedGroupControlMessage(),
- getParentForChildren(),
- isClean());
- closedGroupControlMessage_ = null;
- }
- return closedGroupControlMessageBuilder_;
- }
-
- private java.lang.Object syncTarget_ = "";
- /**
- * optional string syncTarget = 105;
- * @return Whether the syncTarget field is set.
- */
- public boolean hasSyncTarget() {
- return ((bitField0_ & 0x00001000) != 0);
- }
- /**
- * optional string syncTarget = 105;
- * @return The syncTarget.
- */
- public java.lang.String getSyncTarget() {
- java.lang.Object ref = syncTarget_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- syncTarget_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * optional string syncTarget = 105;
- * @return The bytes for syncTarget.
- */
- public com.google.protobuf.ByteString
- getSyncTargetBytes() {
- java.lang.Object ref = syncTarget_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- syncTarget_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * optional string syncTarget = 105;
- * @param value The syncTarget to set.
- * @return This builder for chaining.
- */
- public Builder setSyncTarget(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- syncTarget_ = value;
- bitField0_ |= 0x00001000;
- onChanged();
- return this;
- }
- /**
- * optional string syncTarget = 105;
- * @return This builder for chaining.
- */
- public Builder clearSyncTarget() {
- syncTarget_ = getDefaultInstance().getSyncTarget();
- bitField0_ = (bitField0_ & ~0x00001000);
- onChanged();
- return this;
- }
- /**
- * optional string syncTarget = 105;
- * @param value The bytes for syncTarget to set.
- * @return This builder for chaining.
- */
- public Builder setSyncTargetBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- syncTarget_ = value;
- bitField0_ |= 0x00001000;
- onChanged();
- return this;
- }
-
- private boolean blocksCommunityMessageRequests_ ;
- /**
- * optional bool blocksCommunityMessageRequests = 106;
- * @return Whether the blocksCommunityMessageRequests field is set.
- */
- @java.lang.Override
- public boolean hasBlocksCommunityMessageRequests() {
- return ((bitField0_ & 0x00002000) != 0);
- }
- /**
- * optional bool blocksCommunityMessageRequests = 106;
- * @return The blocksCommunityMessageRequests.
- */
- @java.lang.Override
- public boolean getBlocksCommunityMessageRequests() {
- return blocksCommunityMessageRequests_;
- }
- /**
- * optional bool blocksCommunityMessageRequests = 106;
- * @param value The blocksCommunityMessageRequests to set.
- * @return This builder for chaining.
- */
- public Builder setBlocksCommunityMessageRequests(boolean value) {
-
- blocksCommunityMessageRequests_ = value;
- bitField0_ |= 0x00002000;
- onChanged();
- return this;
- }
- /**
- * optional bool blocksCommunityMessageRequests = 106;
- * @return This builder for chaining.
- */
- public Builder clearBlocksCommunityMessageRequests() {
- bitField0_ = (bitField0_ & ~0x00002000);
- blocksCommunityMessageRequests_ = false;
- onChanged();
- return this;
- }
-
- private org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage groupUpdateMessage_;
- private com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage, org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessageOrBuilder> groupUpdateMessageBuilder_;
- /**
- * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
- * @return Whether the groupUpdateMessage field is set.
- */
- public boolean hasGroupUpdateMessage() {
- return ((bitField0_ & 0x00004000) != 0);
- }
- /**
- * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
- * @return The groupUpdateMessage.
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage getGroupUpdateMessage() {
- if (groupUpdateMessageBuilder_ == null) {
- return groupUpdateMessage_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.getDefaultInstance() : groupUpdateMessage_;
- } else {
- return groupUpdateMessageBuilder_.getMessage();
- }
- }
- /**
- * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
- */
- public Builder setGroupUpdateMessage(org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage value) {
- if (groupUpdateMessageBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- groupUpdateMessage_ = value;
- } else {
- groupUpdateMessageBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00004000;
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
- */
- public Builder setGroupUpdateMessage(
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.Builder builderForValue) {
- if (groupUpdateMessageBuilder_ == null) {
- groupUpdateMessage_ = builderForValue.build();
- } else {
- groupUpdateMessageBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00004000;
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
- */
- public Builder mergeGroupUpdateMessage(org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage value) {
- if (groupUpdateMessageBuilder_ == null) {
- if (((bitField0_ & 0x00004000) != 0) &&
- groupUpdateMessage_ != null &&
- groupUpdateMessage_ != org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.getDefaultInstance()) {
- getGroupUpdateMessageBuilder().mergeFrom(value);
- } else {
- groupUpdateMessage_ = value;
- }
- } else {
- groupUpdateMessageBuilder_.mergeFrom(value);
- }
- if (groupUpdateMessage_ != null) {
- bitField0_ |= 0x00004000;
- onChanged();
- }
- return this;
- }
- /**
- * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
- */
- public Builder clearGroupUpdateMessage() {
- bitField0_ = (bitField0_ & ~0x00004000);
- groupUpdateMessage_ = null;
- if (groupUpdateMessageBuilder_ != null) {
- groupUpdateMessageBuilder_.dispose();
- groupUpdateMessageBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.Builder getGroupUpdateMessageBuilder() {
- bitField0_ |= 0x00004000;
- onChanged();
- return getGroupUpdateMessageFieldBuilder().getBuilder();
- }
- /**
- * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
- */
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessageOrBuilder getGroupUpdateMessageOrBuilder() {
- if (groupUpdateMessageBuilder_ != null) {
- return groupUpdateMessageBuilder_.getMessageOrBuilder();
- } else {
- return groupUpdateMessage_ == null ?
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.getDefaultInstance() : groupUpdateMessage_;
- }
- }
- /**
- * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
- */
- private com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage, org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessageOrBuilder>
- getGroupUpdateMessageFieldBuilder() {
- if (groupUpdateMessageBuilder_ == null) {
- groupUpdateMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage, org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessageOrBuilder>(
- getGroupUpdateMessage(),
- getParentForChildren(),
- isClean());
- groupUpdateMessage_ = null;
- }
- return groupUpdateMessageBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:signalservice.DataMessage)
- }
-
- // @@protoc_insertion_point(class_scope:signalservice.DataMessage)
- private static final org.session.libsignal.protos.SignalServiceProtos.DataMessage DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.session.libsignal.protos.SignalServiceProtos.DataMessage();
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.DataMessage getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public DataMessage parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.DataMessage getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface GroupDeleteMessageOrBuilder extends
- // @@protoc_insertion_point(interface_extends:signalservice.GroupDeleteMessage)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return Whether the publicKey field is set.
- */
- boolean hasPublicKey();
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return The publicKey.
- */
- com.google.protobuf.ByteString getPublicKey();
-
- /**
- *
- * @required
- *
- *
- * required bytes lastEncryptionKey = 2;
- * @return Whether the lastEncryptionKey field is set.
- */
- boolean hasLastEncryptionKey();
- /**
- *
- * @required
- *
- *
- * required bytes lastEncryptionKey = 2;
- * @return The lastEncryptionKey.
- */
- com.google.protobuf.ByteString getLastEncryptionKey();
- }
- /**
- * Protobuf type {@code signalservice.GroupDeleteMessage}
- */
- public static final class GroupDeleteMessage extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:signalservice.GroupDeleteMessage)
- GroupDeleteMessageOrBuilder {
- private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 3,
- /* suffix= */ "",
- GroupDeleteMessage.class.getName());
- }
- // Use GroupDeleteMessage.newBuilder() to construct.
- private GroupDeleteMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- }
- private GroupDeleteMessage() {
- publicKey_ = com.google.protobuf.ByteString.EMPTY;
- lastEncryptionKey_ = com.google.protobuf.ByteString.EMPTY;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupDeleteMessage_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupDeleteMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage.class, org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage.Builder.class);
- }
-
- private int bitField0_;
- public static final int PUBLICKEY_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return Whether the publicKey field is set.
- */
- @java.lang.Override
- public boolean hasPublicKey() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return The publicKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getPublicKey() {
- return publicKey_;
- }
-
- public static final int LASTENCRYPTIONKEY_FIELD_NUMBER = 2;
- private com.google.protobuf.ByteString lastEncryptionKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes lastEncryptionKey = 2;
- * @return Whether the lastEncryptionKey field is set.
- */
- @java.lang.Override
- public boolean hasLastEncryptionKey() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required bytes lastEncryptionKey = 2;
- * @return The lastEncryptionKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getLastEncryptionKey() {
- return lastEncryptionKey_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (!hasPublicKey()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasLastEncryptionKey()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeBytes(1, publicKey_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeBytes(2, lastEncryptionKey_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, publicKey_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, lastEncryptionKey_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage)) {
- return super.equals(obj);
- }
- org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage other = (org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage) obj;
-
- if (hasPublicKey() != other.hasPublicKey()) return false;
- if (hasPublicKey()) {
- if (!getPublicKey()
- .equals(other.getPublicKey())) return false;
- }
- if (hasLastEncryptionKey() != other.hasLastEncryptionKey()) return false;
- if (hasLastEncryptionKey()) {
- if (!getLastEncryptionKey()
- .equals(other.getLastEncryptionKey())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasPublicKey()) {
- hash = (37 * hash) + PUBLICKEY_FIELD_NUMBER;
- hash = (53 * hash) + getPublicKey().hashCode();
- }
- if (hasLastEncryptionKey()) {
- hash = (37 * hash) + LASTENCRYPTIONKEY_FIELD_NUMBER;
- hash = (53 * hash) + getLastEncryptionKey().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code signalservice.GroupDeleteMessage}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:signalservice.GroupDeleteMessage)
- org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessageOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupDeleteMessage_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupDeleteMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage.class, org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage.Builder.class);
- }
-
- // Construct using org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- publicKey_ = com.google.protobuf.ByteString.EMPTY;
- lastEncryptionKey_ = com.google.protobuf.ByteString.EMPTY;
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupDeleteMessage_descriptor;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage getDefaultInstanceForType() {
- return org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage.getDefaultInstance();
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage build() {
- org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage buildPartial() {
- org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage result = new org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.publicKey_ = publicKey_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.lastEncryptionKey_ = lastEncryptionKey_;
- to_bitField0_ |= 0x00000002;
- }
- result.bitField0_ |= to_bitField0_;
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage) {
- return mergeFrom((org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage other) {
- if (other == org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage.getDefaultInstance()) return this;
- if (other.hasPublicKey()) {
- setPublicKey(other.getPublicKey());
- }
- if (other.hasLastEncryptionKey()) {
- setLastEncryptionKey(other.getLastEncryptionKey());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasPublicKey()) {
- return false;
- }
- if (!hasLastEncryptionKey()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- publicKey_ = input.readBytes();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- lastEncryptionKey_ = input.readBytes();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int bitField0_;
-
- private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return Whether the publicKey field is set.
- */
- @java.lang.Override
- public boolean hasPublicKey() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return The publicKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getPublicKey() {
- return publicKey_;
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @param value The publicKey to set.
- * @return This builder for chaining.
- */
- public Builder setPublicKey(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- publicKey_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return This builder for chaining.
- */
- public Builder clearPublicKey() {
- bitField0_ = (bitField0_ & ~0x00000001);
- publicKey_ = getDefaultInstance().getPublicKey();
- onChanged();
- return this;
- }
-
- private com.google.protobuf.ByteString lastEncryptionKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes lastEncryptionKey = 2;
- * @return Whether the lastEncryptionKey field is set.
- */
- @java.lang.Override
- public boolean hasLastEncryptionKey() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required bytes lastEncryptionKey = 2;
- * @return The lastEncryptionKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getLastEncryptionKey() {
- return lastEncryptionKey_;
- }
- /**
- *
- * @required
- *
- *
- * required bytes lastEncryptionKey = 2;
- * @param value The lastEncryptionKey to set.
- * @return This builder for chaining.
- */
- public Builder setLastEncryptionKey(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- lastEncryptionKey_ = value;
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required bytes lastEncryptionKey = 2;
- * @return This builder for chaining.
- */
- public Builder clearLastEncryptionKey() {
- bitField0_ = (bitField0_ & ~0x00000002);
- lastEncryptionKey_ = getDefaultInstance().getLastEncryptionKey();
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:signalservice.GroupDeleteMessage)
- }
-
- // @@protoc_insertion_point(class_scope:signalservice.GroupDeleteMessage)
- private static final org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage();
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public GroupDeleteMessage parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.GroupDeleteMessage getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface GroupMemberLeftMessageOrBuilder extends
- // @@protoc_insertion_point(interface_extends:signalservice.GroupMemberLeftMessage)
- com.google.protobuf.MessageOrBuilder {
- }
- /**
- *
- * the pubkey of the member left is included as part of the closed group encryption logic (senderIdentity on desktop)
- *
- *
- * Protobuf type {@code signalservice.GroupMemberLeftMessage}
- */
- public static final class GroupMemberLeftMessage extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:signalservice.GroupMemberLeftMessage)
- GroupMemberLeftMessageOrBuilder {
- private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 3,
- /* suffix= */ "",
- GroupMemberLeftMessage.class.getName());
- }
- // Use GroupMemberLeftMessage.newBuilder() to construct.
- private GroupMemberLeftMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- }
- private GroupMemberLeftMessage() {
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupMemberLeftMessage_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupMemberLeftMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage.class, org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage.Builder.class);
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage)) {
- return super.equals(obj);
- }
- org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage other = (org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage) obj;
-
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- *
- * the pubkey of the member left is included as part of the closed group encryption logic (senderIdentity on desktop)
- *
- *
- * Protobuf type {@code signalservice.GroupMemberLeftMessage}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:signalservice.GroupMemberLeftMessage)
- org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessageOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupMemberLeftMessage_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupMemberLeftMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage.class, org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage.Builder.class);
- }
-
- // Construct using org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupMemberLeftMessage_descriptor;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage getDefaultInstanceForType() {
- return org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage.getDefaultInstance();
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage build() {
- org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage buildPartial() {
- org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage result = new org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage(this);
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage) {
- return mergeFrom((org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage other) {
- if (other == org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage.getDefaultInstance()) return this;
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:signalservice.GroupMemberLeftMessage)
- }
-
- // @@protoc_insertion_point(class_scope:signalservice.GroupMemberLeftMessage)
- private static final org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage();
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public GroupMemberLeftMessage parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.GroupMemberLeftMessage getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface GroupInviteMessageOrBuilder extends
- // @@protoc_insertion_point(interface_extends:signalservice.GroupInviteMessage)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return Whether the publicKey field is set.
- */
- boolean hasPublicKey();
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return The publicKey.
- */
- com.google.protobuf.ByteString getPublicKey();
-
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return Whether the name field is set.
- */
- boolean hasName();
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return The name.
- */
- java.lang.String getName();
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return The bytes for name.
- */
- com.google.protobuf.ByteString
- getNameBytes();
-
- /**
- *
- * @required
- *
- *
- * required bytes memberPrivateKey = 3;
- * @return Whether the memberPrivateKey field is set.
- */
- boolean hasMemberPrivateKey();
- /**
- *
- * @required
- *
- *
- * required bytes memberPrivateKey = 3;
- * @return The memberPrivateKey.
- */
- com.google.protobuf.ByteString getMemberPrivateKey();
- }
- /**
- * Protobuf type {@code signalservice.GroupInviteMessage}
- */
- public static final class GroupInviteMessage extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:signalservice.GroupInviteMessage)
- GroupInviteMessageOrBuilder {
- private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 3,
- /* suffix= */ "",
- GroupInviteMessage.class.getName());
- }
- // Use GroupInviteMessage.newBuilder() to construct.
- private GroupInviteMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- }
- private GroupInviteMessage() {
- publicKey_ = com.google.protobuf.ByteString.EMPTY;
- name_ = "";
- memberPrivateKey_ = com.google.protobuf.ByteString.EMPTY;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupInviteMessage_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupInviteMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage.class, org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage.Builder.class);
- }
-
- private int bitField0_;
- public static final int PUBLICKEY_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return Whether the publicKey field is set.
- */
- @java.lang.Override
- public boolean hasPublicKey() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return The publicKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getPublicKey() {
- return publicKey_;
- }
-
- public static final int NAME_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private volatile java.lang.Object name_ = "";
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return Whether the name field is set.
- */
- @java.lang.Override
- public boolean hasName() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return The name.
- */
- @java.lang.Override
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- }
- }
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return The bytes for name.
- */
- @java.lang.Override
- 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 MEMBERPRIVATEKEY_FIELD_NUMBER = 3;
- private com.google.protobuf.ByteString memberPrivateKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes memberPrivateKey = 3;
- * @return Whether the memberPrivateKey field is set.
- */
- @java.lang.Override
- public boolean hasMemberPrivateKey() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required bytes memberPrivateKey = 3;
- * @return The memberPrivateKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getMemberPrivateKey() {
- return memberPrivateKey_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (!hasPublicKey()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasName()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasMemberPrivateKey()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeBytes(1, publicKey_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- output.writeBytes(3, memberPrivateKey_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, publicKey_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, memberPrivateKey_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage)) {
- return super.equals(obj);
- }
- org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage other = (org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage) obj;
-
- if (hasPublicKey() != other.hasPublicKey()) return false;
- if (hasPublicKey()) {
- if (!getPublicKey()
- .equals(other.getPublicKey())) return false;
- }
- if (hasName() != other.hasName()) return false;
- if (hasName()) {
- if (!getName()
- .equals(other.getName())) return false;
- }
- if (hasMemberPrivateKey() != other.hasMemberPrivateKey()) return false;
- if (hasMemberPrivateKey()) {
- if (!getMemberPrivateKey()
- .equals(other.getMemberPrivateKey())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasPublicKey()) {
- hash = (37 * hash) + PUBLICKEY_FIELD_NUMBER;
- hash = (53 * hash) + getPublicKey().hashCode();
- }
- if (hasName()) {
- hash = (37 * hash) + NAME_FIELD_NUMBER;
- hash = (53 * hash) + getName().hashCode();
- }
- if (hasMemberPrivateKey()) {
- hash = (37 * hash) + MEMBERPRIVATEKEY_FIELD_NUMBER;
- hash = (53 * hash) + getMemberPrivateKey().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code signalservice.GroupInviteMessage}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:signalservice.GroupInviteMessage)
- org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessageOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupInviteMessage_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupInviteMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage.class, org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage.Builder.class);
- }
-
- // Construct using org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- publicKey_ = com.google.protobuf.ByteString.EMPTY;
- name_ = "";
- memberPrivateKey_ = com.google.protobuf.ByteString.EMPTY;
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupInviteMessage_descriptor;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage getDefaultInstanceForType() {
- return org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage.getDefaultInstance();
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage build() {
- org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage buildPartial() {
- org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage result = new org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.publicKey_ = publicKey_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.name_ = name_;
- to_bitField0_ |= 0x00000002;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.memberPrivateKey_ = memberPrivateKey_;
- to_bitField0_ |= 0x00000004;
- }
- result.bitField0_ |= to_bitField0_;
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage) {
- return mergeFrom((org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage other) {
- if (other == org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage.getDefaultInstance()) return this;
- if (other.hasPublicKey()) {
- setPublicKey(other.getPublicKey());
- }
- if (other.hasName()) {
- name_ = other.name_;
- bitField0_ |= 0x00000002;
- onChanged();
- }
- if (other.hasMemberPrivateKey()) {
- setMemberPrivateKey(other.getMemberPrivateKey());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasPublicKey()) {
- return false;
- }
- if (!hasName()) {
- return false;
- }
- if (!hasMemberPrivateKey()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- publicKey_ = input.readBytes();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- name_ = input.readBytes();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26: {
- memberPrivateKey_ = input.readBytes();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int bitField0_;
-
- private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return Whether the publicKey field is set.
- */
- @java.lang.Override
- public boolean hasPublicKey() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return The publicKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getPublicKey() {
- return publicKey_;
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @param value The publicKey to set.
- * @return This builder for chaining.
- */
- public Builder setPublicKey(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- publicKey_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return This builder for chaining.
- */
- public Builder clearPublicKey() {
- bitField0_ = (bitField0_ & ~0x00000001);
- publicKey_ = getDefaultInstance().getPublicKey();
- onChanged();
- return this;
- }
-
- private java.lang.Object name_ = "";
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return Whether the name field is set.
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return The name.
- */
- 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();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return The bytes for name.
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @param value The name to set.
- * @return This builder for chaining.
- */
- public Builder setName(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- name_ = value;
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return This builder for chaining.
- */
- public Builder clearName() {
- name_ = getDefaultInstance().getName();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @param value The bytes for name to set.
- * @return This builder for chaining.
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- name_ = value;
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.ByteString memberPrivateKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes memberPrivateKey = 3;
- * @return Whether the memberPrivateKey field is set.
- */
- @java.lang.Override
- public boolean hasMemberPrivateKey() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required bytes memberPrivateKey = 3;
- * @return The memberPrivateKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getMemberPrivateKey() {
- return memberPrivateKey_;
- }
- /**
- *
- * @required
- *
- *
- * required bytes memberPrivateKey = 3;
- * @param value The memberPrivateKey to set.
- * @return This builder for chaining.
- */
- public Builder setMemberPrivateKey(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- memberPrivateKey_ = value;
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required bytes memberPrivateKey = 3;
- * @return This builder for chaining.
- */
- public Builder clearMemberPrivateKey() {
- bitField0_ = (bitField0_ & ~0x00000004);
- memberPrivateKey_ = getDefaultInstance().getMemberPrivateKey();
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:signalservice.GroupInviteMessage)
- }
-
- // @@protoc_insertion_point(class_scope:signalservice.GroupInviteMessage)
- private static final org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage();
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public GroupInviteMessage parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.GroupInviteMessage getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface GroupPromoteMessageOrBuilder extends
- // @@protoc_insertion_point(interface_extends:signalservice.GroupPromoteMessage)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return Whether the publicKey field is set.
- */
- boolean hasPublicKey();
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return The publicKey.
- */
- com.google.protobuf.ByteString getPublicKey();
-
- /**
- *
- * @required
- *
- *
- * required bytes encryptedPrivateKey = 2;
- * @return Whether the encryptedPrivateKey field is set.
- */
- boolean hasEncryptedPrivateKey();
- /**
- *
- * @required
- *
- *
- * required bytes encryptedPrivateKey = 2;
- * @return The encryptedPrivateKey.
- */
- com.google.protobuf.ByteString getEncryptedPrivateKey();
- }
- /**
- * Protobuf type {@code signalservice.GroupPromoteMessage}
- */
- public static final class GroupPromoteMessage extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:signalservice.GroupPromoteMessage)
- GroupPromoteMessageOrBuilder {
- private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 3,
- /* suffix= */ "",
- GroupPromoteMessage.class.getName());
- }
- // Use GroupPromoteMessage.newBuilder() to construct.
- private GroupPromoteMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- }
- private GroupPromoteMessage() {
- publicKey_ = com.google.protobuf.ByteString.EMPTY;
- encryptedPrivateKey_ = com.google.protobuf.ByteString.EMPTY;
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupPromoteMessage_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupPromoteMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage.class, org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage.Builder.class);
- }
-
- private int bitField0_;
- public static final int PUBLICKEY_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return Whether the publicKey field is set.
- */
- @java.lang.Override
- public boolean hasPublicKey() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return The publicKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getPublicKey() {
- return publicKey_;
- }
-
- public static final int ENCRYPTEDPRIVATEKEY_FIELD_NUMBER = 2;
- private com.google.protobuf.ByteString encryptedPrivateKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes encryptedPrivateKey = 2;
- * @return Whether the encryptedPrivateKey field is set.
- */
- @java.lang.Override
- public boolean hasEncryptedPrivateKey() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required bytes encryptedPrivateKey = 2;
- * @return The encryptedPrivateKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getEncryptedPrivateKey() {
- return encryptedPrivateKey_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (!hasPublicKey()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasEncryptedPrivateKey()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeBytes(1, publicKey_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeBytes(2, encryptedPrivateKey_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, publicKey_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, encryptedPrivateKey_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage)) {
- return super.equals(obj);
- }
- org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage other = (org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage) obj;
-
- if (hasPublicKey() != other.hasPublicKey()) return false;
- if (hasPublicKey()) {
- if (!getPublicKey()
- .equals(other.getPublicKey())) return false;
- }
- if (hasEncryptedPrivateKey() != other.hasEncryptedPrivateKey()) return false;
- if (hasEncryptedPrivateKey()) {
- if (!getEncryptedPrivateKey()
- .equals(other.getEncryptedPrivateKey())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasPublicKey()) {
- hash = (37 * hash) + PUBLICKEY_FIELD_NUMBER;
- hash = (53 * hash) + getPublicKey().hashCode();
- }
- if (hasEncryptedPrivateKey()) {
- hash = (37 * hash) + ENCRYPTEDPRIVATEKEY_FIELD_NUMBER;
- hash = (53 * hash) + getEncryptedPrivateKey().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code signalservice.GroupPromoteMessage}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:signalservice.GroupPromoteMessage)
- org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessageOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupPromoteMessage_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupPromoteMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage.class, org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage.Builder.class);
- }
-
- // Construct using org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- publicKey_ = com.google.protobuf.ByteString.EMPTY;
- encryptedPrivateKey_ = com.google.protobuf.ByteString.EMPTY;
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_GroupPromoteMessage_descriptor;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage getDefaultInstanceForType() {
- return org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage.getDefaultInstance();
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage build() {
- org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage buildPartial() {
- org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage result = new org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.publicKey_ = publicKey_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.encryptedPrivateKey_ = encryptedPrivateKey_;
- to_bitField0_ |= 0x00000002;
- }
- result.bitField0_ |= to_bitField0_;
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage) {
- return mergeFrom((org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage other) {
- if (other == org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage.getDefaultInstance()) return this;
- if (other.hasPublicKey()) {
- setPublicKey(other.getPublicKey());
- }
- if (other.hasEncryptedPrivateKey()) {
- setEncryptedPrivateKey(other.getEncryptedPrivateKey());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasPublicKey()) {
- return false;
- }
- if (!hasEncryptedPrivateKey()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- publicKey_ = input.readBytes();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- encryptedPrivateKey_ = input.readBytes();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int bitField0_;
-
- private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return Whether the publicKey field is set.
- */
- @java.lang.Override
- public boolean hasPublicKey() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return The publicKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getPublicKey() {
- return publicKey_;
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @param value The publicKey to set.
- * @return This builder for chaining.
- */
- public Builder setPublicKey(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- publicKey_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return This builder for chaining.
- */
- public Builder clearPublicKey() {
- bitField0_ = (bitField0_ & ~0x00000001);
- publicKey_ = getDefaultInstance().getPublicKey();
- onChanged();
- return this;
- }
-
- private com.google.protobuf.ByteString encryptedPrivateKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes encryptedPrivateKey = 2;
- * @return Whether the encryptedPrivateKey field is set.
- */
- @java.lang.Override
- public boolean hasEncryptedPrivateKey() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required bytes encryptedPrivateKey = 2;
- * @return The encryptedPrivateKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getEncryptedPrivateKey() {
- return encryptedPrivateKey_;
- }
- /**
- *
- * @required
- *
- *
- * required bytes encryptedPrivateKey = 2;
- * @param value The encryptedPrivateKey to set.
- * @return This builder for chaining.
- */
- public Builder setEncryptedPrivateKey(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- encryptedPrivateKey_ = value;
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required bytes encryptedPrivateKey = 2;
- * @return This builder for chaining.
- */
- public Builder clearEncryptedPrivateKey() {
- bitField0_ = (bitField0_ & ~0x00000002);
- encryptedPrivateKey_ = getDefaultInstance().getEncryptedPrivateKey();
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:signalservice.GroupPromoteMessage)
- }
-
- // @@protoc_insertion_point(class_scope:signalservice.GroupPromoteMessage)
- private static final org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage();
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public GroupPromoteMessage parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.GroupPromoteMessage getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface CallMessageOrBuilder extends
- // @@protoc_insertion_point(interface_extends:signalservice.CallMessage)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- * @required
- *
- *
- * required .signalservice.CallMessage.Type type = 1;
- * @return Whether the type field is set.
- */
- boolean hasType();
- /**
- *
- * @required
- *
- *
- * required .signalservice.CallMessage.Type type = 1;
- * @return The type.
- */
- org.session.libsignal.protos.SignalServiceProtos.CallMessage.Type getType();
-
- /**
- * repeated string sdps = 2;
- * @return A list containing the sdps.
- */
- java.util.List
- getSdpsList();
- /**
- * repeated string sdps = 2;
- * @return The count of sdps.
- */
- int getSdpsCount();
- /**
- * repeated string sdps = 2;
- * @param index The index of the element to return.
- * @return The sdps at the given index.
- */
- java.lang.String getSdps(int index);
- /**
- * repeated string sdps = 2;
- * @param index The index of the value to return.
- * @return The bytes of the sdps at the given index.
- */
- com.google.protobuf.ByteString
- getSdpsBytes(int index);
-
- /**
- * repeated uint32 sdpMLineIndexes = 3;
- * @return A list containing the sdpMLineIndexes.
- */
- java.util.List getSdpMLineIndexesList();
- /**
- * repeated uint32 sdpMLineIndexes = 3;
- * @return The count of sdpMLineIndexes.
- */
- int getSdpMLineIndexesCount();
- /**
- * repeated uint32 sdpMLineIndexes = 3;
- * @param index The index of the element to return.
- * @return The sdpMLineIndexes at the given index.
- */
- int getSdpMLineIndexes(int index);
-
- /**
- * repeated string sdpMids = 4;
- * @return A list containing the sdpMids.
- */
- java.util.List
- getSdpMidsList();
- /**
- * repeated string sdpMids = 4;
- * @return The count of sdpMids.
- */
- int getSdpMidsCount();
- /**
- * repeated string sdpMids = 4;
- * @param index The index of the element to return.
- * @return The sdpMids at the given index.
- */
- java.lang.String getSdpMids(int index);
- /**
- * repeated string sdpMids = 4;
- * @param index The index of the value to return.
- * @return The bytes of the sdpMids at the given index.
- */
- com.google.protobuf.ByteString
- getSdpMidsBytes(int index);
-
- /**
- *
- * @required
- *
- *
- * required string uuid = 5;
- * @return Whether the uuid field is set.
- */
- boolean hasUuid();
- /**
- *
- * @required
- *
- *
- * required string uuid = 5;
- * @return The uuid.
- */
- java.lang.String getUuid();
- /**
- *
- * @required
- *
- *
- * required string uuid = 5;
- * @return The bytes for uuid.
- */
- com.google.protobuf.ByteString
- getUuidBytes();
- }
- /**
- * Protobuf type {@code signalservice.CallMessage}
- */
- public static final class CallMessage extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:signalservice.CallMessage)
- CallMessageOrBuilder {
- private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 3,
- /* suffix= */ "",
- CallMessage.class.getName());
- }
- // Use CallMessage.newBuilder() to construct.
- private CallMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- }
- private CallMessage() {
- type_ = 6;
- sdps_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- sdpMLineIndexes_ = emptyIntList();
- sdpMids_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- uuid_ = "";
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_CallMessage_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_CallMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.CallMessage.class, org.session.libsignal.protos.SignalServiceProtos.CallMessage.Builder.class);
- }
-
- /**
- * Protobuf enum {@code signalservice.CallMessage.Type}
- */
- public enum Type
- implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * PRE_OFFER = 6;
- */
- PRE_OFFER(6),
- /**
- * OFFER = 1;
- */
- OFFER(1),
- /**
- * ANSWER = 2;
- */
- ANSWER(2),
- /**
- * PROVISIONAL_ANSWER = 3;
- */
- PROVISIONAL_ANSWER(3),
- /**
- * ICE_CANDIDATES = 4;
- */
- ICE_CANDIDATES(4),
- /**
- * END_CALL = 5;
- */
- END_CALL(5),
- ;
-
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 3,
- /* suffix= */ "",
- Type.class.getName());
- }
- /**
- * PRE_OFFER = 6;
- */
- public static final int PRE_OFFER_VALUE = 6;
- /**
- * OFFER = 1;
- */
- public static final int OFFER_VALUE = 1;
- /**
- * ANSWER = 2;
- */
- public static final int ANSWER_VALUE = 2;
- /**
- * PROVISIONAL_ANSWER = 3;
- */
- public static final int PROVISIONAL_ANSWER_VALUE = 3;
- /**
- * ICE_CANDIDATES = 4;
- */
- public static final int ICE_CANDIDATES_VALUE = 4;
- /**
- * END_CALL = 5;
- */
- public static final int END_CALL_VALUE = 5;
-
-
- public final int getNumber() {
- return value;
- }
-
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static Type valueOf(int value) {
- return forNumber(value);
- }
-
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- */
- public static Type forNumber(int value) {
- switch (value) {
- case 6: return PRE_OFFER;
- case 1: return OFFER;
- case 2: return ANSWER;
- case 3: return PROVISIONAL_ANSWER;
- case 4: return ICE_CANDIDATES;
- case 5: return END_CALL;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap
- internalGetValueMap() {
- return internalValueMap;
- }
- private static final com.google.protobuf.Internal.EnumLiteMap<
- Type> internalValueMap =
- new com.google.protobuf.Internal.EnumLiteMap() {
- public Type findValueByNumber(int number) {
- return Type.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 org.session.libsignal.protos.SignalServiceProtos.CallMessage.getDescriptor().getEnumTypes().get(0);
- }
-
- private static final Type[] VALUES = values();
-
- public static Type valueOf(
- com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException(
- "EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int value;
-
- private Type(int value) {
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:signalservice.CallMessage.Type)
- }
-
- private int bitField0_;
- public static final int TYPE_FIELD_NUMBER = 1;
- private int type_ = 6;
- /**
- *
- * @required
- *
- *
- * required .signalservice.CallMessage.Type type = 1;
- * @return Whether the type field is set.
- */
- @java.lang.Override public boolean hasType() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required .signalservice.CallMessage.Type type = 1;
- * @return The type.
- */
- @java.lang.Override public org.session.libsignal.protos.SignalServiceProtos.CallMessage.Type getType() {
- org.session.libsignal.protos.SignalServiceProtos.CallMessage.Type result = org.session.libsignal.protos.SignalServiceProtos.CallMessage.Type.forNumber(type_);
- return result == null ? org.session.libsignal.protos.SignalServiceProtos.CallMessage.Type.PRE_OFFER : result;
- }
-
- public static final int SDPS_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList sdps_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- /**
- * repeated string sdps = 2;
- * @return A list containing the sdps.
- */
- public com.google.protobuf.ProtocolStringList
- getSdpsList() {
- return sdps_;
- }
- /**
- * repeated string sdps = 2;
- * @return The count of sdps.
- */
- public int getSdpsCount() {
- return sdps_.size();
- }
- /**
- * repeated string sdps = 2;
- * @param index The index of the element to return.
- * @return The sdps at the given index.
- */
- public java.lang.String getSdps(int index) {
- return sdps_.get(index);
- }
- /**
- * repeated string sdps = 2;
- * @param index The index of the value to return.
- * @return The bytes of the sdps at the given index.
- */
- public com.google.protobuf.ByteString
- getSdpsBytes(int index) {
- return sdps_.getByteString(index);
- }
-
- public static final int SDPMLINEINDEXES_FIELD_NUMBER = 3;
- @SuppressWarnings("serial")
- private com.google.protobuf.Internal.IntList sdpMLineIndexes_ =
- emptyIntList();
- /**
- * repeated uint32 sdpMLineIndexes = 3;
- * @return A list containing the sdpMLineIndexes.
- */
- @java.lang.Override
- public java.util.List
- getSdpMLineIndexesList() {
- return sdpMLineIndexes_;
- }
- /**
- * repeated uint32 sdpMLineIndexes = 3;
- * @return The count of sdpMLineIndexes.
- */
- public int getSdpMLineIndexesCount() {
- return sdpMLineIndexes_.size();
- }
- /**
- * repeated uint32 sdpMLineIndexes = 3;
- * @param index The index of the element to return.
- * @return The sdpMLineIndexes at the given index.
- */
- public int getSdpMLineIndexes(int index) {
- return sdpMLineIndexes_.getInt(index);
- }
-
- public static final int SDPMIDS_FIELD_NUMBER = 4;
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList sdpMids_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- /**
- * repeated string sdpMids = 4;
- * @return A list containing the sdpMids.
- */
- public com.google.protobuf.ProtocolStringList
- getSdpMidsList() {
- return sdpMids_;
- }
- /**
- * repeated string sdpMids = 4;
- * @return The count of sdpMids.
- */
- public int getSdpMidsCount() {
- return sdpMids_.size();
- }
- /**
- * repeated string sdpMids = 4;
- * @param index The index of the element to return.
- * @return The sdpMids at the given index.
- */
- public java.lang.String getSdpMids(int index) {
- return sdpMids_.get(index);
- }
- /**
- * repeated string sdpMids = 4;
- * @param index The index of the value to return.
- * @return The bytes of the sdpMids at the given index.
- */
- public com.google.protobuf.ByteString
- getSdpMidsBytes(int index) {
- return sdpMids_.getByteString(index);
- }
-
- public static final int UUID_FIELD_NUMBER = 5;
- @SuppressWarnings("serial")
- private volatile java.lang.Object uuid_ = "";
- /**
- *
- * @required
- *
- *
- * required string uuid = 5;
- * @return Whether the uuid field is set.
- */
- @java.lang.Override
- public boolean hasUuid() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required string uuid = 5;
- * @return The uuid.
- */
- @java.lang.Override
- public java.lang.String getUuid() {
- java.lang.Object ref = uuid_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- uuid_ = s;
- }
- return s;
- }
- }
- /**
- *
- * @required
- *
- *
- * required string uuid = 5;
- * @return The bytes for uuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getUuidBytes() {
- java.lang.Object ref = uuid_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- uuid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (!hasType()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasUuid()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeEnum(1, type_);
- }
- for (int i = 0; i < sdps_.size(); i++) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, sdps_.getRaw(i));
- }
- for (int i = 0; i < sdpMLineIndexes_.size(); i++) {
- output.writeUInt32(3, sdpMLineIndexes_.getInt(i));
- }
- for (int i = 0; i < sdpMids_.size(); i++) {
- com.google.protobuf.GeneratedMessage.writeString(output, 4, sdpMids_.getRaw(i));
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 5, uuid_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(1, type_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < sdps_.size(); i++) {
- dataSize += computeStringSizeNoTag(sdps_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getSdpsList().size();
- }
- {
- int dataSize = 0;
- for (int i = 0; i < sdpMLineIndexes_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeUInt32SizeNoTag(sdpMLineIndexes_.getInt(i));
- }
- size += dataSize;
- size += 1 * getSdpMLineIndexesList().size();
- }
- {
- int dataSize = 0;
- for (int i = 0; i < sdpMids_.size(); i++) {
- dataSize += computeStringSizeNoTag(sdpMids_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getSdpMidsList().size();
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(5, uuid_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.session.libsignal.protos.SignalServiceProtos.CallMessage)) {
- return super.equals(obj);
- }
- org.session.libsignal.protos.SignalServiceProtos.CallMessage other = (org.session.libsignal.protos.SignalServiceProtos.CallMessage) obj;
-
- if (hasType() != other.hasType()) return false;
- if (hasType()) {
- if (type_ != other.type_) return false;
- }
- if (!getSdpsList()
- .equals(other.getSdpsList())) return false;
- if (!getSdpMLineIndexesList()
- .equals(other.getSdpMLineIndexesList())) return false;
- if (!getSdpMidsList()
- .equals(other.getSdpMidsList())) return false;
- if (hasUuid() != other.hasUuid()) return false;
- if (hasUuid()) {
- if (!getUuid()
- .equals(other.getUuid())) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasType()) {
- hash = (37 * hash) + TYPE_FIELD_NUMBER;
- hash = (53 * hash) + type_;
- }
- if (getSdpsCount() > 0) {
- hash = (37 * hash) + SDPS_FIELD_NUMBER;
- hash = (53 * hash) + getSdpsList().hashCode();
- }
- if (getSdpMLineIndexesCount() > 0) {
- hash = (37 * hash) + SDPMLINEINDEXES_FIELD_NUMBER;
- hash = (53 * hash) + getSdpMLineIndexesList().hashCode();
- }
- if (getSdpMidsCount() > 0) {
- hash = (37 * hash) + SDPMIDS_FIELD_NUMBER;
- hash = (53 * hash) + getSdpMidsList().hashCode();
- }
- if (hasUuid()) {
- hash = (37 * hash) + UUID_FIELD_NUMBER;
- hash = (53 * hash) + getUuid().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.CallMessage parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.CallMessage parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.CallMessage parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.CallMessage parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.CallMessage parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.CallMessage parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.CallMessage parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.CallMessage parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.CallMessage parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.CallMessage parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.CallMessage parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.CallMessage parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.session.libsignal.protos.SignalServiceProtos.CallMessage prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code signalservice.CallMessage}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:signalservice.CallMessage)
- org.session.libsignal.protos.SignalServiceProtos.CallMessageOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_CallMessage_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_CallMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.CallMessage.class, org.session.libsignal.protos.SignalServiceProtos.CallMessage.Builder.class);
- }
-
- // Construct using org.session.libsignal.protos.SignalServiceProtos.CallMessage.newBuilder()
- private Builder() {
-
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
-
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- type_ = 6;
- sdps_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- sdpMLineIndexes_ = emptyIntList();
- sdpMids_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- uuid_ = "";
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_CallMessage_descriptor;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.CallMessage getDefaultInstanceForType() {
- return org.session.libsignal.protos.SignalServiceProtos.CallMessage.getDefaultInstance();
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.CallMessage build() {
- org.session.libsignal.protos.SignalServiceProtos.CallMessage result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.CallMessage buildPartial() {
- org.session.libsignal.protos.SignalServiceProtos.CallMessage result = new org.session.libsignal.protos.SignalServiceProtos.CallMessage(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(org.session.libsignal.protos.SignalServiceProtos.CallMessage result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.type_ = type_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- sdps_.makeImmutable();
- result.sdps_ = sdps_;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- sdpMLineIndexes_.makeImmutable();
- result.sdpMLineIndexes_ = sdpMLineIndexes_;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- sdpMids_.makeImmutable();
- result.sdpMids_ = sdpMids_;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.uuid_ = uuid_;
- to_bitField0_ |= 0x00000002;
- }
- result.bitField0_ |= to_bitField0_;
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.session.libsignal.protos.SignalServiceProtos.CallMessage) {
- return mergeFrom((org.session.libsignal.protos.SignalServiceProtos.CallMessage)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.session.libsignal.protos.SignalServiceProtos.CallMessage other) {
- if (other == org.session.libsignal.protos.SignalServiceProtos.CallMessage.getDefaultInstance()) return this;
- if (other.hasType()) {
- setType(other.getType());
- }
- if (!other.sdps_.isEmpty()) {
- if (sdps_.isEmpty()) {
- sdps_ = other.sdps_;
- bitField0_ |= 0x00000002;
- } else {
- ensureSdpsIsMutable();
- sdps_.addAll(other.sdps_);
- }
- onChanged();
- }
- if (!other.sdpMLineIndexes_.isEmpty()) {
- if (sdpMLineIndexes_.isEmpty()) {
- sdpMLineIndexes_ = other.sdpMLineIndexes_;
- sdpMLineIndexes_.makeImmutable();
- bitField0_ |= 0x00000004;
- } else {
- ensureSdpMLineIndexesIsMutable();
- sdpMLineIndexes_.addAll(other.sdpMLineIndexes_);
- }
- onChanged();
- }
- if (!other.sdpMids_.isEmpty()) {
- if (sdpMids_.isEmpty()) {
- sdpMids_ = other.sdpMids_;
- bitField0_ |= 0x00000008;
- } else {
- ensureSdpMidsIsMutable();
- sdpMids_.addAll(other.sdpMids_);
- }
- onChanged();
- }
- if (other.hasUuid()) {
- uuid_ = other.uuid_;
- bitField0_ |= 0x00000010;
- onChanged();
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasType()) {
- return false;
- }
- if (!hasUuid()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 8: {
- int tmpRaw = input.readEnum();
- org.session.libsignal.protos.SignalServiceProtos.CallMessage.Type tmpValue =
- org.session.libsignal.protos.SignalServiceProtos.CallMessage.Type.forNumber(tmpRaw);
- if (tmpValue == null) {
- mergeUnknownVarintField(1, tmpRaw);
- } else {
- type_ = tmpRaw;
- bitField0_ |= 0x00000001;
- }
- break;
- } // case 8
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- ensureSdpsIsMutable();
- sdps_.add(bs);
- break;
- } // case 18
- case 24: {
- int v = input.readUInt32();
- ensureSdpMLineIndexesIsMutable();
- sdpMLineIndexes_.addInt(v);
- break;
- } // case 24
- case 26: {
- int length = input.readRawVarint32();
- int limit = input.pushLimit(length);
- ensureSdpMLineIndexesIsMutable();
- while (input.getBytesUntilLimit() > 0) {
- sdpMLineIndexes_.addInt(input.readUInt32());
- }
- input.popLimit(limit);
- break;
- } // case 26
- case 34: {
- com.google.protobuf.ByteString bs = input.readBytes();
- ensureSdpMidsIsMutable();
- sdpMids_.add(bs);
- break;
- } // case 34
- case 42: {
- uuid_ = input.readBytes();
- bitField0_ |= 0x00000010;
- break;
- } // case 42
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int bitField0_;
-
- private int type_ = 6;
- /**
- *
- * @required
- *
- *
- * required .signalservice.CallMessage.Type type = 1;
- * @return Whether the type field is set.
- */
- @java.lang.Override public boolean hasType() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required .signalservice.CallMessage.Type type = 1;
- * @return The type.
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.CallMessage.Type getType() {
- org.session.libsignal.protos.SignalServiceProtos.CallMessage.Type result = org.session.libsignal.protos.SignalServiceProtos.CallMessage.Type.forNumber(type_);
- return result == null ? org.session.libsignal.protos.SignalServiceProtos.CallMessage.Type.PRE_OFFER : result;
- }
- /**
- *
- * @required
- *
- *
- * required .signalservice.CallMessage.Type type = 1;
- * @param value The type to set.
- * @return This builder for chaining.
- */
- public Builder setType(org.session.libsignal.protos.SignalServiceProtos.CallMessage.Type value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- type_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required .signalservice.CallMessage.Type type = 1;
- * @return This builder for chaining.
- */
- public Builder clearType() {
- bitField0_ = (bitField0_ & ~0x00000001);
- type_ = 6;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.LazyStringArrayList sdps_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- private void ensureSdpsIsMutable() {
- if (!sdps_.isModifiable()) {
- sdps_ = new com.google.protobuf.LazyStringArrayList(sdps_);
- }
- bitField0_ |= 0x00000002;
- }
- /**
- * repeated string sdps = 2;
- * @return A list containing the sdps.
- */
- public com.google.protobuf.ProtocolStringList
- getSdpsList() {
- sdps_.makeImmutable();
- return sdps_;
- }
- /**
- * repeated string sdps = 2;
- * @return The count of sdps.
- */
- public int getSdpsCount() {
- return sdps_.size();
- }
- /**
- * repeated string sdps = 2;
- * @param index The index of the element to return.
- * @return The sdps at the given index.
- */
- public java.lang.String getSdps(int index) {
- return sdps_.get(index);
- }
- /**
- * repeated string sdps = 2;
- * @param index The index of the value to return.
- * @return The bytes of the sdps at the given index.
- */
- public com.google.protobuf.ByteString
- getSdpsBytes(int index) {
- return sdps_.getByteString(index);
- }
- /**
- * repeated string sdps = 2;
- * @param index The index to set the value at.
- * @param value The sdps to set.
- * @return This builder for chaining.
- */
- public Builder setSdps(
- int index, java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- ensureSdpsIsMutable();
- sdps_.set(index, value);
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- * repeated string sdps = 2;
- * @param value The sdps to add.
- * @return This builder for chaining.
- */
- public Builder addSdps(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- ensureSdpsIsMutable();
- sdps_.add(value);
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- * repeated string sdps = 2;
- * @param values The sdps to add.
- * @return This builder for chaining.
- */
- public Builder addAllSdps(
- java.lang.Iterable values) {
- ensureSdpsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, sdps_);
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
- /**
- * repeated string sdps = 2;
- * @return This builder for chaining.
- */
- public Builder clearSdps() {
- sdps_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);;
- onChanged();
- return this;
- }
- /**
- * repeated string sdps = 2;
- * @param value The bytes of the sdps to add.
- * @return This builder for chaining.
- */
- public Builder addSdpsBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- ensureSdpsIsMutable();
- sdps_.add(value);
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.IntList sdpMLineIndexes_ = emptyIntList();
- private void ensureSdpMLineIndexesIsMutable() {
- if (!sdpMLineIndexes_.isModifiable()) {
- sdpMLineIndexes_ = makeMutableCopy(sdpMLineIndexes_);
- }
- bitField0_ |= 0x00000004;
- }
- /**
- * repeated uint32 sdpMLineIndexes = 3;
- * @return A list containing the sdpMLineIndexes.
- */
- public java.util.List
- getSdpMLineIndexesList() {
- sdpMLineIndexes_.makeImmutable();
- return sdpMLineIndexes_;
- }
- /**
- * repeated uint32 sdpMLineIndexes = 3;
- * @return The count of sdpMLineIndexes.
- */
- public int getSdpMLineIndexesCount() {
- return sdpMLineIndexes_.size();
- }
- /**
- * repeated uint32 sdpMLineIndexes = 3;
- * @param index The index of the element to return.
- * @return The sdpMLineIndexes at the given index.
- */
- public int getSdpMLineIndexes(int index) {
- return sdpMLineIndexes_.getInt(index);
- }
- /**
- * repeated uint32 sdpMLineIndexes = 3;
- * @param index The index to set the value at.
- * @param value The sdpMLineIndexes to set.
- * @return This builder for chaining.
- */
- public Builder setSdpMLineIndexes(
- int index, int value) {
-
- ensureSdpMLineIndexesIsMutable();
- sdpMLineIndexes_.setInt(index, value);
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * repeated uint32 sdpMLineIndexes = 3;
- * @param value The sdpMLineIndexes to add.
- * @return This builder for chaining.
- */
- public Builder addSdpMLineIndexes(int value) {
-
- ensureSdpMLineIndexesIsMutable();
- sdpMLineIndexes_.addInt(value);
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * repeated uint32 sdpMLineIndexes = 3;
- * @param values The sdpMLineIndexes to add.
- * @return This builder for chaining.
- */
- public Builder addAllSdpMLineIndexes(
- java.lang.Iterable extends java.lang.Integer> values) {
- ensureSdpMLineIndexesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, sdpMLineIndexes_);
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * repeated uint32 sdpMLineIndexes = 3;
- * @return This builder for chaining.
- */
- public Builder clearSdpMLineIndexes() {
- sdpMLineIndexes_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.LazyStringArrayList sdpMids_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- private void ensureSdpMidsIsMutable() {
- if (!sdpMids_.isModifiable()) {
- sdpMids_ = new com.google.protobuf.LazyStringArrayList(sdpMids_);
- }
- bitField0_ |= 0x00000008;
- }
- /**
- * repeated string sdpMids = 4;
- * @return A list containing the sdpMids.
- */
- public com.google.protobuf.ProtocolStringList
- getSdpMidsList() {
- sdpMids_.makeImmutable();
- return sdpMids_;
- }
- /**
- * repeated string sdpMids = 4;
- * @return The count of sdpMids.
- */
- public int getSdpMidsCount() {
- return sdpMids_.size();
- }
- /**
- * repeated string sdpMids = 4;
- * @param index The index of the element to return.
- * @return The sdpMids at the given index.
- */
- public java.lang.String getSdpMids(int index) {
- return sdpMids_.get(index);
- }
- /**
- * repeated string sdpMids = 4;
- * @param index The index of the value to return.
- * @return The bytes of the sdpMids at the given index.
- */
- public com.google.protobuf.ByteString
- getSdpMidsBytes(int index) {
- return sdpMids_.getByteString(index);
- }
- /**
- * repeated string sdpMids = 4;
- * @param index The index to set the value at.
- * @param value The sdpMids to set.
- * @return This builder for chaining.
- */
- public Builder setSdpMids(
- int index, java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- ensureSdpMidsIsMutable();
- sdpMids_.set(index, value);
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- * repeated string sdpMids = 4;
- * @param value The sdpMids to add.
- * @return This builder for chaining.
- */
- public Builder addSdpMids(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- ensureSdpMidsIsMutable();
- sdpMids_.add(value);
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- * repeated string sdpMids = 4;
- * @param values The sdpMids to add.
- * @return This builder for chaining.
- */
- public Builder addAllSdpMids(
- java.lang.Iterable values) {
- ensureSdpMidsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, sdpMids_);
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- * repeated string sdpMids = 4;
- * @return This builder for chaining.
- */
- public Builder clearSdpMids() {
- sdpMids_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);;
- onChanged();
- return this;
- }
- /**
- * repeated string sdpMids = 4;
- * @param value The bytes of the sdpMids to add.
- * @return This builder for chaining.
- */
- public Builder addSdpMidsBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- ensureSdpMidsIsMutable();
- sdpMids_.add(value);
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
-
- private java.lang.Object uuid_ = "";
- /**
- *
- * @required
- *
- *
- * required string uuid = 5;
- * @return Whether the uuid field is set.
- */
- public boolean hasUuid() {
- return ((bitField0_ & 0x00000010) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required string uuid = 5;
- * @return The uuid.
- */
- public java.lang.String getUuid() {
- java.lang.Object ref = uuid_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- uuid_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- * @required
- *
- *
- * required string uuid = 5;
- * @return The bytes for uuid.
- */
- public com.google.protobuf.ByteString
- getUuidBytes() {
- java.lang.Object ref = uuid_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- uuid_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- * @required
- *
- *
- * required string uuid = 5;
- * @param value The uuid to set.
- * @return This builder for chaining.
- */
- public Builder setUuid(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- uuid_ = value;
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required string uuid = 5;
- * @return This builder for chaining.
- */
- public Builder clearUuid() {
- uuid_ = getDefaultInstance().getUuid();
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required string uuid = 5;
- * @param value The bytes for uuid to set.
- * @return This builder for chaining.
- */
- public Builder setUuidBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- uuid_ = value;
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:signalservice.CallMessage)
- }
-
- // @@protoc_insertion_point(class_scope:signalservice.CallMessage)
- private static final org.session.libsignal.protos.SignalServiceProtos.CallMessage DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.session.libsignal.protos.SignalServiceProtos.CallMessage();
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.CallMessage getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public CallMessage parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
- }
- return builder.buildPartial();
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.CallMessage getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface ConfigurationMessageOrBuilder extends
- // @@protoc_insertion_point(interface_extends:signalservice.ConfigurationMessage)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
- */
- java.util.List
- getClosedGroupsList();
- /**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
- */
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup getClosedGroups(int index);
- /**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
- */
- int getClosedGroupsCount();
- /**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
- */
- java.util.List extends org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroupOrBuilder>
- getClosedGroupsOrBuilderList();
- /**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
- */
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroupOrBuilder getClosedGroupsOrBuilder(
- int index);
-
- /**
- * repeated string openGroups = 2;
- * @return A list containing the openGroups.
- */
- java.util.List
- getOpenGroupsList();
- /**
- * repeated string openGroups = 2;
- * @return The count of openGroups.
- */
- int getOpenGroupsCount();
- /**
- * repeated string openGroups = 2;
- * @param index The index of the element to return.
- * @return The openGroups at the given index.
- */
- java.lang.String getOpenGroups(int index);
- /**
- * repeated string openGroups = 2;
- * @param index The index of the value to return.
- * @return The bytes of the openGroups at the given index.
- */
- com.google.protobuf.ByteString
- getOpenGroupsBytes(int index);
-
- /**
- * optional string displayName = 3;
- * @return Whether the displayName field is set.
- */
- boolean hasDisplayName();
- /**
- * optional string displayName = 3;
- * @return The displayName.
- */
- java.lang.String getDisplayName();
- /**
- * optional string displayName = 3;
- * @return The bytes for displayName.
- */
- com.google.protobuf.ByteString
- getDisplayNameBytes();
-
- /**
- * optional string profilePicture = 4;
- * @return Whether the profilePicture field is set.
- */
- boolean hasProfilePicture();
- /**
- * optional string profilePicture = 4;
- * @return The profilePicture.
- */
- java.lang.String getProfilePicture();
- /**
- * optional string profilePicture = 4;
- * @return The bytes for profilePicture.
- */
- com.google.protobuf.ByteString
- getProfilePictureBytes();
-
- /**
- * optional bytes profileKey = 5;
- * @return Whether the profileKey field is set.
- */
- boolean hasProfileKey();
- /**
- * optional bytes profileKey = 5;
- * @return The profileKey.
- */
- com.google.protobuf.ByteString getProfileKey();
-
- /**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
- */
- java.util.List
- getContactsList();
- /**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
- */
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact getContacts(int index);
- /**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
- */
- int getContactsCount();
- /**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
- */
- java.util.List extends org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ContactOrBuilder>
- getContactsOrBuilderList();
- /**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
- */
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ContactOrBuilder getContactsOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code signalservice.ConfigurationMessage}
- */
- public static final class ConfigurationMessage extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:signalservice.ConfigurationMessage)
- ConfigurationMessageOrBuilder {
- private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 3,
- /* suffix= */ "",
- ConfigurationMessage.class.getName());
- }
- // Use ConfigurationMessage.newBuilder() to construct.
- private ConfigurationMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- }
- private ConfigurationMessage() {
- closedGroups_ = java.util.Collections.emptyList();
- openGroups_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- displayName_ = "";
- profilePicture_ = "";
- profileKey_ = com.google.protobuf.ByteString.EMPTY;
- contacts_ = java.util.Collections.emptyList();
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_ConfigurationMessage_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_ConfigurationMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.class, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Builder.class);
- }
-
- public interface ClosedGroupOrBuilder extends
- // @@protoc_insertion_point(interface_extends:signalservice.ConfigurationMessage.ClosedGroup)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * optional bytes publicKey = 1;
- * @return Whether the publicKey field is set.
- */
- boolean hasPublicKey();
- /**
- * optional bytes publicKey = 1;
- * @return The publicKey.
- */
- com.google.protobuf.ByteString getPublicKey();
-
- /**
- * optional string name = 2;
- * @return Whether the name field is set.
- */
- boolean hasName();
- /**
- * optional string name = 2;
- * @return The name.
- */
- java.lang.String getName();
- /**
- * optional string name = 2;
- * @return The bytes for name.
- */
- com.google.protobuf.ByteString
- getNameBytes();
-
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 3;
- * @return Whether the encryptionKeyPair field is set.
- */
- boolean hasEncryptionKeyPair();
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 3;
- * @return The encryptionKeyPair.
- */
- org.session.libsignal.protos.SignalServiceProtos.KeyPair getEncryptionKeyPair();
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 3;
- */
- org.session.libsignal.protos.SignalServiceProtos.KeyPairOrBuilder getEncryptionKeyPairOrBuilder();
-
- /**
- * repeated bytes members = 4;
- * @return A list containing the members.
- */
- java.util.List getMembersList();
- /**
- * repeated bytes members = 4;
- * @return The count of members.
- */
- int getMembersCount();
- /**
- * repeated bytes members = 4;
- * @param index The index of the element to return.
- * @return The members at the given index.
- */
- com.google.protobuf.ByteString getMembers(int index);
-
- /**
- * repeated bytes admins = 5;
- * @return A list containing the admins.
- */
- java.util.List getAdminsList();
- /**
- * repeated bytes admins = 5;
- * @return The count of admins.
- */
- int getAdminsCount();
- /**
- * repeated bytes admins = 5;
- * @param index The index of the element to return.
- * @return The admins at the given index.
- */
- com.google.protobuf.ByteString getAdmins(int index);
-
- /**
- * optional uint32 expirationTimer = 6;
- * @return Whether the expirationTimer field is set.
- */
- boolean hasExpirationTimer();
- /**
- * optional uint32 expirationTimer = 6;
- * @return The expirationTimer.
- */
- int getExpirationTimer();
- }
- /**
- * Protobuf type {@code signalservice.ConfigurationMessage.ClosedGroup}
- */
- public static final class ClosedGroup extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:signalservice.ConfigurationMessage.ClosedGroup)
- ClosedGroupOrBuilder {
- private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 3,
- /* suffix= */ "",
- ClosedGroup.class.getName());
- }
- // Use ClosedGroup.newBuilder() to construct.
- private ClosedGroup(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- }
- private ClosedGroup() {
- publicKey_ = com.google.protobuf.ByteString.EMPTY;
- name_ = "";
- members_ = emptyList(com.google.protobuf.ByteString.class);
- admins_ = emptyList(com.google.protobuf.ByteString.class);
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_ConfigurationMessage_ClosedGroup_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_ConfigurationMessage_ClosedGroup_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.class, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.Builder.class);
- }
-
- private int bitField0_;
- public static final int PUBLICKEY_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- * optional bytes publicKey = 1;
- * @return Whether the publicKey field is set.
- */
- @java.lang.Override
- public boolean hasPublicKey() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * optional bytes publicKey = 1;
- * @return The publicKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getPublicKey() {
- return publicKey_;
- }
-
- public static final int NAME_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private volatile java.lang.Object name_ = "";
- /**
- * optional string name = 2;
- * @return Whether the name field is set.
- */
- @java.lang.Override
- public boolean hasName() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * optional string name = 2;
- * @return The name.
- */
- @java.lang.Override
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- }
- }
- /**
- * optional string name = 2;
- * @return The bytes for name.
- */
- @java.lang.Override
- 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 ENCRYPTIONKEYPAIR_FIELD_NUMBER = 3;
- private org.session.libsignal.protos.SignalServiceProtos.KeyPair encryptionKeyPair_;
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 3;
- * @return Whether the encryptionKeyPair field is set.
- */
- @java.lang.Override
- public boolean hasEncryptionKeyPair() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 3;
- * @return The encryptionKeyPair.
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.KeyPair getEncryptionKeyPair() {
- return encryptionKeyPair_ == null ? org.session.libsignal.protos.SignalServiceProtos.KeyPair.getDefaultInstance() : encryptionKeyPair_;
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 3;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.KeyPairOrBuilder getEncryptionKeyPairOrBuilder() {
- return encryptionKeyPair_ == null ? org.session.libsignal.protos.SignalServiceProtos.KeyPair.getDefaultInstance() : encryptionKeyPair_;
- }
-
- public static final int MEMBERS_FIELD_NUMBER = 4;
- @SuppressWarnings("serial")
- private com.google.protobuf.Internal.ProtobufList members_ =
- emptyList(com.google.protobuf.ByteString.class);
- /**
- * repeated bytes members = 4;
- * @return A list containing the members.
- */
- @java.lang.Override
- public java.util.List
- getMembersList() {
- return members_;
- }
- /**
- * repeated bytes members = 4;
- * @return The count of members.
- */
- public int getMembersCount() {
- return members_.size();
- }
- /**
- * repeated bytes members = 4;
- * @param index The index of the element to return.
- * @return The members at the given index.
- */
- public com.google.protobuf.ByteString getMembers(int index) {
- return members_.get(index);
- }
-
- public static final int ADMINS_FIELD_NUMBER = 5;
- @SuppressWarnings("serial")
- private com.google.protobuf.Internal.ProtobufList admins_ =
- emptyList(com.google.protobuf.ByteString.class);
- /**
- * repeated bytes admins = 5;
- * @return A list containing the admins.
- */
- @java.lang.Override
- public java.util.List
- getAdminsList() {
- return admins_;
- }
- /**
- * repeated bytes admins = 5;
- * @return The count of admins.
- */
- public int getAdminsCount() {
- return admins_.size();
- }
- /**
- * repeated bytes admins = 5;
- * @param index The index of the element to return.
- * @return The admins at the given index.
- */
- public com.google.protobuf.ByteString getAdmins(int index) {
- return admins_.get(index);
- }
-
- public static final int EXPIRATIONTIMER_FIELD_NUMBER = 6;
- private int expirationTimer_ = 0;
- /**
- * optional uint32 expirationTimer = 6;
- * @return Whether the expirationTimer field is set.
- */
- @java.lang.Override
- public boolean hasExpirationTimer() {
- return ((bitField0_ & 0x00000008) != 0);
- }
- /**
- * optional uint32 expirationTimer = 6;
- * @return The expirationTimer.
- */
- @java.lang.Override
- public int getExpirationTimer() {
- return expirationTimer_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (hasEncryptionKeyPair()) {
- if (!getEncryptionKeyPair().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeBytes(1, publicKey_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- output.writeMessage(3, getEncryptionKeyPair());
- }
- for (int i = 0; i < members_.size(); i++) {
- output.writeBytes(4, members_.get(i));
- }
- for (int i = 0; i < admins_.size(); i++) {
- output.writeBytes(5, admins_.get(i));
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- output.writeUInt32(6, expirationTimer_);
- }
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, publicKey_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, getEncryptionKeyPair());
- }
- {
- int dataSize = 0;
- for (int i = 0; i < members_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(members_.get(i));
- }
- size += dataSize;
- size += 1 * getMembersList().size();
- }
- {
- int dataSize = 0;
- for (int i = 0; i < admins_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(admins_.get(i));
- }
- size += dataSize;
- size += 1 * getAdminsList().size();
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(6, expirationTimer_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup)) {
- return super.equals(obj);
- }
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup other = (org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup) obj;
-
- if (hasPublicKey() != other.hasPublicKey()) return false;
- if (hasPublicKey()) {
- if (!getPublicKey()
- .equals(other.getPublicKey())) return false;
- }
- if (hasName() != other.hasName()) return false;
- if (hasName()) {
- if (!getName()
- .equals(other.getName())) return false;
- }
- if (hasEncryptionKeyPair() != other.hasEncryptionKeyPair()) return false;
- if (hasEncryptionKeyPair()) {
- if (!getEncryptionKeyPair()
- .equals(other.getEncryptionKeyPair())) return false;
- }
- if (!getMembersList()
- .equals(other.getMembersList())) return false;
- if (!getAdminsList()
- .equals(other.getAdminsList())) return false;
- if (hasExpirationTimer() != other.hasExpirationTimer()) return false;
- if (hasExpirationTimer()) {
- if (getExpirationTimer()
- != other.getExpirationTimer()) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasPublicKey()) {
- hash = (37 * hash) + PUBLICKEY_FIELD_NUMBER;
- hash = (53 * hash) + getPublicKey().hashCode();
- }
- if (hasName()) {
- hash = (37 * hash) + NAME_FIELD_NUMBER;
- hash = (53 * hash) + getName().hashCode();
- }
- if (hasEncryptionKeyPair()) {
- hash = (37 * hash) + ENCRYPTIONKEYPAIR_FIELD_NUMBER;
- hash = (53 * hash) + getEncryptionKeyPair().hashCode();
- }
- if (getMembersCount() > 0) {
- hash = (37 * hash) + MEMBERS_FIELD_NUMBER;
- hash = (53 * hash) + getMembersList().hashCode();
- }
- if (getAdminsCount() > 0) {
- hash = (37 * hash) + ADMINS_FIELD_NUMBER;
- hash = (53 * hash) + getAdminsList().hashCode();
- }
- if (hasExpirationTimer()) {
- hash = (37 * hash) + EXPIRATIONTIMER_FIELD_NUMBER;
- hash = (53 * hash) + getExpirationTimer();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code signalservice.ConfigurationMessage.ClosedGroup}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:signalservice.ConfigurationMessage.ClosedGroup)
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroupOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_ConfigurationMessage_ClosedGroup_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_ConfigurationMessage_ClosedGroup_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.class, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.Builder.class);
- }
-
- // Construct using org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage
- .alwaysUseFieldBuilders) {
- getEncryptionKeyPairFieldBuilder();
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- publicKey_ = com.google.protobuf.ByteString.EMPTY;
- name_ = "";
- encryptionKeyPair_ = null;
- if (encryptionKeyPairBuilder_ != null) {
- encryptionKeyPairBuilder_.dispose();
- encryptionKeyPairBuilder_ = null;
- }
- members_ = emptyList(com.google.protobuf.ByteString.class);
- admins_ = emptyList(com.google.protobuf.ByteString.class);
- expirationTimer_ = 0;
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_ConfigurationMessage_ClosedGroup_descriptor;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup getDefaultInstanceForType() {
- return org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.getDefaultInstance();
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup build() {
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup buildPartial() {
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup result = new org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
- }
-
- private void buildPartial0(org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.publicKey_ = publicKey_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.name_ = name_;
- to_bitField0_ |= 0x00000002;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.encryptionKeyPair_ = encryptionKeyPairBuilder_ == null
- ? encryptionKeyPair_
- : encryptionKeyPairBuilder_.build();
- to_bitField0_ |= 0x00000004;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- members_.makeImmutable();
- result.members_ = members_;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- admins_.makeImmutable();
- result.admins_ = admins_;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.expirationTimer_ = expirationTimer_;
- to_bitField0_ |= 0x00000008;
- }
- result.bitField0_ |= to_bitField0_;
- }
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup) {
- return mergeFrom((org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup other) {
- if (other == org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.getDefaultInstance()) return this;
- if (other.hasPublicKey()) {
- setPublicKey(other.getPublicKey());
- }
- if (other.hasName()) {
- name_ = other.name_;
- bitField0_ |= 0x00000002;
- onChanged();
- }
- if (other.hasEncryptionKeyPair()) {
- mergeEncryptionKeyPair(other.getEncryptionKeyPair());
- }
- if (!other.members_.isEmpty()) {
- if (members_.isEmpty()) {
- members_ = other.members_;
- members_.makeImmutable();
- bitField0_ |= 0x00000008;
- } else {
- ensureMembersIsMutable();
- members_.addAll(other.members_);
- }
- onChanged();
- }
- if (!other.admins_.isEmpty()) {
- if (admins_.isEmpty()) {
- admins_ = other.admins_;
- admins_.makeImmutable();
- bitField0_ |= 0x00000010;
- } else {
- ensureAdminsIsMutable();
- admins_.addAll(other.admins_);
- }
- onChanged();
- }
- if (other.hasExpirationTimer()) {
- setExpirationTimer(other.getExpirationTimer());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (hasEncryptionKeyPair()) {
- if (!getEncryptionKeyPair().isInitialized()) {
- return false;
- }
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- publicKey_ = input.readBytes();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- name_ = input.readBytes();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26: {
- input.readMessage(
- getEncryptionKeyPairFieldBuilder().getBuilder(),
- extensionRegistry);
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- case 34: {
- com.google.protobuf.ByteString v = input.readBytes();
- ensureMembersIsMutable();
- members_.add(v);
- break;
- } // case 34
- case 42: {
- com.google.protobuf.ByteString v = input.readBytes();
- ensureAdminsIsMutable();
- admins_.add(v);
- break;
- } // case 42
- case 48: {
- expirationTimer_ = input.readUInt32();
- bitField0_ |= 0x00000020;
- break;
- } // case 48
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
- return this;
- }
- private int bitField0_;
-
- private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY;
+ private long id_ ;
/**
- * optional bytes publicKey = 1;
- * @return Whether the publicKey field is set.
+ *
+ * @required
+ *
+ *
+ * required uint64 id = 1;
+ * @return Whether the id field is set.
*/
@java.lang.Override
- public boolean hasPublicKey() {
+ public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * optional bytes publicKey = 1;
- * @return The publicKey.
+ *
+ * @required
+ *
+ *
+ * required uint64 id = 1;
+ * @return The id.
*/
@java.lang.Override
- public com.google.protobuf.ByteString getPublicKey() {
- return publicKey_;
+ public long getId() {
+ return id_;
}
/**
- * optional bytes publicKey = 1;
- * @param value The publicKey to set.
+ *
+ * @required
+ *
+ *
+ * required uint64 id = 1;
+ * @param value The id to set.
* @return This builder for chaining.
*/
- public Builder setPublicKey(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- publicKey_ = value;
+ public Builder setId(long value) {
+
+ id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
- * optional bytes publicKey = 1;
+ *
+ * @required
+ *
+ *
+ * required uint64 id = 1;
* @return This builder for chaining.
*/
- public Builder clearPublicKey() {
+ public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
- publicKey_ = getDefaultInstance().getPublicKey();
+ id_ = 0L;
onChanged();
return this;
}
- private java.lang.Object name_ = "";
+ private java.lang.Object author_ = "";
/**
- * optional string name = 2;
- * @return Whether the name field is set.
+ *
+ * @required
+ *
+ *
+ * required string author = 2;
+ * @return Whether the author field is set.
*/
- public boolean hasName() {
+ public boolean hasAuthor() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
- * optional string name = 2;
- * @return The name.
+ *
+ * @required
+ *
+ *
+ * required string author = 2;
+ * @return The author.
*/
- public java.lang.String getName() {
- java.lang.Object ref = name_;
+ public java.lang.String getAuthor() {
+ java.lang.Object ref = author_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
- name_ = s;
+ author_ = s;
}
return s;
} else {
@@ -33140,405 +21474,230 @@ public java.lang.String getName() {
}
}
/**
- * optional string name = 2;
- * @return The bytes for name.
+ *
+ * @required
+ *
+ *
+ * required string author = 2;
+ * @return The bytes for author.
*/
public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
+ getAuthorBytes() {
+ java.lang.Object ref = author_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
- name_ = b;
+ author_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
- * optional string name = 2;
- * @param value The name to set.
+ *
+ * @required
+ *
+ *
+ * required string author = 2;
+ * @param value The author to set.
* @return This builder for chaining.
*/
- public Builder setName(
+ public Builder setAuthor(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
- name_ = value;
+ author_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
- * optional string name = 2;
+ *
+ * @required
+ *
+ *
+ * required string author = 2;
* @return This builder for chaining.
*/
- public Builder clearName() {
- name_ = getDefaultInstance().getName();
+ public Builder clearAuthor() {
+ author_ = getDefaultInstance().getAuthor();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
- * optional string name = 2;
- * @param value The bytes for name to set.
+ *
+ * @required
+ *
+ *
+ * required string author = 2;
+ * @param value The bytes for author to set.
* @return This builder for chaining.
*/
- public Builder setNameBytes(
+ public Builder setAuthorBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
- name_ = value;
+ author_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
- private org.session.libsignal.protos.SignalServiceProtos.KeyPair encryptionKeyPair_;
- private com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.KeyPair, org.session.libsignal.protos.SignalServiceProtos.KeyPair.Builder, org.session.libsignal.protos.SignalServiceProtos.KeyPairOrBuilder> encryptionKeyPairBuilder_;
+ private java.lang.Object emoji_ = "";
/**
- * optional .signalservice.KeyPair encryptionKeyPair = 3;
- * @return Whether the encryptionKeyPair field is set.
+ * optional string emoji = 3;
+ * @return Whether the emoji field is set.
*/
- public boolean hasEncryptionKeyPair() {
+ public boolean hasEmoji() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
- * optional .signalservice.KeyPair encryptionKeyPair = 3;
- * @return The encryptionKeyPair.
- */
- public org.session.libsignal.protos.SignalServiceProtos.KeyPair getEncryptionKeyPair() {
- if (encryptionKeyPairBuilder_ == null) {
- return encryptionKeyPair_ == null ? org.session.libsignal.protos.SignalServiceProtos.KeyPair.getDefaultInstance() : encryptionKeyPair_;
- } else {
- return encryptionKeyPairBuilder_.getMessage();
- }
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 3;
- */
- public Builder setEncryptionKeyPair(org.session.libsignal.protos.SignalServiceProtos.KeyPair value) {
- if (encryptionKeyPairBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- encryptionKeyPair_ = value;
- } else {
- encryptionKeyPairBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 3;
- */
- public Builder setEncryptionKeyPair(
- org.session.libsignal.protos.SignalServiceProtos.KeyPair.Builder builderForValue) {
- if (encryptionKeyPairBuilder_ == null) {
- encryptionKeyPair_ = builderForValue.build();
- } else {
- encryptionKeyPairBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 3;
+ * optional string emoji = 3;
+ * @return The emoji.
*/
- public Builder mergeEncryptionKeyPair(org.session.libsignal.protos.SignalServiceProtos.KeyPair value) {
- if (encryptionKeyPairBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0) &&
- encryptionKeyPair_ != null &&
- encryptionKeyPair_ != org.session.libsignal.protos.SignalServiceProtos.KeyPair.getDefaultInstance()) {
- getEncryptionKeyPairBuilder().mergeFrom(value);
- } else {
- encryptionKeyPair_ = value;
+ public java.lang.String getEmoji() {
+ java.lang.Object ref = emoji_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ emoji_ = s;
}
- } else {
- encryptionKeyPairBuilder_.mergeFrom(value);
- }
- if (encryptionKeyPair_ != null) {
- bitField0_ |= 0x00000004;
- onChanged();
- }
- return this;
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 3;
- */
- public Builder clearEncryptionKeyPair() {
- bitField0_ = (bitField0_ & ~0x00000004);
- encryptionKeyPair_ = null;
- if (encryptionKeyPairBuilder_ != null) {
- encryptionKeyPairBuilder_.dispose();
- encryptionKeyPairBuilder_ = null;
- }
- onChanged();
- return this;
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 3;
- */
- public org.session.libsignal.protos.SignalServiceProtos.KeyPair.Builder getEncryptionKeyPairBuilder() {
- bitField0_ |= 0x00000004;
- onChanged();
- return getEncryptionKeyPairFieldBuilder().getBuilder();
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 3;
- */
- public org.session.libsignal.protos.SignalServiceProtos.KeyPairOrBuilder getEncryptionKeyPairOrBuilder() {
- if (encryptionKeyPairBuilder_ != null) {
- return encryptionKeyPairBuilder_.getMessageOrBuilder();
- } else {
- return encryptionKeyPair_ == null ?
- org.session.libsignal.protos.SignalServiceProtos.KeyPair.getDefaultInstance() : encryptionKeyPair_;
- }
- }
- /**
- * optional .signalservice.KeyPair encryptionKeyPair = 3;
- */
- private com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.KeyPair, org.session.libsignal.protos.SignalServiceProtos.KeyPair.Builder, org.session.libsignal.protos.SignalServiceProtos.KeyPairOrBuilder>
- getEncryptionKeyPairFieldBuilder() {
- if (encryptionKeyPairBuilder_ == null) {
- encryptionKeyPairBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.KeyPair, org.session.libsignal.protos.SignalServiceProtos.KeyPair.Builder, org.session.libsignal.protos.SignalServiceProtos.KeyPairOrBuilder>(
- getEncryptionKeyPair(),
- getParentForChildren(),
- isClean());
- encryptionKeyPair_ = null;
- }
- return encryptionKeyPairBuilder_;
- }
-
- private com.google.protobuf.Internal.ProtobufList members_ = emptyList(com.google.protobuf.ByteString.class);
- private void ensureMembersIsMutable() {
- if (!members_.isModifiable()) {
- members_ = makeMutableCopy(members_);
- }
- bitField0_ |= 0x00000008;
- }
- /**
- * repeated bytes members = 4;
- * @return A list containing the members.
- */
- public java.util.List
- getMembersList() {
- members_.makeImmutable();
- return members_;
- }
- /**
- * repeated bytes members = 4;
- * @return The count of members.
- */
- public int getMembersCount() {
- return members_.size();
- }
- /**
- * repeated bytes members = 4;
- * @param index The index of the element to return.
- * @return The members at the given index.
- */
- public com.google.protobuf.ByteString getMembers(int index) {
- return members_.get(index);
- }
- /**
- * repeated bytes members = 4;
- * @param index The index to set the value at.
- * @param value The members to set.
- * @return This builder for chaining.
- */
- public Builder setMembers(
- int index, com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- ensureMembersIsMutable();
- members_.set(index, value);
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- * repeated bytes members = 4;
- * @param value The members to add.
- * @return This builder for chaining.
- */
- public Builder addMembers(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- ensureMembersIsMutable();
- members_.add(value);
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- * repeated bytes members = 4;
- * @param values The members to add.
- * @return This builder for chaining.
- */
- public Builder addAllMembers(
- java.lang.Iterable extends com.google.protobuf.ByteString> values) {
- ensureMembersIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, members_);
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
- /**
- * repeated bytes members = 4;
- * @return This builder for chaining.
- */
- public Builder clearMembers() {
- members_ = emptyList(com.google.protobuf.ByteString.class);
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- return this;
- }
-
- private com.google.protobuf.Internal.ProtobufList admins_ = emptyList(com.google.protobuf.ByteString.class);
- private void ensureAdminsIsMutable() {
- if (!admins_.isModifiable()) {
- admins_ = makeMutableCopy(admins_);
- }
- bitField0_ |= 0x00000010;
- }
- /**
- * repeated bytes admins = 5;
- * @return A list containing the admins.
- */
- public java.util.List
- getAdminsList() {
- admins_.makeImmutable();
- return admins_;
- }
- /**
- * repeated bytes admins = 5;
- * @return The count of admins.
- */
- public int getAdminsCount() {
- return admins_.size();
- }
- /**
- * repeated bytes admins = 5;
- * @param index The index of the element to return.
- * @return The admins at the given index.
- */
- public com.google.protobuf.ByteString getAdmins(int index) {
- return admins_.get(index);
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
}
/**
- * repeated bytes admins = 5;
- * @param index The index to set the value at.
- * @param value The admins to set.
- * @return This builder for chaining.
+ * optional string emoji = 3;
+ * @return The bytes for emoji.
*/
- public Builder setAdmins(
- int index, com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- ensureAdminsIsMutable();
- admins_.set(index, value);
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
+ public com.google.protobuf.ByteString
+ getEmojiBytes() {
+ java.lang.Object ref = emoji_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ emoji_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
/**
- * repeated bytes admins = 5;
- * @param value The admins to add.
+ * optional string emoji = 3;
+ * @param value The emoji to set.
* @return This builder for chaining.
*/
- public Builder addAdmins(com.google.protobuf.ByteString value) {
+ public Builder setEmoji(
+ java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
- ensureAdminsIsMutable();
- admins_.add(value);
- bitField0_ |= 0x00000010;
+ emoji_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
- * repeated bytes admins = 5;
- * @param values The admins to add.
+ * optional string emoji = 3;
* @return This builder for chaining.
*/
- public Builder addAllAdmins(
- java.lang.Iterable extends com.google.protobuf.ByteString> values) {
- ensureAdminsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, admins_);
- bitField0_ |= 0x00000010;
+ public Builder clearEmoji() {
+ emoji_ = getDefaultInstance().getEmoji();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
- * repeated bytes admins = 5;
+ * optional string emoji = 3;
+ * @param value The bytes for emoji to set.
* @return This builder for chaining.
*/
- public Builder clearAdmins() {
- admins_ = emptyList(com.google.protobuf.ByteString.class);
- bitField0_ = (bitField0_ & ~0x00000010);
+ public Builder setEmojiBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ emoji_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
- private int expirationTimer_ ;
+ private int action_ = 0;
/**
- * optional uint32 expirationTimer = 6;
- * @return Whether the expirationTimer field is set.
+ *
+ * @required
+ *
+ *
+ * required .signalservice.DataMessage.Reaction.Action action = 4;
+ * @return Whether the action field is set.
*/
- @java.lang.Override
- public boolean hasExpirationTimer() {
- return ((bitField0_ & 0x00000020) != 0);
+ @java.lang.Override public boolean hasAction() {
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
- * optional uint32 expirationTimer = 6;
- * @return The expirationTimer.
+ *
+ * @required
+ *
+ *
+ * required .signalservice.DataMessage.Reaction.Action action = 4;
+ * @return The action.
*/
@java.lang.Override
- public int getExpirationTimer() {
- return expirationTimer_;
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action getAction() {
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action result = org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action.forNumber(action_);
+ return result == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action.REACT : result;
}
/**
- * optional uint32 expirationTimer = 6;
- * @param value The expirationTimer to set.
+ *
+ * @required
+ *
+ *
+ * required .signalservice.DataMessage.Reaction.Action action = 4;
+ * @param value The action to set.
* @return This builder for chaining.
*/
- public Builder setExpirationTimer(int value) {
-
- expirationTimer_ = value;
- bitField0_ |= 0x00000020;
+ public Builder setAction(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Action value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ action_ = value.getNumber();
onChanged();
return this;
}
/**
- * optional uint32 expirationTimer = 6;
+ *
+ * @required
+ *
+ *
+ * required .signalservice.DataMessage.Reaction.Action action = 4;
* @return This builder for chaining.
*/
- public Builder clearExpirationTimer() {
- bitField0_ = (bitField0_ & ~0x00000020);
- expirationTimer_ = 0;
+ public Builder clearAction() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ action_ = 0;
onChanged();
return this;
}
- // @@protoc_insertion_point(builder_scope:signalservice.ConfigurationMessage.ClosedGroup)
+ // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Reaction)
}
- // @@protoc_insertion_point(class_scope:signalservice.ConfigurationMessage.ClosedGroup)
- private static final org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Reaction)
+ private static final org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup();
+ DEFAULT_INSTANCE = new org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction();
}
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup getDefaultInstance() {
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
- public ClosedGroup parsePartialFrom(
+ public Reaction parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -33557,2504 +21716,2534 @@ public ClosedGroup parsePartialFrom(
}
};
- public static com.google.protobuf.Parser parser() {
+ public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
+ public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup getDefaultInstanceForType() {
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
- public interface ContactOrBuilder extends
- // @@protoc_insertion_point(interface_extends:signalservice.ConfigurationMessage.Contact)
- com.google.protobuf.MessageOrBuilder {
+ private int bitField0_;
+ public static final int BODY_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object body_ = "";
+ /**
+ * optional string body = 1;
+ * @return Whether the body field is set.
+ */
+ @java.lang.Override
+ public boolean hasBody() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string body = 1;
+ * @return The body.
+ */
+ @java.lang.Override
+ public java.lang.String getBody() {
+ java.lang.Object ref = body_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ body_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string body = 1;
+ * @return The bytes for body.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getBodyBytes() {
+ java.lang.Object ref = body_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ body_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ATTACHMENTS_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private java.util.List attachments_;
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ @java.lang.Override
+ public java.util.List getAttachmentsList() {
+ return attachments_;
+ }
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ @java.lang.Override
+ public java.util.List extends org.session.libsignal.protos.SignalServiceProtos.AttachmentPointerOrBuilder>
+ getAttachmentsOrBuilderList() {
+ return attachments_;
+ }
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ @java.lang.Override
+ public int getAttachmentsCount() {
+ return attachments_.size();
+ }
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer getAttachments(int index) {
+ return attachments_.get(index);
+ }
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.AttachmentPointerOrBuilder getAttachmentsOrBuilder(
+ int index) {
+ return attachments_.get(index);
+ }
+
+ public static final int FLAGS_FIELD_NUMBER = 4;
+ private int flags_ = 0;
+ /**
+ * optional uint32 flags = 4;
+ * @return Whether the flags field is set.
+ */
+ @java.lang.Override
+ public boolean hasFlags() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional uint32 flags = 4;
+ * @return The flags.
+ */
+ @java.lang.Override
+ public int getFlags() {
+ return flags_;
+ }
+
+ public static final int EXPIRETIMER_FIELD_NUMBER = 5;
+ private int expireTimer_ = 0;
+ /**
+ * optional uint32 expireTimer = 5;
+ * @return Whether the expireTimer field is set.
+ */
+ @java.lang.Override
+ public boolean hasExpireTimer() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * optional uint32 expireTimer = 5;
+ * @return The expireTimer.
+ */
+ @java.lang.Override
+ public int getExpireTimer() {
+ return expireTimer_;
+ }
+
+ public static final int PROFILEKEY_FIELD_NUMBER = 6;
+ private com.google.protobuf.ByteString profileKey_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ * optional bytes profileKey = 6;
+ * @return Whether the profileKey field is set.
+ */
+ @java.lang.Override
+ public boolean hasProfileKey() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * optional bytes profileKey = 6;
+ * @return The profileKey.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProfileKey() {
+ return profileKey_;
+ }
+
+ public static final int TIMESTAMP_FIELD_NUMBER = 7;
+ private long timestamp_ = 0L;
+ /**
+ * optional uint64 timestamp = 7;
+ * @return Whether the timestamp field is set.
+ */
+ @java.lang.Override
+ public boolean hasTimestamp() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional uint64 timestamp = 7;
+ * @return The timestamp.
+ */
+ @java.lang.Override
+ public long getTimestamp() {
+ return timestamp_;
+ }
+
+ public static final int QUOTE_FIELD_NUMBER = 8;
+ private org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote quote_;
+ /**
+ * optional .signalservice.DataMessage.Quote quote = 8;
+ * @return Whether the quote field is set.
+ */
+ @java.lang.Override
+ public boolean hasQuote() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * optional .signalservice.DataMessage.Quote quote = 8;
+ * @return The quote.
+ */
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote getQuote() {
+ return quote_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.getDefaultInstance() : quote_;
+ }
+ /**
+ * optional .signalservice.DataMessage.Quote quote = 8;
+ */
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.QuoteOrBuilder getQuoteOrBuilder() {
+ return quote_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.getDefaultInstance() : quote_;
+ }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return Whether the publicKey field is set.
- */
- boolean hasPublicKey();
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return The publicKey.
- */
- com.google.protobuf.ByteString getPublicKey();
+ public static final int PREVIEW_FIELD_NUMBER = 10;
+ @SuppressWarnings("serial")
+ private java.util.List preview_;
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ @java.lang.Override
+ public java.util.List getPreviewList() {
+ return preview_;
+ }
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ @java.lang.Override
+ public java.util.List extends org.session.libsignal.protos.SignalServiceProtos.DataMessage.PreviewOrBuilder>
+ getPreviewOrBuilderList() {
+ return preview_;
+ }
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ @java.lang.Override
+ public int getPreviewCount() {
+ return preview_.size();
+ }
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview getPreview(int index) {
+ return preview_.get(index);
+ }
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.PreviewOrBuilder getPreviewOrBuilder(
+ int index) {
+ return preview_.get(index);
+ }
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return Whether the name field is set.
- */
- boolean hasName();
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return The name.
- */
- java.lang.String getName();
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return The bytes for name.
- */
- com.google.protobuf.ByteString
- getNameBytes();
+ public static final int REACTION_FIELD_NUMBER = 11;
+ private org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction reaction_;
+ /**
+ * optional .signalservice.DataMessage.Reaction reaction = 11;
+ * @return Whether the reaction field is set.
+ */
+ @java.lang.Override
+ public boolean hasReaction() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * optional .signalservice.DataMessage.Reaction reaction = 11;
+ * @return The reaction.
+ */
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction getReaction() {
+ return reaction_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.getDefaultInstance() : reaction_;
+ }
+ /**
+ * optional .signalservice.DataMessage.Reaction reaction = 11;
+ */
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ReactionOrBuilder getReactionOrBuilder() {
+ return reaction_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.getDefaultInstance() : reaction_;
+ }
- /**
- * optional string profilePicture = 3;
- * @return Whether the profilePicture field is set.
- */
- boolean hasProfilePicture();
- /**
- * optional string profilePicture = 3;
- * @return The profilePicture.
- */
- java.lang.String getProfilePicture();
- /**
- * optional string profilePicture = 3;
- * @return The bytes for profilePicture.
- */
- com.google.protobuf.ByteString
- getProfilePictureBytes();
+ public static final int PROFILE_FIELD_NUMBER = 101;
+ private org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile profile_;
+ /**
+ * optional .signalservice.DataMessage.LokiProfile profile = 101;
+ * @return Whether the profile field is set.
+ */
+ @java.lang.Override
+ public boolean hasProfile() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ * optional .signalservice.DataMessage.LokiProfile profile = 101;
+ * @return The profile.
+ */
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile getProfile() {
+ return profile_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.getDefaultInstance() : profile_;
+ }
+ /**
+ * optional .signalservice.DataMessage.LokiProfile profile = 101;
+ */
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfileOrBuilder getProfileOrBuilder() {
+ return profile_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.getDefaultInstance() : profile_;
+ }
- /**
- * optional bytes profileKey = 4;
- * @return Whether the profileKey field is set.
- */
- boolean hasProfileKey();
- /**
- * optional bytes profileKey = 4;
- * @return The profileKey.
- */
- com.google.protobuf.ByteString getProfileKey();
+ public static final int OPENGROUPINVITATION_FIELD_NUMBER = 102;
+ private org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation openGroupInvitation_;
+ /**
+ * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
+ * @return Whether the openGroupInvitation field is set.
+ */
+ @java.lang.Override
+ public boolean hasOpenGroupInvitation() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+ /**
+ * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
+ * @return The openGroupInvitation.
+ */
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation getOpenGroupInvitation() {
+ return openGroupInvitation_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.getDefaultInstance() : openGroupInvitation_;
+ }
+ /**
+ * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
+ */
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitationOrBuilder getOpenGroupInvitationOrBuilder() {
+ return openGroupInvitation_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.getDefaultInstance() : openGroupInvitation_;
+ }
- /**
- * optional bool isApproved = 5;
- * @return Whether the isApproved field is set.
- */
- boolean hasIsApproved();
- /**
- * optional bool isApproved = 5;
- * @return The isApproved.
- */
- boolean getIsApproved();
+ public static final int SYNCTARGET_FIELD_NUMBER = 105;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object syncTarget_ = "";
+ /**
+ * optional string syncTarget = 105;
+ * @return Whether the syncTarget field is set.
+ */
+ @java.lang.Override
+ public boolean hasSyncTarget() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ * optional string syncTarget = 105;
+ * @return The syncTarget.
+ */
+ @java.lang.Override
+ public java.lang.String getSyncTarget() {
+ java.lang.Object ref = syncTarget_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ syncTarget_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string syncTarget = 105;
+ * @return The bytes for syncTarget.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSyncTargetBytes() {
+ java.lang.Object ref = syncTarget_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ syncTarget_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
- /**
- * optional bool isBlocked = 6;
- * @return Whether the isBlocked field is set.
- */
- boolean hasIsBlocked();
- /**
- * optional bool isBlocked = 6;
- * @return The isBlocked.
- */
- boolean getIsBlocked();
+ public static final int BLOCKSCOMMUNITYMESSAGEREQUESTS_FIELD_NUMBER = 106;
+ private boolean blocksCommunityMessageRequests_ = false;
+ /**
+ * optional bool blocksCommunityMessageRequests = 106;
+ * @return Whether the blocksCommunityMessageRequests field is set.
+ */
+ @java.lang.Override
+ public boolean hasBlocksCommunityMessageRequests() {
+ return ((bitField0_ & 0x00000400) != 0);
+ }
+ /**
+ * optional bool blocksCommunityMessageRequests = 106;
+ * @return The blocksCommunityMessageRequests.
+ */
+ @java.lang.Override
+ public boolean getBlocksCommunityMessageRequests() {
+ return blocksCommunityMessageRequests_;
+ }
- /**
- * optional bool didApproveMe = 7;
- * @return Whether the didApproveMe field is set.
- */
- boolean hasDidApproveMe();
- /**
- * optional bool didApproveMe = 7;
- * @return The didApproveMe.
- */
- boolean getDidApproveMe();
+ public static final int GROUPUPDATEMESSAGE_FIELD_NUMBER = 120;
+ private org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage groupUpdateMessage_;
+ /**
+ * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
+ * @return Whether the groupUpdateMessage field is set.
+ */
+ @java.lang.Override
+ public boolean hasGroupUpdateMessage() {
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
- * Protobuf type {@code signalservice.ConfigurationMessage.Contact}
+ * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
+ * @return The groupUpdateMessage.
*/
- public static final class Contact extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:signalservice.ConfigurationMessage.Contact)
- ContactOrBuilder {
- private static final long serialVersionUID = 0L;
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
- com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 29,
- /* patch= */ 3,
- /* suffix= */ "",
- Contact.class.getName());
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage getGroupUpdateMessage() {
+ return groupUpdateMessage_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.getDefaultInstance() : groupUpdateMessage_;
+ }
+ /**
+ * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
+ */
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessageOrBuilder getGroupUpdateMessageOrBuilder() {
+ return groupUpdateMessage_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.getDefaultInstance() : groupUpdateMessage_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ for (int i = 0; i < getAttachmentsCount(); i++) {
+ if (!getAttachments(i).isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
}
- // Use Contact.newBuilder() to construct.
- private Contact(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
+ if (hasQuote()) {
+ if (!getQuote().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
}
- private Contact() {
- publicKey_ = com.google.protobuf.ByteString.EMPTY;
- name_ = "";
- profilePicture_ = "";
- profileKey_ = com.google.protobuf.ByteString.EMPTY;
+ for (int i = 0; i < getPreviewCount(); i++) {
+ if (!getPreview(i).isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
}
-
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_ConfigurationMessage_Contact_descriptor;
+ if (hasReaction()) {
+ if (!getReaction().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
}
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_ConfigurationMessage_Contact_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.class, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.Builder.class);
+ if (hasOpenGroupInvitation()) {
+ if (!getOpenGroupInvitation().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
+ }
+ if (hasGroupUpdateMessage()) {
+ if (!getGroupUpdateMessage().isInitialized()) {
+ memoizedIsInitialized = 0;
+ return false;
+ }
}
+ memoizedIsInitialized = 1;
+ return true;
+ }
- private int bitField0_;
- public static final int PUBLICKEY_FIELD_NUMBER = 1;
- private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return Whether the publicKey field is set.
- */
- @java.lang.Override
- public boolean hasPublicKey() {
- return ((bitField0_ & 0x00000001) != 0);
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, body_);
}
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return The publicKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getPublicKey() {
- return publicKey_;
+ for (int i = 0; i < attachments_.size(); i++) {
+ output.writeMessage(2, attachments_.get(i));
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeUInt32(4, flags_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeUInt32(5, expireTimer_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeBytes(6, profileKey_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeUInt64(7, timestamp_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeMessage(8, getQuote());
+ }
+ for (int i = 0; i < preview_.size(); i++) {
+ output.writeMessage(10, preview_.get(i));
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeMessage(11, getReaction());
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ output.writeMessage(101, getProfile());
+ }
+ if (((bitField0_ & 0x00000100) != 0)) {
+ output.writeMessage(102, getOpenGroupInvitation());
+ }
+ if (((bitField0_ & 0x00000200) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 105, syncTarget_);
+ }
+ if (((bitField0_ & 0x00000400) != 0)) {
+ output.writeBool(106, blocksCommunityMessageRequests_);
+ }
+ if (((bitField0_ & 0x00000800) != 0)) {
+ output.writeMessage(120, getGroupUpdateMessage());
}
+ getUnknownFields().writeTo(output);
+ }
- public static final int NAME_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private volatile java.lang.Object name_ = "";
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return Whether the name field is set.
- */
- @java.lang.Override
- public boolean hasName() {
- return ((bitField0_ & 0x00000002) != 0);
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, body_);
}
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return The name.
- */
- @java.lang.Override
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- }
+ for (int i = 0; i < attachments_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, attachments_.get(i));
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(4, flags_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(5, expireTimer_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(6, profileKey_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(7, timestamp_);
}
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return The bytes for name.
- */
- @java.lang.Override
- 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;
- }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(8, getQuote());
}
-
- public static final int PROFILEPICTURE_FIELD_NUMBER = 3;
- @SuppressWarnings("serial")
- private volatile java.lang.Object profilePicture_ = "";
- /**
- * optional string profilePicture = 3;
- * @return Whether the profilePicture field is set.
- */
- @java.lang.Override
- public boolean hasProfilePicture() {
- return ((bitField0_ & 0x00000004) != 0);
+ for (int i = 0; i < preview_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, preview_.get(i));
}
- /**
- * optional string profilePicture = 3;
- * @return The profilePicture.
- */
- @java.lang.Override
- public java.lang.String getProfilePicture() {
- java.lang.Object ref = profilePicture_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- profilePicture_ = s;
- }
- return s;
- }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(11, getReaction());
}
- /**
- * optional string profilePicture = 3;
- * @return The bytes for profilePicture.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getProfilePictureBytes() {
- java.lang.Object ref = profilePicture_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- profilePicture_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(101, getProfile());
}
-
- public static final int PROFILEKEY_FIELD_NUMBER = 4;
- private com.google.protobuf.ByteString profileKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- * optional bytes profileKey = 4;
- * @return Whether the profileKey field is set.
- */
- @java.lang.Override
- public boolean hasProfileKey() {
- return ((bitField0_ & 0x00000008) != 0);
+ if (((bitField0_ & 0x00000100) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(102, getOpenGroupInvitation());
}
- /**
- * optional bytes profileKey = 4;
- * @return The profileKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getProfileKey() {
- return profileKey_;
+ if (((bitField0_ & 0x00000200) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(105, syncTarget_);
}
-
- public static final int ISAPPROVED_FIELD_NUMBER = 5;
- private boolean isApproved_ = false;
- /**
- * optional bool isApproved = 5;
- * @return Whether the isApproved field is set.
- */
- @java.lang.Override
- public boolean hasIsApproved() {
- return ((bitField0_ & 0x00000010) != 0);
+ if (((bitField0_ & 0x00000400) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(106, blocksCommunityMessageRequests_);
}
- /**
- * optional bool isApproved = 5;
- * @return The isApproved.
- */
- @java.lang.Override
- public boolean getIsApproved() {
- return isApproved_;
+ if (((bitField0_ & 0x00000800) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(120, getGroupUpdateMessage());
}
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
- public static final int ISBLOCKED_FIELD_NUMBER = 6;
- private boolean isBlocked_ = false;
- /**
- * optional bool isBlocked = 6;
- * @return Whether the isBlocked field is set.
- */
- @java.lang.Override
- public boolean hasIsBlocked() {
- return ((bitField0_ & 0x00000020) != 0);
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
}
- /**
- * optional bool isBlocked = 6;
- * @return The isBlocked.
- */
- @java.lang.Override
- public boolean getIsBlocked() {
- return isBlocked_;
+ if (!(obj instanceof org.session.libsignal.protos.SignalServiceProtos.DataMessage)) {
+ return super.equals(obj);
}
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage other = (org.session.libsignal.protos.SignalServiceProtos.DataMessage) obj;
- public static final int DIDAPPROVEME_FIELD_NUMBER = 7;
- private boolean didApproveMe_ = false;
- /**
- * optional bool didApproveMe = 7;
- * @return Whether the didApproveMe field is set.
- */
- @java.lang.Override
- public boolean hasDidApproveMe() {
- return ((bitField0_ & 0x00000040) != 0);
+ if (hasBody() != other.hasBody()) return false;
+ if (hasBody()) {
+ if (!getBody()
+ .equals(other.getBody())) return false;
}
- /**
- * optional bool didApproveMe = 7;
- * @return The didApproveMe.
- */
- @java.lang.Override
- public boolean getDidApproveMe() {
- return didApproveMe_;
+ if (!getAttachmentsList()
+ .equals(other.getAttachmentsList())) return false;
+ if (hasFlags() != other.hasFlags()) return false;
+ if (hasFlags()) {
+ if (getFlags()
+ != other.getFlags()) return false;
}
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (!hasPublicKey()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasName()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
+ if (hasExpireTimer() != other.hasExpireTimer()) return false;
+ if (hasExpireTimer()) {
+ if (getExpireTimer()
+ != other.getExpireTimer()) return false;
}
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeBytes(1, publicKey_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 3, profilePicture_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- output.writeBytes(4, profileKey_);
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- output.writeBool(5, isApproved_);
- }
- if (((bitField0_ & 0x00000020) != 0)) {
- output.writeBool(6, isBlocked_);
- }
- if (((bitField0_ & 0x00000040) != 0)) {
- output.writeBool(7, didApproveMe_);
- }
- getUnknownFields().writeTo(output);
+ if (hasProfileKey() != other.hasProfileKey()) return false;
+ if (hasProfileKey()) {
+ if (!getProfileKey()
+ .equals(other.getProfileKey())) return false;
}
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, publicKey_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(3, profilePicture_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, profileKey_);
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(5, isApproved_);
- }
- if (((bitField0_ & 0x00000020) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(6, isBlocked_);
- }
- if (((bitField0_ & 0x00000040) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(7, didApproveMe_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
+ if (hasTimestamp() != other.hasTimestamp()) return false;
+ if (hasTimestamp()) {
+ if (getTimestamp()
+ != other.getTimestamp()) return false;
+ }
+ if (hasQuote() != other.hasQuote()) return false;
+ if (hasQuote()) {
+ if (!getQuote()
+ .equals(other.getQuote())) return false;
+ }
+ if (!getPreviewList()
+ .equals(other.getPreviewList())) return false;
+ if (hasReaction() != other.hasReaction()) return false;
+ if (hasReaction()) {
+ if (!getReaction()
+ .equals(other.getReaction())) return false;
+ }
+ if (hasProfile() != other.hasProfile()) return false;
+ if (hasProfile()) {
+ if (!getProfile()
+ .equals(other.getProfile())) return false;
+ }
+ if (hasOpenGroupInvitation() != other.hasOpenGroupInvitation()) return false;
+ if (hasOpenGroupInvitation()) {
+ if (!getOpenGroupInvitation()
+ .equals(other.getOpenGroupInvitation())) return false;
+ }
+ if (hasSyncTarget() != other.hasSyncTarget()) return false;
+ if (hasSyncTarget()) {
+ if (!getSyncTarget()
+ .equals(other.getSyncTarget())) return false;
}
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact)) {
- return super.equals(obj);
- }
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact other = (org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact) obj;
-
- if (hasPublicKey() != other.hasPublicKey()) return false;
- if (hasPublicKey()) {
- if (!getPublicKey()
- .equals(other.getPublicKey())) return false;
- }
- if (hasName() != other.hasName()) return false;
- if (hasName()) {
- if (!getName()
- .equals(other.getName())) return false;
- }
- if (hasProfilePicture() != other.hasProfilePicture()) return false;
- if (hasProfilePicture()) {
- if (!getProfilePicture()
- .equals(other.getProfilePicture())) return false;
- }
- if (hasProfileKey() != other.hasProfileKey()) return false;
- if (hasProfileKey()) {
- if (!getProfileKey()
- .equals(other.getProfileKey())) return false;
- }
- if (hasIsApproved() != other.hasIsApproved()) return false;
- if (hasIsApproved()) {
- if (getIsApproved()
- != other.getIsApproved()) return false;
- }
- if (hasIsBlocked() != other.hasIsBlocked()) return false;
- if (hasIsBlocked()) {
- if (getIsBlocked()
- != other.getIsBlocked()) return false;
- }
- if (hasDidApproveMe() != other.hasDidApproveMe()) return false;
- if (hasDidApproveMe()) {
- if (getDidApproveMe()
- != other.getDidApproveMe()) return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
+ if (hasBlocksCommunityMessageRequests() != other.hasBlocksCommunityMessageRequests()) return false;
+ if (hasBlocksCommunityMessageRequests()) {
+ if (getBlocksCommunityMessageRequests()
+ != other.getBlocksCommunityMessageRequests()) return false;
}
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasPublicKey()) {
- hash = (37 * hash) + PUBLICKEY_FIELD_NUMBER;
- hash = (53 * hash) + getPublicKey().hashCode();
- }
- if (hasName()) {
- hash = (37 * hash) + NAME_FIELD_NUMBER;
- hash = (53 * hash) + getName().hashCode();
- }
- if (hasProfilePicture()) {
- hash = (37 * hash) + PROFILEPICTURE_FIELD_NUMBER;
- hash = (53 * hash) + getProfilePicture().hashCode();
- }
- if (hasProfileKey()) {
- hash = (37 * hash) + PROFILEKEY_FIELD_NUMBER;
- hash = (53 * hash) + getProfileKey().hashCode();
- }
- if (hasIsApproved()) {
- hash = (37 * hash) + ISAPPROVED_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getIsApproved());
- }
- if (hasIsBlocked()) {
- hash = (37 * hash) + ISBLOCKED_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getIsBlocked());
- }
- if (hasDidApproveMe()) {
- hash = (37 * hash) + DIDAPPROVEME_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getDidApproveMe());
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
+ if (hasGroupUpdateMessage() != other.hasGroupUpdateMessage()) return false;
+ if (hasGroupUpdateMessage()) {
+ if (!getGroupUpdateMessage()
+ .equals(other.getGroupUpdateMessage())) return false;
}
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
}
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasBody()) {
+ hash = (37 * hash) + BODY_FIELD_NUMBER;
+ hash = (53 * hash) + getBody().hashCode();
}
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
+ if (getAttachmentsCount() > 0) {
+ hash = (37 * hash) + ATTACHMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getAttachmentsList().hashCode();
}
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
+ if (hasFlags()) {
+ hash = (37 * hash) + FLAGS_FIELD_NUMBER;
+ hash = (53 * hash) + getFlags();
}
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
+ if (hasExpireTimer()) {
+ hash = (37 * hash) + EXPIRETIMER_FIELD_NUMBER;
+ hash = (53 * hash) + getExpireTimer();
}
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
+ if (hasProfileKey()) {
+ hash = (37 * hash) + PROFILEKEY_FIELD_NUMBER;
+ hash = (53 * hash) + getProfileKey().hashCode();
}
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
+ if (hasTimestamp()) {
+ hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTimestamp());
+ }
+ if (hasQuote()) {
+ hash = (37 * hash) + QUOTE_FIELD_NUMBER;
+ hash = (53 * hash) + getQuote().hashCode();
+ }
+ if (getPreviewCount() > 0) {
+ hash = (37 * hash) + PREVIEW_FIELD_NUMBER;
+ hash = (53 * hash) + getPreviewList().hashCode();
+ }
+ if (hasReaction()) {
+ hash = (37 * hash) + REACTION_FIELD_NUMBER;
+ hash = (53 * hash) + getReaction().hashCode();
+ }
+ if (hasProfile()) {
+ hash = (37 * hash) + PROFILE_FIELD_NUMBER;
+ hash = (53 * hash) + getProfile().hashCode();
+ }
+ if (hasOpenGroupInvitation()) {
+ hash = (37 * hash) + OPENGROUPINVITATION_FIELD_NUMBER;
+ hash = (53 * hash) + getOpenGroupInvitation().hashCode();
+ }
+ if (hasSyncTarget()) {
+ hash = (37 * hash) + SYNCTARGET_FIELD_NUMBER;
+ hash = (53 * hash) + getSyncTarget().hashCode();
+ }
+ if (hasBlocksCommunityMessageRequests()) {
+ hash = (37 * hash) + BLOCKSCOMMUNITYMESSAGEREQUESTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getBlocksCommunityMessageRequests());
+ }
+ if (hasGroupUpdateMessage()) {
+ hash = (37 * hash) + GROUPUPDATEMESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getGroupUpdateMessage().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.session.libsignal.protos.SignalServiceProtos.DataMessage prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code signalservice.DataMessage}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:signalservice.DataMessage)
+ org.session.libsignal.protos.SignalServiceProtos.DataMessageOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_descriptor;
}
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.class, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Builder.class);
}
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input);
+ // Construct using org.session.libsignal.protos.SignalServiceProtos.DataMessage.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
}
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
}
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
+ getAttachmentsFieldBuilder();
+ getQuoteFieldBuilder();
+ getPreviewFieldBuilder();
+ getReactionFieldBuilder();
+ getProfileFieldBuilder();
+ getOpenGroupInvitationFieldBuilder();
+ getGroupUpdateMessageFieldBuilder();
+ }
}
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ body_ = "";
+ if (attachmentsBuilder_ == null) {
+ attachments_ = java.util.Collections.emptyList();
+ } else {
+ attachments_ = null;
+ attachmentsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000002);
+ flags_ = 0;
+ expireTimer_ = 0;
+ profileKey_ = com.google.protobuf.ByteString.EMPTY;
+ timestamp_ = 0L;
+ quote_ = null;
+ if (quoteBuilder_ != null) {
+ quoteBuilder_.dispose();
+ quoteBuilder_ = null;
+ }
+ if (previewBuilder_ == null) {
+ preview_ = java.util.Collections.emptyList();
+ } else {
+ preview_ = null;
+ previewBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000080);
+ reaction_ = null;
+ if (reactionBuilder_ != null) {
+ reactionBuilder_.dispose();
+ reactionBuilder_ = null;
+ }
+ profile_ = null;
+ if (profileBuilder_ != null) {
+ profileBuilder_.dispose();
+ profileBuilder_ = null;
+ }
+ openGroupInvitation_ = null;
+ if (openGroupInvitationBuilder_ != null) {
+ openGroupInvitationBuilder_.dispose();
+ openGroupInvitationBuilder_ = null;
+ }
+ syncTarget_ = "";
+ blocksCommunityMessageRequests_ = false;
+ groupUpdateMessage_ = null;
+ if (groupUpdateMessageBuilder_ != null) {
+ groupUpdateMessageBuilder_.dispose();
+ groupUpdateMessageBuilder_ = null;
+ }
+ return this;
}
@java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_DataMessage_descriptor;
}
- public static Builder newBuilder(org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage getDefaultInstanceForType() {
+ return org.session.libsignal.protos.SignalServiceProtos.DataMessage.getDefaultInstance();
}
+
@java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage build() {
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
}
@java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage buildPartial() {
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage result = new org.session.libsignal.protos.SignalServiceProtos.DataMessage(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
}
- /**
- * Protobuf type {@code signalservice.ConfigurationMessage.Contact}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:signalservice.ConfigurationMessage.Contact)
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ContactOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_ConfigurationMessage_Contact_descriptor;
- }
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_ConfigurationMessage_Contact_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.class, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.Builder.class);
+ private void buildPartialRepeatedFields(org.session.libsignal.protos.SignalServiceProtos.DataMessage result) {
+ if (attachmentsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
+ attachments_ = java.util.Collections.unmodifiableList(attachments_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.attachments_ = attachments_;
+ } else {
+ result.attachments_ = attachmentsBuilder_.build();
}
-
- // Construct using org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.newBuilder()
- private Builder() {
-
+ if (previewBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0)) {
+ preview_ = java.util.Collections.unmodifiableList(preview_);
+ bitField0_ = (bitField0_ & ~0x00000080);
+ }
+ result.preview_ = preview_;
+ } else {
+ result.preview_ = previewBuilder_.build();
}
+ }
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
-
+ private void buildPartial0(org.session.libsignal.protos.SignalServiceProtos.DataMessage result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.body_ = body_;
+ to_bitField0_ |= 0x00000001;
}
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- publicKey_ = com.google.protobuf.ByteString.EMPTY;
- name_ = "";
- profilePicture_ = "";
- profileKey_ = com.google.protobuf.ByteString.EMPTY;
- isApproved_ = false;
- isBlocked_ = false;
- didApproveMe_ = false;
- return this;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.flags_ = flags_;
+ to_bitField0_ |= 0x00000002;
}
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_ConfigurationMessage_Contact_descriptor;
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.expireTimer_ = expireTimer_;
+ to_bitField0_ |= 0x00000004;
}
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact getDefaultInstanceForType() {
- return org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.getDefaultInstance();
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.profileKey_ = profileKey_;
+ to_bitField0_ |= 0x00000008;
}
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact build() {
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.timestamp_ = timestamp_;
+ to_bitField0_ |= 0x00000010;
}
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact buildPartial() {
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact result = new org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact(this);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.quote_ = quoteBuilder_ == null
+ ? quote_
+ : quoteBuilder_.build();
+ to_bitField0_ |= 0x00000020;
}
-
- private void buildPartial0(org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact result) {
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.publicKey_ = publicKey_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.name_ = name_;
- to_bitField0_ |= 0x00000002;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.profilePicture_ = profilePicture_;
- to_bitField0_ |= 0x00000004;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.profileKey_ = profileKey_;
- to_bitField0_ |= 0x00000008;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.isApproved_ = isApproved_;
- to_bitField0_ |= 0x00000010;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.isBlocked_ = isBlocked_;
- to_bitField0_ |= 0x00000020;
- }
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.didApproveMe_ = didApproveMe_;
- to_bitField0_ |= 0x00000040;
- }
- result.bitField0_ |= to_bitField0_;
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.reaction_ = reactionBuilder_ == null
+ ? reaction_
+ : reactionBuilder_.build();
+ to_bitField0_ |= 0x00000040;
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.profile_ = profileBuilder_ == null
+ ? profile_
+ : profileBuilder_.build();
+ to_bitField0_ |= 0x00000080;
}
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact) {
- return mergeFrom((org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.openGroupInvitation_ = openGroupInvitationBuilder_ == null
+ ? openGroupInvitation_
+ : openGroupInvitationBuilder_.build();
+ to_bitField0_ |= 0x00000100;
}
-
- public Builder mergeFrom(org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact other) {
- if (other == org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.getDefaultInstance()) return this;
- if (other.hasPublicKey()) {
- setPublicKey(other.getPublicKey());
- }
- if (other.hasName()) {
- name_ = other.name_;
- bitField0_ |= 0x00000002;
- onChanged();
- }
- if (other.hasProfilePicture()) {
- profilePicture_ = other.profilePicture_;
- bitField0_ |= 0x00000004;
- onChanged();
- }
- if (other.hasProfileKey()) {
- setProfileKey(other.getProfileKey());
- }
- if (other.hasIsApproved()) {
- setIsApproved(other.getIsApproved());
- }
- if (other.hasIsBlocked()) {
- setIsBlocked(other.getIsBlocked());
- }
- if (other.hasDidApproveMe()) {
- setDidApproveMe(other.getDidApproveMe());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
- return this;
+ if (((from_bitField0_ & 0x00000800) != 0)) {
+ result.syncTarget_ = syncTarget_;
+ to_bitField0_ |= 0x00000200;
}
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasPublicKey()) {
- return false;
- }
- if (!hasName()) {
- return false;
- }
- return true;
+ if (((from_bitField0_ & 0x00001000) != 0)) {
+ result.blocksCommunityMessageRequests_ = blocksCommunityMessageRequests_;
+ to_bitField0_ |= 0x00000400;
+ }
+ if (((from_bitField0_ & 0x00002000) != 0)) {
+ result.groupUpdateMessage_ = groupUpdateMessageBuilder_ == null
+ ? groupUpdateMessage_
+ : groupUpdateMessageBuilder_.build();
+ to_bitField0_ |= 0x00000800;
}
+ result.bitField0_ |= to_bitField0_;
+ }
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- publicKey_ = input.readBytes();
- bitField0_ |= 0x00000001;
- break;
- } // case 10
- case 18: {
- name_ = input.readBytes();
- bitField0_ |= 0x00000002;
- break;
- } // case 18
- case 26: {
- profilePicture_ = input.readBytes();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- case 34: {
- profileKey_ = input.readBytes();
- bitField0_ |= 0x00000008;
- break;
- } // case 34
- case 40: {
- isApproved_ = input.readBool();
- bitField0_ |= 0x00000010;
- break;
- } // case 40
- case 48: {
- isBlocked_ = input.readBool();
- bitField0_ |= 0x00000020;
- break;
- } // case 48
- case 56: {
- didApproveMe_ = input.readBool();
- bitField0_ |= 0x00000040;
- break;
- } // case 56
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
- onChanged();
- } // finally
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.session.libsignal.protos.SignalServiceProtos.DataMessage) {
+ return mergeFrom((org.session.libsignal.protos.SignalServiceProtos.DataMessage)other);
+ } else {
+ super.mergeFrom(other);
return this;
}
- private int bitField0_;
+ }
- private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return Whether the publicKey field is set.
- */
- @java.lang.Override
- public boolean hasPublicKey() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return The publicKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getPublicKey() {
- return publicKey_;
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @param value The publicKey to set.
- * @return This builder for chaining.
- */
- public Builder setPublicKey(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- publicKey_ = value;
+ public Builder mergeFrom(org.session.libsignal.protos.SignalServiceProtos.DataMessage other) {
+ if (other == org.session.libsignal.protos.SignalServiceProtos.DataMessage.getDefaultInstance()) return this;
+ if (other.hasBody()) {
+ body_ = other.body_;
bitField0_ |= 0x00000001;
onChanged();
- return this;
- }
- /**
- *
- * @required
- *
- *
- * required bytes publicKey = 1;
- * @return This builder for chaining.
- */
- public Builder clearPublicKey() {
- bitField0_ = (bitField0_ & ~0x00000001);
- publicKey_ = getDefaultInstance().getPublicKey();
- onChanged();
- return this;
- }
-
- private java.lang.Object name_ = "";
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return Whether the name field is set.
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000002) != 0);
}
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return The name.
- */
- 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();
- if (bs.isValidUtf8()) {
- name_ = s;
+ if (attachmentsBuilder_ == null) {
+ if (!other.attachments_.isEmpty()) {
+ if (attachments_.isEmpty()) {
+ attachments_ = other.attachments_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureAttachmentsIsMutable();
+ attachments_.addAll(other.attachments_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.attachments_.isEmpty()) {
+ if (attachmentsBuilder_.isEmpty()) {
+ attachmentsBuilder_.dispose();
+ attachmentsBuilder_ = null;
+ attachments_ = other.attachments_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ attachmentsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getAttachmentsFieldBuilder() : null;
+ } else {
+ attachmentsBuilder_.addAllMessages(other.attachments_);
}
- return s;
- } else {
- return (java.lang.String) ref;
}
}
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return The bytes for name.
- */
- 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;
+ if (other.hasFlags()) {
+ setFlags(other.getFlags());
+ }
+ if (other.hasExpireTimer()) {
+ setExpireTimer(other.getExpireTimer());
+ }
+ if (other.hasProfileKey()) {
+ setProfileKey(other.getProfileKey());
+ }
+ if (other.hasTimestamp()) {
+ setTimestamp(other.getTimestamp());
+ }
+ if (other.hasQuote()) {
+ mergeQuote(other.getQuote());
+ }
+ if (previewBuilder_ == null) {
+ if (!other.preview_.isEmpty()) {
+ if (preview_.isEmpty()) {
+ preview_ = other.preview_;
+ bitField0_ = (bitField0_ & ~0x00000080);
+ } else {
+ ensurePreviewIsMutable();
+ preview_.addAll(other.preview_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.preview_.isEmpty()) {
+ if (previewBuilder_.isEmpty()) {
+ previewBuilder_.dispose();
+ previewBuilder_ = null;
+ preview_ = other.preview_;
+ bitField0_ = (bitField0_ & ~0x00000080);
+ previewBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getPreviewFieldBuilder() : null;
+ } else {
+ previewBuilder_.addAllMessages(other.preview_);
+ }
}
}
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @param value The name to set.
- * @return This builder for chaining.
- */
- public Builder setName(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- name_ = value;
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
+ if (other.hasReaction()) {
+ mergeReaction(other.getReaction());
}
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @return This builder for chaining.
- */
- public Builder clearName() {
- name_ = getDefaultInstance().getName();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- return this;
+ if (other.hasProfile()) {
+ mergeProfile(other.getProfile());
}
- /**
- *
- * @required
- *
- *
- * required string name = 2;
- * @param value The bytes for name to set.
- * @return This builder for chaining.
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- name_ = value;
- bitField0_ |= 0x00000002;
+ if (other.hasOpenGroupInvitation()) {
+ mergeOpenGroupInvitation(other.getOpenGroupInvitation());
+ }
+ if (other.hasSyncTarget()) {
+ syncTarget_ = other.syncTarget_;
+ bitField0_ |= 0x00000800;
onChanged();
- return this;
}
+ if (other.hasBlocksCommunityMessageRequests()) {
+ setBlocksCommunityMessageRequests(other.getBlocksCommunityMessageRequests());
+ }
+ if (other.hasGroupUpdateMessage()) {
+ mergeGroupUpdateMessage(other.getGroupUpdateMessage());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
- private java.lang.Object profilePicture_ = "";
- /**
- * optional string profilePicture = 3;
- * @return Whether the profilePicture field is set.
- */
- public boolean hasProfilePicture() {
- return ((bitField0_ & 0x00000004) != 0);
+ @java.lang.Override
+ public final boolean isInitialized() {
+ for (int i = 0; i < getAttachmentsCount(); i++) {
+ if (!getAttachments(i).isInitialized()) {
+ return false;
+ }
}
- /**
- * optional string profilePicture = 3;
- * @return The profilePicture.
- */
- public java.lang.String getProfilePicture() {
- java.lang.Object ref = profilePicture_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- profilePicture_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
+ if (hasQuote()) {
+ if (!getQuote().isInitialized()) {
+ return false;
}
}
- /**
- * optional string profilePicture = 3;
- * @return The bytes for profilePicture.
- */
- public com.google.protobuf.ByteString
- getProfilePictureBytes() {
- java.lang.Object ref = profilePicture_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- profilePicture_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ for (int i = 0; i < getPreviewCount(); i++) {
+ if (!getPreview(i).isInitialized()) {
+ return false;
}
}
- /**
- * optional string profilePicture = 3;
- * @param value The profilePicture to set.
- * @return This builder for chaining.
- */
- public Builder setProfilePicture(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- profilePicture_ = value;
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
+ if (hasReaction()) {
+ if (!getReaction().isInitialized()) {
+ return false;
+ }
}
- /**
- * optional string profilePicture = 3;
- * @return This builder for chaining.
- */
- public Builder clearProfilePicture() {
- profilePicture_ = getDefaultInstance().getProfilePicture();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
+ if (hasOpenGroupInvitation()) {
+ if (!getOpenGroupInvitation().isInitialized()) {
+ return false;
+ }
}
- /**
- * optional string profilePicture = 3;
- * @param value The bytes for profilePicture to set.
- * @return This builder for chaining.
- */
- public Builder setProfilePictureBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- profilePicture_ = value;
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
+ if (hasGroupUpdateMessage()) {
+ if (!getGroupUpdateMessage().isInitialized()) {
+ return false;
+ }
}
+ return true;
+ }
- private com.google.protobuf.ByteString profileKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- * optional bytes profileKey = 4;
- * @return Whether the profileKey field is set.
- */
- @java.lang.Override
- public boolean hasProfileKey() {
- return ((bitField0_ & 0x00000008) != 0);
- }
- /**
- * optional bytes profileKey = 4;
- * @return The profileKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getProfileKey() {
- return profileKey_;
- }
- /**
- * optional bytes profileKey = 4;
- * @param value The profileKey to set.
- * @return This builder for chaining.
- */
- public Builder setProfileKey(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- profileKey_ = value;
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
}
- /**
- * optional bytes profileKey = 4;
- * @return This builder for chaining.
- */
- public Builder clearProfileKey() {
- bitField0_ = (bitField0_ & ~0x00000008);
- profileKey_ = getDefaultInstance().getProfileKey();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ body_ = input.readBytes();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer m =
+ input.readMessage(
+ org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.parser(),
+ extensionRegistry);
+ if (attachmentsBuilder_ == null) {
+ ensureAttachmentsIsMutable();
+ attachments_.add(m);
+ } else {
+ attachmentsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 18
+ case 32: {
+ flags_ = input.readUInt32();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 32
+ case 40: {
+ expireTimer_ = input.readUInt32();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 40
+ case 50: {
+ profileKey_ = input.readBytes();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 50
+ case 56: {
+ timestamp_ = input.readUInt64();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 56
+ case 66: {
+ input.readMessage(
+ getQuoteFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 66
+ case 82: {
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview m =
+ input.readMessage(
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.parser(),
+ extensionRegistry);
+ if (previewBuilder_ == null) {
+ ensurePreviewIsMutable();
+ preview_.add(m);
+ } else {
+ previewBuilder_.addMessage(m);
+ }
+ break;
+ } // case 82
+ case 90: {
+ input.readMessage(
+ getReactionFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 90
+ case 810: {
+ input.readMessage(
+ getProfileFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 810
+ case 818: {
+ input.readMessage(
+ getOpenGroupInvitationFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 818
+ case 842: {
+ syncTarget_ = input.readBytes();
+ bitField0_ |= 0x00000800;
+ break;
+ } // case 842
+ case 848: {
+ blocksCommunityMessageRequests_ = input.readBool();
+ bitField0_ |= 0x00001000;
+ break;
+ } // case 848
+ case 962: {
+ input.readMessage(
+ getGroupUpdateMessageFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00002000;
+ break;
+ } // case 962
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
onChanged();
- return this;
- }
+ } // finally
+ return this;
+ }
+ private int bitField0_;
- private boolean isApproved_ ;
- /**
- * optional bool isApproved = 5;
- * @return Whether the isApproved field is set.
- */
- @java.lang.Override
- public boolean hasIsApproved() {
- return ((bitField0_ & 0x00000010) != 0);
+ private java.lang.Object body_ = "";
+ /**
+ * optional string body = 1;
+ * @return Whether the body field is set.
+ */
+ public boolean hasBody() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * optional string body = 1;
+ * @return The body.
+ */
+ public java.lang.String getBody() {
+ java.lang.Object ref = body_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ body_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
}
- /**
- * optional bool isApproved = 5;
- * @return The isApproved.
- */
- @java.lang.Override
- public boolean getIsApproved() {
- return isApproved_;
+ }
+ /**
+ * optional string body = 1;
+ * @return The bytes for body.
+ */
+ public com.google.protobuf.ByteString
+ getBodyBytes() {
+ java.lang.Object ref = body_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ body_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
- /**
- * optional bool isApproved = 5;
- * @param value The isApproved to set.
- * @return This builder for chaining.
- */
- public Builder setIsApproved(boolean value) {
+ }
+ /**
+ * optional string body = 1;
+ * @param value The body to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBody(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ body_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string body = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearBody() {
+ body_ = getDefaultInstance().getBody();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string body = 1;
+ * @param value The bytes for body to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBodyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ body_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
- isApproved_ = value;
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
- }
- /**
- * optional bool isApproved = 5;
- * @return This builder for chaining.
- */
- public Builder clearIsApproved() {
- bitField0_ = (bitField0_ & ~0x00000010);
- isApproved_ = false;
- onChanged();
- return this;
- }
+ private java.util.List attachments_ =
+ java.util.Collections.emptyList();
+ private void ensureAttachmentsIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ attachments_ = new java.util.ArrayList(attachments_);
+ bitField0_ |= 0x00000002;
+ }
+ }
- private boolean isBlocked_ ;
- /**
- * optional bool isBlocked = 6;
- * @return Whether the isBlocked field is set.
- */
- @java.lang.Override
- public boolean hasIsBlocked() {
- return ((bitField0_ & 0x00000020) != 0);
- }
- /**
- * optional bool isBlocked = 6;
- * @return The isBlocked.
- */
- @java.lang.Override
- public boolean getIsBlocked() {
- return isBlocked_;
- }
- /**
- * optional bool isBlocked = 6;
- * @param value The isBlocked to set.
- * @return This builder for chaining.
- */
- public Builder setIsBlocked(boolean value) {
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointerOrBuilder> attachmentsBuilder_;
- isBlocked_ = value;
- bitField0_ |= 0x00000020;
- onChanged();
- return this;
- }
- /**
- * optional bool isBlocked = 6;
- * @return This builder for chaining.
- */
- public Builder clearIsBlocked() {
- bitField0_ = (bitField0_ & ~0x00000020);
- isBlocked_ = false;
- onChanged();
- return this;
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public java.util.List getAttachmentsList() {
+ if (attachmentsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(attachments_);
+ } else {
+ return attachmentsBuilder_.getMessageList();
}
-
- private boolean didApproveMe_ ;
- /**
- * optional bool didApproveMe = 7;
- * @return Whether the didApproveMe field is set.
- */
- @java.lang.Override
- public boolean hasDidApproveMe() {
- return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public int getAttachmentsCount() {
+ if (attachmentsBuilder_ == null) {
+ return attachments_.size();
+ } else {
+ return attachmentsBuilder_.getCount();
}
- /**
- * optional bool didApproveMe = 7;
- * @return The didApproveMe.
- */
- @java.lang.Override
- public boolean getDidApproveMe() {
- return didApproveMe_;
+ }
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer getAttachments(int index) {
+ if (attachmentsBuilder_ == null) {
+ return attachments_.get(index);
+ } else {
+ return attachmentsBuilder_.getMessage(index);
}
- /**
- * optional bool didApproveMe = 7;
- * @param value The didApproveMe to set.
- * @return This builder for chaining.
- */
- public Builder setDidApproveMe(boolean value) {
-
- didApproveMe_ = value;
- bitField0_ |= 0x00000040;
+ }
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public Builder setAttachments(
+ int index, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer value) {
+ if (attachmentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAttachmentsIsMutable();
+ attachments_.set(index, value);
onChanged();
- return this;
+ } else {
+ attachmentsBuilder_.setMessage(index, value);
}
- /**
- * optional bool didApproveMe = 7;
- * @return This builder for chaining.
- */
- public Builder clearDidApproveMe() {
- bitField0_ = (bitField0_ & ~0x00000040);
- didApproveMe_ = false;
+ return this;
+ }
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public Builder setAttachments(
+ int index, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder builderForValue) {
+ if (attachmentsBuilder_ == null) {
+ ensureAttachmentsIsMutable();
+ attachments_.set(index, builderForValue.build());
onChanged();
- return this;
+ } else {
+ attachmentsBuilder_.setMessage(index, builderForValue.build());
}
-
- // @@protoc_insertion_point(builder_scope:signalservice.ConfigurationMessage.Contact)
- }
-
- // @@protoc_insertion_point(class_scope:signalservice.ConfigurationMessage.Contact)
- private static final org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact();
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact getDefaultInstance() {
- return DEFAULT_INSTANCE;
+ return this;
}
-
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public Contact parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public Builder addAttachments(org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer value) {
+ if (attachmentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
- return builder.buildPartial();
+ ensureAttachmentsIsMutable();
+ attachments_.add(value);
+ onChanged();
+ } else {
+ attachmentsBuilder_.addMessage(value);
}
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
+ return this;
}
-
- }
-
- private int bitField0_;
- public static final int CLOSEDGROUPS_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private java.util.List closedGroups_;
- /**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
- */
- @java.lang.Override
- public java.util.List getClosedGroupsList() {
- return closedGroups_;
- }
- /**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
- */
- @java.lang.Override
- public java.util.List extends org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroupOrBuilder>
- getClosedGroupsOrBuilderList() {
- return closedGroups_;
- }
- /**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
- */
- @java.lang.Override
- public int getClosedGroupsCount() {
- return closedGroups_.size();
- }
- /**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup getClosedGroups(int index) {
- return closedGroups_.get(index);
- }
- /**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroupOrBuilder getClosedGroupsOrBuilder(
- int index) {
- return closedGroups_.get(index);
- }
-
- public static final int OPENGROUPS_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private com.google.protobuf.LazyStringArrayList openGroups_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- /**
- * repeated string openGroups = 2;
- * @return A list containing the openGroups.
- */
- public com.google.protobuf.ProtocolStringList
- getOpenGroupsList() {
- return openGroups_;
- }
- /**
- * repeated string openGroups = 2;
- * @return The count of openGroups.
- */
- public int getOpenGroupsCount() {
- return openGroups_.size();
- }
- /**
- * repeated string openGroups = 2;
- * @param index The index of the element to return.
- * @return The openGroups at the given index.
- */
- public java.lang.String getOpenGroups(int index) {
- return openGroups_.get(index);
- }
- /**
- * repeated string openGroups = 2;
- * @param index The index of the value to return.
- * @return The bytes of the openGroups at the given index.
- */
- public com.google.protobuf.ByteString
- getOpenGroupsBytes(int index) {
- return openGroups_.getByteString(index);
- }
-
- public static final int DISPLAYNAME_FIELD_NUMBER = 3;
- @SuppressWarnings("serial")
- private volatile java.lang.Object displayName_ = "";
- /**
- * optional string displayName = 3;
- * @return Whether the displayName field is set.
- */
- @java.lang.Override
- public boolean hasDisplayName() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * optional string displayName = 3;
- * @return The displayName.
- */
- @java.lang.Override
- public java.lang.String getDisplayName() {
- java.lang.Object ref = displayName_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- displayName_ = s;
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public Builder addAttachments(
+ int index, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer value) {
+ if (attachmentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAttachmentsIsMutable();
+ attachments_.add(index, value);
+ onChanged();
+ } else {
+ attachmentsBuilder_.addMessage(index, value);
}
- return s;
- }
- }
- /**
- * optional string displayName = 3;
- * @return The bytes for displayName.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getDisplayNameBytes() {
- java.lang.Object ref = displayName_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- displayName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ return this;
}
- }
-
- public static final int PROFILEPICTURE_FIELD_NUMBER = 4;
- @SuppressWarnings("serial")
- private volatile java.lang.Object profilePicture_ = "";
- /**
- * optional string profilePicture = 4;
- * @return Whether the profilePicture field is set.
- */
- @java.lang.Override
- public boolean hasProfilePicture() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * optional string profilePicture = 4;
- * @return The profilePicture.
- */
- @java.lang.Override
- public java.lang.String getProfilePicture() {
- java.lang.Object ref = profilePicture_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- profilePicture_ = s;
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public Builder addAttachments(
+ org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder builderForValue) {
+ if (attachmentsBuilder_ == null) {
+ ensureAttachmentsIsMutable();
+ attachments_.add(builderForValue.build());
+ onChanged();
+ } else {
+ attachmentsBuilder_.addMessage(builderForValue.build());
}
- return s;
- }
- }
- /**
- * optional string profilePicture = 4;
- * @return The bytes for profilePicture.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getProfilePictureBytes() {
- java.lang.Object ref = profilePicture_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- profilePicture_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ return this;
}
- }
-
- public static final int PROFILEKEY_FIELD_NUMBER = 5;
- private com.google.protobuf.ByteString profileKey_ = com.google.protobuf.ByteString.EMPTY;
- /**
- * optional bytes profileKey = 5;
- * @return Whether the profileKey field is set.
- */
- @java.lang.Override
- public boolean hasProfileKey() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- * optional bytes profileKey = 5;
- * @return The profileKey.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getProfileKey() {
- return profileKey_;
- }
-
- public static final int CONTACTS_FIELD_NUMBER = 6;
- @SuppressWarnings("serial")
- private java.util.List contacts_;
- /**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
- */
- @java.lang.Override
- public java.util.List getContactsList() {
- return contacts_;
- }
- /**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
- */
- @java.lang.Override
- public java.util.List extends org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ContactOrBuilder>
- getContactsOrBuilderList() {
- return contacts_;
- }
- /**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
- */
- @java.lang.Override
- public int getContactsCount() {
- return contacts_.size();
- }
- /**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact getContacts(int index) {
- return contacts_.get(index);
- }
- /**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
- */
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ContactOrBuilder getContactsOrBuilder(
- int index) {
- return contacts_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- for (int i = 0; i < getClosedGroupsCount(); i++) {
- if (!getClosedGroups(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public Builder addAttachments(
+ int index, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder builderForValue) {
+ if (attachmentsBuilder_ == null) {
+ ensureAttachmentsIsMutable();
+ attachments_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ attachmentsBuilder_.addMessage(index, builderForValue.build());
}
+ return this;
}
- for (int i = 0; i < getContactsCount(); i++) {
- if (!getContacts(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public Builder addAllAttachments(
+ java.lang.Iterable extends org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer> values) {
+ if (attachmentsBuilder_ == null) {
+ ensureAttachmentsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, attachments_);
+ onChanged();
+ } else {
+ attachmentsBuilder_.addAllMessages(values);
}
+ return this;
}
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- for (int i = 0; i < closedGroups_.size(); i++) {
- output.writeMessage(1, closedGroups_.get(i));
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public Builder clearAttachments() {
+ if (attachmentsBuilder_ == null) {
+ attachments_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ attachmentsBuilder_.clear();
+ }
+ return this;
}
- for (int i = 0; i < openGroups_.size(); i++) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, openGroups_.getRaw(i));
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public Builder removeAttachments(int index) {
+ if (attachmentsBuilder_ == null) {
+ ensureAttachmentsIsMutable();
+ attachments_.remove(index);
+ onChanged();
+ } else {
+ attachmentsBuilder_.remove(index);
+ }
+ return this;
}
- if (((bitField0_ & 0x00000001) != 0)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 3, displayName_);
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder getAttachmentsBuilder(
+ int index) {
+ return getAttachmentsFieldBuilder().getBuilder(index);
}
- if (((bitField0_ & 0x00000002) != 0)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 4, profilePicture_);
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public org.session.libsignal.protos.SignalServiceProtos.AttachmentPointerOrBuilder getAttachmentsOrBuilder(
+ int index) {
+ if (attachmentsBuilder_ == null) {
+ return attachments_.get(index); } else {
+ return attachmentsBuilder_.getMessageOrBuilder(index);
+ }
}
- if (((bitField0_ & 0x00000004) != 0)) {
- output.writeBytes(5, profileKey_);
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public java.util.List extends org.session.libsignal.protos.SignalServiceProtos.AttachmentPointerOrBuilder>
+ getAttachmentsOrBuilderList() {
+ if (attachmentsBuilder_ != null) {
+ return attachmentsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(attachments_);
+ }
}
- for (int i = 0; i < contacts_.size(); i++) {
- output.writeMessage(6, contacts_.get(i));
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder addAttachmentsBuilder() {
+ return getAttachmentsFieldBuilder().addBuilder(
+ org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.getDefaultInstance());
}
- getUnknownFields().writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- for (int i = 0; i < closedGroups_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, closedGroups_.get(i));
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder addAttachmentsBuilder(
+ int index) {
+ return getAttachmentsFieldBuilder().addBuilder(
+ index, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.getDefaultInstance());
}
- {
- int dataSize = 0;
- for (int i = 0; i < openGroups_.size(); i++) {
- dataSize += computeStringSizeNoTag(openGroups_.getRaw(i));
+ /**
+ * repeated .signalservice.AttachmentPointer attachments = 2;
+ */
+ public java.util.List
+ getAttachmentsBuilderList() {
+ return getAttachmentsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointerOrBuilder>
+ getAttachmentsFieldBuilder() {
+ if (attachmentsBuilder_ == null) {
+ attachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.protos.SignalServiceProtos.AttachmentPointerOrBuilder>(
+ attachments_,
+ ((bitField0_ & 0x00000002) != 0),
+ getParentForChildren(),
+ isClean());
+ attachments_ = null;
}
- size += dataSize;
- size += 1 * getOpenGroupsList().size();
+ return attachmentsBuilder_;
}
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(3, displayName_);
+
+ private int flags_ ;
+ /**
+ * optional uint32 flags = 4;
+ * @return Whether the flags field is set.
+ */
+ @java.lang.Override
+ public boolean hasFlags() {
+ return ((bitField0_ & 0x00000004) != 0);
}
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(4, profilePicture_);
+ /**
+ * optional uint32 flags = 4;
+ * @return The flags.
+ */
+ @java.lang.Override
+ public int getFlags() {
+ return flags_;
}
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(5, profileKey_);
+ /**
+ * optional uint32 flags = 4;
+ * @param value The flags to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFlags(int value) {
+
+ flags_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
}
- for (int i = 0; i < contacts_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(6, contacts_.get(i));
+ /**
+ * optional uint32 flags = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearFlags() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ flags_ = 0;
+ onChanged();
+ return this;
}
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
+ private int expireTimer_ ;
+ /**
+ * optional uint32 expireTimer = 5;
+ * @return Whether the expireTimer field is set.
+ */
+ @java.lang.Override
+ public boolean hasExpireTimer() {
+ return ((bitField0_ & 0x00000008) != 0);
}
- if (!(obj instanceof org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage)) {
- return super.equals(obj);
+ /**
+ * optional uint32 expireTimer = 5;
+ * @return The expireTimer.
+ */
+ @java.lang.Override
+ public int getExpireTimer() {
+ return expireTimer_;
}
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage other = (org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage) obj;
+ /**
+ * optional uint32 expireTimer = 5;
+ * @param value The expireTimer to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExpireTimer(int value) {
- if (!getClosedGroupsList()
- .equals(other.getClosedGroupsList())) return false;
- if (!getOpenGroupsList()
- .equals(other.getOpenGroupsList())) return false;
- if (hasDisplayName() != other.hasDisplayName()) return false;
- if (hasDisplayName()) {
- if (!getDisplayName()
- .equals(other.getDisplayName())) return false;
+ expireTimer_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
}
- if (hasProfilePicture() != other.hasProfilePicture()) return false;
- if (hasProfilePicture()) {
- if (!getProfilePicture()
- .equals(other.getProfilePicture())) return false;
+ /**
+ * optional uint32 expireTimer = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearExpireTimer() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ expireTimer_ = 0;
+ onChanged();
+ return this;
}
- if (hasProfileKey() != other.hasProfileKey()) return false;
- if (hasProfileKey()) {
- if (!getProfileKey()
- .equals(other.getProfileKey())) return false;
+
+ private com.google.protobuf.ByteString profileKey_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ * optional bytes profileKey = 6;
+ * @return Whether the profileKey field is set.
+ */
+ @java.lang.Override
+ public boolean hasProfileKey() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * optional bytes profileKey = 6;
+ * @return The profileKey.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProfileKey() {
+ return profileKey_;
+ }
+ /**
+ * optional bytes profileKey = 6;
+ * @param value The profileKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProfileKey(com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ profileKey_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional bytes profileKey = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearProfileKey() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ profileKey_ = getDefaultInstance().getProfileKey();
+ onChanged();
+ return this;
}
- if (!getContactsList()
- .equals(other.getContactsList())) return false;
- if (!getUnknownFields().equals(other.getUnknownFields())) return false;
- return true;
- }
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
+ private long timestamp_ ;
+ /**
+ * optional uint64 timestamp = 7;
+ * @return Whether the timestamp field is set.
+ */
+ @java.lang.Override
+ public boolean hasTimestamp() {
+ return ((bitField0_ & 0x00000020) != 0);
}
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (getClosedGroupsCount() > 0) {
- hash = (37 * hash) + CLOSEDGROUPS_FIELD_NUMBER;
- hash = (53 * hash) + getClosedGroupsList().hashCode();
+ /**
+ * optional uint64 timestamp = 7;
+ * @return The timestamp.
+ */
+ @java.lang.Override
+ public long getTimestamp() {
+ return timestamp_;
}
- if (getOpenGroupsCount() > 0) {
- hash = (37 * hash) + OPENGROUPS_FIELD_NUMBER;
- hash = (53 * hash) + getOpenGroupsList().hashCode();
+ /**
+ * optional uint64 timestamp = 7;
+ * @param value The timestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTimestamp(long value) {
+
+ timestamp_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
}
- if (hasDisplayName()) {
- hash = (37 * hash) + DISPLAYNAME_FIELD_NUMBER;
- hash = (53 * hash) + getDisplayName().hashCode();
+ /**
+ * optional uint64 timestamp = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearTimestamp() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ timestamp_ = 0L;
+ onChanged();
+ return this;
}
- if (hasProfilePicture()) {
- hash = (37 * hash) + PROFILEPICTURE_FIELD_NUMBER;
- hash = (53 * hash) + getProfilePicture().hashCode();
+
+ private org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote quote_;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.QuoteOrBuilder> quoteBuilder_;
+ /**
+ * optional .signalservice.DataMessage.Quote quote = 8;
+ * @return Whether the quote field is set.
+ */
+ public boolean hasQuote() {
+ return ((bitField0_ & 0x00000040) != 0);
}
- if (hasProfileKey()) {
- hash = (37 * hash) + PROFILEKEY_FIELD_NUMBER;
- hash = (53 * hash) + getProfileKey().hashCode();
+ /**
+ * optional .signalservice.DataMessage.Quote quote = 8;
+ * @return The quote.
+ */
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote getQuote() {
+ if (quoteBuilder_ == null) {
+ return quote_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.getDefaultInstance() : quote_;
+ } else {
+ return quoteBuilder_.getMessage();
+ }
}
- if (getContactsCount() > 0) {
- hash = (37 * hash) + CONTACTS_FIELD_NUMBER;
- hash = (53 * hash) + getContactsList().hashCode();
+ /**
+ * optional .signalservice.DataMessage.Quote quote = 8;
+ */
+ public Builder setQuote(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote value) {
+ if (quoteBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ quote_ = value;
+ } else {
+ quoteBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
}
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input);
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input);
- }
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code signalservice.ConfigurationMessage}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
- // @@protoc_insertion_point(builder_implements:signalservice.ConfigurationMessage)
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessageOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_ConfigurationMessage_descriptor;
+ /**
+ * optional .signalservice.DataMessage.Quote quote = 8;
+ */
+ public Builder setQuote(
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.Builder builderForValue) {
+ if (quoteBuilder_ == null) {
+ quote_ = builderForValue.build();
+ } else {
+ quoteBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
}
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_ConfigurationMessage_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.class, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Builder.class);
+ /**
+ * optional .signalservice.DataMessage.Quote quote = 8;
+ */
+ public Builder mergeQuote(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote value) {
+ if (quoteBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0) &&
+ quote_ != null &&
+ quote_ != org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.getDefaultInstance()) {
+ getQuoteBuilder().mergeFrom(value);
+ } else {
+ quote_ = value;
+ }
+ } else {
+ quoteBuilder_.mergeFrom(value);
+ }
+ if (quote_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ return this;
}
-
- // Construct using org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.newBuilder()
- private Builder() {
-
+ /**
+ * optional .signalservice.DataMessage.Quote quote = 8;
+ */
+ public Builder clearQuote() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ quote_ = null;
+ if (quoteBuilder_ != null) {
+ quoteBuilder_.dispose();
+ quoteBuilder_ = null;
+ }
+ onChanged();
+ return this;
}
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
-
+ /**
+ * optional .signalservice.DataMessage.Quote quote = 8;
+ */
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.Builder getQuoteBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return getQuoteFieldBuilder().getBuilder();
}
- @java.lang.Override
- public Builder clear() {
- super.clear();
- bitField0_ = 0;
- if (closedGroupsBuilder_ == null) {
- closedGroups_ = java.util.Collections.emptyList();
+ /**
+ * optional .signalservice.DataMessage.Quote quote = 8;
+ */
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.QuoteOrBuilder getQuoteOrBuilder() {
+ if (quoteBuilder_ != null) {
+ return quoteBuilder_.getMessageOrBuilder();
} else {
- closedGroups_ = null;
- closedGroupsBuilder_.clear();
+ return quote_ == null ?
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.getDefaultInstance() : quote_;
}
- bitField0_ = (bitField0_ & ~0x00000001);
- openGroups_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- displayName_ = "";
- profilePicture_ = "";
- profileKey_ = com.google.protobuf.ByteString.EMPTY;
- if (contactsBuilder_ == null) {
- contacts_ = java.util.Collections.emptyList();
- } else {
- contacts_ = null;
- contactsBuilder_.clear();
+ }
+ /**
+ * optional .signalservice.DataMessage.Quote quote = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.QuoteOrBuilder>
+ getQuoteFieldBuilder() {
+ if (quoteBuilder_ == null) {
+ quoteBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Quote.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.QuoteOrBuilder>(
+ getQuote(),
+ getParentForChildren(),
+ isClean());
+ quote_ = null;
}
- bitField0_ = (bitField0_ & ~0x00000020);
- return this;
+ return quoteBuilder_;
}
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_ConfigurationMessage_descriptor;
+ private java.util.List preview_ =
+ java.util.Collections.emptyList();
+ private void ensurePreviewIsMutable() {
+ if (!((bitField0_ & 0x00000080) != 0)) {
+ preview_ = new java.util.ArrayList(preview_);
+ bitField0_ |= 0x00000080;
+ }
}
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage getDefaultInstanceForType() {
- return org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.getDefaultInstance();
- }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.PreviewOrBuilder> previewBuilder_;
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage build() {
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ public java.util.List getPreviewList() {
+ if (previewBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(preview_);
+ } else {
+ return previewBuilder_.getMessageList();
}
- return result;
- }
-
- @java.lang.Override
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage buildPartial() {
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage result = new org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage(this);
- buildPartialRepeatedFields(result);
- if (bitField0_ != 0) { buildPartial0(result); }
- onBuilt();
- return result;
}
-
- private void buildPartialRepeatedFields(org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage result) {
- if (closedGroupsBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)) {
- closedGroups_ = java.util.Collections.unmodifiableList(closedGroups_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.closedGroups_ = closedGroups_;
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ public int getPreviewCount() {
+ if (previewBuilder_ == null) {
+ return preview_.size();
} else {
- result.closedGroups_ = closedGroupsBuilder_.build();
+ return previewBuilder_.getCount();
}
- if (contactsBuilder_ == null) {
- if (((bitField0_ & 0x00000020) != 0)) {
- contacts_ = java.util.Collections.unmodifiableList(contacts_);
- bitField0_ = (bitField0_ & ~0x00000020);
- }
- result.contacts_ = contacts_;
+ }
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview getPreview(int index) {
+ if (previewBuilder_ == null) {
+ return preview_.get(index);
} else {
- result.contacts_ = contactsBuilder_.build();
+ return previewBuilder_.getMessage(index);
}
}
-
- private void buildPartial0(org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage result) {
- int from_bitField0_ = bitField0_;
- if (((from_bitField0_ & 0x00000002) != 0)) {
- openGroups_.makeImmutable();
- result.openGroups_ = openGroups_;
- }
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.displayName_ = displayName_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.profilePicture_ = profilePicture_;
- to_bitField0_ |= 0x00000002;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.profileKey_ = profileKey_;
- to_bitField0_ |= 0x00000004;
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ public Builder setPreview(
+ int index, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview value) {
+ if (previewBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePreviewIsMutable();
+ preview_.set(index, value);
+ onChanged();
+ } else {
+ previewBuilder_.setMessage(index, value);
}
- result.bitField0_ |= to_bitField0_;
+ return this;
}
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage) {
- return mergeFrom((org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage)other);
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ public Builder setPreview(
+ int index, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder builderForValue) {
+ if (previewBuilder_ == null) {
+ ensurePreviewIsMutable();
+ preview_.set(index, builderForValue.build());
+ onChanged();
} else {
- super.mergeFrom(other);
- return this;
+ previewBuilder_.setMessage(index, builderForValue.build());
}
+ return this;
}
-
- public Builder mergeFrom(org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage other) {
- if (other == org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.getDefaultInstance()) return this;
- if (closedGroupsBuilder_ == null) {
- if (!other.closedGroups_.isEmpty()) {
- if (closedGroups_.isEmpty()) {
- closedGroups_ = other.closedGroups_;
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- ensureClosedGroupsIsMutable();
- closedGroups_.addAll(other.closedGroups_);
- }
- onChanged();
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ public Builder addPreview(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview value) {
+ if (previewBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ ensurePreviewIsMutable();
+ preview_.add(value);
+ onChanged();
} else {
- if (!other.closedGroups_.isEmpty()) {
- if (closedGroupsBuilder_.isEmpty()) {
- closedGroupsBuilder_.dispose();
- closedGroupsBuilder_ = null;
- closedGroups_ = other.closedGroups_;
- bitField0_ = (bitField0_ & ~0x00000001);
- closedGroupsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getClosedGroupsFieldBuilder() : null;
- } else {
- closedGroupsBuilder_.addAllMessages(other.closedGroups_);
- }
- }
+ previewBuilder_.addMessage(value);
}
- if (!other.openGroups_.isEmpty()) {
- if (openGroups_.isEmpty()) {
- openGroups_ = other.openGroups_;
- bitField0_ |= 0x00000002;
- } else {
- ensureOpenGroupsIsMutable();
- openGroups_.addAll(other.openGroups_);
+ return this;
+ }
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ public Builder addPreview(
+ int index, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview value) {
+ if (previewBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ ensurePreviewIsMutable();
+ preview_.add(index, value);
onChanged();
- }
- if (other.hasDisplayName()) {
- displayName_ = other.displayName_;
- bitField0_ |= 0x00000004;
- onChanged();
- }
- if (other.hasProfilePicture()) {
- profilePicture_ = other.profilePicture_;
- bitField0_ |= 0x00000008;
- onChanged();
- }
- if (other.hasProfileKey()) {
- setProfileKey(other.getProfileKey());
- }
- if (contactsBuilder_ == null) {
- if (!other.contacts_.isEmpty()) {
- if (contacts_.isEmpty()) {
- contacts_ = other.contacts_;
- bitField0_ = (bitField0_ & ~0x00000020);
- } else {
- ensureContactsIsMutable();
- contacts_.addAll(other.contacts_);
- }
- onChanged();
- }
} else {
- if (!other.contacts_.isEmpty()) {
- if (contactsBuilder_.isEmpty()) {
- contactsBuilder_.dispose();
- contactsBuilder_ = null;
- contacts_ = other.contacts_;
- bitField0_ = (bitField0_ & ~0x00000020);
- contactsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getContactsFieldBuilder() : null;
- } else {
- contactsBuilder_.addAllMessages(other.contacts_);
- }
- }
+ previewBuilder_.addMessage(index, value);
}
- this.mergeUnknownFields(other.getUnknownFields());
- onChanged();
return this;
}
-
- @java.lang.Override
- public final boolean isInitialized() {
- for (int i = 0; i < getClosedGroupsCount(); i++) {
- if (!getClosedGroups(i).isInitialized()) {
- return false;
- }
- }
- for (int i = 0; i < getContactsCount(); i++) {
- if (!getContacts(i).isInitialized()) {
- return false;
- }
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ public Builder addPreview(
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder builderForValue) {
+ if (previewBuilder_ == null) {
+ ensurePreviewIsMutable();
+ preview_.add(builderForValue.build());
+ onChanged();
+ } else {
+ previewBuilder_.addMessage(builderForValue.build());
}
- return true;
+ return this;
}
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- case 10: {
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup m =
- input.readMessage(
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.parser(),
- extensionRegistry);
- if (closedGroupsBuilder_ == null) {
- ensureClosedGroupsIsMutable();
- closedGroups_.add(m);
- } else {
- closedGroupsBuilder_.addMessage(m);
- }
- break;
- } // case 10
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- ensureOpenGroupsIsMutable();
- openGroups_.add(bs);
- break;
- } // case 18
- case 26: {
- displayName_ = input.readBytes();
- bitField0_ |= 0x00000004;
- break;
- } // case 26
- case 34: {
- profilePicture_ = input.readBytes();
- bitField0_ |= 0x00000008;
- break;
- } // case 34
- case 42: {
- profileKey_ = input.readBytes();
- bitField0_ |= 0x00000010;
- break;
- } // case 42
- case 50: {
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact m =
- input.readMessage(
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.parser(),
- extensionRegistry);
- if (contactsBuilder_ == null) {
- ensureContactsIsMutable();
- contacts_.add(m);
- } else {
- contactsBuilder_.addMessage(m);
- }
- break;
- } // case 50
- default: {
- if (!super.parseUnknownField(input, extensionRegistry, tag)) {
- done = true; // was an endgroup tag
- }
- break;
- } // default:
- } // switch (tag)
- } // while (!done)
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.unwrapIOException();
- } finally {
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ public Builder addPreview(
+ int index, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder builderForValue) {
+ if (previewBuilder_ == null) {
+ ensurePreviewIsMutable();
+ preview_.add(index, builderForValue.build());
onChanged();
- } // finally
+ } else {
+ previewBuilder_.addMessage(index, builderForValue.build());
+ }
return this;
}
- private int bitField0_;
-
- private java.util.List closedGroups_ =
- java.util.Collections.emptyList();
- private void ensureClosedGroupsIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
- closedGroups_ = new java.util.ArrayList(closedGroups_);
- bitField0_ |= 0x00000001;
- }
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ public Builder addAllPreview(
+ java.lang.Iterable extends org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview> values) {
+ if (previewBuilder_ == null) {
+ ensurePreviewIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, preview_);
+ onChanged();
+ } else {
+ previewBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ public Builder clearPreview() {
+ if (previewBuilder_ == null) {
+ preview_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ } else {
+ previewBuilder_.clear();
+ }
+ return this;
}
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.Builder, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroupOrBuilder> closedGroupsBuilder_;
-
/**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
+ * repeated .signalservice.DataMessage.Preview preview = 10;
*/
- public java.util.List getClosedGroupsList() {
- if (closedGroupsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(closedGroups_);
+ public Builder removePreview(int index) {
+ if (previewBuilder_ == null) {
+ ensurePreviewIsMutable();
+ preview_.remove(index);
+ onChanged();
} else {
- return closedGroupsBuilder_.getMessageList();
+ previewBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder getPreviewBuilder(
+ int index) {
+ return getPreviewFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.PreviewOrBuilder getPreviewOrBuilder(
+ int index) {
+ if (previewBuilder_ == null) {
+ return preview_.get(index); } else {
+ return previewBuilder_.getMessageOrBuilder(index);
}
}
/**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
+ * repeated .signalservice.DataMessage.Preview preview = 10;
*/
- public int getClosedGroupsCount() {
- if (closedGroupsBuilder_ == null) {
- return closedGroups_.size();
+ public java.util.List extends org.session.libsignal.protos.SignalServiceProtos.DataMessage.PreviewOrBuilder>
+ getPreviewOrBuilderList() {
+ if (previewBuilder_ != null) {
+ return previewBuilder_.getMessageOrBuilderList();
} else {
- return closedGroupsBuilder_.getCount();
+ return java.util.Collections.unmodifiableList(preview_);
+ }
+ }
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder addPreviewBuilder() {
+ return getPreviewFieldBuilder().addBuilder(
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.getDefaultInstance());
+ }
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder addPreviewBuilder(
+ int index) {
+ return getPreviewFieldBuilder().addBuilder(
+ index, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.getDefaultInstance());
+ }
+ /**
+ * repeated .signalservice.DataMessage.Preview preview = 10;
+ */
+ public java.util.List
+ getPreviewBuilderList() {
+ return getPreviewFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.PreviewOrBuilder>
+ getPreviewFieldBuilder() {
+ if (previewBuilder_ == null) {
+ previewBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Preview.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.PreviewOrBuilder>(
+ preview_,
+ ((bitField0_ & 0x00000080) != 0),
+ getParentForChildren(),
+ isClean());
+ preview_ = null;
}
+ return previewBuilder_;
+ }
+
+ private org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction reaction_;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ReactionOrBuilder> reactionBuilder_;
+ /**
+ * optional .signalservice.DataMessage.Reaction reaction = 11;
+ * @return Whether the reaction field is set.
+ */
+ public boolean hasReaction() {
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
+ * optional .signalservice.DataMessage.Reaction reaction = 11;
+ * @return The reaction.
*/
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup getClosedGroups(int index) {
- if (closedGroupsBuilder_ == null) {
- return closedGroups_.get(index);
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction getReaction() {
+ if (reactionBuilder_ == null) {
+ return reaction_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.getDefaultInstance() : reaction_;
} else {
- return closedGroupsBuilder_.getMessage(index);
+ return reactionBuilder_.getMessage();
}
}
/**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
+ * optional .signalservice.DataMessage.Reaction reaction = 11;
*/
- public Builder setClosedGroups(
- int index, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup value) {
- if (closedGroupsBuilder_ == null) {
+ public Builder setReaction(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction value) {
+ if (reactionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureClosedGroupsIsMutable();
- closedGroups_.set(index, value);
- onChanged();
+ reaction_ = value;
} else {
- closedGroupsBuilder_.setMessage(index, value);
+ reactionBuilder_.setMessage(value);
}
+ bitField0_ |= 0x00000100;
+ onChanged();
return this;
}
/**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
+ * optional .signalservice.DataMessage.Reaction reaction = 11;
*/
- public Builder setClosedGroups(
- int index, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.Builder builderForValue) {
- if (closedGroupsBuilder_ == null) {
- ensureClosedGroupsIsMutable();
- closedGroups_.set(index, builderForValue.build());
- onChanged();
+ public Builder setReaction(
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Builder builderForValue) {
+ if (reactionBuilder_ == null) {
+ reaction_ = builderForValue.build();
} else {
- closedGroupsBuilder_.setMessage(index, builderForValue.build());
+ reactionBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00000100;
+ onChanged();
return this;
}
/**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
+ * optional .signalservice.DataMessage.Reaction reaction = 11;
*/
- public Builder addClosedGroups(org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup value) {
- if (closedGroupsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder mergeReaction(org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction value) {
+ if (reactionBuilder_ == null) {
+ if (((bitField0_ & 0x00000100) != 0) &&
+ reaction_ != null &&
+ reaction_ != org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.getDefaultInstance()) {
+ getReactionBuilder().mergeFrom(value);
+ } else {
+ reaction_ = value;
}
- ensureClosedGroupsIsMutable();
- closedGroups_.add(value);
- onChanged();
} else {
- closedGroupsBuilder_.addMessage(value);
+ reactionBuilder_.mergeFrom(value);
+ }
+ if (reaction_ != null) {
+ bitField0_ |= 0x00000100;
+ onChanged();
}
return this;
}
/**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
+ * optional .signalservice.DataMessage.Reaction reaction = 11;
*/
- public Builder addClosedGroups(
- int index, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup value) {
- if (closedGroupsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureClosedGroupsIsMutable();
- closedGroups_.add(index, value);
- onChanged();
- } else {
- closedGroupsBuilder_.addMessage(index, value);
+ public Builder clearReaction() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ reaction_ = null;
+ if (reactionBuilder_ != null) {
+ reactionBuilder_.dispose();
+ reactionBuilder_ = null;
}
+ onChanged();
return this;
}
/**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
+ * optional .signalservice.DataMessage.Reaction reaction = 11;
*/
- public Builder addClosedGroups(
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.Builder builderForValue) {
- if (closedGroupsBuilder_ == null) {
- ensureClosedGroupsIsMutable();
- closedGroups_.add(builderForValue.build());
- onChanged();
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Builder getReactionBuilder() {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return getReactionFieldBuilder().getBuilder();
+ }
+ /**
+ * optional .signalservice.DataMessage.Reaction reaction = 11;
+ */
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.ReactionOrBuilder getReactionOrBuilder() {
+ if (reactionBuilder_ != null) {
+ return reactionBuilder_.getMessageOrBuilder();
} else {
- closedGroupsBuilder_.addMessage(builderForValue.build());
+ return reaction_ == null ?
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.getDefaultInstance() : reaction_;
}
- return this;
}
/**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
+ * optional .signalservice.DataMessage.Reaction reaction = 11;
*/
- public Builder addClosedGroups(
- int index, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.Builder builderForValue) {
- if (closedGroupsBuilder_ == null) {
- ensureClosedGroupsIsMutable();
- closedGroups_.add(index, builderForValue.build());
- onChanged();
+ private com.google.protobuf.SingleFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ReactionOrBuilder>
+ getReactionFieldBuilder() {
+ if (reactionBuilder_ == null) {
+ reactionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction, org.session.libsignal.protos.SignalServiceProtos.DataMessage.Reaction.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.ReactionOrBuilder>(
+ getReaction(),
+ getParentForChildren(),
+ isClean());
+ reaction_ = null;
+ }
+ return reactionBuilder_;
+ }
+
+ private org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile profile_;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile, org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfileOrBuilder> profileBuilder_;
+ /**
+ * optional .signalservice.DataMessage.LokiProfile profile = 101;
+ * @return Whether the profile field is set.
+ */
+ public boolean hasProfile() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ * optional .signalservice.DataMessage.LokiProfile profile = 101;
+ * @return The profile.
+ */
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile getProfile() {
+ if (profileBuilder_ == null) {
+ return profile_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.getDefaultInstance() : profile_;
+ } else {
+ return profileBuilder_.getMessage();
+ }
+ }
+ /**
+ * optional .signalservice.DataMessage.LokiProfile profile = 101;
+ */
+ public Builder setProfile(org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile value) {
+ if (profileBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ profile_ = value;
} else {
- closedGroupsBuilder_.addMessage(index, builderForValue.build());
+ profileBuilder_.setMessage(value);
}
+ bitField0_ |= 0x00000200;
+ onChanged();
return this;
}
/**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
+ * optional .signalservice.DataMessage.LokiProfile profile = 101;
*/
- public Builder addAllClosedGroups(
- java.lang.Iterable extends org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup> values) {
- if (closedGroupsBuilder_ == null) {
- ensureClosedGroupsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, closedGroups_);
- onChanged();
+ public Builder setProfile(
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.Builder builderForValue) {
+ if (profileBuilder_ == null) {
+ profile_ = builderForValue.build();
} else {
- closedGroupsBuilder_.addAllMessages(values);
+ profileBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00000200;
+ onChanged();
return this;
}
/**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
+ * optional .signalservice.DataMessage.LokiProfile profile = 101;
*/
- public Builder clearClosedGroups() {
- if (closedGroupsBuilder_ == null) {
- closedGroups_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
+ public Builder mergeProfile(org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile value) {
+ if (profileBuilder_ == null) {
+ if (((bitField0_ & 0x00000200) != 0) &&
+ profile_ != null &&
+ profile_ != org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.getDefaultInstance()) {
+ getProfileBuilder().mergeFrom(value);
+ } else {
+ profile_ = value;
+ }
} else {
- closedGroupsBuilder_.clear();
+ profileBuilder_.mergeFrom(value);
}
- return this;
- }
- /**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
- */
- public Builder removeClosedGroups(int index) {
- if (closedGroupsBuilder_ == null) {
- ensureClosedGroupsIsMutable();
- closedGroups_.remove(index);
+ if (profile_ != null) {
+ bitField0_ |= 0x00000200;
onChanged();
- } else {
- closedGroupsBuilder_.remove(index);
}
return this;
}
/**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
+ * optional .signalservice.DataMessage.LokiProfile profile = 101;
*/
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.Builder getClosedGroupsBuilder(
- int index) {
- return getClosedGroupsFieldBuilder().getBuilder(index);
+ public Builder clearProfile() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ profile_ = null;
+ if (profileBuilder_ != null) {
+ profileBuilder_.dispose();
+ profileBuilder_ = null;
+ }
+ onChanged();
+ return this;
}
/**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
+ * optional .signalservice.DataMessage.LokiProfile profile = 101;
*/
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroupOrBuilder getClosedGroupsOrBuilder(
- int index) {
- if (closedGroupsBuilder_ == null) {
- return closedGroups_.get(index); } else {
- return closedGroupsBuilder_.getMessageOrBuilder(index);
- }
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.Builder getProfileBuilder() {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return getProfileFieldBuilder().getBuilder();
}
/**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
+ * optional .signalservice.DataMessage.LokiProfile profile = 101;
*/
- public java.util.List extends org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroupOrBuilder>
- getClosedGroupsOrBuilderList() {
- if (closedGroupsBuilder_ != null) {
- return closedGroupsBuilder_.getMessageOrBuilderList();
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfileOrBuilder getProfileOrBuilder() {
+ if (profileBuilder_ != null) {
+ return profileBuilder_.getMessageOrBuilder();
} else {
- return java.util.Collections.unmodifiableList(closedGroups_);
+ return profile_ == null ?
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.getDefaultInstance() : profile_;
}
}
/**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
- */
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.Builder addClosedGroupsBuilder() {
- return getClosedGroupsFieldBuilder().addBuilder(
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.getDefaultInstance());
- }
- /**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
- */
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.Builder addClosedGroupsBuilder(
- int index) {
- return getClosedGroupsFieldBuilder().addBuilder(
- index, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.getDefaultInstance());
- }
- /**
- * repeated .signalservice.ConfigurationMessage.ClosedGroup closedGroups = 1;
+ * optional .signalservice.DataMessage.LokiProfile profile = 101;
*/
- public java.util.List
- getClosedGroupsBuilderList() {
- return getClosedGroupsFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.Builder, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroupOrBuilder>
- getClosedGroupsFieldBuilder() {
- if (closedGroupsBuilder_ == null) {
- closedGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroup.Builder, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ClosedGroupOrBuilder>(
- closedGroups_,
- ((bitField0_ & 0x00000001) != 0),
+ private com.google.protobuf.SingleFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile, org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfileOrBuilder>
+ getProfileFieldBuilder() {
+ if (profileBuilder_ == null) {
+ profileBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile, org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfile.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.LokiProfileOrBuilder>(
+ getProfile(),
getParentForChildren(),
isClean());
- closedGroups_ = null;
+ profile_ = null;
}
- return closedGroupsBuilder_;
+ return profileBuilder_;
}
- private com.google.protobuf.LazyStringArrayList openGroups_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- private void ensureOpenGroupsIsMutable() {
- if (!openGroups_.isModifiable()) {
- openGroups_ = new com.google.protobuf.LazyStringArrayList(openGroups_);
- }
- bitField0_ |= 0x00000002;
- }
+ private org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation openGroupInvitation_;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation, org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitationOrBuilder> openGroupInvitationBuilder_;
/**
- * repeated string openGroups = 2;
- * @return A list containing the openGroups.
+ * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
+ * @return Whether the openGroupInvitation field is set.
*/
- public com.google.protobuf.ProtocolStringList
- getOpenGroupsList() {
- openGroups_.makeImmutable();
- return openGroups_;
+ public boolean hasOpenGroupInvitation() {
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
- * repeated string openGroups = 2;
- * @return The count of openGroups.
+ * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
+ * @return The openGroupInvitation.
*/
- public int getOpenGroupsCount() {
- return openGroups_.size();
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation getOpenGroupInvitation() {
+ if (openGroupInvitationBuilder_ == null) {
+ return openGroupInvitation_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.getDefaultInstance() : openGroupInvitation_;
+ } else {
+ return openGroupInvitationBuilder_.getMessage();
+ }
}
/**
- * repeated string openGroups = 2;
- * @param index The index of the element to return.
- * @return The openGroups at the given index.
+ * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
*/
- public java.lang.String getOpenGroups(int index) {
- return openGroups_.get(index);
+ public Builder setOpenGroupInvitation(org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation value) {
+ if (openGroupInvitationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ openGroupInvitation_ = value;
+ } else {
+ openGroupInvitationBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
}
/**
- * repeated string openGroups = 2;
- * @param index The index of the value to return.
- * @return The bytes of the openGroups at the given index.
+ * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
*/
- public com.google.protobuf.ByteString
- getOpenGroupsBytes(int index) {
- return openGroups_.getByteString(index);
+ public Builder setOpenGroupInvitation(
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.Builder builderForValue) {
+ if (openGroupInvitationBuilder_ == null) {
+ openGroupInvitation_ = builderForValue.build();
+ } else {
+ openGroupInvitationBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
}
/**
- * repeated string openGroups = 2;
- * @param index The index to set the value at.
- * @param value The openGroups to set.
- * @return This builder for chaining.
+ * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
*/
- public Builder setOpenGroups(
- int index, java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- ensureOpenGroupsIsMutable();
- openGroups_.set(index, value);
- bitField0_ |= 0x00000002;
- onChanged();
+ public Builder mergeOpenGroupInvitation(org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation value) {
+ if (openGroupInvitationBuilder_ == null) {
+ if (((bitField0_ & 0x00000400) != 0) &&
+ openGroupInvitation_ != null &&
+ openGroupInvitation_ != org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.getDefaultInstance()) {
+ getOpenGroupInvitationBuilder().mergeFrom(value);
+ } else {
+ openGroupInvitation_ = value;
+ }
+ } else {
+ openGroupInvitationBuilder_.mergeFrom(value);
+ }
+ if (openGroupInvitation_ != null) {
+ bitField0_ |= 0x00000400;
+ onChanged();
+ }
return this;
}
/**
- * repeated string openGroups = 2;
- * @param value The openGroups to add.
- * @return This builder for chaining.
+ * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
*/
- public Builder addOpenGroups(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- ensureOpenGroupsIsMutable();
- openGroups_.add(value);
- bitField0_ |= 0x00000002;
+ public Builder clearOpenGroupInvitation() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ openGroupInvitation_ = null;
+ if (openGroupInvitationBuilder_ != null) {
+ openGroupInvitationBuilder_.dispose();
+ openGroupInvitationBuilder_ = null;
+ }
onChanged();
return this;
}
/**
- * repeated string openGroups = 2;
- * @param values The openGroups to add.
- * @return This builder for chaining.
+ * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
*/
- public Builder addAllOpenGroups(
- java.lang.Iterable values) {
- ensureOpenGroupsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, openGroups_);
- bitField0_ |= 0x00000002;
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.Builder getOpenGroupInvitationBuilder() {
+ bitField0_ |= 0x00000400;
onChanged();
- return this;
+ return getOpenGroupInvitationFieldBuilder().getBuilder();
}
/**
- * repeated string openGroups = 2;
- * @return This builder for chaining.
+ * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
*/
- public Builder clearOpenGroups() {
- openGroups_ =
- com.google.protobuf.LazyStringArrayList.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);;
- onChanged();
- return this;
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitationOrBuilder getOpenGroupInvitationOrBuilder() {
+ if (openGroupInvitationBuilder_ != null) {
+ return openGroupInvitationBuilder_.getMessageOrBuilder();
+ } else {
+ return openGroupInvitation_ == null ?
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.getDefaultInstance() : openGroupInvitation_;
+ }
}
/**
- * repeated string openGroups = 2;
- * @param value The bytes of the openGroups to add.
- * @return This builder for chaining.
+ * optional .signalservice.DataMessage.OpenGroupInvitation openGroupInvitation = 102;
*/
- public Builder addOpenGroupsBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- ensureOpenGroupsIsMutable();
- openGroups_.add(value);
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation, org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitationOrBuilder>
+ getOpenGroupInvitationFieldBuilder() {
+ if (openGroupInvitationBuilder_ == null) {
+ openGroupInvitationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation, org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitation.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.OpenGroupInvitationOrBuilder>(
+ getOpenGroupInvitation(),
+ getParentForChildren(),
+ isClean());
+ openGroupInvitation_ = null;
+ }
+ return openGroupInvitationBuilder_;
}
- private java.lang.Object displayName_ = "";
+ private java.lang.Object syncTarget_ = "";
/**
- * optional string displayName = 3;
- * @return Whether the displayName field is set.
+ * optional string syncTarget = 105;
+ * @return Whether the syncTarget field is set.
*/
- public boolean hasDisplayName() {
- return ((bitField0_ & 0x00000004) != 0);
+ public boolean hasSyncTarget() {
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
- * optional string displayName = 3;
- * @return The displayName.
+ * optional string syncTarget = 105;
+ * @return The syncTarget.
*/
- public java.lang.String getDisplayName() {
- java.lang.Object ref = displayName_;
+ public java.lang.String getSyncTarget() {
+ java.lang.Object ref = syncTarget_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
- displayName_ = s;
+ syncTarget_ = s;
}
return s;
} else {
@@ -36062,628 +24251,764 @@ public java.lang.String getDisplayName() {
}
}
/**
- * optional string displayName = 3;
- * @return The bytes for displayName.
+ * optional string syncTarget = 105;
+ * @return The bytes for syncTarget.
*/
public com.google.protobuf.ByteString
- getDisplayNameBytes() {
- java.lang.Object ref = displayName_;
+ getSyncTargetBytes() {
+ java.lang.Object ref = syncTarget_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
- displayName_ = b;
+ syncTarget_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
- * optional string displayName = 3;
- * @param value The displayName to set.
+ * optional string syncTarget = 105;
+ * @param value The syncTarget to set.
* @return This builder for chaining.
*/
- public Builder setDisplayName(
+ public Builder setSyncTarget(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
- displayName_ = value;
- bitField0_ |= 0x00000004;
+ syncTarget_ = value;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
- * optional string displayName = 3;
+ * optional string syncTarget = 105;
* @return This builder for chaining.
*/
- public Builder clearDisplayName() {
- displayName_ = getDefaultInstance().getDisplayName();
- bitField0_ = (bitField0_ & ~0x00000004);
+ public Builder clearSyncTarget() {
+ syncTarget_ = getDefaultInstance().getSyncTarget();
+ bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
- * optional string displayName = 3;
- * @param value The bytes for displayName to set.
+ * optional string syncTarget = 105;
+ * @param value The bytes for syncTarget to set.
* @return This builder for chaining.
*/
- public Builder setDisplayNameBytes(
+ public Builder setSyncTargetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
- displayName_ = value;
- bitField0_ |= 0x00000004;
+ syncTarget_ = value;
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+
+ private boolean blocksCommunityMessageRequests_ ;
+ /**
+ * optional bool blocksCommunityMessageRequests = 106;
+ * @return Whether the blocksCommunityMessageRequests field is set.
+ */
+ @java.lang.Override
+ public boolean hasBlocksCommunityMessageRequests() {
+ return ((bitField0_ & 0x00001000) != 0);
+ }
+ /**
+ * optional bool blocksCommunityMessageRequests = 106;
+ * @return The blocksCommunityMessageRequests.
+ */
+ @java.lang.Override
+ public boolean getBlocksCommunityMessageRequests() {
+ return blocksCommunityMessageRequests_;
+ }
+ /**
+ * optional bool blocksCommunityMessageRequests = 106;
+ * @param value The blocksCommunityMessageRequests to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBlocksCommunityMessageRequests(boolean value) {
+
+ blocksCommunityMessageRequests_ = value;
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional bool blocksCommunityMessageRequests = 106;
+ * @return This builder for chaining.
+ */
+ public Builder clearBlocksCommunityMessageRequests() {
+ bitField0_ = (bitField0_ & ~0x00001000);
+ blocksCommunityMessageRequests_ = false;
onChanged();
return this;
}
- private java.lang.Object profilePicture_ = "";
+ private org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage groupUpdateMessage_;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage, org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessageOrBuilder> groupUpdateMessageBuilder_;
/**
- * optional string profilePicture = 4;
- * @return Whether the profilePicture field is set.
+ * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
+ * @return Whether the groupUpdateMessage field is set.
*/
- public boolean hasProfilePicture() {
- return ((bitField0_ & 0x00000008) != 0);
+ public boolean hasGroupUpdateMessage() {
+ return ((bitField0_ & 0x00002000) != 0);
}
/**
- * optional string profilePicture = 4;
- * @return The profilePicture.
+ * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
+ * @return The groupUpdateMessage.
*/
- public java.lang.String getProfilePicture() {
- java.lang.Object ref = profilePicture_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- profilePicture_ = s;
- }
- return s;
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage getGroupUpdateMessage() {
+ if (groupUpdateMessageBuilder_ == null) {
+ return groupUpdateMessage_ == null ? org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.getDefaultInstance() : groupUpdateMessage_;
} else {
- return (java.lang.String) ref;
+ return groupUpdateMessageBuilder_.getMessage();
}
}
/**
- * optional string profilePicture = 4;
- * @return The bytes for profilePicture.
+ * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
*/
- public com.google.protobuf.ByteString
- getProfilePictureBytes() {
- java.lang.Object ref = profilePicture_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- profilePicture_ = b;
- return b;
+ public Builder setGroupUpdateMessage(org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage value) {
+ if (groupUpdateMessageBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ groupUpdateMessage_ = value;
} else {
- return (com.google.protobuf.ByteString) ref;
+ groupUpdateMessageBuilder_.setMessage(value);
}
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return this;
}
/**
- * optional string profilePicture = 4;
- * @param value The profilePicture to set.
- * @return This builder for chaining.
+ * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
*/
- public Builder setProfilePicture(
- java.lang.String value) {
- if (value == null) { throw new NullPointerException(); }
- profilePicture_ = value;
- bitField0_ |= 0x00000008;
+ public Builder setGroupUpdateMessage(
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.Builder builderForValue) {
+ if (groupUpdateMessageBuilder_ == null) {
+ groupUpdateMessage_ = builderForValue.build();
+ } else {
+ groupUpdateMessageBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
- * optional string profilePicture = 4;
- * @return This builder for chaining.
+ * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
*/
- public Builder clearProfilePicture() {
- profilePicture_ = getDefaultInstance().getProfilePicture();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
+ public Builder mergeGroupUpdateMessage(org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage value) {
+ if (groupUpdateMessageBuilder_ == null) {
+ if (((bitField0_ & 0x00002000) != 0) &&
+ groupUpdateMessage_ != null &&
+ groupUpdateMessage_ != org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.getDefaultInstance()) {
+ getGroupUpdateMessageBuilder().mergeFrom(value);
+ } else {
+ groupUpdateMessage_ = value;
+ }
+ } else {
+ groupUpdateMessageBuilder_.mergeFrom(value);
+ }
+ if (groupUpdateMessage_ != null) {
+ bitField0_ |= 0x00002000;
+ onChanged();
+ }
return this;
}
/**
- * optional string profilePicture = 4;
- * @param value The bytes for profilePicture to set.
- * @return This builder for chaining.
+ * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
*/
- public Builder setProfilePictureBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- profilePicture_ = value;
- bitField0_ |= 0x00000008;
+ public Builder clearGroupUpdateMessage() {
+ bitField0_ = (bitField0_ & ~0x00002000);
+ groupUpdateMessage_ = null;
+ if (groupUpdateMessageBuilder_ != null) {
+ groupUpdateMessageBuilder_.dispose();
+ groupUpdateMessageBuilder_ = null;
+ }
onChanged();
return this;
}
-
- private com.google.protobuf.ByteString profileKey_ = com.google.protobuf.ByteString.EMPTY;
/**
- * optional bytes profileKey = 5;
- * @return Whether the profileKey field is set.
+ * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
*/
- @java.lang.Override
- public boolean hasProfileKey() {
- return ((bitField0_ & 0x00000010) != 0);
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.Builder getGroupUpdateMessageBuilder() {
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return getGroupUpdateMessageFieldBuilder().getBuilder();
}
/**
- * optional bytes profileKey = 5;
- * @return The profileKey.
+ * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
*/
- @java.lang.Override
- public com.google.protobuf.ByteString getProfileKey() {
- return profileKey_;
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessageOrBuilder getGroupUpdateMessageOrBuilder() {
+ if (groupUpdateMessageBuilder_ != null) {
+ return groupUpdateMessageBuilder_.getMessageOrBuilder();
+ } else {
+ return groupUpdateMessage_ == null ?
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.getDefaultInstance() : groupUpdateMessage_;
+ }
}
/**
- * optional bytes profileKey = 5;
- * @param value The profileKey to set.
- * @return This builder for chaining.
+ * optional .signalservice.DataMessage.GroupUpdateMessage groupUpdateMessage = 120;
*/
- public Builder setProfileKey(com.google.protobuf.ByteString value) {
- if (value == null) { throw new NullPointerException(); }
- profileKey_ = value;
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage, org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessageOrBuilder>
+ getGroupUpdateMessageFieldBuilder() {
+ if (groupUpdateMessageBuilder_ == null) {
+ groupUpdateMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage, org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessage.Builder, org.session.libsignal.protos.SignalServiceProtos.DataMessage.GroupUpdateMessageOrBuilder>(
+ getGroupUpdateMessage(),
+ getParentForChildren(),
+ isClean());
+ groupUpdateMessage_ = null;
+ }
+ return groupUpdateMessageBuilder_;
}
- /**
- * optional bytes profileKey = 5;
- * @return This builder for chaining.
- */
- public Builder clearProfileKey() {
- bitField0_ = (bitField0_ & ~0x00000010);
- profileKey_ = getDefaultInstance().getProfileKey();
- onChanged();
- return this;
+
+ // @@protoc_insertion_point(builder_scope:signalservice.DataMessage)
+ }
+
+ // @@protoc_insertion_point(class_scope:signalservice.DataMessage)
+ private static final org.session.libsignal.protos.SignalServiceProtos.DataMessage DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.session.libsignal.protos.SignalServiceProtos.DataMessage();
+ }
+
+ public static org.session.libsignal.protos.SignalServiceProtos.DataMessage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DataMessage parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.session.libsignal.protos.SignalServiceProtos.DataMessage getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface CallMessageOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:signalservice.CallMessage)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ * @required
+ *
+ *
+ * required .signalservice.CallMessage.Type type = 1;
+ * @return Whether the type field is set.
+ */
+ boolean hasType();
+ /**
+ *
+ * @required
+ *
+ *
+ * required .signalservice.CallMessage.Type type = 1;
+ * @return The type.
+ */
+ org.session.libsignal.protos.SignalServiceProtos.CallMessage.Type getType();
+
+ /**
+ * repeated string sdps = 2;
+ * @return A list containing the sdps.
+ */
+ java.util.List
+ getSdpsList();
+ /**
+ * repeated string sdps = 2;
+ * @return The count of sdps.
+ */
+ int getSdpsCount();
+ /**
+ * repeated string sdps = 2;
+ * @param index The index of the element to return.
+ * @return The sdps at the given index.
+ */
+ java.lang.String getSdps(int index);
+ /**
+ * repeated string sdps = 2;
+ * @param index The index of the value to return.
+ * @return The bytes of the sdps at the given index.
+ */
+ com.google.protobuf.ByteString
+ getSdpsBytes(int index);
+
+ /**
+ * repeated uint32 sdpMLineIndexes = 3;
+ * @return A list containing the sdpMLineIndexes.
+ */
+ java.util.List getSdpMLineIndexesList();
+ /**
+ * repeated uint32 sdpMLineIndexes = 3;
+ * @return The count of sdpMLineIndexes.
+ */
+ int getSdpMLineIndexesCount();
+ /**
+ * repeated uint32 sdpMLineIndexes = 3;
+ * @param index The index of the element to return.
+ * @return The sdpMLineIndexes at the given index.
+ */
+ int getSdpMLineIndexes(int index);
- private java.util.List contacts_ =
- java.util.Collections.emptyList();
- private void ensureContactsIsMutable() {
- if (!((bitField0_ & 0x00000020) != 0)) {
- contacts_ = new java.util.ArrayList(contacts_);
- bitField0_ |= 0x00000020;
- }
- }
+ /**
+ * repeated string sdpMids = 4;
+ * @return A list containing the sdpMids.
+ */
+ java.util.List
+ getSdpMidsList();
+ /**
+ * repeated string sdpMids = 4;
+ * @return The count of sdpMids.
+ */
+ int getSdpMidsCount();
+ /**
+ * repeated string sdpMids = 4;
+ * @param index The index of the element to return.
+ * @return The sdpMids at the given index.
+ */
+ java.lang.String getSdpMids(int index);
+ /**
+ * repeated string sdpMids = 4;
+ * @param index The index of the value to return.
+ * @return The bytes of the sdpMids at the given index.
+ */
+ com.google.protobuf.ByteString
+ getSdpMidsBytes(int index);
- private com.google.protobuf.RepeatedFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.Builder, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ContactOrBuilder> contactsBuilder_;
+ /**
+ *
+ * @required
+ *
+ *
+ * required string uuid = 5;
+ * @return Whether the uuid field is set.
+ */
+ boolean hasUuid();
+ /**
+ *
+ * @required
+ *
+ *
+ * required string uuid = 5;
+ * @return The uuid.
+ */
+ java.lang.String getUuid();
+ /**
+ *
+ * @required
+ *
+ *
+ * required string uuid = 5;
+ * @return The bytes for uuid.
+ */
+ com.google.protobuf.ByteString
+ getUuidBytes();
+ }
+ /**
+ * Protobuf type {@code signalservice.CallMessage}
+ */
+ public static final class CallMessage extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:signalservice.CallMessage)
+ CallMessageOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 29,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ CallMessage.class.getName());
+ }
+ // Use CallMessage.newBuilder() to construct.
+ private CallMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private CallMessage() {
+ type_ = 6;
+ sdps_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ sdpMLineIndexes_ = emptyIntList();
+ sdpMids_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ uuid_ = "";
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_CallMessage_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.session.libsignal.protos.SignalServiceProtos.internal_static_signalservice_CallMessage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.session.libsignal.protos.SignalServiceProtos.CallMessage.class, org.session.libsignal.protos.SignalServiceProtos.CallMessage.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code signalservice.CallMessage.Type}
+ */
+ public enum Type
+ implements com.google.protobuf.ProtocolMessageEnum {
/**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
- */
- public java.util.List getContactsList() {
- if (contactsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(contacts_);
- } else {
- return contactsBuilder_.getMessageList();
- }
- }
- /**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
+ * PRE_OFFER = 6;
*/
- public int getContactsCount() {
- if (contactsBuilder_ == null) {
- return contacts_.size();
- } else {
- return contactsBuilder_.getCount();
- }
- }
+ PRE_OFFER(6),
/**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
+ * OFFER = 1;
*/
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact getContacts(int index) {
- if (contactsBuilder_ == null) {
- return contacts_.get(index);
- } else {
- return contactsBuilder_.getMessage(index);
- }
- }
+ OFFER(1),
/**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
+ * ANSWER = 2;
*/
- public Builder setContacts(
- int index, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact value) {
- if (contactsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureContactsIsMutable();
- contacts_.set(index, value);
- onChanged();
- } else {
- contactsBuilder_.setMessage(index, value);
- }
- return this;
- }
+ ANSWER(2),
/**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
+ * PROVISIONAL_ANSWER = 3;
*/
- public Builder setContacts(
- int index, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.Builder builderForValue) {
- if (contactsBuilder_ == null) {
- ensureContactsIsMutable();
- contacts_.set(index, builderForValue.build());
- onChanged();
- } else {
- contactsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
+ PROVISIONAL_ANSWER(3),
/**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
+ * ICE_CANDIDATES = 4;
*/
- public Builder addContacts(org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact value) {
- if (contactsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureContactsIsMutable();
- contacts_.add(value);
- onChanged();
- } else {
- contactsBuilder_.addMessage(value);
- }
- return this;
- }
+ ICE_CANDIDATES(4),
/**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
+ * END_CALL = 5;
*/
- public Builder addContacts(
- int index, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact value) {
- if (contactsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureContactsIsMutable();
- contacts_.add(index, value);
- onChanged();
- } else {
- contactsBuilder_.addMessage(index, value);
- }
- return this;
+ END_CALL(5),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 29,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ Type.class.getName());
}
/**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
+ * PRE_OFFER = 6;
*/
- public Builder addContacts(
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.Builder builderForValue) {
- if (contactsBuilder_ == null) {
- ensureContactsIsMutable();
- contacts_.add(builderForValue.build());
- onChanged();
- } else {
- contactsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
+ public static final int PRE_OFFER_VALUE = 6;
/**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
+ * OFFER = 1;
*/
- public Builder addContacts(
- int index, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.Builder builderForValue) {
- if (contactsBuilder_ == null) {
- ensureContactsIsMutable();
- contacts_.add(index, builderForValue.build());
- onChanged();
- } else {
- contactsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
+ public static final int OFFER_VALUE = 1;
/**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
+ * ANSWER = 2;
*/
- public Builder addAllContacts(
- java.lang.Iterable extends org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact> values) {
- if (contactsBuilder_ == null) {
- ensureContactsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, contacts_);
- onChanged();
- } else {
- contactsBuilder_.addAllMessages(values);
- }
- return this;
- }
+ public static final int ANSWER_VALUE = 2;
/**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
+ * PROVISIONAL_ANSWER = 3;
*/
- public Builder clearContacts() {
- if (contactsBuilder_ == null) {
- contacts_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000020);
- onChanged();
- } else {
- contactsBuilder_.clear();
- }
- return this;
- }
+ public static final int PROVISIONAL_ANSWER_VALUE = 3;
/**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
+ * ICE_CANDIDATES = 4;
*/
- public Builder removeContacts(int index) {
- if (contactsBuilder_ == null) {
- ensureContactsIsMutable();
- contacts_.remove(index);
- onChanged();
- } else {
- contactsBuilder_.remove(index);
- }
- return this;
- }
+ public static final int ICE_CANDIDATES_VALUE = 4;
/**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
+ * END_CALL = 5;
*/
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.Builder getContactsBuilder(
- int index) {
- return getContactsFieldBuilder().getBuilder(index);
+ public static final int END_CALL_VALUE = 5;
+
+
+ public final int getNumber() {
+ return value;
}
+
/**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
*/
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ContactOrBuilder getContactsOrBuilder(
- int index) {
- if (contactsBuilder_ == null) {
- return contacts_.get(index); } else {
- return contactsBuilder_.getMessageOrBuilder(index);
- }
+ @java.lang.Deprecated
+ public static Type valueOf(int value) {
+ return forNumber(value);
}
+
/**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
*/
- public java.util.List extends org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ContactOrBuilder>
- getContactsOrBuilderList() {
- if (contactsBuilder_ != null) {
- return contactsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(contacts_);
+ public static Type forNumber(int value) {
+ switch (value) {
+ case 6: return PRE_OFFER;
+ case 1: return OFFER;
+ case 2: return ANSWER;
+ case 3: return PROVISIONAL_ANSWER;
+ case 4: return ICE_CANDIDATES;
+ case 5: return END_CALL;
+ default: return null;
}
}
- /**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
- */
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.Builder addContactsBuilder() {
- return getContactsFieldBuilder().addBuilder(
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.getDefaultInstance());
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
}
- /**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
- */
- public org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.Builder addContactsBuilder(
- int index) {
- return getContactsFieldBuilder().addBuilder(
- index, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.getDefaultInstance());
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ Type> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public Type findValueByNumber(int number) {
+ return Type.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ return getDescriptor().getValues().get(ordinal());
}
- /**
- * repeated .signalservice.ConfigurationMessage.Contact contacts = 6;
- */
- public java.util.List
- getContactsBuilderList() {
- return getContactsFieldBuilder().getBuilderList();
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
}
- private com.google.protobuf.RepeatedFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.Builder, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ContactOrBuilder>
- getContactsFieldBuilder() {
- if (contactsBuilder_ == null) {
- contactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.Contact.Builder, org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage.ContactOrBuilder>(
- contacts_,
- ((bitField0_ & 0x00000020) != 0),
- getParentForChildren(),
- isClean());
- contacts_ = null;
- }
- return contactsBuilder_;
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return org.session.libsignal.protos.SignalServiceProtos.CallMessage.getDescriptor().getEnumTypes().get(0);
}
- // @@protoc_insertion_point(builder_scope:signalservice.ConfigurationMessage)
- }
-
- // @@protoc_insertion_point(class_scope:signalservice.ConfigurationMessage)
- private static final org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage();
- }
-
- public static org.session.libsignal.protos.SignalServiceProtos.ConfigurationMessage getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
+ private static final Type[] VALUES = values();
- private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public ConfigurationMessage parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- Builder builder = newBuilder();
- try {
- builder.mergeFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(builder.buildPartial());
- } catch (com.google.protobuf.UninitializedMessageException e) {
- throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(e)
- .setUnfinishedMessage(builder.buildPartial());
+ public static Type valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
}
- return builder.buildPartial();
+ return VALUES[desc.getIndex()];
}
- };
- public static com.google.protobuf.Parser