From 806e48dc89b5986a12a7369b29e4923b4f271cd4 Mon Sep 17 00:00:00 2001 From: Ryan ZHAO Date: Mon, 25 Jan 2021 11:27:05 +1100 Subject: [PATCH] update protobufs --- libsignal/protobuf/FingerprintProtocol.proto | 17 + libsignal/protobuf/LocalStorageProtocol.proto | 114 + libsignal/protobuf/Makefile | 5 + libsignal/protobuf/Provisioning.proto | 27 + libsignal/protobuf/README.md | 29 + libsignal/protobuf/SignalService.proto | 482 + libsignal/protobuf/StickerResources.proto | 25 + libsignal/protobuf/UnidentifiedDelivery.proto | 40 + libsignal/protobuf/WebSocketResources.proto | 40 + libsignal/protobuf/WhisperTextProtocol.proto | 57 + .../fingerprint/FingerprintProtos.java | 48 +- .../libsignal/protocol/SignalProtos.java | 148 +- .../libsignal/state/StorageProtos.java | 318 +- .../libsignal/metadata/SignalProtos.java | 482 +- .../internal/push/ProvisioningProtos.java | 146 +- .../internal/push/SignalServiceProtos.java | 97334 ++++++++-------- .../internal/sticker/StickerProtos.java | 146 +- .../internal/websocket/WebSocketProtos.java | 198 +- 18 files changed, 50246 insertions(+), 49410 deletions(-) create mode 100644 libsignal/protobuf/FingerprintProtocol.proto create mode 100644 libsignal/protobuf/LocalStorageProtocol.proto create mode 100644 libsignal/protobuf/Makefile create mode 100644 libsignal/protobuf/Provisioning.proto create mode 100644 libsignal/protobuf/README.md create mode 100644 libsignal/protobuf/SignalService.proto create mode 100644 libsignal/protobuf/StickerResources.proto create mode 100644 libsignal/protobuf/UnidentifiedDelivery.proto create mode 100644 libsignal/protobuf/WebSocketResources.proto create mode 100644 libsignal/protobuf/WhisperTextProtocol.proto diff --git a/libsignal/protobuf/FingerprintProtocol.proto b/libsignal/protobuf/FingerprintProtocol.proto new file mode 100644 index 0000000000..2a103fd14d --- /dev/null +++ b/libsignal/protobuf/FingerprintProtocol.proto @@ -0,0 +1,17 @@ +syntax = "proto2"; + +package textsecure; + +option java_package = "org.session.libsignal.libsignal.fingerprint"; +option java_outer_classname = "FingerprintProtos"; + +message LogicalFingerprint { + optional bytes content = 1; +// optional bytes identifier = 2; +} + +message CombinedFingerprints { + optional uint32 version = 1; + optional LogicalFingerprint localFingerprint = 2; + optional LogicalFingerprint remoteFingerprint = 3; +} \ No newline at end of file diff --git a/libsignal/protobuf/LocalStorageProtocol.proto b/libsignal/protobuf/LocalStorageProtocol.proto new file mode 100644 index 0000000000..397ed96c0b --- /dev/null +++ b/libsignal/protobuf/LocalStorageProtocol.proto @@ -0,0 +1,114 @@ +syntax = "proto2"; + +package textsecure; + +option java_package = "org.session.libsignal.libsignal.state"; +option java_outer_classname = "StorageProtos"; + +message SessionStructure { + message Chain { + optional bytes senderRatchetKey = 1; + optional bytes senderRatchetKeyPrivate = 2; + + message ChainKey { + optional uint32 index = 1; + optional bytes key = 2; + } + + optional ChainKey chainKey = 3; + + message MessageKey { + optional uint32 index = 1; + optional bytes cipherKey = 2; + optional bytes macKey = 3; + optional bytes iv = 4; + } + + repeated MessageKey messageKeys = 4; + } + + message PendingKeyExchange { + optional uint32 sequence = 1; + optional bytes localBaseKey = 2; + optional bytes localBaseKeyPrivate = 3; + optional bytes localRatchetKey = 4; + optional bytes localRatchetKeyPrivate = 5; + optional bytes localIdentityKey = 7; + optional bytes localIdentityKeyPrivate = 8; + } + + message PendingPreKey { + optional uint32 preKeyId = 1; + optional int32 signedPreKeyId = 3; + optional bytes baseKey = 2; + } + + optional uint32 sessionVersion = 1; + optional bytes localIdentityPublic = 2; + optional bytes remoteIdentityPublic = 3; + + optional bytes rootKey = 4; + optional uint32 previousCounter = 5; + + optional Chain senderChain = 6; + repeated Chain receiverChains = 7; + + optional PendingKeyExchange pendingKeyExchange = 8; + optional PendingPreKey pendingPreKey = 9; + + optional uint32 remoteRegistrationId = 10; + optional uint32 localRegistrationId = 11; + + optional bool needsRefresh = 12; + optional bytes aliceBaseKey = 13; +} + +message RecordStructure { + optional SessionStructure currentSession = 1; + repeated SessionStructure previousSessions = 2; +} + +message PreKeyRecordStructure { + optional uint32 id = 1; + optional bytes publicKey = 2; + optional bytes privateKey = 3; +} + +message SignedPreKeyRecordStructure { + optional uint32 id = 1; + optional bytes publicKey = 2; + optional bytes privateKey = 3; + optional bytes signature = 4; + optional fixed64 timestamp = 5; +} + +message IdentityKeyPairStructure { + optional bytes publicKey = 1; + optional bytes privateKey = 2; +} + +message SenderKeyStateStructure { + message SenderChainKey { + optional uint32 iteration = 1; + optional bytes seed = 2; + } + + message SenderMessageKey { + optional uint32 iteration = 1; + optional bytes seed = 2; + } + + message SenderSigningKey { + optional bytes public = 1; + optional bytes private = 2; + } + + optional uint32 senderKeyId = 1; + optional SenderChainKey senderChainKey = 2; + optional SenderSigningKey senderSigningKey = 3; + repeated SenderMessageKey senderMessageKeys = 4; +} + +message SenderKeyRecordStructure { + repeated SenderKeyStateStructure senderKeyStates = 1; +} \ No newline at end of file diff --git a/libsignal/protobuf/Makefile b/libsignal/protobuf/Makefile new file mode 100644 index 0000000000..9205ba42f2 --- /dev/null +++ b/libsignal/protobuf/Makefile @@ -0,0 +1,5 @@ + +all: + protoc25 --java_out=../src/main/java/ SignalService.proto Provisioning.proto WebSocketResources.proto StickerResources.proto + protoc25 --java_out=../src/main/java/ UnidentifiedDelivery.proto + protoc25 --java_out=../src/main/java/ WhisperTextProtocol.proto LocalStorageProtocol.proto FingerprintProtocol.proto diff --git a/libsignal/protobuf/Provisioning.proto b/libsignal/protobuf/Provisioning.proto new file mode 100644 index 0000000000..a8877722b1 --- /dev/null +++ b/libsignal/protobuf/Provisioning.proto @@ -0,0 +1,27 @@ +/** + * Copyright (C) 2014-2016 Open Whisper Systems + * + * Licensed according to the LICENSE file in this repository. + */ + +syntax = "proto2"; + +package signalservice; + +option java_package = "org.session.libsignal.service.internal.push"; +option java_outer_classname = "ProvisioningProtos"; + +message ProvisionEnvelope { + optional bytes publicKey = 1; + optional bytes body = 2; // Encrypted ProvisionMessage +} + +message ProvisionMessage { + optional bytes identityKeyPublic = 1; + optional bytes identityKeyPrivate = 2; + optional string number = 3; + optional string provisioningCode = 4; + optional string userAgent = 5; + optional bytes profileKey = 6; + optional bool readReceipts = 7; +} diff --git a/libsignal/protobuf/README.md b/libsignal/protobuf/README.md new file mode 100644 index 0000000000..3f02ab7c09 --- /dev/null +++ b/libsignal/protobuf/README.md @@ -0,0 +1,29 @@ +# Generating Protobuf Files + +Android requires protobuf `2.5.0` to auto generate the files. +To generate the files just run `make`. + +**Note: Protobuf `2.5.0` will have to be aliased to `protoc25`.** + +## Mac Installation Instructions + +Protobuf can be installed using brew but this will only get versions > 3. +To install protobuf `2.5.0` follow these steps: + +```sh +wget https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.bz2 +tar xvf protobuf-2.5.0.tar.bz2 +cd protobuf-2.5.0 +./configure CC=clang CXX=clang++ CXXFLAGS='-std=c++11 -stdlib=libc++ -O3 -g' LDFLAGS='-stdlib=libc++' LIBS="-lc++ -lc++abi" --disable-shared --prefix='' +make -j4 +make install +``` + +This will compile and build the binary at `PATH TO A DIRECTORY` which you specified in the `./configure` command. +Next you need to move it to your local bin: + +``` +cd /bin +chmod +x ./protoc +mv ./protoc /usr/local/bin/protoc25 +``` diff --git a/libsignal/protobuf/SignalService.proto b/libsignal/protobuf/SignalService.proto new file mode 100644 index 0000000000..777cf834b8 --- /dev/null +++ b/libsignal/protobuf/SignalService.proto @@ -0,0 +1,482 @@ +/** + * Copyright (C) 2014-2016 Open Whisper Systems + * + * Licensed according to the LICENSE file in this repository. + */ + +syntax = "proto2"; + +package signalservice; + +option java_package = "org.session.libsignal.service.internal.push"; +option java_outer_classname = "SignalServiceProtos"; + +message Envelope { + enum Type { + UNKNOWN = 0; + CIPHERTEXT = 1; + KEY_EXCHANGE = 2; + PREKEY_BUNDLE = 3; + RECEIPT = 5; + UNIDENTIFIED_SENDER = 6; + CLOSED_GROUP_CIPHERTEXT = 7; // Loki + FALLBACK_MESSAGE = 101; // Loki - Encrypted using the fallback session cipher. Contains a pre key bundle if it's a session request. + } + + optional Type type = 1; + optional string source = 2; + optional uint32 sourceDevice = 7; + optional string relay = 3; + optional uint64 timestamp = 5; + optional bytes legacyMessage = 6; // Contains an encrypted DataMessage + optional bytes content = 8; // Contains an encrypted Content + optional string serverGuid = 9; + optional uint64 serverTimestamp = 10; +} + +message Content { + optional DataMessage dataMessage = 1; + optional SyncMessage syncMessage = 2; + optional CallMessage callMessage = 3; + optional NullMessage nullMessage = 4; + optional ReceiptMessage receiptMessage = 5; + optional TypingMessage typingMessage = 6; + optional PreKeyBundleMessage preKeyBundleMessage = 101; // Loki + optional DeviceLinkMessage deviceLinkMessage = 103; // Loki +} + +message DeviceLinkMessage { + optional string primaryPublicKey = 1; + optional string secondaryPublicKey = 2; + optional bytes requestSignature = 3; + optional bytes authorizationSignature = 4; +} + +message PreKeyBundleMessage { + optional bytes identityKey = 1; + optional uint32 deviceId = 2; + optional uint32 preKeyId = 3; + optional uint32 signedKeyId = 4; + optional bytes preKey = 5; + optional bytes signedKey = 6; + optional bytes signature = 7; +} + +message CallMessage { + message Offer { + optional uint64 id = 1; + optional string description = 2; + } + + message Answer { + optional uint64 id = 1; + optional string description = 2; + } + + message IceUpdate { + optional uint64 id = 1; + optional string sdpMid = 2; + optional uint32 sdpMLineIndex = 3; + optional string sdp = 4; + } + + message Busy { + optional uint64 id = 1; + } + + message Hangup { + optional uint64 id = 1; + } + + optional Offer offer = 1; + optional Answer answer = 2; + repeated IceUpdate iceUpdate = 3; + optional Hangup hangup = 4; + optional Busy busy = 5; +} + +message ClosedGroupCiphertextMessageWrapper { + // @required + optional bytes ciphertext = 1; + // @required + optional bytes ephemeralPublicKey = 2; +} + +message DataMessage { + enum Flags { + END_SESSION = 1; + EXPIRATION_TIMER_UPDATE = 2; + PROFILE_KEY_UPDATE = 4; + DEVICE_UNLINKING_REQUEST = 128; + } + + message Quote { + message QuotedAttachment { + optional string contentType = 1; + optional string fileName = 2; + optional AttachmentPointer thumbnail = 3; + } + + optional uint64 id = 1; + optional string author = 2; + optional string text = 3; + repeated QuotedAttachment attachments = 4; + } + + message Contact { + message Name { + optional string givenName = 1; + optional string familyName = 2; + optional string prefix = 3; + optional string suffix = 4; + optional string middleName = 5; + optional string displayName = 6; + } + + message Phone { + enum Type { + HOME = 1; + MOBILE = 2; + WORK = 3; + CUSTOM = 4; + } + + optional string value = 1; + optional Type type = 2; + optional string label = 3; + } + + message Email { + enum Type { + HOME = 1; + MOBILE = 2; + WORK = 3; + CUSTOM = 4; + } + + optional string value = 1; + optional Type type = 2; + optional string label = 3; + } + + message PostalAddress { + enum Type { + HOME = 1; + WORK = 2; + CUSTOM = 3; + } + + optional Type type = 1; + optional string label = 2; + optional string street = 3; + optional string pobox = 4; + optional string neighborhood = 5; + optional string city = 6; + optional string region = 7; + optional string postcode = 8; + optional string country = 9; + } + + message Avatar { + optional AttachmentPointer avatar = 1; + optional bool isProfile = 2; + } + + optional Name name = 1; + repeated Phone number = 3; + repeated Email email = 4; + repeated PostalAddress address = 5; + optional Avatar avatar = 6; + optional string organization = 7; + } + + message Preview { + optional string url = 1; + optional string title = 2; + optional AttachmentPointer image = 3; + } + + message Sticker { + optional bytes packId = 1; + optional bytes packKey = 2; + optional uint32 stickerId = 3; + optional AttachmentPointer data = 4; + } + + optional string body = 1; + repeated AttachmentPointer attachments = 2; + optional GroupContext group = 3; + optional uint32 flags = 4; + optional uint32 expireTimer = 5; + optional bytes profileKey = 6; + optional uint64 timestamp = 7; + optional Quote quote = 8; + repeated Contact contact = 9; + repeated Preview preview = 10; + optional Sticker sticker = 11; + optional LokiUserProfile profile = 101; // Loki - The profile of the current user + optional ClosedGroupUpdate closedGroupUpdate = 103; // Loki + optional ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; +} + +message LokiUserProfile { + optional string displayName = 1; + optional string profilePictureURL = 2; +} + +message ClosedGroupUpdateV2 { + + enum Type { + NEW = 1; // publicKey, name, encryptionKeyPair, members, admins + UPDATE = 2; // name, members + ENCRYPTION_KEY_PAIR = 3; // wrappers + } + + message KeyPair { + // @required + required bytes publicKey = 1; + // @required + required bytes privateKey = 2; + } + + message KeyPairWrapper { + // @required + required bytes publicKey = 1; // The public key of the user the key pair is meant for + // @required + required bytes encryptedKeyPair = 2; // The encrypted key pair + } + + // @required + required Type type = 1; + optional bytes publicKey = 2; + optional string name = 3; + optional KeyPair encryptionKeyPair = 4; + repeated bytes members = 5; + repeated bytes admins = 6; + repeated KeyPairWrapper wrappers = 7; +} + +message ClosedGroupUpdate { + + enum Type { + NEW = 0; // groupPublicKey, name, groupPrivateKey, senderKeys, members, admins + INFO = 1; // groupPublicKey, name, senderKeys, members, admins + SENDER_KEY_REQUEST = 2; // groupPublicKey + SENDER_KEY = 3; // groupPublicKey, senderKeys + } + + message SenderKey { + // @required + optional bytes chainKey = 1; + // @required + optional uint32 keyIndex = 2; + // @required + optional bytes publicKey = 3; + } + + optional string name = 1; + // @required + optional bytes groupPublicKey = 2; + optional bytes groupPrivateKey = 3; + repeated SenderKey senderKeys = 4; + repeated bytes members = 5; + repeated bytes admins = 6; + // @required + optional Type type = 7; +} + +message NullMessage { + optional bytes padding = 1; +} + +message ReceiptMessage { + enum Type { + DELIVERY = 0; + READ = 1; + } + + optional Type type = 1; + repeated uint64 timestamp = 2; +} + +message TypingMessage { + enum Action { + STARTED = 0; + STOPPED = 1; + } + + optional uint64 timestamp = 1; + optional Action action = 2; + optional bytes groupId = 3; +} + +message Verified { + enum State { + DEFAULT = 0; + VERIFIED = 1; + UNVERIFIED = 2; + } + + optional string destination = 1; + optional bytes identityKey = 2; + optional State state = 3; + optional bytes nullMessage = 4; +} + +message SyncMessage { + message Sent { + message UnidentifiedDeliveryStatus { + optional string destination = 1; + optional bool unidentified = 2; + } + + optional string destination = 1; + optional uint64 timestamp = 2; + optional DataMessage message = 3; + optional uint64 expirationStartTimestamp = 4; + repeated UnidentifiedDeliveryStatus unidentifiedStatus = 5; + } + + message Contacts { + optional AttachmentPointer blob = 1; + optional bool complete = 2 [default = false]; + optional bytes data = 101; + } + + message Groups { + optional AttachmentPointer blob = 1; + optional bytes data = 101; + } + + message Blocked { + repeated string numbers = 1; + repeated bytes groupIds = 2; + } + + message Request { + enum Type { + UNKNOWN = 0; + CONTACTS = 1; + GROUPS = 2; + BLOCKED = 3; + CONFIGURATION = 4; + } + + optional Type type = 1; + } + + message Read { + optional string sender = 1; + optional uint64 timestamp = 2; + } + + message Configuration { + optional bool readReceipts = 1; + optional bool unidentifiedDeliveryIndicators = 2; + optional bool typingIndicators = 3; + optional bool linkPreviews = 4; + } + + message StickerPackOperation { + enum Type { + INSTALL = 0; + REMOVE = 1; + } + + optional bytes packId = 1; + optional bytes packKey = 2; + optional Type type = 3; + } + + message OpenGroupDetails { + optional string url = 1; + optional uint32 channelID = 2; + } + + optional Sent sent = 1; + optional Contacts contacts = 2; + optional Groups groups = 3; + optional Request request = 4; + repeated Read read = 5; + optional Blocked blocked = 6; + optional Verified verified = 7; + optional Configuration configuration = 9; + optional bytes padding = 8; + repeated StickerPackOperation stickerPackOperation = 10; + repeated OpenGroupDetails openGroups = 100; +} + +message AttachmentPointer { + enum Flags { + VOICE_MESSAGE = 1; + } + + optional fixed64 id = 1; + optional string contentType = 2; + optional bytes key = 3; + optional uint32 size = 4; + optional bytes thumbnail = 5; + optional bytes digest = 6; + optional string fileName = 7; + optional uint32 flags = 8; + optional uint32 width = 9; + optional uint32 height = 10; + optional string caption = 11; + optional string url = 101; +} + +message GroupContext { + enum Type { + UNKNOWN = 0; + UPDATE = 1; + DELIVER = 2; + QUIT = 3; + REQUEST_INFO = 4; + } + optional bytes id = 1; + optional Type type = 2; + optional string name = 3; + repeated string members = 4; + optional AttachmentPointer avatar = 5; + repeated string admins = 6; + + // Loki - These fields are only used internally for the Android code base. + // This is so that we can differentiate adding/kicking. + // DO NOT USE WHEN SENDING MESSAGES. + repeated string newMembers = 998; + repeated string removedMembers = 999; +} + +message ContactDetails { + message Avatar { + optional string contentType = 1; + optional uint32 length = 2; + } + + optional string number = 1; + optional string name = 2; + optional Avatar avatar = 3; + optional string color = 4; + optional Verified verified = 5; + optional bytes profileKey = 6; + optional bool blocked = 7; + optional uint32 expireTimer = 8; + optional string nickname = 101; // Loki +} + +message GroupDetails { + message Avatar { + optional string contentType = 1; + optional uint32 length = 2; + } + + optional bytes id = 1; + optional string name = 2; + repeated string members = 3; + optional Avatar avatar = 4; + optional bool active = 5 [default = true]; + optional uint32 expireTimer = 6; + optional string color = 7; + optional bool blocked = 8; + repeated string admins = 9; +} diff --git a/libsignal/protobuf/StickerResources.proto b/libsignal/protobuf/StickerResources.proto new file mode 100644 index 0000000000..30feb25ee6 --- /dev/null +++ b/libsignal/protobuf/StickerResources.proto @@ -0,0 +1,25 @@ +/** + * Copyright (C) 2019 Open Whisper Systems + * + * Licensed according to the LICENSE file in this repository. + */ + +syntax = "proto2"; + +package signalservice; + +option java_package = "org.session.libsignal.service.internal.sticker"; +option java_outer_classname = "StickerProtos"; + +message Pack { + message Sticker { + optional uint32 id = 1; + optional string emoji = 2; + } + + optional string title = 1; + optional string author = 2; + optional Sticker cover = 3; + repeated Sticker stickers = 4; +} + diff --git a/libsignal/protobuf/UnidentifiedDelivery.proto b/libsignal/protobuf/UnidentifiedDelivery.proto new file mode 100644 index 0000000000..2cb548b9e3 --- /dev/null +++ b/libsignal/protobuf/UnidentifiedDelivery.proto @@ -0,0 +1,40 @@ +syntax = "proto2"; + +package signal; + +option java_package = "org.session.libsignal.metadata"; +option java_outer_classname = "SignalProtos"; + +message ServerCertificate { + message Certificate { + optional uint32 id = 1; + optional bytes key = 2; + } + + optional bytes certificate = 1; + optional bytes signature = 2; +} + +message SenderCertificate { + optional string sender = 1; + optional uint32 senderDevice = 2; +} + +message UnidentifiedSenderMessage { + + message Message { + enum Type { + PREKEY_MESSAGE = 1; + MESSAGE = 2; + FALLBACK_MESSAGE = 3; + } + + optional Type type = 1; + optional SenderCertificate senderCertificate = 2; + optional bytes content = 3; + } + + optional bytes ephemeralPublic = 1; + optional bytes encryptedStatic = 2; + optional bytes encryptedMessage = 3; +} \ No newline at end of file diff --git a/libsignal/protobuf/WebSocketResources.proto b/libsignal/protobuf/WebSocketResources.proto new file mode 100644 index 0000000000..c6228fb3eb --- /dev/null +++ b/libsignal/protobuf/WebSocketResources.proto @@ -0,0 +1,40 @@ +/** + * Copyright (C) 2014-2016 Open Whisper Systems + * + * Licensed according to the LICENSE file in this repository. + */ + +syntax = "proto2"; + +package signalservice; + +option java_package = "org.session.libsignal.service.internal.websocket"; +option java_outer_classname = "WebSocketProtos"; + +message WebSocketRequestMessage { + optional string verb = 1; + optional string path = 2; + optional bytes body = 3; + repeated string headers = 5; + optional uint64 id = 4; +} + +message WebSocketResponseMessage { + optional uint64 id = 1; + optional uint32 status = 2; + optional string message = 3; + repeated string headers = 5; + optional bytes body = 4; +} + +message WebSocketMessage { + enum Type { + UNKNOWN = 0; + REQUEST = 1; + RESPONSE = 2; + } + + optional Type type = 1; + optional WebSocketRequestMessage request = 2; + optional WebSocketResponseMessage response = 3; +} \ No newline at end of file diff --git a/libsignal/protobuf/WhisperTextProtocol.proto b/libsignal/protobuf/WhisperTextProtocol.proto new file mode 100644 index 0000000000..a24250f1b6 --- /dev/null +++ b/libsignal/protobuf/WhisperTextProtocol.proto @@ -0,0 +1,57 @@ +syntax = "proto2"; + +package textsecure; + +option java_package = "org.session.libsignal.libsignal.protocol"; +option java_outer_classname = "SignalProtos"; + +message SignalMessage { + optional bytes ratchetKey = 1; + optional uint32 counter = 2; + optional uint32 previousCounter = 3; + optional bytes ciphertext = 4; +} + +message PreKeySignalMessage { + optional uint32 registrationId = 5; + optional uint32 preKeyId = 1; + optional uint32 signedPreKeyId = 6; + optional bytes baseKey = 2; + optional bytes identityKey = 3; + optional bytes message = 4; // SignalMessage +} + +message KeyExchangeMessage { + optional uint32 id = 1; + optional bytes baseKey = 2; + optional bytes ratchetKey = 3; + optional bytes identityKey = 4; + optional bytes baseKeySignature = 5; +} + +message SenderKeyMessage { + optional uint32 id = 1; + optional uint32 iteration = 2; + optional bytes ciphertext = 3; +} + +message SenderKeyDistributionMessage { + optional uint32 id = 1; + optional uint32 iteration = 2; + optional bytes chainKey = 3; + optional bytes signingKey = 4; +} + +message DeviceConsistencyCodeMessage { + optional uint32 generation = 1; + optional bytes signature = 2; +} + +message ClosedGroupCiphertextMessage { + // @required + optional bytes ciphertext = 1; + // @required + optional bytes senderPublicKey = 2; + // @required + optional uint32 keyIndex = 3; +} diff --git a/libsignal/src/main/java/org/session/libsignal/libsignal/fingerprint/FingerprintProtos.java b/libsignal/src/main/java/org/session/libsignal/libsignal/fingerprint/FingerprintProtos.java index 87f49738e4..f2bae64837 100644 --- a/libsignal/src/main/java/org/session/libsignal/libsignal/fingerprint/FingerprintProtos.java +++ b/libsignal/src/main/java/org/session/libsignal/libsignal/fingerprint/FingerprintProtos.java @@ -52,7 +52,7 @@ public final class FingerprintProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -102,7 +102,7 @@ public final class FingerprintProtos { return org.session.libsignal.libsignal.fingerprint.FingerprintProtos.internal_static_textsecure_LogicalFingerprint_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.fingerprint.FingerprintProtos.internal_static_textsecure_LogicalFingerprint_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -119,7 +119,7 @@ public final class FingerprintProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -186,8 +186,8 @@ public final class FingerprintProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -252,9 +252,9 @@ public final class FingerprintProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -269,7 +269,7 @@ public final class FingerprintProtos { return org.session.libsignal.libsignal.fingerprint.FingerprintProtos.internal_static_textsecure_LogicalFingerprint_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.fingerprint.FingerprintProtos.internal_static_textsecure_LogicalFingerprint_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -282,7 +282,7 @@ public final class FingerprintProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -503,7 +503,7 @@ public final class FingerprintProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -579,7 +579,7 @@ public final class FingerprintProtos { return org.session.libsignal.libsignal.fingerprint.FingerprintProtos.internal_static_textsecure_CombinedFingerprints_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.fingerprint.FingerprintProtos.internal_static_textsecure_CombinedFingerprints_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -596,7 +596,7 @@ public final class FingerprintProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -715,8 +715,8 @@ public final class FingerprintProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -781,9 +781,9 @@ public final class FingerprintProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -798,7 +798,7 @@ public final class FingerprintProtos { return org.session.libsignal.libsignal.fingerprint.FingerprintProtos.internal_static_textsecure_CombinedFingerprints_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.fingerprint.FingerprintProtos.internal_static_textsecure_CombinedFingerprints_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -811,7 +811,7 @@ public final class FingerprintProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -1237,15 +1237,15 @@ public final class FingerprintProtos { private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { - String[] descriptorData = { + java.lang.String[] descriptorData = { "\n\031FingerprintProtocol.proto\022\ntextsecure\"" + "%\n\022LogicalFingerprint\022\017\n\007content\030\001 \001(\014\"\234" + "\001\n\024CombinedFingerprints\022\017\n\007version\030\001 \001(\r" + "\0228\n\020localFingerprint\030\002 \001(\0132\036.textsecure." + "LogicalFingerprint\0229\n\021remoteFingerprint\030" + - "\003 \001(\0132\036.textsecure.LogicalFingerprintB=\n" + - "(org.session.libsignal.libsignal.fingerprin" + - "tB\021FingerprintProtos" + "\003 \001(\0132\036.textsecure.LogicalFingerprintB@\n" + + "+org.session.libsignal.libsignal.fingerp" + + "rintB\021FingerprintProtos" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -1257,13 +1257,13 @@ public final class FingerprintProtos { internal_static_textsecure_LogicalFingerprint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_LogicalFingerprint_descriptor, - new String[] { "Content", }); + new java.lang.String[] { "Content", }); internal_static_textsecure_CombinedFingerprints_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_textsecure_CombinedFingerprints_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_CombinedFingerprints_descriptor, - new String[] { "Version", "LocalFingerprint", "RemoteFingerprint", }); + new java.lang.String[] { "Version", "LocalFingerprint", "RemoteFingerprint", }); return null; } }; diff --git a/libsignal/src/main/java/org/session/libsignal/libsignal/protocol/SignalProtos.java b/libsignal/src/main/java/org/session/libsignal/libsignal/protocol/SignalProtos.java index 0341f058c4..cc5ce7d151 100644 --- a/libsignal/src/main/java/org/session/libsignal/libsignal/protocol/SignalProtos.java +++ b/libsignal/src/main/java/org/session/libsignal/libsignal/protocol/SignalProtos.java @@ -74,7 +74,7 @@ public final class SignalProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -139,11 +139,11 @@ public final class SignalProtos { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_SignalMessage_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_SignalMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - org.session.libsignal.libsignal.protocol.SignalProtos.SignalMessage.class, org.session.libsignal.libsignal.protocol.SignalProtos.SignalMessage.Builder.class); + org.session.libsignal.libsignal.protocol.SignalProtos.SignalMessage.class, org.session.libsignal.libsignal.protocol.SignalProtos.SignalMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = @@ -156,7 +156,7 @@ public final class SignalProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -287,8 +287,8 @@ public final class SignalProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -353,9 +353,9 @@ public final class SignalProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -370,7 +370,7 @@ public final class SignalProtos { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_SignalMessage_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_SignalMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -383,7 +383,7 @@ public final class SignalProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -747,7 +747,7 @@ public final class SignalProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -822,7 +822,7 @@ public final class SignalProtos { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_PreKeySignalMessage_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_PreKeySignalMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -839,7 +839,7 @@ public final class SignalProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -1026,8 +1026,8 @@ public final class SignalProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -1092,9 +1092,9 @@ public final class SignalProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -1109,7 +1109,7 @@ public final class SignalProtos { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_PreKeySignalMessage_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_PreKeySignalMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -1122,7 +1122,7 @@ public final class SignalProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -1571,7 +1571,7 @@ public final class SignalProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -1641,7 +1641,7 @@ public final class SignalProtos { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_KeyExchangeMessage_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_KeyExchangeMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -1658,7 +1658,7 @@ public final class SignalProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -1813,8 +1813,8 @@ public final class SignalProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -1879,9 +1879,9 @@ public final class SignalProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -1896,7 +1896,7 @@ public final class SignalProtos { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_KeyExchangeMessage_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_KeyExchangeMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -1909,7 +1909,7 @@ public final class SignalProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -2283,7 +2283,7 @@ public final class SignalProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -2343,7 +2343,7 @@ public final class SignalProtos { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyMessage_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -2360,7 +2360,7 @@ public final class SignalProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -2467,8 +2467,8 @@ public final class SignalProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -2533,9 +2533,9 @@ public final class SignalProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -2550,7 +2550,7 @@ public final class SignalProtos { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyMessage_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -2563,7 +2563,7 @@ public final class SignalProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -2854,7 +2854,7 @@ public final class SignalProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -2919,7 +2919,7 @@ public final class SignalProtos { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyDistributionMessage_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyDistributionMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -2936,7 +2936,7 @@ public final class SignalProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -3067,8 +3067,8 @@ public final class SignalProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -3133,9 +3133,9 @@ public final class SignalProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -3150,7 +3150,7 @@ public final class SignalProtos { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyDistributionMessage_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyDistributionMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -3163,7 +3163,7 @@ public final class SignalProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -3479,7 +3479,7 @@ public final class SignalProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -3534,7 +3534,7 @@ public final class SignalProtos { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_DeviceConsistencyCodeMessage_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_DeviceConsistencyCodeMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -3551,7 +3551,7 @@ public final class SignalProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -3634,8 +3634,8 @@ public final class SignalProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -3700,9 +3700,9 @@ public final class SignalProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -3717,7 +3717,7 @@ public final class SignalProtos { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_DeviceConsistencyCodeMessage_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_DeviceConsistencyCodeMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -3730,7 +3730,7 @@ public final class SignalProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -3993,7 +3993,7 @@ public final class SignalProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -4053,7 +4053,7 @@ public final class SignalProtos { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_ClosedGroupCiphertextMessage_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_ClosedGroupCiphertextMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -4070,7 +4070,7 @@ public final class SignalProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -4201,8 +4201,8 @@ public final class SignalProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -4267,9 +4267,9 @@ public final class SignalProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -4284,7 +4284,7 @@ public final class SignalProtos { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_ClosedGroupCiphertextMessage_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.protocol.SignalProtos.internal_static_textsecure_ClosedGroupCiphertextMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -4297,7 +4297,7 @@ public final class SignalProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -4616,7 +4616,7 @@ public final class SignalProtos { private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { - String[] descriptorData = { + java.lang.String[] descriptorData = { "\n\031WhisperTextProtocol.proto\022\ntextsecure\"" + "a\n\rSignalMessage\022\022\n\nratchetKey\030\001 \001(\014\022\017\n\007" + "counter\030\002 \001(\r\022\027\n\017previousCounter\030\003 \001(\r\022\022" + @@ -4635,8 +4635,8 @@ public final class SignalProtos { "ssage\022\022\n\ngeneration\030\001 \001(\r\022\021\n\tsignature\030\002" + " \001(\014\"]\n\034ClosedGroupCiphertextMessage\022\022\n\n" + "ciphertext\030\001 \001(\014\022\027\n\017senderPublicKey\030\002 \001(" + - "\014\022\020\n\010keyIndex\030\003 \001(\rB5\n%org.whispersystem" + - "s.libsignal.protocolB\014SignalProtos" + "\014\022\020\n\010keyIndex\030\003 \001(\rB8\n(org.session.libsi" + + "gnal.libsignal.protocolB\014SignalProtos" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -4648,43 +4648,43 @@ public final class SignalProtos { internal_static_textsecure_SignalMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_SignalMessage_descriptor, - new String[] { "RatchetKey", "Counter", "PreviousCounter", "Ciphertext", }); + new java.lang.String[] { "RatchetKey", "Counter", "PreviousCounter", "Ciphertext", }); internal_static_textsecure_PreKeySignalMessage_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_textsecure_PreKeySignalMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_PreKeySignalMessage_descriptor, - new String[] { "RegistrationId", "PreKeyId", "SignedPreKeyId", "BaseKey", "IdentityKey", "Message", }); + new java.lang.String[] { "RegistrationId", "PreKeyId", "SignedPreKeyId", "BaseKey", "IdentityKey", "Message", }); internal_static_textsecure_KeyExchangeMessage_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_textsecure_KeyExchangeMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_KeyExchangeMessage_descriptor, - new String[] { "Id", "BaseKey", "RatchetKey", "IdentityKey", "BaseKeySignature", }); + new java.lang.String[] { "Id", "BaseKey", "RatchetKey", "IdentityKey", "BaseKeySignature", }); internal_static_textsecure_SenderKeyMessage_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_textsecure_SenderKeyMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_SenderKeyMessage_descriptor, - new String[] { "Id", "Iteration", "Ciphertext", }); + new java.lang.String[] { "Id", "Iteration", "Ciphertext", }); internal_static_textsecure_SenderKeyDistributionMessage_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_textsecure_SenderKeyDistributionMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_SenderKeyDistributionMessage_descriptor, - new String[] { "Id", "Iteration", "ChainKey", "SigningKey", }); + new java.lang.String[] { "Id", "Iteration", "ChainKey", "SigningKey", }); internal_static_textsecure_DeviceConsistencyCodeMessage_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_textsecure_DeviceConsistencyCodeMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_DeviceConsistencyCodeMessage_descriptor, - new String[] { "Generation", "Signature", }); + new java.lang.String[] { "Generation", "Signature", }); internal_static_textsecure_ClosedGroupCiphertextMessage_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_textsecure_ClosedGroupCiphertextMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_ClosedGroupCiphertextMessage_descriptor, - new String[] { "Ciphertext", "SenderPublicKey", "KeyIndex", }); + new java.lang.String[] { "Ciphertext", "SenderPublicKey", "KeyIndex", }); return null; } }; diff --git a/libsignal/src/main/java/org/session/libsignal/libsignal/state/StorageProtos.java b/libsignal/src/main/java/org/session/libsignal/libsignal/state/StorageProtos.java index 1c4b6605c1..407ceb4407 100644 --- a/libsignal/src/main/java/org/session/libsignal/libsignal/state/StorageProtos.java +++ b/libsignal/src/main/java/org/session/libsignal/libsignal/state/StorageProtos.java @@ -191,7 +191,7 @@ public final class StorageProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -331,7 +331,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -348,7 +348,7 @@ public final class StorageProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -438,7 +438,7 @@ public final class StorageProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -517,7 +517,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_Chain_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_Chain_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -534,7 +534,7 @@ public final class StorageProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -585,7 +585,7 @@ public final class StorageProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -640,7 +640,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_Chain_ChainKey_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_Chain_ChainKey_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -657,7 +657,7 @@ public final class StorageProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -740,8 +740,8 @@ public final class StorageProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -806,9 +806,9 @@ public final class StorageProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -823,7 +823,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_Chain_ChainKey_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_Chain_ChainKey_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -836,7 +836,7 @@ public final class StorageProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -1085,7 +1085,7 @@ public final class StorageProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -1150,7 +1150,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_Chain_MessageKey_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_Chain_MessageKey_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -1167,7 +1167,7 @@ public final class StorageProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -1298,8 +1298,8 @@ public final class StorageProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -1364,9 +1364,9 @@ public final class StorageProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -1381,7 +1381,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_Chain_MessageKey_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_Chain_MessageKey_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -1394,7 +1394,7 @@ public final class StorageProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -1819,8 +1819,8 @@ public final class StorageProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -1885,9 +1885,9 @@ public final class StorageProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -1902,7 +1902,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_Chain_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_Chain_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -1915,7 +1915,7 @@ public final class StorageProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -2406,7 +2406,7 @@ public final class StorageProtos { * repeated .textsecure.SessionStructure.Chain.MessageKey messageKeys = 4; */ public Builder addAllMessageKeys( - Iterable values) { + java.lang.Iterable values) { if (messageKeysBuilder_ == null) { ensureMessageKeysIsMutable(); super.addAll(values, messageKeys_); @@ -2614,7 +2614,7 @@ public final class StorageProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -2694,7 +2694,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_PendingKeyExchange_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_PendingKeyExchange_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -2711,7 +2711,7 @@ public final class StorageProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -2914,8 +2914,8 @@ public final class StorageProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -2980,9 +2980,9 @@ public final class StorageProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -2997,7 +2997,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_PendingKeyExchange_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_PendingKeyExchange_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -3010,7 +3010,7 @@ public final class StorageProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -3474,7 +3474,7 @@ public final class StorageProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -3534,7 +3534,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_PendingPreKey_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_PendingPreKey_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -3551,7 +3551,7 @@ public final class StorageProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -3658,8 +3658,8 @@ public final class StorageProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -3724,9 +3724,9 @@ public final class StorageProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -3741,7 +3741,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_PendingPreKey_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_PendingPreKey_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -3754,7 +3754,7 @@ public final class StorageProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -4359,8 +4359,8 @@ public final class StorageProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -4425,9 +4425,9 @@ public final class StorageProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -4442,7 +4442,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SessionStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -4455,7 +4455,7 @@ public final class StorageProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -5147,7 +5147,7 @@ public final class StorageProtos { * repeated .textsecure.SessionStructure.Chain receiverChains = 7; */ public Builder addAllReceiverChains( - Iterable values) { + java.lang.Iterable values) { if (receiverChainsBuilder_ == null) { ensureReceiverChainsIsMutable(); super.addAll(values, receiverChains_); @@ -5693,7 +5693,7 @@ public final class StorageProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -5762,7 +5762,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_RecordStructure_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_RecordStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -5779,7 +5779,7 @@ public final class StorageProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -5888,8 +5888,8 @@ public final class StorageProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -5954,9 +5954,9 @@ public final class StorageProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -5971,7 +5971,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_RecordStructure_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_RecordStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -5984,7 +5984,7 @@ public final class StorageProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -6385,7 +6385,7 @@ public final class StorageProtos { * repeated .textsecure.SessionStructure previousSessions = 2; */ public Builder addAllPreviousSessions( - Iterable values) { + java.lang.Iterable values) { if (previousSessionsBuilder_ == null) { ensurePreviousSessionsIsMutable(); super.addAll(values, previousSessions_); @@ -6553,7 +6553,7 @@ public final class StorageProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -6613,7 +6613,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_PreKeyRecordStructure_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_PreKeyRecordStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -6630,7 +6630,7 @@ public final class StorageProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -6737,8 +6737,8 @@ public final class StorageProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -6803,9 +6803,9 @@ public final class StorageProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -6820,7 +6820,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_PreKeyRecordStructure_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_PreKeyRecordStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -6833,7 +6833,7 @@ public final class StorageProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -7137,7 +7137,7 @@ public final class StorageProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -7207,7 +7207,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SignedPreKeyRecordStructure_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SignedPreKeyRecordStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -7224,7 +7224,7 @@ public final class StorageProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -7379,8 +7379,8 @@ public final class StorageProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -7445,9 +7445,9 @@ public final class StorageProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -7462,7 +7462,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SignedPreKeyRecordStructure_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SignedPreKeyRecordStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -7475,7 +7475,7 @@ public final class StorageProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -7836,7 +7836,7 @@ public final class StorageProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -7891,7 +7891,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_IdentityKeyPairStructure_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_IdentityKeyPairStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -7908,7 +7908,7 @@ public final class StorageProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -7991,8 +7991,8 @@ public final class StorageProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -8057,9 +8057,9 @@ public final class StorageProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -8074,7 +8074,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_IdentityKeyPairStructure_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_IdentityKeyPairStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -8087,7 +8087,7 @@ public final class StorageProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -8362,7 +8362,7 @@ public final class StorageProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -8449,7 +8449,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyStateStructure_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyStateStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -8466,7 +8466,7 @@ public final class StorageProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -8517,7 +8517,7 @@ public final class StorageProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -8572,7 +8572,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyStateStructure_SenderChainKey_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyStateStructure_SenderChainKey_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -8589,7 +8589,7 @@ public final class StorageProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -8672,8 +8672,8 @@ public final class StorageProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -8738,9 +8738,9 @@ public final class StorageProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -8755,7 +8755,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyStateStructure_SenderChainKey_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyStateStructure_SenderChainKey_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -8768,7 +8768,7 @@ public final class StorageProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -8997,7 +8997,7 @@ public final class StorageProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -9052,7 +9052,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyStateStructure_SenderMessageKey_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyStateStructure_SenderMessageKey_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -9069,7 +9069,7 @@ public final class StorageProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -9152,8 +9152,8 @@ public final class StorageProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -9218,9 +9218,9 @@ public final class StorageProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -9235,7 +9235,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyStateStructure_SenderMessageKey_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyStateStructure_SenderMessageKey_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -9248,7 +9248,7 @@ public final class StorageProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -9477,7 +9477,7 @@ public final class StorageProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -9532,7 +9532,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyStateStructure_SenderSigningKey_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyStateStructure_SenderSigningKey_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -9549,7 +9549,7 @@ public final class StorageProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -9632,8 +9632,8 @@ public final class StorageProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -9698,9 +9698,9 @@ public final class StorageProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -9715,7 +9715,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyStateStructure_SenderSigningKey_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyStateStructure_SenderSigningKey_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -9728,7 +9728,7 @@ public final class StorageProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -10072,8 +10072,8 @@ public final class StorageProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -10138,9 +10138,9 @@ public final class StorageProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -10155,7 +10155,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyStateStructure_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyStateStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -10168,7 +10168,7 @@ public final class StorageProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -10746,7 +10746,7 @@ public final class StorageProtos { * repeated .textsecure.SenderKeyStateStructure.SenderMessageKey senderMessageKeys = 4; */ public Builder addAllSenderMessageKeys( - Iterable values) { + java.lang.Iterable values) { if (senderMessageKeysBuilder_ == null) { ensureSenderMessageKeysIsMutable(); super.addAll(values, senderMessageKeys_); @@ -10909,7 +10909,7 @@ public final class StorageProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -10965,7 +10965,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyRecordStructure_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyRecordStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -10982,7 +10982,7 @@ public final class StorageProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -11060,8 +11060,8 @@ public final class StorageProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -11126,9 +11126,9 @@ public final class StorageProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -11143,7 +11143,7 @@ public final class StorageProtos { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyRecordStructure_descriptor; } - protected FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.session.libsignal.libsignal.state.StorageProtos.internal_static_textsecure_SenderKeyRecordStructure_fieldAccessorTable .ensureFieldAccessorsInitialized( @@ -11156,7 +11156,7 @@ public final class StorageProtos { } private Builder( - BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } @@ -11420,7 +11420,7 @@ public final class StorageProtos { * repeated .textsecure.SenderKeyStateStructure senderKeyStates = 1; */ public Builder addAllSenderKeyStates( - Iterable values) { + java.lang.Iterable values) { if (senderKeyStatesBuilder_ == null) { ensureSenderKeyStatesIsMutable(); super.addAll(values, senderKeyStates_); @@ -11615,7 +11615,7 @@ public final class StorageProtos { private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { - String[] descriptorData = { + java.lang.String[] descriptorData = { "\n\032LocalStorageProtocol.proto\022\ntextsecure" + "\"\323\010\n\020SessionStructure\022\026\n\016sessionVersion\030" + "\001 \001(\r\022\033\n\023localIdentityPublic\030\002 \001(\014\022\034\n\024re" + @@ -11667,9 +11667,9 @@ public final class StorageProtos { "\n\004seed\030\002 \001(\014\0323\n\020SenderSigningKey\022\016\n\006publ" + "ic\030\001 \001(\014\022\017\n\007private\030\002 \001(\014\"X\n\030SenderKeyRe", "cordStructure\022<\n\017senderKeyStates\030\001 \003(\0132#" + - ".textsecure.SenderKeyStateStructureB3\n\"o" + - "rg.whispersystems.libsignal.stateB\rStora" + - "geProtos" + ".textsecure.SenderKeyStateStructureB6\n%o" + + "rg.session.libsignal.libsignal.stateB\rSt" + + "orageProtos" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -11681,91 +11681,91 @@ public final class StorageProtos { internal_static_textsecure_SessionStructure_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_SessionStructure_descriptor, - new String[] { "SessionVersion", "LocalIdentityPublic", "RemoteIdentityPublic", "RootKey", "PreviousCounter", "SenderChain", "ReceiverChains", "PendingKeyExchange", "PendingPreKey", "RemoteRegistrationId", "LocalRegistrationId", "NeedsRefresh", "AliceBaseKey", }); + new java.lang.String[] { "SessionVersion", "LocalIdentityPublic", "RemoteIdentityPublic", "RootKey", "PreviousCounter", "SenderChain", "ReceiverChains", "PendingKeyExchange", "PendingPreKey", "RemoteRegistrationId", "LocalRegistrationId", "NeedsRefresh", "AliceBaseKey", }); internal_static_textsecure_SessionStructure_Chain_descriptor = internal_static_textsecure_SessionStructure_descriptor.getNestedTypes().get(0); internal_static_textsecure_SessionStructure_Chain_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_SessionStructure_Chain_descriptor, - new String[] { "SenderRatchetKey", "SenderRatchetKeyPrivate", "ChainKey", "MessageKeys", }); + new java.lang.String[] { "SenderRatchetKey", "SenderRatchetKeyPrivate", "ChainKey", "MessageKeys", }); internal_static_textsecure_SessionStructure_Chain_ChainKey_descriptor = internal_static_textsecure_SessionStructure_Chain_descriptor.getNestedTypes().get(0); internal_static_textsecure_SessionStructure_Chain_ChainKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_SessionStructure_Chain_ChainKey_descriptor, - new String[] { "Index", "Key", }); + new java.lang.String[] { "Index", "Key", }); internal_static_textsecure_SessionStructure_Chain_MessageKey_descriptor = internal_static_textsecure_SessionStructure_Chain_descriptor.getNestedTypes().get(1); internal_static_textsecure_SessionStructure_Chain_MessageKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_SessionStructure_Chain_MessageKey_descriptor, - new String[] { "Index", "CipherKey", "MacKey", "Iv", }); + new java.lang.String[] { "Index", "CipherKey", "MacKey", "Iv", }); internal_static_textsecure_SessionStructure_PendingKeyExchange_descriptor = internal_static_textsecure_SessionStructure_descriptor.getNestedTypes().get(1); internal_static_textsecure_SessionStructure_PendingKeyExchange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_SessionStructure_PendingKeyExchange_descriptor, - new String[] { "Sequence", "LocalBaseKey", "LocalBaseKeyPrivate", "LocalRatchetKey", "LocalRatchetKeyPrivate", "LocalIdentityKey", "LocalIdentityKeyPrivate", }); + new java.lang.String[] { "Sequence", "LocalBaseKey", "LocalBaseKeyPrivate", "LocalRatchetKey", "LocalRatchetKeyPrivate", "LocalIdentityKey", "LocalIdentityKeyPrivate", }); internal_static_textsecure_SessionStructure_PendingPreKey_descriptor = internal_static_textsecure_SessionStructure_descriptor.getNestedTypes().get(2); internal_static_textsecure_SessionStructure_PendingPreKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_SessionStructure_PendingPreKey_descriptor, - new String[] { "PreKeyId", "SignedPreKeyId", "BaseKey", }); + new java.lang.String[] { "PreKeyId", "SignedPreKeyId", "BaseKey", }); internal_static_textsecure_RecordStructure_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_textsecure_RecordStructure_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_RecordStructure_descriptor, - new String[] { "CurrentSession", "PreviousSessions", }); + new java.lang.String[] { "CurrentSession", "PreviousSessions", }); internal_static_textsecure_PreKeyRecordStructure_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_textsecure_PreKeyRecordStructure_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_PreKeyRecordStructure_descriptor, - new String[] { "Id", "PublicKey", "PrivateKey", }); + new java.lang.String[] { "Id", "PublicKey", "PrivateKey", }); internal_static_textsecure_SignedPreKeyRecordStructure_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_textsecure_SignedPreKeyRecordStructure_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_SignedPreKeyRecordStructure_descriptor, - new String[] { "Id", "PublicKey", "PrivateKey", "Signature", "Timestamp", }); + new java.lang.String[] { "Id", "PublicKey", "PrivateKey", "Signature", "Timestamp", }); internal_static_textsecure_IdentityKeyPairStructure_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_textsecure_IdentityKeyPairStructure_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_IdentityKeyPairStructure_descriptor, - new String[] { "PublicKey", "PrivateKey", }); + new java.lang.String[] { "PublicKey", "PrivateKey", }); internal_static_textsecure_SenderKeyStateStructure_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_textsecure_SenderKeyStateStructure_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_SenderKeyStateStructure_descriptor, - new String[] { "SenderKeyId", "SenderChainKey", "SenderSigningKey", "SenderMessageKeys", }); + new java.lang.String[] { "SenderKeyId", "SenderChainKey", "SenderSigningKey", "SenderMessageKeys", }); internal_static_textsecure_SenderKeyStateStructure_SenderChainKey_descriptor = internal_static_textsecure_SenderKeyStateStructure_descriptor.getNestedTypes().get(0); internal_static_textsecure_SenderKeyStateStructure_SenderChainKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_SenderKeyStateStructure_SenderChainKey_descriptor, - new String[] { "Iteration", "Seed", }); + new java.lang.String[] { "Iteration", "Seed", }); internal_static_textsecure_SenderKeyStateStructure_SenderMessageKey_descriptor = internal_static_textsecure_SenderKeyStateStructure_descriptor.getNestedTypes().get(1); internal_static_textsecure_SenderKeyStateStructure_SenderMessageKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_SenderKeyStateStructure_SenderMessageKey_descriptor, - new String[] { "Iteration", "Seed", }); + new java.lang.String[] { "Iteration", "Seed", }); internal_static_textsecure_SenderKeyStateStructure_SenderSigningKey_descriptor = internal_static_textsecure_SenderKeyStateStructure_descriptor.getNestedTypes().get(2); internal_static_textsecure_SenderKeyStateStructure_SenderSigningKey_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_SenderKeyStateStructure_SenderSigningKey_descriptor, - new String[] { "Public", "Private", }); + new java.lang.String[] { "Public", "Private", }); internal_static_textsecure_SenderKeyRecordStructure_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_textsecure_SenderKeyRecordStructure_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_textsecure_SenderKeyRecordStructure_descriptor, - new String[] { "SenderKeyStates", }); + new java.lang.String[] { "SenderKeyStates", }); return null; } }; diff --git a/libsignal/src/main/java/org/session/libsignal/metadata/SignalProtos.java b/libsignal/src/main/java/org/session/libsignal/metadata/SignalProtos.java index 2a91790720..d80ad68544 100644 --- a/libsignal/src/main/java/org/session/libsignal/metadata/SignalProtos.java +++ b/libsignal/src/main/java/org/session/libsignal/metadata/SignalProtos.java @@ -54,7 +54,7 @@ public final class SignalProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -106,14 +106,14 @@ public final class SignalProtos { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return SignalProtos.internal_static_signal_ServerCertificate_descriptor; + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_ServerCertificate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return SignalProtos.internal_static_signal_ServerCertificate_fieldAccessorTable + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_ServerCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - ServerCertificate.class, Builder.class); + org.session.libsignal.metadata.SignalProtos.ServerCertificate.class, org.session.libsignal.metadata.SignalProtos.ServerCertificate.Builder.class); } public static com.google.protobuf.Parser PARSER = @@ -126,7 +126,7 @@ public final class SignalProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -177,7 +177,7 @@ public final class SignalProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -229,14 +229,14 @@ public final class SignalProtos { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return SignalProtos.internal_static_signal_ServerCertificate_Certificate_descriptor; + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_ServerCertificate_Certificate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return SignalProtos.internal_static_signal_ServerCertificate_Certificate_fieldAccessorTable + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_ServerCertificate_Certificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - Certificate.class, Builder.class); + org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate.class, org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate.Builder.class); } public static com.google.protobuf.Parser PARSER = @@ -249,7 +249,7 @@ public final class SignalProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -332,59 +332,59 @@ public final class SignalProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } - public static Certificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Certificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Certificate parseFrom(byte[] data) + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Certificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Certificate parseFrom(java.io.InputStream input) + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static Certificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Certificate parseDelimitedFrom(java.io.InputStream input) + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static Certificate parseDelimitedFrom( + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static Certificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static Certificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -393,12 +393,12 @@ public final class SignalProtos { public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(Certificate prototype) { + public static Builder newBuilder(org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); @@ -409,17 +409,17 @@ public final class SignalProtos { */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements CertificateOrBuilder { + implements org.session.libsignal.metadata.SignalProtos.ServerCertificate.CertificateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return SignalProtos.internal_static_signal_ServerCertificate_Certificate_descriptor; + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_ServerCertificate_Certificate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return SignalProtos.internal_static_signal_ServerCertificate_Certificate_fieldAccessorTable + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_ServerCertificate_Certificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - Certificate.class, Builder.class); + org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate.class, org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate.Builder.class); } // Construct using org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate.newBuilder() @@ -455,23 +455,23 @@ public final class SignalProtos { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return SignalProtos.internal_static_signal_ServerCertificate_Certificate_descriptor; + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_ServerCertificate_Certificate_descriptor; } - public Certificate getDefaultInstanceForType() { - return Certificate.getDefaultInstance(); + public org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate getDefaultInstanceForType() { + return org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate.getDefaultInstance(); } - public Certificate build() { - Certificate result = buildPartial(); + public org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate build() { + org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public Certificate buildPartial() { - Certificate result = new Certificate(this); + public org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate buildPartial() { + org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate result = new org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { @@ -488,16 +488,16 @@ public final class SignalProtos { } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof Certificate) { - return mergeFrom((Certificate)other); + if (other instanceof org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate) { + return mergeFrom((org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(Certificate other) { - if (other == Certificate.getDefaultInstance()) return this; + public Builder mergeFrom(org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate other) { + if (other == org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } @@ -516,11 +516,11 @@ public final class SignalProtos { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Certificate parsedMessage = null; + org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Certificate) e.getUnfinishedMessage(); + parsedMessage = (org.session.libsignal.metadata.SignalProtos.ServerCertificate.Certificate) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -689,59 +689,59 @@ public final class SignalProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } - public static ServerCertificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ServerCertificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ServerCertificate parseFrom(byte[] data) + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static ServerCertificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static ServerCertificate parseFrom(java.io.InputStream input) + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static ServerCertificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static ServerCertificate parseDelimitedFrom(java.io.InputStream input) + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static ServerCertificate parseDelimitedFrom( + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static ServerCertificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static ServerCertificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.ServerCertificate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -750,12 +750,12 @@ public final class SignalProtos { public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(ServerCertificate prototype) { + public static Builder newBuilder(org.session.libsignal.metadata.SignalProtos.ServerCertificate prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); @@ -766,17 +766,17 @@ public final class SignalProtos { */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements ServerCertificateOrBuilder { + implements org.session.libsignal.metadata.SignalProtos.ServerCertificateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return SignalProtos.internal_static_signal_ServerCertificate_descriptor; + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_ServerCertificate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return SignalProtos.internal_static_signal_ServerCertificate_fieldAccessorTable + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_ServerCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - ServerCertificate.class, Builder.class); + org.session.libsignal.metadata.SignalProtos.ServerCertificate.class, org.session.libsignal.metadata.SignalProtos.ServerCertificate.Builder.class); } // Construct using org.session.libsignal.metadata.SignalProtos.ServerCertificate.newBuilder() @@ -812,23 +812,23 @@ public final class SignalProtos { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return SignalProtos.internal_static_signal_ServerCertificate_descriptor; + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_ServerCertificate_descriptor; } - public ServerCertificate getDefaultInstanceForType() { - return ServerCertificate.getDefaultInstance(); + public org.session.libsignal.metadata.SignalProtos.ServerCertificate getDefaultInstanceForType() { + return org.session.libsignal.metadata.SignalProtos.ServerCertificate.getDefaultInstance(); } - public ServerCertificate build() { - ServerCertificate result = buildPartial(); + public org.session.libsignal.metadata.SignalProtos.ServerCertificate build() { + org.session.libsignal.metadata.SignalProtos.ServerCertificate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public ServerCertificate buildPartial() { - ServerCertificate result = new ServerCertificate(this); + public org.session.libsignal.metadata.SignalProtos.ServerCertificate buildPartial() { + org.session.libsignal.metadata.SignalProtos.ServerCertificate result = new org.session.libsignal.metadata.SignalProtos.ServerCertificate(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { @@ -845,16 +845,16 @@ public final class SignalProtos { } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof ServerCertificate) { - return mergeFrom((ServerCertificate)other); + if (other instanceof org.session.libsignal.metadata.SignalProtos.ServerCertificate) { + return mergeFrom((org.session.libsignal.metadata.SignalProtos.ServerCertificate)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(ServerCertificate other) { - if (other == ServerCertificate.getDefaultInstance()) return this; + public Builder mergeFrom(org.session.libsignal.metadata.SignalProtos.ServerCertificate other) { + if (other == org.session.libsignal.metadata.SignalProtos.ServerCertificate.getDefaultInstance()) return this; if (other.hasCertificate()) { setCertificate(other.getCertificate()); } @@ -873,11 +873,11 @@ public final class SignalProtos { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - ServerCertificate parsedMessage = null; + org.session.libsignal.metadata.SignalProtos.ServerCertificate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (ServerCertificate) e.getUnfinishedMessage(); + parsedMessage = (org.session.libsignal.metadata.SignalProtos.ServerCertificate) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -982,7 +982,7 @@ public final class SignalProtos { /** * optional string sender = 1; */ - String getSender(); + java.lang.String getSender(); /** * optional string sender = 1; */ @@ -1022,7 +1022,7 @@ public final class SignalProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -1074,14 +1074,14 @@ public final class SignalProtos { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return SignalProtos.internal_static_signal_SenderCertificate_descriptor; + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_SenderCertificate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return SignalProtos.internal_static_signal_SenderCertificate_fieldAccessorTable + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_SenderCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - SenderCertificate.class, Builder.class); + org.session.libsignal.metadata.SignalProtos.SenderCertificate.class, org.session.libsignal.metadata.SignalProtos.SenderCertificate.Builder.class); } public static com.google.protobuf.Parser PARSER = @@ -1094,7 +1094,7 @@ public final class SignalProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -1102,7 +1102,7 @@ public final class SignalProtos { private int bitField0_; // optional string sender = 1; public static final int SENDER_FIELD_NUMBER = 1; - private Object sender_; + private java.lang.Object sender_; /** * optional string sender = 1; */ @@ -1112,14 +1112,14 @@ public final class SignalProtos { /** * optional string sender = 1; */ - public String getSender() { - Object ref = sender_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getSender() { + java.lang.Object ref = sender_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { sender_ = s; } @@ -1131,11 +1131,11 @@ public final class SignalProtos { */ public com.google.protobuf.ByteString getSenderBytes() { - Object ref = sender_; - if (ref instanceof String) { + java.lang.Object ref = sender_; + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); sender_ = b; return b; } else { @@ -1204,59 +1204,59 @@ public final class SignalProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } - public static SenderCertificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.SenderCertificate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static SenderCertificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.SenderCertificate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static SenderCertificate parseFrom(byte[] data) + public static org.session.libsignal.metadata.SignalProtos.SenderCertificate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static SenderCertificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.SenderCertificate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static SenderCertificate parseFrom(java.io.InputStream input) + public static org.session.libsignal.metadata.SignalProtos.SenderCertificate parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static SenderCertificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.SenderCertificate parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static SenderCertificate parseDelimitedFrom(java.io.InputStream input) + public static org.session.libsignal.metadata.SignalProtos.SenderCertificate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static SenderCertificate parseDelimitedFrom( + public static org.session.libsignal.metadata.SignalProtos.SenderCertificate parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static SenderCertificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.SenderCertificate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static SenderCertificate parseFrom( + public static org.session.libsignal.metadata.SignalProtos.SenderCertificate parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1265,12 +1265,12 @@ public final class SignalProtos { public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(SenderCertificate prototype) { + public static Builder newBuilder(org.session.libsignal.metadata.SignalProtos.SenderCertificate prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); @@ -1281,17 +1281,17 @@ public final class SignalProtos { */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements SenderCertificateOrBuilder { + implements org.session.libsignal.metadata.SignalProtos.SenderCertificateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return SignalProtos.internal_static_signal_SenderCertificate_descriptor; + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_SenderCertificate_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return SignalProtos.internal_static_signal_SenderCertificate_fieldAccessorTable + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_SenderCertificate_fieldAccessorTable .ensureFieldAccessorsInitialized( - SenderCertificate.class, Builder.class); + org.session.libsignal.metadata.SignalProtos.SenderCertificate.class, org.session.libsignal.metadata.SignalProtos.SenderCertificate.Builder.class); } // Construct using org.session.libsignal.metadata.SignalProtos.SenderCertificate.newBuilder() @@ -1327,23 +1327,23 @@ public final class SignalProtos { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return SignalProtos.internal_static_signal_SenderCertificate_descriptor; + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_SenderCertificate_descriptor; } - public SenderCertificate getDefaultInstanceForType() { - return SenderCertificate.getDefaultInstance(); + public org.session.libsignal.metadata.SignalProtos.SenderCertificate getDefaultInstanceForType() { + return org.session.libsignal.metadata.SignalProtos.SenderCertificate.getDefaultInstance(); } - public SenderCertificate build() { - SenderCertificate result = buildPartial(); + public org.session.libsignal.metadata.SignalProtos.SenderCertificate build() { + org.session.libsignal.metadata.SignalProtos.SenderCertificate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public SenderCertificate buildPartial() { - SenderCertificate result = new SenderCertificate(this); + public org.session.libsignal.metadata.SignalProtos.SenderCertificate buildPartial() { + org.session.libsignal.metadata.SignalProtos.SenderCertificate result = new org.session.libsignal.metadata.SignalProtos.SenderCertificate(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { @@ -1360,16 +1360,16 @@ public final class SignalProtos { } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof SenderCertificate) { - return mergeFrom((SenderCertificate)other); + if (other instanceof org.session.libsignal.metadata.SignalProtos.SenderCertificate) { + return mergeFrom((org.session.libsignal.metadata.SignalProtos.SenderCertificate)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(SenderCertificate other) { - if (other == SenderCertificate.getDefaultInstance()) return this; + public Builder mergeFrom(org.session.libsignal.metadata.SignalProtos.SenderCertificate other) { + if (other == org.session.libsignal.metadata.SignalProtos.SenderCertificate.getDefaultInstance()) return this; if (other.hasSender()) { bitField0_ |= 0x00000001; sender_ = other.sender_; @@ -1390,11 +1390,11 @@ public final class SignalProtos { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - SenderCertificate parsedMessage = null; + org.session.libsignal.metadata.SignalProtos.SenderCertificate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (SenderCertificate) e.getUnfinishedMessage(); + parsedMessage = (org.session.libsignal.metadata.SignalProtos.SenderCertificate) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -1406,7 +1406,7 @@ public final class SignalProtos { private int bitField0_; // optional string sender = 1; - private Object sender_ = ""; + private java.lang.Object sender_ = ""; /** * optional string sender = 1; */ @@ -1416,15 +1416,15 @@ public final class SignalProtos { /** * optional string sender = 1; */ - public String getSender() { - Object ref = sender_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref) + public java.lang.String getSender() { + java.lang.Object ref = sender_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); sender_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** @@ -1432,11 +1432,11 @@ public final class SignalProtos { */ public com.google.protobuf.ByteString getSenderBytes() { - Object ref = sender_; + java.lang.Object ref = sender_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); sender_ = b; return b; } else { @@ -1447,7 +1447,7 @@ public final class SignalProtos { * optional string sender = 1; */ public Builder setSender( - String value) { + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -1579,7 +1579,7 @@ public final class SignalProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -1636,14 +1636,14 @@ public final class SignalProtos { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return SignalProtos.internal_static_signal_UnidentifiedSenderMessage_descriptor; + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_UnidentifiedSenderMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return SignalProtos.internal_static_signal_UnidentifiedSenderMessage_fieldAccessorTable + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_UnidentifiedSenderMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - UnidentifiedSenderMessage.class, Builder.class); + org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.class, org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Builder.class); } public static com.google.protobuf.Parser PARSER = @@ -1656,7 +1656,7 @@ public final class SignalProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -1672,7 +1672,7 @@ public final class SignalProtos { /** * optional .signal.UnidentifiedSenderMessage.Message.Type type = 1; */ - Message.Type getType(); + org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.Type getType(); // optional .signal.SenderCertificate senderCertificate = 2; /** @@ -1682,11 +1682,11 @@ public final class SignalProtos { /** * optional .signal.SenderCertificate senderCertificate = 2; */ - SenderCertificate getSenderCertificate(); + org.session.libsignal.metadata.SignalProtos.SenderCertificate getSenderCertificate(); /** * optional .signal.SenderCertificate senderCertificate = 2; */ - SenderCertificateOrBuilder getSenderCertificateOrBuilder(); + org.session.libsignal.metadata.SignalProtos.SenderCertificateOrBuilder getSenderCertificateOrBuilder(); // optional bytes content = 3; /** @@ -1721,7 +1721,7 @@ public final class SignalProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -1751,7 +1751,7 @@ public final class SignalProtos { } case 8: { int rawValue = input.readEnum(); - Type value = Type.valueOf(rawValue); + org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.Type value = org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { @@ -1761,11 +1761,11 @@ public final class SignalProtos { break; } case 18: { - SenderCertificate.Builder subBuilder = null; + org.session.libsignal.metadata.SignalProtos.SenderCertificate.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = senderCertificate_.toBuilder(); } - senderCertificate_ = input.readMessage(SenderCertificate.PARSER, extensionRegistry); + senderCertificate_ = input.readMessage(org.session.libsignal.metadata.SignalProtos.SenderCertificate.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(senderCertificate_); senderCertificate_ = subBuilder.buildPartial(); @@ -1792,14 +1792,14 @@ public final class SignalProtos { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return SignalProtos.internal_static_signal_UnidentifiedSenderMessage_Message_descriptor; + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_UnidentifiedSenderMessage_Message_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return SignalProtos.internal_static_signal_UnidentifiedSenderMessage_Message_fieldAccessorTable + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_UnidentifiedSenderMessage_Message_fieldAccessorTable .ensureFieldAccessorsInitialized( - Message.class, Builder.class); + org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.class, org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.Builder.class); } public static com.google.protobuf.Parser PARSER = @@ -1812,7 +1812,7 @@ public final class SignalProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -1883,7 +1883,7 @@ public final class SignalProtos { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return Message.getDescriptor().getEnumTypes().get(0); + return org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); @@ -1891,7 +1891,7 @@ public final class SignalProtos { public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new IllegalArgumentException( + throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; @@ -1911,7 +1911,7 @@ public final class SignalProtos { private int bitField0_; // optional .signal.UnidentifiedSenderMessage.Message.Type type = 1; public static final int TYPE_FIELD_NUMBER = 1; - private Type type_; + private org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.Type type_; /** * optional .signal.UnidentifiedSenderMessage.Message.Type type = 1; */ @@ -1921,13 +1921,13 @@ public final class SignalProtos { /** * optional .signal.UnidentifiedSenderMessage.Message.Type type = 1; */ - public Type getType() { + public org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.Type getType() { return type_; } // optional .signal.SenderCertificate senderCertificate = 2; public static final int SENDERCERTIFICATE_FIELD_NUMBER = 2; - private SenderCertificate senderCertificate_; + private org.session.libsignal.metadata.SignalProtos.SenderCertificate senderCertificate_; /** * optional .signal.SenderCertificate senderCertificate = 2; */ @@ -1937,13 +1937,13 @@ public final class SignalProtos { /** * optional .signal.SenderCertificate senderCertificate = 2; */ - public SenderCertificate getSenderCertificate() { + public org.session.libsignal.metadata.SignalProtos.SenderCertificate getSenderCertificate() { return senderCertificate_; } /** * optional .signal.SenderCertificate senderCertificate = 2; */ - public SenderCertificateOrBuilder getSenderCertificateOrBuilder() { + public org.session.libsignal.metadata.SignalProtos.SenderCertificateOrBuilder getSenderCertificateOrBuilder() { return senderCertificate_; } @@ -1964,8 +1964,8 @@ public final class SignalProtos { } private void initFields() { - type_ = Type.PREKEY_MESSAGE; - senderCertificate_ = SenderCertificate.getDefaultInstance(); + type_ = org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.Type.PREKEY_MESSAGE; + senderCertificate_ = org.session.libsignal.metadata.SignalProtos.SenderCertificate.getDefaultInstance(); content_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; @@ -2016,59 +2016,59 @@ public final class SignalProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } - public static Message parseFrom( + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Message parseFrom( + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Message parseFrom(byte[] data) + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static Message parseFrom( + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static Message parseFrom(java.io.InputStream input) + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static Message parseFrom( + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static Message parseDelimitedFrom(java.io.InputStream input) + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static Message parseDelimitedFrom( + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static Message parseFrom( + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static Message parseFrom( + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2077,12 +2077,12 @@ public final class SignalProtos { public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(Message prototype) { + public static Builder newBuilder(org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); @@ -2093,17 +2093,17 @@ public final class SignalProtos { */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements MessageOrBuilder { + implements org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.MessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return SignalProtos.internal_static_signal_UnidentifiedSenderMessage_Message_descriptor; + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_UnidentifiedSenderMessage_Message_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return SignalProtos.internal_static_signal_UnidentifiedSenderMessage_Message_fieldAccessorTable + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_UnidentifiedSenderMessage_Message_fieldAccessorTable .ensureFieldAccessorsInitialized( - Message.class, Builder.class); + org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.class, org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.Builder.class); } // Construct using org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.newBuilder() @@ -2127,10 +2127,10 @@ public final class SignalProtos { public Builder clear() { super.clear(); - type_ = Type.PREKEY_MESSAGE; + type_ = org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.Type.PREKEY_MESSAGE; bitField0_ = (bitField0_ & ~0x00000001); if (senderCertificateBuilder_ == null) { - senderCertificate_ = SenderCertificate.getDefaultInstance(); + senderCertificate_ = org.session.libsignal.metadata.SignalProtos.SenderCertificate.getDefaultInstance(); } else { senderCertificateBuilder_.clear(); } @@ -2146,23 +2146,23 @@ public final class SignalProtos { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return SignalProtos.internal_static_signal_UnidentifiedSenderMessage_Message_descriptor; + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_UnidentifiedSenderMessage_Message_descriptor; } - public Message getDefaultInstanceForType() { - return Message.getDefaultInstance(); + public org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message getDefaultInstanceForType() { + return org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.getDefaultInstance(); } - public Message build() { - Message result = buildPartial(); + public org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message build() { + org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public Message buildPartial() { - Message result = new Message(this); + public org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message buildPartial() { + org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message result = new org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { @@ -2187,16 +2187,16 @@ public final class SignalProtos { } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof Message) { - return mergeFrom((Message)other); + if (other instanceof org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message) { + return mergeFrom((org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(Message other) { - if (other == Message.getDefaultInstance()) return this; + public Builder mergeFrom(org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message other) { + if (other == org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } @@ -2218,11 +2218,11 @@ public final class SignalProtos { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - Message parsedMessage = null; + org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (Message) e.getUnfinishedMessage(); + parsedMessage = (org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -2234,7 +2234,7 @@ public final class SignalProtos { private int bitField0_; // optional .signal.UnidentifiedSenderMessage.Message.Type type = 1; - private Type type_ = Type.PREKEY_MESSAGE; + private org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.Type type_ = org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.Type.PREKEY_MESSAGE; /** * optional .signal.UnidentifiedSenderMessage.Message.Type type = 1; */ @@ -2244,13 +2244,13 @@ public final class SignalProtos { /** * optional .signal.UnidentifiedSenderMessage.Message.Type type = 1; */ - public Type getType() { + public org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.Type getType() { return type_; } /** * optional .signal.UnidentifiedSenderMessage.Message.Type type = 1; */ - public Builder setType(Type value) { + public Builder setType(org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.Type value) { if (value == null) { throw new NullPointerException(); } @@ -2264,15 +2264,15 @@ public final class SignalProtos { */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); - type_ = Type.PREKEY_MESSAGE; + type_ = org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Message.Type.PREKEY_MESSAGE; onChanged(); return this; } // optional .signal.SenderCertificate senderCertificate = 2; - private SenderCertificate senderCertificate_ = SenderCertificate.getDefaultInstance(); + private org.session.libsignal.metadata.SignalProtos.SenderCertificate senderCertificate_ = org.session.libsignal.metadata.SignalProtos.SenderCertificate.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< - SenderCertificate, SenderCertificate.Builder, SenderCertificateOrBuilder> senderCertificateBuilder_; + org.session.libsignal.metadata.SignalProtos.SenderCertificate, org.session.libsignal.metadata.SignalProtos.SenderCertificate.Builder, org.session.libsignal.metadata.SignalProtos.SenderCertificateOrBuilder> senderCertificateBuilder_; /** * optional .signal.SenderCertificate senderCertificate = 2; */ @@ -2282,7 +2282,7 @@ public final class SignalProtos { /** * optional .signal.SenderCertificate senderCertificate = 2; */ - public SenderCertificate getSenderCertificate() { + public org.session.libsignal.metadata.SignalProtos.SenderCertificate getSenderCertificate() { if (senderCertificateBuilder_ == null) { return senderCertificate_; } else { @@ -2292,7 +2292,7 @@ public final class SignalProtos { /** * optional .signal.SenderCertificate senderCertificate = 2; */ - public Builder setSenderCertificate(SenderCertificate value) { + public Builder setSenderCertificate(org.session.libsignal.metadata.SignalProtos.SenderCertificate value) { if (senderCertificateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2309,7 +2309,7 @@ public final class SignalProtos { * optional .signal.SenderCertificate senderCertificate = 2; */ public Builder setSenderCertificate( - SenderCertificate.Builder builderForValue) { + org.session.libsignal.metadata.SignalProtos.SenderCertificate.Builder builderForValue) { if (senderCertificateBuilder_ == null) { senderCertificate_ = builderForValue.build(); onChanged(); @@ -2322,12 +2322,12 @@ public final class SignalProtos { /** * optional .signal.SenderCertificate senderCertificate = 2; */ - public Builder mergeSenderCertificate(SenderCertificate value) { + public Builder mergeSenderCertificate(org.session.libsignal.metadata.SignalProtos.SenderCertificate value) { if (senderCertificateBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && - senderCertificate_ != SenderCertificate.getDefaultInstance()) { + senderCertificate_ != org.session.libsignal.metadata.SignalProtos.SenderCertificate.getDefaultInstance()) { senderCertificate_ = - SenderCertificate.newBuilder(senderCertificate_).mergeFrom(value).buildPartial(); + org.session.libsignal.metadata.SignalProtos.SenderCertificate.newBuilder(senderCertificate_).mergeFrom(value).buildPartial(); } else { senderCertificate_ = value; } @@ -2343,7 +2343,7 @@ public final class SignalProtos { */ public Builder clearSenderCertificate() { if (senderCertificateBuilder_ == null) { - senderCertificate_ = SenderCertificate.getDefaultInstance(); + senderCertificate_ = org.session.libsignal.metadata.SignalProtos.SenderCertificate.getDefaultInstance(); onChanged(); } else { senderCertificateBuilder_.clear(); @@ -2354,7 +2354,7 @@ public final class SignalProtos { /** * optional .signal.SenderCertificate senderCertificate = 2; */ - public SenderCertificate.Builder getSenderCertificateBuilder() { + public org.session.libsignal.metadata.SignalProtos.SenderCertificate.Builder getSenderCertificateBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSenderCertificateFieldBuilder().getBuilder(); @@ -2362,7 +2362,7 @@ public final class SignalProtos { /** * optional .signal.SenderCertificate senderCertificate = 2; */ - public SenderCertificateOrBuilder getSenderCertificateOrBuilder() { + public org.session.libsignal.metadata.SignalProtos.SenderCertificateOrBuilder getSenderCertificateOrBuilder() { if (senderCertificateBuilder_ != null) { return senderCertificateBuilder_.getMessageOrBuilder(); } else { @@ -2373,11 +2373,11 @@ public final class SignalProtos { * optional .signal.SenderCertificate senderCertificate = 2; */ private com.google.protobuf.SingleFieldBuilder< - SenderCertificate, SenderCertificate.Builder, SenderCertificateOrBuilder> + org.session.libsignal.metadata.SignalProtos.SenderCertificate, org.session.libsignal.metadata.SignalProtos.SenderCertificate.Builder, org.session.libsignal.metadata.SignalProtos.SenderCertificateOrBuilder> getSenderCertificateFieldBuilder() { if (senderCertificateBuilder_ == null) { senderCertificateBuilder_ = new com.google.protobuf.SingleFieldBuilder< - SenderCertificate, SenderCertificate.Builder, SenderCertificateOrBuilder>( + org.session.libsignal.metadata.SignalProtos.SenderCertificate, org.session.libsignal.metadata.SignalProtos.SenderCertificate.Builder, org.session.libsignal.metadata.SignalProtos.SenderCertificateOrBuilder>( senderCertificate_, getParentForChildren(), isClean()); @@ -2535,59 +2535,59 @@ public final class SignalProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } - public static UnidentifiedSenderMessage parseFrom( + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static UnidentifiedSenderMessage parseFrom( + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static UnidentifiedSenderMessage parseFrom(byte[] data) + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static UnidentifiedSenderMessage parseFrom( + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static UnidentifiedSenderMessage parseFrom(java.io.InputStream input) + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static UnidentifiedSenderMessage parseFrom( + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } - public static UnidentifiedSenderMessage parseDelimitedFrom(java.io.InputStream input) + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } - public static UnidentifiedSenderMessage parseDelimitedFrom( + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static UnidentifiedSenderMessage parseFrom( + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } - public static UnidentifiedSenderMessage parseFrom( + public static org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2596,12 +2596,12 @@ public final class SignalProtos { public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(UnidentifiedSenderMessage prototype) { + public static Builder newBuilder(org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); @@ -2612,17 +2612,17 @@ public final class SignalProtos { */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements UnidentifiedSenderMessageOrBuilder { + implements org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return SignalProtos.internal_static_signal_UnidentifiedSenderMessage_descriptor; + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_UnidentifiedSenderMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return SignalProtos.internal_static_signal_UnidentifiedSenderMessage_fieldAccessorTable + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_UnidentifiedSenderMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - UnidentifiedSenderMessage.class, Builder.class); + org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.class, org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.Builder.class); } // Construct using org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.newBuilder() @@ -2660,23 +2660,23 @@ public final class SignalProtos { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return SignalProtos.internal_static_signal_UnidentifiedSenderMessage_descriptor; + return org.session.libsignal.metadata.SignalProtos.internal_static_signal_UnidentifiedSenderMessage_descriptor; } - public UnidentifiedSenderMessage getDefaultInstanceForType() { - return UnidentifiedSenderMessage.getDefaultInstance(); + public org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage getDefaultInstanceForType() { + return org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.getDefaultInstance(); } - public UnidentifiedSenderMessage build() { - UnidentifiedSenderMessage result = buildPartial(); + public org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage build() { + org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public UnidentifiedSenderMessage buildPartial() { - UnidentifiedSenderMessage result = new UnidentifiedSenderMessage(this); + public org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage buildPartial() { + org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage result = new org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { @@ -2697,16 +2697,16 @@ public final class SignalProtos { } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof UnidentifiedSenderMessage) { - return mergeFrom((UnidentifiedSenderMessage)other); + if (other instanceof org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage) { + return mergeFrom((org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(UnidentifiedSenderMessage other) { - if (other == UnidentifiedSenderMessage.getDefaultInstance()) return this; + public Builder mergeFrom(org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage other) { + if (other == org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage.getDefaultInstance()) return this; if (other.hasEphemeralPublic()) { setEphemeralPublic(other.getEphemeralPublic()); } @@ -2728,11 +2728,11 @@ public final class SignalProtos { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - UnidentifiedSenderMessage parsedMessage = null; + org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (UnidentifiedSenderMessage) e.getUnfinishedMessage(); + parsedMessage = (org.session.libsignal.metadata.SignalProtos.UnidentifiedSenderMessage) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { @@ -2895,7 +2895,7 @@ public final class SignalProtos { private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { - String[] descriptorData = { + java.lang.String[] descriptorData = { "\n\032UnidentifiedDelivery.proto\022\006signal\"c\n\021" + "ServerCertificate\022\023\n\013certificate\030\001 \001(\014\022\021" + "\n\tsignature\030\002 \001(\014\032&\n\013Certificate\022\n\n\002id\030\001" + @@ -2908,8 +2908,8 @@ public final class SignalProtos { "age.Message.Type\0224\n\021senderCertificate\030\002 ", "\001(\0132\031.signal.SenderCertificate\022\017\n\007conten" + "t\030\003 \001(\014\"=\n\004Type\022\022\n\016PREKEY_MESSAGE\020\001\022\013\n\007M" + - "ESSAGE\020\002\022\024\n\020FALLBACK_MESSAGE\020\003B-\n\035org.si" + - "gnal.libsignal.metadataB\014SignalProtos" + "ESSAGE\020\002\022\024\n\020FALLBACK_MESSAGE\020\003B.\n\036org.se" + + "ssion.libsignal.metadataB\014SignalProtos" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -2921,31 +2921,31 @@ public final class SignalProtos { internal_static_signal_ServerCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_signal_ServerCertificate_descriptor, - new String[] { "Certificate", "Signature", }); + new java.lang.String[] { "Certificate", "Signature", }); internal_static_signal_ServerCertificate_Certificate_descriptor = internal_static_signal_ServerCertificate_descriptor.getNestedTypes().get(0); internal_static_signal_ServerCertificate_Certificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_signal_ServerCertificate_Certificate_descriptor, - new String[] { "Id", "Key", }); + new java.lang.String[] { "Id", "Key", }); internal_static_signal_SenderCertificate_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_signal_SenderCertificate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_signal_SenderCertificate_descriptor, - new String[] { "Sender", "SenderDevice", }); + new java.lang.String[] { "Sender", "SenderDevice", }); internal_static_signal_UnidentifiedSenderMessage_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_signal_UnidentifiedSenderMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_signal_UnidentifiedSenderMessage_descriptor, - new String[] { "EphemeralPublic", "EncryptedStatic", "EncryptedMessage", }); + new java.lang.String[] { "EphemeralPublic", "EncryptedStatic", "EncryptedMessage", }); internal_static_signal_UnidentifiedSenderMessage_Message_descriptor = internal_static_signal_UnidentifiedSenderMessage_descriptor.getNestedTypes().get(0); internal_static_signal_UnidentifiedSenderMessage_Message_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_signal_UnidentifiedSenderMessage_Message_descriptor, - new String[] { "Type", "SenderCertificate", "Content", }); + new java.lang.String[] { "Type", "SenderCertificate", "Content", }); return null; } }; diff --git a/libsignal/src/main/java/org/session/libsignal/service/internal/push/ProvisioningProtos.java b/libsignal/src/main/java/org/session/libsignal/service/internal/push/ProvisioningProtos.java index bc963250f1..15bf1a02a6 100644 --- a/libsignal/src/main/java/org/session/libsignal/service/internal/push/ProvisioningProtos.java +++ b/libsignal/src/main/java/org/session/libsignal/service/internal/push/ProvisioningProtos.java @@ -62,7 +62,7 @@ public final class ProvisioningProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -134,7 +134,7 @@ public final class ProvisioningProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -225,8 +225,8 @@ public final class ProvisioningProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -291,7 +291,7 @@ public final class ProvisioningProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); @@ -554,7 +554,7 @@ public final class ProvisioningProtos { /** * optional string number = 3; */ - String getNumber(); + java.lang.String getNumber(); /** * optional string number = 3; */ @@ -569,7 +569,7 @@ public final class ProvisioningProtos { /** * optional string provisioningCode = 4; */ - String getProvisioningCode(); + java.lang.String getProvisioningCode(); /** * optional string provisioningCode = 4; */ @@ -584,7 +584,7 @@ public final class ProvisioningProtos { /** * optional string userAgent = 5; */ - String getUserAgent(); + java.lang.String getUserAgent(); /** * optional string userAgent = 5; */ @@ -634,7 +634,7 @@ public final class ProvisioningProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -731,7 +731,7 @@ public final class ProvisioningProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -771,7 +771,7 @@ public final class ProvisioningProtos { // optional string number = 3; public static final int NUMBER_FIELD_NUMBER = 3; - private Object number_; + private java.lang.Object number_; /** * optional string number = 3; */ @@ -781,14 +781,14 @@ public final class ProvisioningProtos { /** * optional string number = 3; */ - public String getNumber() { - Object ref = number_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getNumber() { + java.lang.Object ref = number_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { number_ = s; } @@ -800,11 +800,11 @@ public final class ProvisioningProtos { */ public com.google.protobuf.ByteString getNumberBytes() { - Object ref = number_; - if (ref instanceof String) { + java.lang.Object ref = number_; + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); number_ = b; return b; } else { @@ -814,7 +814,7 @@ public final class ProvisioningProtos { // optional string provisioningCode = 4; public static final int PROVISIONINGCODE_FIELD_NUMBER = 4; - private Object provisioningCode_; + private java.lang.Object provisioningCode_; /** * optional string provisioningCode = 4; */ @@ -824,14 +824,14 @@ public final class ProvisioningProtos { /** * optional string provisioningCode = 4; */ - public String getProvisioningCode() { - Object ref = provisioningCode_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getProvisioningCode() { + java.lang.Object ref = provisioningCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { provisioningCode_ = s; } @@ -843,11 +843,11 @@ public final class ProvisioningProtos { */ public com.google.protobuf.ByteString getProvisioningCodeBytes() { - Object ref = provisioningCode_; - if (ref instanceof String) { + java.lang.Object ref = provisioningCode_; + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); provisioningCode_ = b; return b; } else { @@ -857,7 +857,7 @@ public final class ProvisioningProtos { // optional string userAgent = 5; public static final int USERAGENT_FIELD_NUMBER = 5; - private Object userAgent_; + private java.lang.Object userAgent_; /** * optional string userAgent = 5; */ @@ -867,14 +867,14 @@ public final class ProvisioningProtos { /** * optional string userAgent = 5; */ - public String getUserAgent() { - Object ref = userAgent_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getUserAgent() { + java.lang.Object ref = userAgent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { userAgent_ = s; } @@ -886,11 +886,11 @@ public final class ProvisioningProtos { */ public com.google.protobuf.ByteString getUserAgentBytes() { - Object ref = userAgent_; - if (ref instanceof String) { + java.lang.Object ref = userAgent_; + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); userAgent_ = b; return b; } else { @@ -1015,8 +1015,8 @@ public final class ProvisioningProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -1081,7 +1081,7 @@ public final class ProvisioningProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); @@ -1338,7 +1338,7 @@ public final class ProvisioningProtos { } // optional string number = 3; - private Object number_ = ""; + private java.lang.Object number_ = ""; /** * optional string number = 3; */ @@ -1348,15 +1348,15 @@ public final class ProvisioningProtos { /** * optional string number = 3; */ - public String getNumber() { - Object ref = number_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref) + public java.lang.String getNumber() { + java.lang.Object ref = number_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); number_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** @@ -1364,11 +1364,11 @@ public final class ProvisioningProtos { */ public com.google.protobuf.ByteString getNumberBytes() { - Object ref = number_; + java.lang.Object ref = number_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); number_ = b; return b; } else { @@ -1379,7 +1379,7 @@ public final class ProvisioningProtos { * optional string number = 3; */ public Builder setNumber( - String value) { + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -1412,7 +1412,7 @@ public final class ProvisioningProtos { } // optional string provisioningCode = 4; - private Object provisioningCode_ = ""; + private java.lang.Object provisioningCode_ = ""; /** * optional string provisioningCode = 4; */ @@ -1422,15 +1422,15 @@ public final class ProvisioningProtos { /** * optional string provisioningCode = 4; */ - public String getProvisioningCode() { - Object ref = provisioningCode_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref) + public java.lang.String getProvisioningCode() { + java.lang.Object ref = provisioningCode_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); provisioningCode_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** @@ -1438,11 +1438,11 @@ public final class ProvisioningProtos { */ public com.google.protobuf.ByteString getProvisioningCodeBytes() { - Object ref = provisioningCode_; + java.lang.Object ref = provisioningCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); provisioningCode_ = b; return b; } else { @@ -1453,7 +1453,7 @@ public final class ProvisioningProtos { * optional string provisioningCode = 4; */ public Builder setProvisioningCode( - String value) { + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -1486,7 +1486,7 @@ public final class ProvisioningProtos { } // optional string userAgent = 5; - private Object userAgent_ = ""; + private java.lang.Object userAgent_ = ""; /** * optional string userAgent = 5; */ @@ -1496,15 +1496,15 @@ public final class ProvisioningProtos { /** * optional string userAgent = 5; */ - public String getUserAgent() { - Object ref = userAgent_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref) + public java.lang.String getUserAgent() { + java.lang.Object ref = userAgent_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); userAgent_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** @@ -1512,11 +1512,11 @@ public final class ProvisioningProtos { */ public com.google.protobuf.ByteString getUserAgentBytes() { - Object ref = userAgent_; + java.lang.Object ref = userAgent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); userAgent_ = b; return b; } else { @@ -1527,7 +1527,7 @@ public final class ProvisioningProtos { * optional string userAgent = 5; */ public Builder setUserAgent( - String value) { + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -1657,16 +1657,16 @@ public final class ProvisioningProtos { private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { - String[] descriptorData = { + java.lang.String[] descriptorData = { "\n\022Provisioning.proto\022\rsignalservice\"4\n\021P" + "rovisionEnvelope\022\021\n\tpublicKey\030\001 \001(\014\022\014\n\004b" + "ody\030\002 \001(\014\"\260\001\n\020ProvisionMessage\022\031\n\021identi" + "tyKeyPublic\030\001 \001(\014\022\032\n\022identityKeyPrivate\030" + "\002 \001(\014\022\016\n\006number\030\003 \001(\t\022\030\n\020provisioningCod" + "e\030\004 \001(\t\022\021\n\tuserAgent\030\005 \001(\t\022\022\n\nprofileKey" + - "\030\006 \001(\014\022\024\n\014readReceipts\030\007 \001(\010BD\n.org.whis" + - "persystems.signalservice.internal.pushB\022" + - "ProvisioningProtos" + "\030\006 \001(\014\022\024\n\014readReceipts\030\007 \001(\010BA\n+org.sess" + + "ion.libsignal.service.internal.pushB\022Pro" + + "visioningProtos" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -1678,13 +1678,13 @@ public final class ProvisioningProtos { internal_static_signalservice_ProvisionEnvelope_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_signalservice_ProvisionEnvelope_descriptor, - new String[] { "PublicKey", "Body", }); + new java.lang.String[] { "PublicKey", "Body", }); internal_static_signalservice_ProvisionMessage_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_signalservice_ProvisionMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_signalservice_ProvisionMessage_descriptor, - new String[] { "IdentityKeyPublic", "IdentityKeyPrivate", "Number", "ProvisioningCode", "UserAgent", "ProfileKey", "ReadReceipts", }); + new java.lang.String[] { "IdentityKeyPublic", "IdentityKeyPrivate", "Number", "ProvisioningCode", "UserAgent", "ProfileKey", "ReadReceipts", }); return null; } }; diff --git a/libsignal/src/main/java/org/session/libsignal/service/internal/push/SignalServiceProtos.java b/libsignal/src/main/java/org/session/libsignal/service/internal/push/SignalServiceProtos.java index 4b2dc48b0b..64f8415f2e 100644 --- a/libsignal/src/main/java/org/session/libsignal/service/internal/push/SignalServiceProtos.java +++ b/libsignal/src/main/java/org/session/libsignal/service/internal/push/SignalServiceProtos.java @@ -4,31136 +4,32567 @@ package org.session.libsignal.service.internal.push; public final class SignalServiceProtos { - private SignalServiceProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface EnvelopeOrBuilder - extends com.google.protobuf.MessageOrBuilder { + private SignalServiceProtos() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + } + public interface EnvelopeOrBuilder + extends com.google.protobuf.MessageOrBuilder { - // optional .signalservice.Envelope.Type type = 1; - /** - * optional .signalservice.Envelope.Type type = 1; - */ - boolean hasType(); - /** - * optional .signalservice.Envelope.Type type = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type getType(); + // optional .signalservice.Envelope.Type type = 1; + /** + * optional .signalservice.Envelope.Type type = 1; + */ + boolean hasType(); + /** + * optional .signalservice.Envelope.Type type = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type getType(); - // optional string source = 2; - /** - * optional string source = 2; - */ - boolean hasSource(); - /** - * optional string source = 2; - */ - java.lang.String getSource(); - /** - * optional string source = 2; - */ - com.google.protobuf.ByteString + // optional string source = 2; + /** + * optional string source = 2; + */ + boolean hasSource(); + /** + * optional string source = 2; + */ + java.lang.String getSource(); + /** + * optional string source = 2; + */ + com.google.protobuf.ByteString getSourceBytes(); - // optional uint32 sourceDevice = 7; - /** - * optional uint32 sourceDevice = 7; - */ - boolean hasSourceDevice(); - /** - * optional uint32 sourceDevice = 7; - */ - int getSourceDevice(); + // optional uint32 sourceDevice = 7; + /** + * optional uint32 sourceDevice = 7; + */ + boolean hasSourceDevice(); + /** + * optional uint32 sourceDevice = 7; + */ + int getSourceDevice(); - // optional string relay = 3; - /** - * optional string relay = 3; - */ - boolean hasRelay(); - /** - * optional string relay = 3; - */ - java.lang.String getRelay(); - /** - * optional string relay = 3; - */ - com.google.protobuf.ByteString + // optional string relay = 3; + /** + * optional string relay = 3; + */ + boolean hasRelay(); + /** + * optional string relay = 3; + */ + java.lang.String getRelay(); + /** + * optional string relay = 3; + */ + com.google.protobuf.ByteString getRelayBytes(); - // optional uint64 timestamp = 5; - /** - * optional uint64 timestamp = 5; - */ - boolean hasTimestamp(); - /** - * optional uint64 timestamp = 5; - */ - long getTimestamp(); + // optional uint64 timestamp = 5; + /** + * optional uint64 timestamp = 5; + */ + boolean hasTimestamp(); + /** + * optional uint64 timestamp = 5; + */ + long getTimestamp(); - // optional bytes legacyMessage = 6; - /** - * optional bytes legacyMessage = 6; - * - *
-         * Contains an encrypted DataMessage
-         * 
- */ - boolean hasLegacyMessage(); - /** - * optional bytes legacyMessage = 6; - * - *
-         * Contains an encrypted DataMessage
-         * 
- */ - com.google.protobuf.ByteString getLegacyMessage(); + // optional bytes legacyMessage = 6; + /** + * optional bytes legacyMessage = 6; + * + *
+     * Contains an encrypted DataMessage
+     * 
+ */ + boolean hasLegacyMessage(); + /** + * optional bytes legacyMessage = 6; + * + *
+     * Contains an encrypted DataMessage
+     * 
+ */ + com.google.protobuf.ByteString getLegacyMessage(); - // optional bytes content = 8; - /** - * optional bytes content = 8; - * - *
-         * Contains an encrypted Content
-         * 
- */ - boolean hasContent(); - /** - * optional bytes content = 8; - * - *
-         * Contains an encrypted Content
-         * 
- */ - com.google.protobuf.ByteString getContent(); + // optional bytes content = 8; + /** + * optional bytes content = 8; + * + *
+     * Contains an encrypted Content
+     * 
+ */ + boolean hasContent(); + /** + * optional bytes content = 8; + * + *
+     * Contains an encrypted Content
+     * 
+ */ + com.google.protobuf.ByteString getContent(); - // optional string serverGuid = 9; - /** - * optional string serverGuid = 9; - */ - boolean hasServerGuid(); - /** - * optional string serverGuid = 9; - */ - java.lang.String getServerGuid(); - /** - * optional string serverGuid = 9; - */ - com.google.protobuf.ByteString + // optional string serverGuid = 9; + /** + * optional string serverGuid = 9; + */ + boolean hasServerGuid(); + /** + * optional string serverGuid = 9; + */ + java.lang.String getServerGuid(); + /** + * optional string serverGuid = 9; + */ + com.google.protobuf.ByteString getServerGuidBytes(); - // optional uint64 serverTimestamp = 10; - /** - * optional uint64 serverTimestamp = 10; - */ - boolean hasServerTimestamp(); - /** - * optional uint64 serverTimestamp = 10; - */ - long getServerTimestamp(); + // optional uint64 serverTimestamp = 10; + /** + * optional uint64 serverTimestamp = 10; + */ + boolean hasServerTimestamp(); + /** + * optional uint64 serverTimestamp = 10; + */ + long getServerTimestamp(); + } + /** + * Protobuf type {@code signalservice.Envelope} + */ + public static final class Envelope extends + com.google.protobuf.GeneratedMessage + implements EnvelopeOrBuilder { + // Use Envelope.newBuilder() to construct. + private Envelope(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Envelope(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Envelope defaultInstance; + public static Envelope getDefaultInstance() { + return defaultInstance; + } + + public Envelope getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Envelope( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + type_ = value; + } + break; + } + case 18: { + bitField0_ |= 0x00000002; + source_ = input.readBytes(); + break; + } + case 26: { + bitField0_ |= 0x00000008; + relay_ = input.readBytes(); + break; + } + case 40: { + bitField0_ |= 0x00000010; + timestamp_ = input.readUInt64(); + break; + } + case 50: { + bitField0_ |= 0x00000020; + legacyMessage_ = input.readBytes(); + break; + } + case 56: { + bitField0_ |= 0x00000004; + sourceDevice_ = input.readUInt32(); + break; + } + case 66: { + bitField0_ |= 0x00000040; + content_ = input.readBytes(); + break; + } + case 74: { + bitField0_ |= 0x00000080; + serverGuid_ = input.readBytes(); + break; + } + case 80: { + bitField0_ |= 0x00000100; + serverTimestamp_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Envelope_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Envelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.class, org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Envelope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Envelope(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + /** + * Protobuf enum {@code signalservice.Envelope.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0, 0), + /** + * CIPHERTEXT = 1; + */ + CIPHERTEXT(1, 1), + /** + * KEY_EXCHANGE = 2; + */ + KEY_EXCHANGE(2, 2), + /** + * PREKEY_BUNDLE = 3; + */ + PREKEY_BUNDLE(3, 3), + /** + * RECEIPT = 5; + */ + RECEIPT(4, 5), + /** + * UNIDENTIFIED_SENDER = 6; + */ + UNIDENTIFIED_SENDER(5, 6), + /** + * CLOSED_GROUP_CIPHERTEXT = 7; + * + *
+       * Loki
+       * 
+ */ + CLOSED_GROUP_CIPHERTEXT(6, 7), + /** + * FALLBACK_MESSAGE = 101; + * + *
+       * Loki - Encrypted using the fallback session cipher. Contains a pre key bundle if it's a session request.
+       * 
+ */ + FALLBACK_MESSAGE(7, 101), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * CIPHERTEXT = 1; + */ + public static final int CIPHERTEXT_VALUE = 1; + /** + * KEY_EXCHANGE = 2; + */ + public static final int KEY_EXCHANGE_VALUE = 2; + /** + * PREKEY_BUNDLE = 3; + */ + public static final int PREKEY_BUNDLE_VALUE = 3; + /** + * RECEIPT = 5; + */ + public static final int RECEIPT_VALUE = 5; + /** + * UNIDENTIFIED_SENDER = 6; + */ + public static final int UNIDENTIFIED_SENDER_VALUE = 6; + /** + * CLOSED_GROUP_CIPHERTEXT = 7; + * + *
+       * Loki
+       * 
+ */ + public static final int CLOSED_GROUP_CIPHERTEXT_VALUE = 7; + /** + * FALLBACK_MESSAGE = 101; + * + *
+       * Loki - Encrypted using the fallback session cipher. Contains a pre key bundle if it's a session request.
+       * 
+ */ + public static final int FALLBACK_MESSAGE_VALUE = 101; + + + public final int getNumber() { return value; } + + public static Type valueOf(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return CIPHERTEXT; + case 2: return KEY_EXCHANGE; + case 3: return PREKEY_BUNDLE; + case 5: return RECEIPT; + case 6: return UNIDENTIFIED_SENDER; + case 7: return CLOSED_GROUP_CIPHERTEXT; + case 101: return FALLBACK_MESSAGE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.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 index; + private final int value; + + private Type(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:signalservice.Envelope.Type) + } + + private int bitField0_; + // optional .signalservice.Envelope.Type type = 1; + public static final int TYPE_FIELD_NUMBER = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type type_; + /** + * optional .signalservice.Envelope.Type type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.Envelope.Type type = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type getType() { + return type_; + } + + // optional string source = 2; + public static final int SOURCE_FIELD_NUMBER = 2; + private java.lang.Object source_; + /** + * optional string source = 2; + */ + public boolean hasSource() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string source = 2; + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + 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()) { + source_ = s; + } + return s; + } + } + /** + * optional string source = 2; + */ + public com.google.protobuf.ByteString + getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional uint32 sourceDevice = 7; + public static final int SOURCEDEVICE_FIELD_NUMBER = 7; + private int sourceDevice_; + /** + * optional uint32 sourceDevice = 7; + */ + public boolean hasSourceDevice() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional uint32 sourceDevice = 7; + */ + public int getSourceDevice() { + return sourceDevice_; + } + + // optional string relay = 3; + public static final int RELAY_FIELD_NUMBER = 3; + private java.lang.Object relay_; + /** + * optional string relay = 3; + */ + public boolean hasRelay() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional string relay = 3; + */ + public java.lang.String getRelay() { + java.lang.Object ref = relay_; + 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()) { + relay_ = s; + } + return s; + } + } + /** + * optional string relay = 3; + */ + public com.google.protobuf.ByteString + getRelayBytes() { + java.lang.Object ref = relay_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + relay_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional uint64 timestamp = 5; + public static final int TIMESTAMP_FIELD_NUMBER = 5; + private long timestamp_; + /** + * optional uint64 timestamp = 5; + */ + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional uint64 timestamp = 5; + */ + public long getTimestamp() { + return timestamp_; + } + + // optional bytes legacyMessage = 6; + public static final int LEGACYMESSAGE_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString legacyMessage_; + /** + * optional bytes legacyMessage = 6; + * + *
+     * Contains an encrypted DataMessage
+     * 
+ */ + public boolean hasLegacyMessage() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional bytes legacyMessage = 6; + * + *
+     * Contains an encrypted DataMessage
+     * 
+ */ + public com.google.protobuf.ByteString getLegacyMessage() { + return legacyMessage_; + } + + // optional bytes content = 8; + public static final int CONTENT_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString content_; + /** + * optional bytes content = 8; + * + *
+     * Contains an encrypted Content
+     * 
+ */ + public boolean hasContent() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional bytes content = 8; + * + *
+     * Contains an encrypted Content
+     * 
+ */ + public com.google.protobuf.ByteString getContent() { + return content_; + } + + // optional string serverGuid = 9; + public static final int SERVERGUID_FIELD_NUMBER = 9; + private java.lang.Object serverGuid_; + /** + * optional string serverGuid = 9; + */ + public boolean hasServerGuid() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional string serverGuid = 9; + */ + public java.lang.String getServerGuid() { + java.lang.Object ref = serverGuid_; + 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()) { + serverGuid_ = s; + } + return s; + } + } + /** + * optional string serverGuid = 9; + */ + public com.google.protobuf.ByteString + getServerGuidBytes() { + java.lang.Object ref = serverGuid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serverGuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional uint64 serverTimestamp = 10; + public static final int SERVERTIMESTAMP_FIELD_NUMBER = 10; + private long serverTimestamp_; + /** + * optional uint64 serverTimestamp = 10; + */ + public boolean hasServerTimestamp() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional uint64 serverTimestamp = 10; + */ + public long getServerTimestamp() { + return serverTimestamp_; + } + + private void initFields() { + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type.UNKNOWN; + source_ = ""; + sourceDevice_ = 0; + relay_ = ""; + timestamp_ = 0L; + legacyMessage_ = com.google.protobuf.ByteString.EMPTY; + content_ = com.google.protobuf.ByteString.EMPTY; + serverGuid_ = ""; + serverTimestamp_ = 0L; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, type_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getSourceBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(3, getRelayBytes()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt64(5, timestamp_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBytes(6, legacyMessage_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(7, sourceDevice_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeBytes(8, content_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeBytes(9, getServerGuidBytes()); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeUInt64(10, serverTimestamp_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getSourceBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getRelayBytes()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(5, timestamp_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, legacyMessage_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(7, sourceDevice_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(8, content_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(9, getServerGuidBytes()); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(10, serverTimestamp_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope 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.service.internal.push.SignalServiceProtos.Envelope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.Envelope} */ - public static final class Envelope extends - com.google.protobuf.GeneratedMessage - implements EnvelopeOrBuilder { - // Use Envelope.newBuilder() to construct. - private Envelope(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.EnvelopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Envelope_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Envelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.class, org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } - private Envelope(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + } + private static Builder create() { + return new Builder(); + } - private static final Envelope defaultInstance; - public static Envelope getDefaultInstance() { - return defaultInstance; + public Builder clear() { + super.clear(); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type.UNKNOWN; + bitField0_ = (bitField0_ & ~0x00000001); + source_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + sourceDevice_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + relay_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + timestamp_ = 0L; + bitField0_ = (bitField0_ & ~0x00000010); + legacyMessage_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + content_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + serverGuid_ = ""; + bitField0_ = (bitField0_ & ~0x00000080); + serverTimestamp_ = 0L; + bitField0_ = (bitField0_ & ~0x00000100); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Envelope_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - public Envelope getDefaultInstanceForType() { - return defaultInstance; + public org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope result = new org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + result.type_ = type_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - private Envelope( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - type_ = value; - } - break; - } - case 18: { - bitField0_ |= 0x00000002; - source_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000008; - relay_ = input.readBytes(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - timestamp_ = input.readUInt64(); - break; - } - case 50: { - bitField0_ |= 0x00000020; - legacyMessage_ = input.readBytes(); - break; - } - case 56: { - bitField0_ |= 0x00000004; - sourceDevice_ = input.readUInt32(); - break; - } - case 66: { - bitField0_ |= 0x00000040; - content_ = input.readBytes(); - break; - } - case 74: { - bitField0_ |= 0x00000080; - serverGuid_ = input.readBytes(); - break; - } - case 80: { - bitField0_ |= 0x00000100; - serverTimestamp_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + result.source_ = source_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Envelope_descriptor; + result.sourceDevice_ = sourceDevice_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Envelope_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.class, org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Builder.class); + result.relay_ = relay_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Envelope parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Envelope(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + result.timestamp_ = timestamp_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; } - - /** - * Protobuf enum {@code signalservice.Envelope.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0, 0), - /** - * CIPHERTEXT = 1; - */ - CIPHERTEXT(1, 1), - /** - * KEY_EXCHANGE = 2; - */ - KEY_EXCHANGE(2, 2), - /** - * PREKEY_BUNDLE = 3; - */ - PREKEY_BUNDLE(3, 3), - /** - * RECEIPT = 5; - */ - RECEIPT(4, 5), - /** - * UNIDENTIFIED_SENDER = 6; - */ - UNIDENTIFIED_SENDER(5, 6), - /** - * CLOSED_GROUP_CIPHERTEXT = 7; - * - *
-             * Loki
-             * 
- */ - CLOSED_GROUP_CIPHERTEXT(6, 7), - /** - * FALLBACK_MESSAGE = 101; - * - *
-             * Loki - Encrypted using the fallback session cipher. Contains a pre key bundle if it's a session request.
-             * 
- */ - FALLBACK_MESSAGE(7, 101), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * CIPHERTEXT = 1; - */ - public static final int CIPHERTEXT_VALUE = 1; - /** - * KEY_EXCHANGE = 2; - */ - public static final int KEY_EXCHANGE_VALUE = 2; - /** - * PREKEY_BUNDLE = 3; - */ - public static final int PREKEY_BUNDLE_VALUE = 3; - /** - * RECEIPT = 5; - */ - public static final int RECEIPT_VALUE = 5; - /** - * UNIDENTIFIED_SENDER = 6; - */ - public static final int UNIDENTIFIED_SENDER_VALUE = 6; - /** - * CLOSED_GROUP_CIPHERTEXT = 7; - * - *
-             * Loki
-             * 
- */ - public static final int CLOSED_GROUP_CIPHERTEXT_VALUE = 7; - /** - * FALLBACK_MESSAGE = 101; - * - *
-             * Loki - Encrypted using the fallback session cipher. Contains a pre key bundle if it's a session request.
-             * 
- */ - public static final int FALLBACK_MESSAGE_VALUE = 101; - - - public final int getNumber() { return value; } - - public static Type valueOf(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return CIPHERTEXT; - case 2: return KEY_EXCHANGE; - case 3: return PREKEY_BUNDLE; - case 5: return RECEIPT; - case 6: return UNIDENTIFIED_SENDER; - case 7: return CLOSED_GROUP_CIPHERTEXT; - case 101: return FALLBACK_MESSAGE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.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 index; - private final int value; - - private Type(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:signalservice.Envelope.Type) + result.legacyMessage_ = legacyMessage_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; } - - private int bitField0_; - // optional .signalservice.Envelope.Type type = 1; - public static final int TYPE_FIELD_NUMBER = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type type_; - /** - * optional .signalservice.Envelope.Type type = 1; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + result.content_ = content_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; } - /** - * optional .signalservice.Envelope.Type type = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type getType() { - return type_; + result.serverGuid_ = serverGuid_; + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000100; } + result.serverTimestamp_ = serverTimestamp_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } - // optional string source = 2; - public static final int SOURCE_FIELD_NUMBER = 2; - private java.lang.Object source_; - /** - * optional string source = 2; - */ - public boolean hasSource() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope)other); + } else { + super.mergeFrom(other); + return this; } - /** - * optional string source = 2; - */ - public java.lang.String getSource() { - java.lang.Object ref = source_; - 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()) { - source_ = s; - } - return s; - } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.getDefaultInstance()) return this; + if (other.hasType()) { + setType(other.getType()); } - /** - * optional string source = 2; - */ - public com.google.protobuf.ByteString - getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + if (other.hasSource()) { + bitField0_ |= 0x00000002; + source_ = other.source_; + onChanged(); } - - // optional uint32 sourceDevice = 7; - public static final int SOURCEDEVICE_FIELD_NUMBER = 7; - private int sourceDevice_; - /** - * optional uint32 sourceDevice = 7; - */ - public boolean hasSourceDevice() { - return ((bitField0_ & 0x00000004) == 0x00000004); + if (other.hasSourceDevice()) { + setSourceDevice(other.getSourceDevice()); } - /** - * optional uint32 sourceDevice = 7; - */ - public int getSourceDevice() { - return sourceDevice_; + if (other.hasRelay()) { + bitField0_ |= 0x00000008; + relay_ = other.relay_; + onChanged(); } - - // optional string relay = 3; - public static final int RELAY_FIELD_NUMBER = 3; - private java.lang.Object relay_; - /** - * optional string relay = 3; - */ - public boolean hasRelay() { - return ((bitField0_ & 0x00000008) == 0x00000008); + if (other.hasTimestamp()) { + setTimestamp(other.getTimestamp()); } - /** - * optional string relay = 3; - */ - public java.lang.String getRelay() { - java.lang.Object ref = relay_; - 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()) { - relay_ = s; - } - return s; - } + if (other.hasLegacyMessage()) { + setLegacyMessage(other.getLegacyMessage()); } - /** - * optional string relay = 3; - */ - public com.google.protobuf.ByteString - getRelayBytes() { - java.lang.Object ref = relay_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - relay_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + if (other.hasContent()) { + setContent(other.getContent()); } - - // optional uint64 timestamp = 5; - public static final int TIMESTAMP_FIELD_NUMBER = 5; - private long timestamp_; - /** - * optional uint64 timestamp = 5; - */ - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000010) == 0x00000010); + if (other.hasServerGuid()) { + bitField0_ |= 0x00000080; + serverGuid_ = other.serverGuid_; + onChanged(); } - /** - * optional uint64 timestamp = 5; - */ - public long getTimestamp() { - return timestamp_; + if (other.hasServerTimestamp()) { + setServerTimestamp(other.getServerTimestamp()); } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } - // optional bytes legacyMessage = 6; - public static final int LEGACYMESSAGE_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString legacyMessage_; - /** - * optional bytes legacyMessage = 6; - * - *
-         * Contains an encrypted DataMessage
-         * 
- */ - public boolean hasLegacyMessage() { - return ((bitField0_ & 0x00000020) == 0x00000020); + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } - /** - * optional bytes legacyMessage = 6; - * - *
-         * Contains an encrypted DataMessage
-         * 
- */ - public com.google.protobuf.ByteString getLegacyMessage() { - return legacyMessage_; + return this; + } + private int bitField0_; + + // optional .signalservice.Envelope.Type type = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type.UNKNOWN; + /** + * optional .signalservice.Envelope.Type type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.Envelope.Type type = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type getType() { + return type_; + } + /** + * optional .signalservice.Envelope.Type type = 1; + */ + public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + /** + * optional .signalservice.Envelope.Type type = 1; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type.UNKNOWN; + onChanged(); + return this; + } - // optional bytes content = 8; - public static final int CONTENT_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString content_; - /** - * optional bytes content = 8; - * - *
-         * Contains an encrypted Content
-         * 
- */ - public boolean hasContent() { - return ((bitField0_ & 0x00000040) == 0x00000040); + // optional string source = 2; + private java.lang.Object source_ = ""; + /** + * optional string source = 2; + */ + public boolean hasSource() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string source = 2; + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; } - /** - * optional bytes content = 8; - * - *
-         * Contains an encrypted Content
-         * 
- */ - public com.google.protobuf.ByteString getContent() { - return content_; + } + /** + * optional string source = 2; + */ + public com.google.protobuf.ByteString + getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } + /** + * optional string source = 2; + */ + public Builder setSource( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + source_ = value; + onChanged(); + return this; + } + /** + * optional string source = 2; + */ + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000002); + source_ = getDefaultInstance().getSource(); + onChanged(); + return this; + } + /** + * optional string source = 2; + */ + public Builder setSourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + source_ = value; + onChanged(); + return this; + } - // optional string serverGuid = 9; - public static final int SERVERGUID_FIELD_NUMBER = 9; - private java.lang.Object serverGuid_; - /** - * optional string serverGuid = 9; - */ - public boolean hasServerGuid() { - return ((bitField0_ & 0x00000080) == 0x00000080); + // optional uint32 sourceDevice = 7; + private int sourceDevice_ ; + /** + * optional uint32 sourceDevice = 7; + */ + public boolean hasSourceDevice() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional uint32 sourceDevice = 7; + */ + public int getSourceDevice() { + return sourceDevice_; + } + /** + * optional uint32 sourceDevice = 7; + */ + public Builder setSourceDevice(int value) { + bitField0_ |= 0x00000004; + sourceDevice_ = value; + onChanged(); + return this; + } + /** + * optional uint32 sourceDevice = 7; + */ + public Builder clearSourceDevice() { + bitField0_ = (bitField0_ & ~0x00000004); + sourceDevice_ = 0; + onChanged(); + return this; + } + + // optional string relay = 3; + private java.lang.Object relay_ = ""; + /** + * optional string relay = 3; + */ + public boolean hasRelay() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional string relay = 3; + */ + public java.lang.String getRelay() { + java.lang.Object ref = relay_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + relay_ = s; + return s; + } else { + return (java.lang.String) ref; } - /** - * optional string serverGuid = 9; - */ - public java.lang.String getServerGuid() { - java.lang.Object ref = serverGuid_; - 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()) { - serverGuid_ = s; - } - return s; - } + } + /** + * optional string relay = 3; + */ + public com.google.protobuf.ByteString + getRelayBytes() { + java.lang.Object ref = relay_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + relay_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - /** - * optional string serverGuid = 9; - */ - public com.google.protobuf.ByteString - getServerGuidBytes() { - java.lang.Object ref = serverGuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serverGuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + } + /** + * optional string relay = 3; + */ + public Builder setRelay( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + relay_ = value; + onChanged(); + return this; + } + /** + * optional string relay = 3; + */ + public Builder clearRelay() { + bitField0_ = (bitField0_ & ~0x00000008); + relay_ = getDefaultInstance().getRelay(); + onChanged(); + return this; + } + /** + * optional string relay = 3; + */ + public Builder setRelayBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + relay_ = value; + onChanged(); + return this; + } + + // optional uint64 timestamp = 5; + private long timestamp_ ; + /** + * optional uint64 timestamp = 5; + */ + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional uint64 timestamp = 5; + */ + public long getTimestamp() { + return timestamp_; + } + /** + * optional uint64 timestamp = 5; + */ + public Builder setTimestamp(long value) { + bitField0_ |= 0x00000010; + timestamp_ = value; + onChanged(); + return this; + } + /** + * optional uint64 timestamp = 5; + */ + public Builder clearTimestamp() { + bitField0_ = (bitField0_ & ~0x00000010); + timestamp_ = 0L; + onChanged(); + return this; + } + + // optional bytes legacyMessage = 6; + private com.google.protobuf.ByteString legacyMessage_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes legacyMessage = 6; + * + *
+       * Contains an encrypted DataMessage
+       * 
+ */ + public boolean hasLegacyMessage() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional bytes legacyMessage = 6; + * + *
+       * Contains an encrypted DataMessage
+       * 
+ */ + public com.google.protobuf.ByteString getLegacyMessage() { + return legacyMessage_; + } + /** + * optional bytes legacyMessage = 6; + * + *
+       * Contains an encrypted DataMessage
+       * 
+ */ + public Builder setLegacyMessage(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + legacyMessage_ = value; + onChanged(); + return this; + } + /** + * optional bytes legacyMessage = 6; + * + *
+       * Contains an encrypted DataMessage
+       * 
+ */ + public Builder clearLegacyMessage() { + bitField0_ = (bitField0_ & ~0x00000020); + legacyMessage_ = getDefaultInstance().getLegacyMessage(); + onChanged(); + return this; + } + + // optional bytes content = 8; + private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes content = 8; + * + *
+       * Contains an encrypted Content
+       * 
+ */ + public boolean hasContent() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional bytes content = 8; + * + *
+       * Contains an encrypted Content
+       * 
+ */ + public com.google.protobuf.ByteString getContent() { + return content_; + } + /** + * optional bytes content = 8; + * + *
+       * Contains an encrypted Content
+       * 
+ */ + public Builder setContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + content_ = value; + onChanged(); + return this; + } + /** + * optional bytes content = 8; + * + *
+       * Contains an encrypted Content
+       * 
+ */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000040); + content_ = getDefaultInstance().getContent(); + onChanged(); + return this; + } + + // optional string serverGuid = 9; + private java.lang.Object serverGuid_ = ""; + /** + * optional string serverGuid = 9; + */ + public boolean hasServerGuid() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional string serverGuid = 9; + */ + public java.lang.String getServerGuid() { + java.lang.Object ref = serverGuid_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + serverGuid_ = s; + return s; + } else { + return (java.lang.String) ref; } - - // optional uint64 serverTimestamp = 10; - public static final int SERVERTIMESTAMP_FIELD_NUMBER = 10; - private long serverTimestamp_; - /** - * optional uint64 serverTimestamp = 10; - */ - public boolean hasServerTimestamp() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional uint64 serverTimestamp = 10; - */ - public long getServerTimestamp() { - return serverTimestamp_; + } + /** + * optional string serverGuid = 9; + */ + public com.google.protobuf.ByteString + getServerGuidBytes() { + java.lang.Object ref = serverGuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serverGuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } + /** + * optional string serverGuid = 9; + */ + public Builder setServerGuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + serverGuid_ = value; + onChanged(); + return this; + } + /** + * optional string serverGuid = 9; + */ + public Builder clearServerGuid() { + bitField0_ = (bitField0_ & ~0x00000080); + serverGuid_ = getDefaultInstance().getServerGuid(); + onChanged(); + return this; + } + /** + * optional string serverGuid = 9; + */ + public Builder setServerGuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + serverGuid_ = value; + onChanged(); + return this; + } - private void initFields() { - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type.UNKNOWN; - source_ = ""; - sourceDevice_ = 0; - relay_ = ""; - timestamp_ = 0L; - legacyMessage_ = com.google.protobuf.ByteString.EMPTY; - content_ = com.google.protobuf.ByteString.EMPTY; - serverGuid_ = ""; - serverTimestamp_ = 0L; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; + // optional uint64 serverTimestamp = 10; + private long serverTimestamp_ ; + /** + * optional uint64 serverTimestamp = 10; + */ + public boolean hasServerTimestamp() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional uint64 serverTimestamp = 10; + */ + public long getServerTimestamp() { + return serverTimestamp_; + } + /** + * optional uint64 serverTimestamp = 10; + */ + public Builder setServerTimestamp(long value) { + bitField0_ |= 0x00000100; + serverTimestamp_ = value; + onChanged(); + return this; + } + /** + * optional uint64 serverTimestamp = 10; + */ + public Builder clearServerTimestamp() { + bitField0_ = (bitField0_ & ~0x00000100); + serverTimestamp_ = 0L; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, type_.getNumber()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getSourceBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(3, getRelayBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeUInt64(5, timestamp_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, legacyMessage_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeUInt32(7, sourceDevice_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(8, content_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(9, getServerGuidBytes()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeUInt64(10, serverTimestamp_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_.getNumber()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getSourceBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getRelayBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(5, timestamp_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, legacyMessage_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(7, sourceDevice_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, content_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getServerGuidBytes()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(10, serverTimestamp_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope 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.service.internal.push.SignalServiceProtos.Envelope parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.Envelope} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.EnvelopeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Envelope_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Envelope_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.class, org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type.UNKNOWN; - bitField0_ = (bitField0_ & ~0x00000001); - source_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - sourceDevice_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - relay_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - timestamp_ = 0L; - bitField0_ = (bitField0_ & ~0x00000010); - legacyMessage_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); - content_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000040); - serverGuid_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); - serverTimestamp_ = 0L; - bitField0_ = (bitField0_ & ~0x00000100); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Envelope_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope result = new org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.type_ = type_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.source_ = source_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.sourceDevice_ = sourceDevice_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.relay_ = relay_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.timestamp_ = timestamp_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.legacyMessage_ = legacyMessage_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.content_ = content_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.serverGuid_ = serverGuid_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.serverTimestamp_ = serverTimestamp_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.getDefaultInstance()) return this; - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasSource()) { - bitField0_ |= 0x00000002; - source_ = other.source_; - onChanged(); - } - if (other.hasSourceDevice()) { - setSourceDevice(other.getSourceDevice()); - } - if (other.hasRelay()) { - bitField0_ |= 0x00000008; - relay_ = other.relay_; - onChanged(); - } - if (other.hasTimestamp()) { - setTimestamp(other.getTimestamp()); - } - if (other.hasLegacyMessage()) { - setLegacyMessage(other.getLegacyMessage()); - } - if (other.hasContent()) { - setContent(other.getContent()); - } - if (other.hasServerGuid()) { - bitField0_ |= 0x00000080; - serverGuid_ = other.serverGuid_; - onChanged(); - } - if (other.hasServerTimestamp()) { - setServerTimestamp(other.getServerTimestamp()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional .signalservice.Envelope.Type type = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type.UNKNOWN; - /** - * optional .signalservice.Envelope.Type type = 1; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.Envelope.Type type = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type getType() { - return type_; - } - /** - * optional .signalservice.Envelope.Type type = 1; - */ - public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - type_ = value; - onChanged(); - return this; - } - /** - * optional .signalservice.Envelope.Type type = 1; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Envelope.Type.UNKNOWN; - onChanged(); - return this; - } - - // optional string source = 2; - private java.lang.Object source_ = ""; - /** - * optional string source = 2; - */ - public boolean hasSource() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string source = 2; - */ - public java.lang.String getSource() { - java.lang.Object ref = source_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - source_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string source = 2; - */ - public com.google.protobuf.ByteString - getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string source = 2; - */ - public Builder setSource( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - source_ = value; - onChanged(); - return this; - } - /** - * optional string source = 2; - */ - public Builder clearSource() { - bitField0_ = (bitField0_ & ~0x00000002); - source_ = getDefaultInstance().getSource(); - onChanged(); - return this; - } - /** - * optional string source = 2; - */ - public Builder setSourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - source_ = value; - onChanged(); - return this; - } - - // optional uint32 sourceDevice = 7; - private int sourceDevice_ ; - /** - * optional uint32 sourceDevice = 7; - */ - public boolean hasSourceDevice() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional uint32 sourceDevice = 7; - */ - public int getSourceDevice() { - return sourceDevice_; - } - /** - * optional uint32 sourceDevice = 7; - */ - public Builder setSourceDevice(int value) { - bitField0_ |= 0x00000004; - sourceDevice_ = value; - onChanged(); - return this; - } - /** - * optional uint32 sourceDevice = 7; - */ - public Builder clearSourceDevice() { - bitField0_ = (bitField0_ & ~0x00000004); - sourceDevice_ = 0; - onChanged(); - return this; - } - - // optional string relay = 3; - private java.lang.Object relay_ = ""; - /** - * optional string relay = 3; - */ - public boolean hasRelay() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string relay = 3; - */ - public java.lang.String getRelay() { - java.lang.Object ref = relay_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - relay_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string relay = 3; - */ - public com.google.protobuf.ByteString - getRelayBytes() { - java.lang.Object ref = relay_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - relay_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string relay = 3; - */ - public Builder setRelay( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - relay_ = value; - onChanged(); - return this; - } - /** - * optional string relay = 3; - */ - public Builder clearRelay() { - bitField0_ = (bitField0_ & ~0x00000008); - relay_ = getDefaultInstance().getRelay(); - onChanged(); - return this; - } - /** - * optional string relay = 3; - */ - public Builder setRelayBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - relay_ = value; - onChanged(); - return this; - } - - // optional uint64 timestamp = 5; - private long timestamp_ ; - /** - * optional uint64 timestamp = 5; - */ - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional uint64 timestamp = 5; - */ - public long getTimestamp() { - return timestamp_; - } - /** - * optional uint64 timestamp = 5; - */ - public Builder setTimestamp(long value) { - bitField0_ |= 0x00000010; - timestamp_ = value; - onChanged(); - return this; - } - /** - * optional uint64 timestamp = 5; - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000010); - timestamp_ = 0L; - onChanged(); - return this; - } - - // optional bytes legacyMessage = 6; - private com.google.protobuf.ByteString legacyMessage_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes legacyMessage = 6; - * - *
-             * Contains an encrypted DataMessage
-             * 
- */ - public boolean hasLegacyMessage() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional bytes legacyMessage = 6; - * - *
-             * Contains an encrypted DataMessage
-             * 
- */ - public com.google.protobuf.ByteString getLegacyMessage() { - return legacyMessage_; - } - /** - * optional bytes legacyMessage = 6; - * - *
-             * Contains an encrypted DataMessage
-             * 
- */ - public Builder setLegacyMessage(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - legacyMessage_ = value; - onChanged(); - return this; - } - /** - * optional bytes legacyMessage = 6; - * - *
-             * Contains an encrypted DataMessage
-             * 
- */ - public Builder clearLegacyMessage() { - bitField0_ = (bitField0_ & ~0x00000020); - legacyMessage_ = getDefaultInstance().getLegacyMessage(); - onChanged(); - return this; - } - - // optional bytes content = 8; - private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes content = 8; - * - *
-             * Contains an encrypted Content
-             * 
- */ - public boolean hasContent() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional bytes content = 8; - * - *
-             * Contains an encrypted Content
-             * 
- */ - public com.google.protobuf.ByteString getContent() { - return content_; - } - /** - * optional bytes content = 8; - * - *
-             * Contains an encrypted Content
-             * 
- */ - public Builder setContent(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - content_ = value; - onChanged(); - return this; - } - /** - * optional bytes content = 8; - * - *
-             * Contains an encrypted Content
-             * 
- */ - public Builder clearContent() { - bitField0_ = (bitField0_ & ~0x00000040); - content_ = getDefaultInstance().getContent(); - onChanged(); - return this; - } - - // optional string serverGuid = 9; - private java.lang.Object serverGuid_ = ""; - /** - * optional string serverGuid = 9; - */ - public boolean hasServerGuid() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional string serverGuid = 9; - */ - public java.lang.String getServerGuid() { - java.lang.Object ref = serverGuid_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - serverGuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string serverGuid = 9; - */ - public com.google.protobuf.ByteString - getServerGuidBytes() { - java.lang.Object ref = serverGuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serverGuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string serverGuid = 9; - */ - public Builder setServerGuid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - serverGuid_ = value; - onChanged(); - return this; - } - /** - * optional string serverGuid = 9; - */ - public Builder clearServerGuid() { - bitField0_ = (bitField0_ & ~0x00000080); - serverGuid_ = getDefaultInstance().getServerGuid(); - onChanged(); - return this; - } - /** - * optional string serverGuid = 9; - */ - public Builder setServerGuidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - serverGuid_ = value; - onChanged(); - return this; - } - - // optional uint64 serverTimestamp = 10; - private long serverTimestamp_ ; - /** - * optional uint64 serverTimestamp = 10; - */ - public boolean hasServerTimestamp() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional uint64 serverTimestamp = 10; - */ - public long getServerTimestamp() { - return serverTimestamp_; - } - /** - * optional uint64 serverTimestamp = 10; - */ - public Builder setServerTimestamp(long value) { - bitField0_ |= 0x00000100; - serverTimestamp_ = value; - onChanged(); - return this; - } - /** - * optional uint64 serverTimestamp = 10; - */ - public Builder clearServerTimestamp() { - bitField0_ = (bitField0_ & ~0x00000100); - serverTimestamp_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.Envelope) - } - - static { - defaultInstance = new Envelope(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.Envelope) + // @@protoc_insertion_point(builder_scope:signalservice.Envelope) } - public interface ContentOrBuilder - extends com.google.protobuf.MessageOrBuilder { + static { + defaultInstance = new Envelope(true); + defaultInstance.initFields(); + } - // optional .signalservice.DataMessage dataMessage = 1; - /** - * optional .signalservice.DataMessage dataMessage = 1; - */ - boolean hasDataMessage(); - /** - * optional .signalservice.DataMessage dataMessage = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage getDataMessage(); - /** - * optional .signalservice.DataMessage dataMessage = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder getDataMessageOrBuilder(); + // @@protoc_insertion_point(class_scope:signalservice.Envelope) + } - // optional .signalservice.SyncMessage syncMessage = 2; - /** - * optional .signalservice.SyncMessage syncMessage = 2; - */ - boolean hasSyncMessage(); - /** - * optional .signalservice.SyncMessage syncMessage = 2; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage getSyncMessage(); - /** - * optional .signalservice.SyncMessage syncMessage = 2; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessageOrBuilder getSyncMessageOrBuilder(); + public interface ContentOrBuilder + extends com.google.protobuf.MessageOrBuilder { - // optional .signalservice.CallMessage callMessage = 3; - /** - * optional .signalservice.CallMessage callMessage = 3; - */ - boolean hasCallMessage(); - /** - * optional .signalservice.CallMessage callMessage = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage getCallMessage(); - /** - * optional .signalservice.CallMessage callMessage = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessageOrBuilder getCallMessageOrBuilder(); + // optional .signalservice.DataMessage dataMessage = 1; + /** + * optional .signalservice.DataMessage dataMessage = 1; + */ + boolean hasDataMessage(); + /** + * optional .signalservice.DataMessage dataMessage = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage getDataMessage(); + /** + * optional .signalservice.DataMessage dataMessage = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder getDataMessageOrBuilder(); - // optional .signalservice.NullMessage nullMessage = 4; - /** - * optional .signalservice.NullMessage nullMessage = 4; - */ - boolean hasNullMessage(); - /** - * optional .signalservice.NullMessage nullMessage = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage getNullMessage(); - /** - * optional .signalservice.NullMessage nullMessage = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessageOrBuilder getNullMessageOrBuilder(); + // optional .signalservice.SyncMessage syncMessage = 2; + /** + * optional .signalservice.SyncMessage syncMessage = 2; + */ + boolean hasSyncMessage(); + /** + * optional .signalservice.SyncMessage syncMessage = 2; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage getSyncMessage(); + /** + * optional .signalservice.SyncMessage syncMessage = 2; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessageOrBuilder getSyncMessageOrBuilder(); - // optional .signalservice.ReceiptMessage receiptMessage = 5; - /** - * optional .signalservice.ReceiptMessage receiptMessage = 5; - */ - boolean hasReceiptMessage(); - /** - * optional .signalservice.ReceiptMessage receiptMessage = 5; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage getReceiptMessage(); - /** - * optional .signalservice.ReceiptMessage receiptMessage = 5; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder getReceiptMessageOrBuilder(); + // optional .signalservice.CallMessage callMessage = 3; + /** + * optional .signalservice.CallMessage callMessage = 3; + */ + boolean hasCallMessage(); + /** + * optional .signalservice.CallMessage callMessage = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage getCallMessage(); + /** + * optional .signalservice.CallMessage callMessage = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessageOrBuilder getCallMessageOrBuilder(); - // optional .signalservice.TypingMessage typingMessage = 6; - /** - * optional .signalservice.TypingMessage typingMessage = 6; - */ - boolean hasTypingMessage(); - /** - * optional .signalservice.TypingMessage typingMessage = 6; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage getTypingMessage(); - /** - * optional .signalservice.TypingMessage typingMessage = 6; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessageOrBuilder getTypingMessageOrBuilder(); + // optional .signalservice.NullMessage nullMessage = 4; + /** + * optional .signalservice.NullMessage nullMessage = 4; + */ + boolean hasNullMessage(); + /** + * optional .signalservice.NullMessage nullMessage = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage getNullMessage(); + /** + * optional .signalservice.NullMessage nullMessage = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessageOrBuilder getNullMessageOrBuilder(); - // optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - /** - * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - * - *
-         * Loki
-         * 
- */ - boolean hasPreKeyBundleMessage(); - /** - * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - * - *
-         * Loki
-         * 
- */ - org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage getPreKeyBundleMessage(); - /** - * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - * - *
-         * Loki
-         * 
- */ - org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessageOrBuilder getPreKeyBundleMessageOrBuilder(); + // optional .signalservice.ReceiptMessage receiptMessage = 5; + /** + * optional .signalservice.ReceiptMessage receiptMessage = 5; + */ + boolean hasReceiptMessage(); + /** + * optional .signalservice.ReceiptMessage receiptMessage = 5; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage getReceiptMessage(); + /** + * optional .signalservice.ReceiptMessage receiptMessage = 5; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder getReceiptMessageOrBuilder(); - // optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - /** - * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - * - *
-         * Loki
-         * 
- */ - boolean hasDeviceLinkMessage(); - /** - * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - * - *
-         * Loki
-         * 
- */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage getDeviceLinkMessage(); - /** - * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - * - *
-         * Loki
-         * 
- */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessageOrBuilder getDeviceLinkMessageOrBuilder(); + // optional .signalservice.TypingMessage typingMessage = 6; + /** + * optional .signalservice.TypingMessage typingMessage = 6; + */ + boolean hasTypingMessage(); + /** + * optional .signalservice.TypingMessage typingMessage = 6; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage getTypingMessage(); + /** + * optional .signalservice.TypingMessage typingMessage = 6; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessageOrBuilder getTypingMessageOrBuilder(); + + // optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + /** + * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + * + *
+     * Loki
+     * 
+ */ + boolean hasPreKeyBundleMessage(); + /** + * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + * + *
+     * Loki
+     * 
+ */ + org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage getPreKeyBundleMessage(); + /** + * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + * + *
+     * Loki
+     * 
+ */ + org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessageOrBuilder getPreKeyBundleMessageOrBuilder(); + + // optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + /** + * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + * + *
+     * Loki
+     * 
+ */ + boolean hasDeviceLinkMessage(); + /** + * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + * + *
+     * Loki
+     * 
+ */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage getDeviceLinkMessage(); + /** + * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + * + *
+     * Loki
+     * 
+ */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessageOrBuilder getDeviceLinkMessageOrBuilder(); + } + /** + * Protobuf type {@code signalservice.Content} + */ + public static final class Content extends + com.google.protobuf.GeneratedMessage + implements ContentOrBuilder { + // Use Content.newBuilder() to construct. + private Content(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Content(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Content defaultInstance; + public static Content getDefaultInstance() { + return defaultInstance; + } + + public Content getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Content( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = dataMessage_.toBuilder(); + } + dataMessage_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataMessage_); + dataMessage_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = syncMessage_.toBuilder(); + } + syncMessage_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(syncMessage_); + syncMessage_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = callMessage_.toBuilder(); + } + callMessage_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(callMessage_); + callMessage_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 34: { + org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = nullMessage_.toBuilder(); + } + nullMessage_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nullMessage_); + nullMessage_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + case 42: { + org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Builder subBuilder = null; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subBuilder = receiptMessage_.toBuilder(); + } + receiptMessage_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(receiptMessage_); + receiptMessage_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000010; + break; + } + case 50: { + org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Builder subBuilder = null; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + subBuilder = typingMessage_.toBuilder(); + } + typingMessage_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(typingMessage_); + typingMessage_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000020; + break; + } + case 810: { + org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.Builder subBuilder = null; + if (((bitField0_ & 0x00000040) == 0x00000040)) { + subBuilder = preKeyBundleMessage_.toBuilder(); + } + preKeyBundleMessage_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(preKeyBundleMessage_); + preKeyBundleMessage_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000040; + break; + } + case 826: { + org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.Builder subBuilder = null; + if (((bitField0_ & 0x00000080) == 0x00000080)) { + subBuilder = deviceLinkMessage_.toBuilder(); + } + deviceLinkMessage_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deviceLinkMessage_); + deviceLinkMessage_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000080; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Content_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Content_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.Content.class, org.session.libsignal.service.internal.push.SignalServiceProtos.Content.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Content parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Content(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional .signalservice.DataMessage dataMessage = 1; + public static final int DATAMESSAGE_FIELD_NUMBER = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage dataMessage_; + /** + * optional .signalservice.DataMessage dataMessage = 1; + */ + public boolean hasDataMessage() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.DataMessage dataMessage = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage getDataMessage() { + return dataMessage_; + } + /** + * optional .signalservice.DataMessage dataMessage = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder getDataMessageOrBuilder() { + return dataMessage_; + } + + // optional .signalservice.SyncMessage syncMessage = 2; + public static final int SYNCMESSAGE_FIELD_NUMBER = 2; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage syncMessage_; + /** + * optional .signalservice.SyncMessage syncMessage = 2; + */ + public boolean hasSyncMessage() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .signalservice.SyncMessage syncMessage = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage getSyncMessage() { + return syncMessage_; + } + /** + * optional .signalservice.SyncMessage syncMessage = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessageOrBuilder getSyncMessageOrBuilder() { + return syncMessage_; + } + + // optional .signalservice.CallMessage callMessage = 3; + public static final int CALLMESSAGE_FIELD_NUMBER = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage callMessage_; + /** + * optional .signalservice.CallMessage callMessage = 3; + */ + public boolean hasCallMessage() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.CallMessage callMessage = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage getCallMessage() { + return callMessage_; + } + /** + * optional .signalservice.CallMessage callMessage = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessageOrBuilder getCallMessageOrBuilder() { + return callMessage_; + } + + // optional .signalservice.NullMessage nullMessage = 4; + public static final int NULLMESSAGE_FIELD_NUMBER = 4; + private org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage nullMessage_; + /** + * optional .signalservice.NullMessage nullMessage = 4; + */ + public boolean hasNullMessage() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .signalservice.NullMessage nullMessage = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage getNullMessage() { + return nullMessage_; + } + /** + * optional .signalservice.NullMessage nullMessage = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessageOrBuilder getNullMessageOrBuilder() { + return nullMessage_; + } + + // optional .signalservice.ReceiptMessage receiptMessage = 5; + public static final int RECEIPTMESSAGE_FIELD_NUMBER = 5; + private org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage receiptMessage_; + /** + * optional .signalservice.ReceiptMessage receiptMessage = 5; + */ + public boolean hasReceiptMessage() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .signalservice.ReceiptMessage receiptMessage = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage getReceiptMessage() { + return receiptMessage_; + } + /** + * optional .signalservice.ReceiptMessage receiptMessage = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder getReceiptMessageOrBuilder() { + return receiptMessage_; + } + + // optional .signalservice.TypingMessage typingMessage = 6; + public static final int TYPINGMESSAGE_FIELD_NUMBER = 6; + private org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage typingMessage_; + /** + * optional .signalservice.TypingMessage typingMessage = 6; + */ + public boolean hasTypingMessage() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional .signalservice.TypingMessage typingMessage = 6; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage getTypingMessage() { + return typingMessage_; + } + /** + * optional .signalservice.TypingMessage typingMessage = 6; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessageOrBuilder getTypingMessageOrBuilder() { + return typingMessage_; + } + + // optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + public static final int PREKEYBUNDLEMESSAGE_FIELD_NUMBER = 101; + private org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage preKeyBundleMessage_; + /** + * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + * + *
+     * Loki
+     * 
+ */ + public boolean hasPreKeyBundleMessage() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + * + *
+     * Loki
+     * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage getPreKeyBundleMessage() { + return preKeyBundleMessage_; + } + /** + * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + * + *
+     * Loki
+     * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessageOrBuilder getPreKeyBundleMessageOrBuilder() { + return preKeyBundleMessage_; + } + + // optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + public static final int DEVICELINKMESSAGE_FIELD_NUMBER = 103; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage deviceLinkMessage_; + /** + * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + * + *
+     * Loki
+     * 
+ */ + public boolean hasDeviceLinkMessage() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + * + *
+     * Loki
+     * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage getDeviceLinkMessage() { + return deviceLinkMessage_; + } + /** + * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + * + *
+     * Loki
+     * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessageOrBuilder getDeviceLinkMessageOrBuilder() { + return deviceLinkMessage_; + } + + private void initFields() { + dataMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); + syncMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance(); + callMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance(); + nullMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance(); + receiptMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance(); + typingMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance(); + preKeyBundleMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.getDefaultInstance(); + deviceLinkMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (hasDataMessage()) { + if (!getDataMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + if (hasSyncMessage()) { + if (!getSyncMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, dataMessage_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, syncMessage_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, callMessage_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(4, nullMessage_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(5, receiptMessage_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeMessage(6, typingMessage_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeMessage(101, preKeyBundleMessage_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeMessage(103, deviceLinkMessage_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, dataMessage_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, syncMessage_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, callMessage_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, nullMessage_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, receiptMessage_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, typingMessage_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, preKeyBundleMessage_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(103, deviceLinkMessage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content 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.service.internal.push.SignalServiceProtos.Content parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.Content prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.Content} */ - public static final class Content extends - com.google.protobuf.GeneratedMessage - implements ContentOrBuilder { - // Use Content.newBuilder() to construct. - private Content(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Content(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.ContentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Content_descriptor; + } - private static final Content defaultInstance; - public static Content getDefaultInstance() { - return defaultInstance; - } + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Content_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.Content.class, org.session.libsignal.service.internal.push.SignalServiceProtos.Content.Builder.class); + } - public Content getDefaultInstanceForType() { - return defaultInstance; - } + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.Content.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Content( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = dataMessage_.toBuilder(); - } - dataMessage_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataMessage_); - dataMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = syncMessage_.toBuilder(); - } - syncMessage_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(syncMessage_); - syncMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = callMessage_.toBuilder(); - } - callMessage_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(callMessage_); - callMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = nullMessage_.toBuilder(); - } - nullMessage_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nullMessage_); - nullMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = receiptMessage_.toBuilder(); - } - receiptMessage_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receiptMessage_); - receiptMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 50: { - org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - subBuilder = typingMessage_.toBuilder(); - } - typingMessage_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(typingMessage_); - typingMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000020; - break; - } - case 810: { - org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - subBuilder = preKeyBundleMessage_.toBuilder(); - } - preKeyBundleMessage_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(preKeyBundleMessage_); - preKeyBundleMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - break; - } - case 826: { - org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000080) == 0x00000080)) { - subBuilder = deviceLinkMessage_.toBuilder(); - } - deviceLinkMessage_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deviceLinkMessage_); - deviceLinkMessage_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000080; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Content_descriptor; + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getDataMessageFieldBuilder(); + getSyncMessageFieldBuilder(); + getCallMessageFieldBuilder(); + getNullMessageFieldBuilder(); + getReceiptMessageFieldBuilder(); + getTypingMessageFieldBuilder(); + getPreKeyBundleMessageFieldBuilder(); + getDeviceLinkMessageFieldBuilder(); } + } + private static Builder create() { + return new Builder(); + } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Content_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.Content.class, org.session.libsignal.service.internal.push.SignalServiceProtos.Content.Builder.class); + public Builder clear() { + super.clear(); + if (dataMessageBuilder_ == null) { + dataMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); + } else { + dataMessageBuilder_.clear(); } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Content parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Content(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + bitField0_ = (bitField0_ & ~0x00000001); + if (syncMessageBuilder_ == null) { + syncMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance(); + } else { + syncMessageBuilder_.clear(); } - - private int bitField0_; - // optional .signalservice.DataMessage dataMessage = 1; - public static final int DATAMESSAGE_FIELD_NUMBER = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage dataMessage_; - /** - * optional .signalservice.DataMessage dataMessage = 1; - */ - public boolean hasDataMessage() { - return ((bitField0_ & 0x00000001) == 0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); + if (callMessageBuilder_ == null) { + callMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance(); + } else { + callMessageBuilder_.clear(); } - /** - * optional .signalservice.DataMessage dataMessage = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage getDataMessage() { - return dataMessage_; + bitField0_ = (bitField0_ & ~0x00000004); + if (nullMessageBuilder_ == null) { + nullMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance(); + } else { + nullMessageBuilder_.clear(); } - /** - * optional .signalservice.DataMessage dataMessage = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder getDataMessageOrBuilder() { - return dataMessage_; + bitField0_ = (bitField0_ & ~0x00000008); + if (receiptMessageBuilder_ == null) { + receiptMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance(); + } else { + receiptMessageBuilder_.clear(); } - - // optional .signalservice.SyncMessage syncMessage = 2; - public static final int SYNCMESSAGE_FIELD_NUMBER = 2; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage syncMessage_; - /** - * optional .signalservice.SyncMessage syncMessage = 2; - */ - public boolean hasSyncMessage() { - return ((bitField0_ & 0x00000002) == 0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); + if (typingMessageBuilder_ == null) { + typingMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance(); + } else { + typingMessageBuilder_.clear(); } - /** - * optional .signalservice.SyncMessage syncMessage = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage getSyncMessage() { - return syncMessage_; + bitField0_ = (bitField0_ & ~0x00000020); + if (preKeyBundleMessageBuilder_ == null) { + preKeyBundleMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.getDefaultInstance(); + } else { + preKeyBundleMessageBuilder_.clear(); } - /** - * optional .signalservice.SyncMessage syncMessage = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessageOrBuilder getSyncMessageOrBuilder() { - return syncMessage_; + bitField0_ = (bitField0_ & ~0x00000040); + if (deviceLinkMessageBuilder_ == null) { + deviceLinkMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.getDefaultInstance(); + } else { + deviceLinkMessageBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } - // optional .signalservice.CallMessage callMessage = 3; - public static final int CALLMESSAGE_FIELD_NUMBER = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage callMessage_; - /** - * optional .signalservice.CallMessage callMessage = 3; - */ - public boolean hasCallMessage() { - return ((bitField0_ & 0x00000004) == 0x00000004); + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Content_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.Content getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.Content.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.Content build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.Content result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - /** - * optional .signalservice.CallMessage callMessage = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage getCallMessage() { - return callMessage_; + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.Content buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.Content result = new org.session.libsignal.service.internal.push.SignalServiceProtos.Content(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - /** - * optional .signalservice.CallMessage callMessage = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessageOrBuilder getCallMessageOrBuilder() { - return callMessage_; + if (dataMessageBuilder_ == null) { + result.dataMessage_ = dataMessage_; + } else { + result.dataMessage_ = dataMessageBuilder_.build(); } - - // optional .signalservice.NullMessage nullMessage = 4; - public static final int NULLMESSAGE_FIELD_NUMBER = 4; - private org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage nullMessage_; - /** - * optional .signalservice.NullMessage nullMessage = 4; - */ - public boolean hasNullMessage() { - return ((bitField0_ & 0x00000008) == 0x00000008); + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - /** - * optional .signalservice.NullMessage nullMessage = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage getNullMessage() { - return nullMessage_; + if (syncMessageBuilder_ == null) { + result.syncMessage_ = syncMessage_; + } else { + result.syncMessage_ = syncMessageBuilder_.build(); } - /** - * optional .signalservice.NullMessage nullMessage = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessageOrBuilder getNullMessageOrBuilder() { - return nullMessage_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; } - - // optional .signalservice.ReceiptMessage receiptMessage = 5; - public static final int RECEIPTMESSAGE_FIELD_NUMBER = 5; - private org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage receiptMessage_; - /** - * optional .signalservice.ReceiptMessage receiptMessage = 5; - */ - public boolean hasReceiptMessage() { - return ((bitField0_ & 0x00000010) == 0x00000010); + if (callMessageBuilder_ == null) { + result.callMessage_ = callMessage_; + } else { + result.callMessage_ = callMessageBuilder_.build(); } - /** - * optional .signalservice.ReceiptMessage receiptMessage = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage getReceiptMessage() { - return receiptMessage_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; } - /** - * optional .signalservice.ReceiptMessage receiptMessage = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder getReceiptMessageOrBuilder() { - return receiptMessage_; + if (nullMessageBuilder_ == null) { + result.nullMessage_ = nullMessage_; + } else { + result.nullMessage_ = nullMessageBuilder_.build(); } - - // optional .signalservice.TypingMessage typingMessage = 6; - public static final int TYPINGMESSAGE_FIELD_NUMBER = 6; - private org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage typingMessage_; - /** - * optional .signalservice.TypingMessage typingMessage = 6; - */ - public boolean hasTypingMessage() { - return ((bitField0_ & 0x00000020) == 0x00000020); + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; } - /** - * optional .signalservice.TypingMessage typingMessage = 6; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage getTypingMessage() { - return typingMessage_; + if (receiptMessageBuilder_ == null) { + result.receiptMessage_ = receiptMessage_; + } else { + result.receiptMessage_ = receiptMessageBuilder_.build(); } - /** - * optional .signalservice.TypingMessage typingMessage = 6; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessageOrBuilder getTypingMessageOrBuilder() { - return typingMessage_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; } - - // optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - public static final int PREKEYBUNDLEMESSAGE_FIELD_NUMBER = 101; - private org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage preKeyBundleMessage_; - /** - * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - * - *
-         * Loki
-         * 
- */ - public boolean hasPreKeyBundleMessage() { - return ((bitField0_ & 0x00000040) == 0x00000040); + if (typingMessageBuilder_ == null) { + result.typingMessage_ = typingMessage_; + } else { + result.typingMessage_ = typingMessageBuilder_.build(); } - /** - * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - * - *
-         * Loki
-         * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage getPreKeyBundleMessage() { - return preKeyBundleMessage_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; } - /** - * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - * - *
-         * Loki
-         * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessageOrBuilder getPreKeyBundleMessageOrBuilder() { - return preKeyBundleMessage_; + if (preKeyBundleMessageBuilder_ == null) { + result.preKeyBundleMessage_ = preKeyBundleMessage_; + } else { + result.preKeyBundleMessage_ = preKeyBundleMessageBuilder_.build(); } - - // optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - public static final int DEVICELINKMESSAGE_FIELD_NUMBER = 103; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage deviceLinkMessage_; - /** - * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - * - *
-         * Loki
-         * 
- */ - public boolean hasDeviceLinkMessage() { - return ((bitField0_ & 0x00000080) == 0x00000080); + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; } - /** - * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - * - *
-         * Loki
-         * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage getDeviceLinkMessage() { - return deviceLinkMessage_; + if (deviceLinkMessageBuilder_ == null) { + result.deviceLinkMessage_ = deviceLinkMessage_; + } else { + result.deviceLinkMessage_ = deviceLinkMessageBuilder_.build(); } - /** - * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - * - *
-         * Loki
-         * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessageOrBuilder getDeviceLinkMessageOrBuilder() { - return deviceLinkMessage_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.Content) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.Content)other); + } else { + super.mergeFrom(other); + return this; } + } - private void initFields() { - dataMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); - syncMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance(); - callMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance(); - nullMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance(); - receiptMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance(); - typingMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance(); - preKeyBundleMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.getDefaultInstance(); - deviceLinkMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.getDefaultInstance(); + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.Content other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.Content.getDefaultInstance()) return this; + if (other.hasDataMessage()) { + mergeDataMessage(other.getDataMessage()); } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasDataMessage()) { - if (!getDataMessage().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasSyncMessage()) { - if (!getSyncMessage().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; + if (other.hasSyncMessage()) { + mergeSyncMessage(other.getSyncMessage()); } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, dataMessage_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, syncMessage_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, callMessage_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, nullMessage_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, receiptMessage_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(6, typingMessage_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(101, preKeyBundleMessage_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(103, deviceLinkMessage_); - } - getUnknownFields().writeTo(output); + if (other.hasCallMessage()) { + mergeCallMessage(other.getCallMessage()); } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, dataMessage_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, syncMessage_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, callMessage_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, nullMessage_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, receiptMessage_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, typingMessage_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, preKeyBundleMessage_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(103, deviceLinkMessage_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; + if (other.hasNullMessage()) { + mergeNullMessage(other.getNullMessage()); } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); + if (other.hasReceiptMessage()) { + mergeReceiptMessage(other.getReceiptMessage()); } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + if (other.hasTypingMessage()) { + mergeTypingMessage(other.getTypingMessage()); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + if (other.hasPreKeyBundleMessage()) { + mergePreKeyBundleMessage(other.getPreKeyBundleMessage()); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + if (other.hasDeviceLinkMessage()) { + mergeDeviceLinkMessage(other.getDeviceLinkMessage()); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (hasDataMessage()) { + if (!getDataMessage().isInitialized()) { + + return false; + } } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); + if (hasSyncMessage()) { + if (!getSyncMessage().isInitialized()) { + + return false; + } } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.Content parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.Content) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return this; + } + private int bitField0_; + + // optional .signalservice.DataMessage dataMessage = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage dataMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder> dataMessageBuilder_; + /** + * optional .signalservice.DataMessage dataMessage = 1; + */ + public boolean hasDataMessage() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.DataMessage dataMessage = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage getDataMessage() { + if (dataMessageBuilder_ == null) { + return dataMessage_; + } else { + return dataMessageBuilder_.getMessage(); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + /** + * optional .signalservice.DataMessage dataMessage = 1; + */ + public Builder setDataMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage value) { + if (dataMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataMessage_ = value; + onChanged(); + } else { + dataMessageBuilder_.setMessage(value); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.DataMessage dataMessage = 1; + */ + public Builder setDataMessage( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder builderForValue) { + if (dataMessageBuilder_ == null) { + dataMessage_ = builderForValue.build(); + onChanged(); + } else { + dataMessageBuilder_.setMessage(builderForValue.build()); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Content parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.DataMessage dataMessage = 1; + */ + public Builder mergeDataMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage value) { + if (dataMessageBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + dataMessage_ != org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance()) { + dataMessage_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.newBuilder(dataMessage_).mergeFrom(value).buildPartial(); + } else { + dataMessage_ = value; + } + onChanged(); + } else { + dataMessageBuilder_.mergeFrom(value); } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.Content prototype) { - return newBuilder().mergeFrom(prototype); + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.DataMessage dataMessage = 1; + */ + public Builder clearDataMessage() { + if (dataMessageBuilder_ == null) { + dataMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); + onChanged(); + } else { + dataMessageBuilder_.clear(); } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + * optional .signalservice.DataMessage dataMessage = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder getDataMessageBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDataMessageFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.DataMessage dataMessage = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder getDataMessageOrBuilder() { + if (dataMessageBuilder_ != null) { + return dataMessageBuilder_.getMessageOrBuilder(); + } else { + return dataMessage_; } - /** - * Protobuf type {@code signalservice.Content} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.ContentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Content_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Content_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.Content.class, org.session.libsignal.service.internal.push.SignalServiceProtos.Content.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.Content.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDataMessageFieldBuilder(); - getSyncMessageFieldBuilder(); - getCallMessageFieldBuilder(); - getNullMessageFieldBuilder(); - getReceiptMessageFieldBuilder(); - getTypingMessageFieldBuilder(); - getPreKeyBundleMessageFieldBuilder(); - getDeviceLinkMessageFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (dataMessageBuilder_ == null) { - dataMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); - } else { - dataMessageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (syncMessageBuilder_ == null) { - syncMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance(); - } else { - syncMessageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (callMessageBuilder_ == null) { - callMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance(); - } else { - callMessageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (nullMessageBuilder_ == null) { - nullMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance(); - } else { - nullMessageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - if (receiptMessageBuilder_ == null) { - receiptMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance(); - } else { - receiptMessageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - if (typingMessageBuilder_ == null) { - typingMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance(); - } else { - typingMessageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - if (preKeyBundleMessageBuilder_ == null) { - preKeyBundleMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.getDefaultInstance(); - } else { - preKeyBundleMessageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - if (deviceLinkMessageBuilder_ == null) { - deviceLinkMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.getDefaultInstance(); - } else { - deviceLinkMessageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Content_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.Content getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.Content.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.Content build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.Content result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.Content buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.Content result = new org.session.libsignal.service.internal.push.SignalServiceProtos.Content(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (dataMessageBuilder_ == null) { - result.dataMessage_ = dataMessage_; - } else { - result.dataMessage_ = dataMessageBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (syncMessageBuilder_ == null) { - result.syncMessage_ = syncMessage_; - } else { - result.syncMessage_ = syncMessageBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (callMessageBuilder_ == null) { - result.callMessage_ = callMessage_; - } else { - result.callMessage_ = callMessageBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - if (nullMessageBuilder_ == null) { - result.nullMessage_ = nullMessage_; - } else { - result.nullMessage_ = nullMessageBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - if (receiptMessageBuilder_ == null) { - result.receiptMessage_ = receiptMessage_; - } else { - result.receiptMessage_ = receiptMessageBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - if (typingMessageBuilder_ == null) { - result.typingMessage_ = typingMessage_; - } else { - result.typingMessage_ = typingMessageBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - if (preKeyBundleMessageBuilder_ == null) { - result.preKeyBundleMessage_ = preKeyBundleMessage_; - } else { - result.preKeyBundleMessage_ = preKeyBundleMessageBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - if (deviceLinkMessageBuilder_ == null) { - result.deviceLinkMessage_ = deviceLinkMessage_; - } else { - result.deviceLinkMessage_ = deviceLinkMessageBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.Content) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.Content)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.Content other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.Content.getDefaultInstance()) return this; - if (other.hasDataMessage()) { - mergeDataMessage(other.getDataMessage()); - } - if (other.hasSyncMessage()) { - mergeSyncMessage(other.getSyncMessage()); - } - if (other.hasCallMessage()) { - mergeCallMessage(other.getCallMessage()); - } - if (other.hasNullMessage()) { - mergeNullMessage(other.getNullMessage()); - } - if (other.hasReceiptMessage()) { - mergeReceiptMessage(other.getReceiptMessage()); - } - if (other.hasTypingMessage()) { - mergeTypingMessage(other.getTypingMessage()); - } - if (other.hasPreKeyBundleMessage()) { - mergePreKeyBundleMessage(other.getPreKeyBundleMessage()); - } - if (other.hasDeviceLinkMessage()) { - mergeDeviceLinkMessage(other.getDeviceLinkMessage()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasDataMessage()) { - if (!getDataMessage().isInitialized()) { - - return false; - } - } - if (hasSyncMessage()) { - if (!getSyncMessage().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.Content parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.Content) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional .signalservice.DataMessage dataMessage = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage dataMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder> dataMessageBuilder_; - /** - * optional .signalservice.DataMessage dataMessage = 1; - */ - public boolean hasDataMessage() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.DataMessage dataMessage = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage getDataMessage() { - if (dataMessageBuilder_ == null) { - return dataMessage_; - } else { - return dataMessageBuilder_.getMessage(); - } - } - /** - * optional .signalservice.DataMessage dataMessage = 1; - */ - public Builder setDataMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage value) { - if (dataMessageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataMessage_ = value; - onChanged(); - } else { - dataMessageBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.DataMessage dataMessage = 1; - */ - public Builder setDataMessage( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder builderForValue) { - if (dataMessageBuilder_ == null) { - dataMessage_ = builderForValue.build(); - onChanged(); - } else { - dataMessageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.DataMessage dataMessage = 1; - */ - public Builder mergeDataMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage value) { - if (dataMessageBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - dataMessage_ != org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance()) { - dataMessage_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.newBuilder(dataMessage_).mergeFrom(value).buildPartial(); - } else { - dataMessage_ = value; - } - onChanged(); - } else { - dataMessageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.DataMessage dataMessage = 1; - */ - public Builder clearDataMessage() { - if (dataMessageBuilder_ == null) { - dataMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); - onChanged(); - } else { - dataMessageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .signalservice.DataMessage dataMessage = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder getDataMessageBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getDataMessageFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.DataMessage dataMessage = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder getDataMessageOrBuilder() { - if (dataMessageBuilder_ != null) { - return dataMessageBuilder_.getMessageOrBuilder(); - } else { - return dataMessage_; - } - } - /** - * optional .signalservice.DataMessage dataMessage = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder> - getDataMessageFieldBuilder() { - if (dataMessageBuilder_ == null) { - dataMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder>( - dataMessage_, - getParentForChildren(), - isClean()); - dataMessage_ = null; - } - return dataMessageBuilder_; - } - - // optional .signalservice.SyncMessage syncMessage = 2; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage syncMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessageOrBuilder> syncMessageBuilder_; - /** - * optional .signalservice.SyncMessage syncMessage = 2; - */ - public boolean hasSyncMessage() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .signalservice.SyncMessage syncMessage = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage getSyncMessage() { - if (syncMessageBuilder_ == null) { - return syncMessage_; - } else { - return syncMessageBuilder_.getMessage(); - } - } - /** - * optional .signalservice.SyncMessage syncMessage = 2; - */ - public Builder setSyncMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage value) { - if (syncMessageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - syncMessage_ = value; - onChanged(); - } else { - syncMessageBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .signalservice.SyncMessage syncMessage = 2; - */ - public Builder setSyncMessage( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Builder builderForValue) { - if (syncMessageBuilder_ == null) { - syncMessage_ = builderForValue.build(); - onChanged(); - } else { - syncMessageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .signalservice.SyncMessage syncMessage = 2; - */ - public Builder mergeSyncMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage value) { - if (syncMessageBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - syncMessage_ != org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance()) { - syncMessage_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.newBuilder(syncMessage_).mergeFrom(value).buildPartial(); - } else { - syncMessage_ = value; - } - onChanged(); - } else { - syncMessageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .signalservice.SyncMessage syncMessage = 2; - */ - public Builder clearSyncMessage() { - if (syncMessageBuilder_ == null) { - syncMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance(); - onChanged(); - } else { - syncMessageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - * optional .signalservice.SyncMessage syncMessage = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Builder getSyncMessageBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getSyncMessageFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.SyncMessage syncMessage = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessageOrBuilder getSyncMessageOrBuilder() { - if (syncMessageBuilder_ != null) { - return syncMessageBuilder_.getMessageOrBuilder(); - } else { - return syncMessage_; - } - } - /** - * optional .signalservice.SyncMessage syncMessage = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessageOrBuilder> - getSyncMessageFieldBuilder() { - if (syncMessageBuilder_ == null) { - syncMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessageOrBuilder>( - syncMessage_, - getParentForChildren(), - isClean()); - syncMessage_ = null; - } - return syncMessageBuilder_; - } - - // optional .signalservice.CallMessage callMessage = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage callMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessageOrBuilder> callMessageBuilder_; - /** - * optional .signalservice.CallMessage callMessage = 3; - */ - public boolean hasCallMessage() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .signalservice.CallMessage callMessage = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage getCallMessage() { - if (callMessageBuilder_ == null) { - return callMessage_; - } else { - return callMessageBuilder_.getMessage(); - } - } - /** - * optional .signalservice.CallMessage callMessage = 3; - */ - public Builder setCallMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage value) { - if (callMessageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - callMessage_ = value; - onChanged(); - } else { - callMessageBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.CallMessage callMessage = 3; - */ - public Builder setCallMessage( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Builder builderForValue) { - if (callMessageBuilder_ == null) { - callMessage_ = builderForValue.build(); - onChanged(); - } else { - callMessageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.CallMessage callMessage = 3; - */ - public Builder mergeCallMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage value) { - if (callMessageBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - callMessage_ != org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance()) { - callMessage_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.newBuilder(callMessage_).mergeFrom(value).buildPartial(); - } else { - callMessage_ = value; - } - onChanged(); - } else { - callMessageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.CallMessage callMessage = 3; - */ - public Builder clearCallMessage() { - if (callMessageBuilder_ == null) { - callMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance(); - onChanged(); - } else { - callMessageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - /** - * optional .signalservice.CallMessage callMessage = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Builder getCallMessageBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getCallMessageFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.CallMessage callMessage = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessageOrBuilder getCallMessageOrBuilder() { - if (callMessageBuilder_ != null) { - return callMessageBuilder_.getMessageOrBuilder(); - } else { - return callMessage_; - } - } - /** - * optional .signalservice.CallMessage callMessage = 3; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessageOrBuilder> - getCallMessageFieldBuilder() { - if (callMessageBuilder_ == null) { - callMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessageOrBuilder>( - callMessage_, - getParentForChildren(), - isClean()); - callMessage_ = null; - } - return callMessageBuilder_; - } - - // optional .signalservice.NullMessage nullMessage = 4; - private org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage nullMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessageOrBuilder> nullMessageBuilder_; - /** - * optional .signalservice.NullMessage nullMessage = 4; - */ - public boolean hasNullMessage() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .signalservice.NullMessage nullMessage = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage getNullMessage() { - if (nullMessageBuilder_ == null) { - return nullMessage_; - } else { - return nullMessageBuilder_.getMessage(); - } - } - /** - * optional .signalservice.NullMessage nullMessage = 4; - */ - public Builder setNullMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage value) { - if (nullMessageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nullMessage_ = value; - onChanged(); - } else { - nullMessageBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.NullMessage nullMessage = 4; - */ - public Builder setNullMessage( - org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.Builder builderForValue) { - if (nullMessageBuilder_ == null) { - nullMessage_ = builderForValue.build(); - onChanged(); - } else { - nullMessageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.NullMessage nullMessage = 4; - */ - public Builder mergeNullMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage value) { - if (nullMessageBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - nullMessage_ != org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance()) { - nullMessage_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.newBuilder(nullMessage_).mergeFrom(value).buildPartial(); - } else { - nullMessage_ = value; - } - onChanged(); - } else { - nullMessageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.NullMessage nullMessage = 4; - */ - public Builder clearNullMessage() { - if (nullMessageBuilder_ == null) { - nullMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance(); - onChanged(); - } else { - nullMessageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - /** - * optional .signalservice.NullMessage nullMessage = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.Builder getNullMessageBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getNullMessageFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.NullMessage nullMessage = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessageOrBuilder getNullMessageOrBuilder() { - if (nullMessageBuilder_ != null) { - return nullMessageBuilder_.getMessageOrBuilder(); - } else { - return nullMessage_; - } - } - /** - * optional .signalservice.NullMessage nullMessage = 4; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessageOrBuilder> - getNullMessageFieldBuilder() { - if (nullMessageBuilder_ == null) { - nullMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessageOrBuilder>( - nullMessage_, - getParentForChildren(), - isClean()); - nullMessage_ = null; - } - return nullMessageBuilder_; - } - - // optional .signalservice.ReceiptMessage receiptMessage = 5; - private org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage receiptMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder> receiptMessageBuilder_; - /** - * optional .signalservice.ReceiptMessage receiptMessage = 5; - */ - public boolean hasReceiptMessage() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional .signalservice.ReceiptMessage receiptMessage = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage getReceiptMessage() { - if (receiptMessageBuilder_ == null) { - return receiptMessage_; - } else { - return receiptMessageBuilder_.getMessage(); - } - } - /** - * optional .signalservice.ReceiptMessage receiptMessage = 5; - */ - public Builder setReceiptMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage value) { - if (receiptMessageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - receiptMessage_ = value; - onChanged(); - } else { - receiptMessageBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .signalservice.ReceiptMessage receiptMessage = 5; - */ - public Builder setReceiptMessage( - org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Builder builderForValue) { - if (receiptMessageBuilder_ == null) { - receiptMessage_ = builderForValue.build(); - onChanged(); - } else { - receiptMessageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .signalservice.ReceiptMessage receiptMessage = 5; - */ - public Builder mergeReceiptMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage value) { - if (receiptMessageBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - receiptMessage_ != org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance()) { - receiptMessage_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.newBuilder(receiptMessage_).mergeFrom(value).buildPartial(); - } else { - receiptMessage_ = value; - } - onChanged(); - } else { - receiptMessageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .signalservice.ReceiptMessage receiptMessage = 5; - */ - public Builder clearReceiptMessage() { - if (receiptMessageBuilder_ == null) { - receiptMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance(); - onChanged(); - } else { - receiptMessageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - /** - * optional .signalservice.ReceiptMessage receiptMessage = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Builder getReceiptMessageBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getReceiptMessageFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.ReceiptMessage receiptMessage = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder getReceiptMessageOrBuilder() { - if (receiptMessageBuilder_ != null) { - return receiptMessageBuilder_.getMessageOrBuilder(); - } else { - return receiptMessage_; - } - } - /** - * optional .signalservice.ReceiptMessage receiptMessage = 5; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder> - getReceiptMessageFieldBuilder() { - if (receiptMessageBuilder_ == null) { - receiptMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder>( - receiptMessage_, - getParentForChildren(), - isClean()); - receiptMessage_ = null; - } - return receiptMessageBuilder_; - } - - // optional .signalservice.TypingMessage typingMessage = 6; - private org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage typingMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessageOrBuilder> typingMessageBuilder_; - /** - * optional .signalservice.TypingMessage typingMessage = 6; - */ - public boolean hasTypingMessage() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional .signalservice.TypingMessage typingMessage = 6; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage getTypingMessage() { - if (typingMessageBuilder_ == null) { - return typingMessage_; - } else { - return typingMessageBuilder_.getMessage(); - } - } - /** - * optional .signalservice.TypingMessage typingMessage = 6; - */ - public Builder setTypingMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage value) { - if (typingMessageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typingMessage_ = value; - onChanged(); - } else { - typingMessageBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - return this; - } - /** - * optional .signalservice.TypingMessage typingMessage = 6; - */ - public Builder setTypingMessage( - org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Builder builderForValue) { - if (typingMessageBuilder_ == null) { - typingMessage_ = builderForValue.build(); - onChanged(); - } else { - typingMessageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - return this; - } - /** - * optional .signalservice.TypingMessage typingMessage = 6; - */ - public Builder mergeTypingMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage value) { - if (typingMessageBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - typingMessage_ != org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance()) { - typingMessage_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.newBuilder(typingMessage_).mergeFrom(value).buildPartial(); - } else { - typingMessage_ = value; - } - onChanged(); - } else { - typingMessageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - return this; - } - /** - * optional .signalservice.TypingMessage typingMessage = 6; - */ - public Builder clearTypingMessage() { - if (typingMessageBuilder_ == null) { - typingMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance(); - onChanged(); - } else { - typingMessageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - /** - * optional .signalservice.TypingMessage typingMessage = 6; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Builder getTypingMessageBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getTypingMessageFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.TypingMessage typingMessage = 6; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessageOrBuilder getTypingMessageOrBuilder() { - if (typingMessageBuilder_ != null) { - return typingMessageBuilder_.getMessageOrBuilder(); - } else { - return typingMessage_; - } - } - /** - * optional .signalservice.TypingMessage typingMessage = 6; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessageOrBuilder> - getTypingMessageFieldBuilder() { - if (typingMessageBuilder_ == null) { - typingMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessageOrBuilder>( - typingMessage_, - getParentForChildren(), - isClean()); - typingMessage_ = null; - } - return typingMessageBuilder_; - } - - // optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - private org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage preKeyBundleMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessageOrBuilder> preKeyBundleMessageBuilder_; - /** - * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - * - *
-             * Loki
-             * 
- */ - public boolean hasPreKeyBundleMessage() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - * - *
-             * Loki
-             * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage getPreKeyBundleMessage() { - if (preKeyBundleMessageBuilder_ == null) { - return preKeyBundleMessage_; - } else { - return preKeyBundleMessageBuilder_.getMessage(); - } - } - /** - * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - * - *
-             * Loki
-             * 
- */ - public Builder setPreKeyBundleMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage value) { - if (preKeyBundleMessageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - preKeyBundleMessage_ = value; - onChanged(); - } else { - preKeyBundleMessageBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - return this; - } - /** - * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - * - *
-             * Loki
-             * 
- */ - public Builder setPreKeyBundleMessage( - org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.Builder builderForValue) { - if (preKeyBundleMessageBuilder_ == null) { - preKeyBundleMessage_ = builderForValue.build(); - onChanged(); - } else { - preKeyBundleMessageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - return this; - } - /** - * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - * - *
-             * Loki
-             * 
- */ - public Builder mergePreKeyBundleMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage value) { - if (preKeyBundleMessageBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - preKeyBundleMessage_ != org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.getDefaultInstance()) { - preKeyBundleMessage_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.newBuilder(preKeyBundleMessage_).mergeFrom(value).buildPartial(); - } else { - preKeyBundleMessage_ = value; - } - onChanged(); - } else { - preKeyBundleMessageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - return this; - } - /** - * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - * - *
-             * Loki
-             * 
- */ - public Builder clearPreKeyBundleMessage() { - if (preKeyBundleMessageBuilder_ == null) { - preKeyBundleMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.getDefaultInstance(); - onChanged(); - } else { - preKeyBundleMessageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - /** - * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - * - *
-             * Loki
-             * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.Builder getPreKeyBundleMessageBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getPreKeyBundleMessageFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - * - *
-             * Loki
-             * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessageOrBuilder getPreKeyBundleMessageOrBuilder() { - if (preKeyBundleMessageBuilder_ != null) { - return preKeyBundleMessageBuilder_.getMessageOrBuilder(); - } else { - return preKeyBundleMessage_; - } - } - /** - * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; - * - *
-             * Loki
-             * 
- */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessageOrBuilder> - getPreKeyBundleMessageFieldBuilder() { - if (preKeyBundleMessageBuilder_ == null) { - preKeyBundleMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessageOrBuilder>( - preKeyBundleMessage_, - getParentForChildren(), - isClean()); - preKeyBundleMessage_ = null; - } - return preKeyBundleMessageBuilder_; - } - - // optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage deviceLinkMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessageOrBuilder> deviceLinkMessageBuilder_; - /** - * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - * - *
-             * Loki
-             * 
- */ - public boolean hasDeviceLinkMessage() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - * - *
-             * Loki
-             * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage getDeviceLinkMessage() { - if (deviceLinkMessageBuilder_ == null) { - return deviceLinkMessage_; - } else { - return deviceLinkMessageBuilder_.getMessage(); - } - } - /** - * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - * - *
-             * Loki
-             * 
- */ - public Builder setDeviceLinkMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage value) { - if (deviceLinkMessageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deviceLinkMessage_ = value; - onChanged(); - } else { - deviceLinkMessageBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - * - *
-             * Loki
-             * 
- */ - public Builder setDeviceLinkMessage( - org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.Builder builderForValue) { - if (deviceLinkMessageBuilder_ == null) { - deviceLinkMessage_ = builderForValue.build(); - onChanged(); - } else { - deviceLinkMessageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - * - *
-             * Loki
-             * 
- */ - public Builder mergeDeviceLinkMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage value) { - if (deviceLinkMessageBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - deviceLinkMessage_ != org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.getDefaultInstance()) { - deviceLinkMessage_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.newBuilder(deviceLinkMessage_).mergeFrom(value).buildPartial(); - } else { - deviceLinkMessage_ = value; - } - onChanged(); - } else { - deviceLinkMessageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - * - *
-             * Loki
-             * 
- */ - public Builder clearDeviceLinkMessage() { - if (deviceLinkMessageBuilder_ == null) { - deviceLinkMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.getDefaultInstance(); - onChanged(); - } else { - deviceLinkMessageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - /** - * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - * - *
-             * Loki
-             * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.Builder getDeviceLinkMessageBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getDeviceLinkMessageFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - * - *
-             * Loki
-             * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessageOrBuilder getDeviceLinkMessageOrBuilder() { - if (deviceLinkMessageBuilder_ != null) { - return deviceLinkMessageBuilder_.getMessageOrBuilder(); - } else { - return deviceLinkMessage_; - } - } - /** - * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; - * - *
-             * Loki
-             * 
- */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessageOrBuilder> - getDeviceLinkMessageFieldBuilder() { - if (deviceLinkMessageBuilder_ == null) { - deviceLinkMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessageOrBuilder>( - deviceLinkMessage_, - getParentForChildren(), - isClean()); - deviceLinkMessage_ = null; - } - return deviceLinkMessageBuilder_; - } - - // @@protoc_insertion_point(builder_scope:signalservice.Content) + } + /** + * optional .signalservice.DataMessage dataMessage = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder> + getDataMessageFieldBuilder() { + if (dataMessageBuilder_ == null) { + dataMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder>( + dataMessage_, + getParentForChildren(), + isClean()); + dataMessage_ = null; } + return dataMessageBuilder_; + } - static { - defaultInstance = new Content(true); - defaultInstance.initFields(); + // optional .signalservice.SyncMessage syncMessage = 2; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage syncMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessageOrBuilder> syncMessageBuilder_; + /** + * optional .signalservice.SyncMessage syncMessage = 2; + */ + public boolean hasSyncMessage() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .signalservice.SyncMessage syncMessage = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage getSyncMessage() { + if (syncMessageBuilder_ == null) { + return syncMessage_; + } else { + return syncMessageBuilder_.getMessage(); } + } + /** + * optional .signalservice.SyncMessage syncMessage = 2; + */ + public Builder setSyncMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage value) { + if (syncMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + syncMessage_ = value; + onChanged(); + } else { + syncMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .signalservice.SyncMessage syncMessage = 2; + */ + public Builder setSyncMessage( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Builder builderForValue) { + if (syncMessageBuilder_ == null) { + syncMessage_ = builderForValue.build(); + onChanged(); + } else { + syncMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .signalservice.SyncMessage syncMessage = 2; + */ + public Builder mergeSyncMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage value) { + if (syncMessageBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + syncMessage_ != org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance()) { + syncMessage_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.newBuilder(syncMessage_).mergeFrom(value).buildPartial(); + } else { + syncMessage_ = value; + } + onChanged(); + } else { + syncMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .signalservice.SyncMessage syncMessage = 2; + */ + public Builder clearSyncMessage() { + if (syncMessageBuilder_ == null) { + syncMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance(); + onChanged(); + } else { + syncMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + * optional .signalservice.SyncMessage syncMessage = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Builder getSyncMessageBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSyncMessageFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.SyncMessage syncMessage = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessageOrBuilder getSyncMessageOrBuilder() { + if (syncMessageBuilder_ != null) { + return syncMessageBuilder_.getMessageOrBuilder(); + } else { + return syncMessage_; + } + } + /** + * optional .signalservice.SyncMessage syncMessage = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessageOrBuilder> + getSyncMessageFieldBuilder() { + if (syncMessageBuilder_ == null) { + syncMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessageOrBuilder>( + syncMessage_, + getParentForChildren(), + isClean()); + syncMessage_ = null; + } + return syncMessageBuilder_; + } - // @@protoc_insertion_point(class_scope:signalservice.Content) + // optional .signalservice.CallMessage callMessage = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage callMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessageOrBuilder> callMessageBuilder_; + /** + * optional .signalservice.CallMessage callMessage = 3; + */ + public boolean hasCallMessage() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.CallMessage callMessage = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage getCallMessage() { + if (callMessageBuilder_ == null) { + return callMessage_; + } else { + return callMessageBuilder_.getMessage(); + } + } + /** + * optional .signalservice.CallMessage callMessage = 3; + */ + public Builder setCallMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage value) { + if (callMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + callMessage_ = value; + onChanged(); + } else { + callMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.CallMessage callMessage = 3; + */ + public Builder setCallMessage( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Builder builderForValue) { + if (callMessageBuilder_ == null) { + callMessage_ = builderForValue.build(); + onChanged(); + } else { + callMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.CallMessage callMessage = 3; + */ + public Builder mergeCallMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage value) { + if (callMessageBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + callMessage_ != org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance()) { + callMessage_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.newBuilder(callMessage_).mergeFrom(value).buildPartial(); + } else { + callMessage_ = value; + } + onChanged(); + } else { + callMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.CallMessage callMessage = 3; + */ + public Builder clearCallMessage() { + if (callMessageBuilder_ == null) { + callMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance(); + onChanged(); + } else { + callMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + * optional .signalservice.CallMessage callMessage = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Builder getCallMessageBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCallMessageFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.CallMessage callMessage = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessageOrBuilder getCallMessageOrBuilder() { + if (callMessageBuilder_ != null) { + return callMessageBuilder_.getMessageOrBuilder(); + } else { + return callMessage_; + } + } + /** + * optional .signalservice.CallMessage callMessage = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessageOrBuilder> + getCallMessageFieldBuilder() { + if (callMessageBuilder_ == null) { + callMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessageOrBuilder>( + callMessage_, + getParentForChildren(), + isClean()); + callMessage_ = null; + } + return callMessageBuilder_; + } + + // optional .signalservice.NullMessage nullMessage = 4; + private org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage nullMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessageOrBuilder> nullMessageBuilder_; + /** + * optional .signalservice.NullMessage nullMessage = 4; + */ + public boolean hasNullMessage() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .signalservice.NullMessage nullMessage = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage getNullMessage() { + if (nullMessageBuilder_ == null) { + return nullMessage_; + } else { + return nullMessageBuilder_.getMessage(); + } + } + /** + * optional .signalservice.NullMessage nullMessage = 4; + */ + public Builder setNullMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage value) { + if (nullMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nullMessage_ = value; + onChanged(); + } else { + nullMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.NullMessage nullMessage = 4; + */ + public Builder setNullMessage( + org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.Builder builderForValue) { + if (nullMessageBuilder_ == null) { + nullMessage_ = builderForValue.build(); + onChanged(); + } else { + nullMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.NullMessage nullMessage = 4; + */ + public Builder mergeNullMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage value) { + if (nullMessageBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + nullMessage_ != org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance()) { + nullMessage_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.newBuilder(nullMessage_).mergeFrom(value).buildPartial(); + } else { + nullMessage_ = value; + } + onChanged(); + } else { + nullMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.NullMessage nullMessage = 4; + */ + public Builder clearNullMessage() { + if (nullMessageBuilder_ == null) { + nullMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance(); + onChanged(); + } else { + nullMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + /** + * optional .signalservice.NullMessage nullMessage = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.Builder getNullMessageBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getNullMessageFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.NullMessage nullMessage = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessageOrBuilder getNullMessageOrBuilder() { + if (nullMessageBuilder_ != null) { + return nullMessageBuilder_.getMessageOrBuilder(); + } else { + return nullMessage_; + } + } + /** + * optional .signalservice.NullMessage nullMessage = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessageOrBuilder> + getNullMessageFieldBuilder() { + if (nullMessageBuilder_ == null) { + nullMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessageOrBuilder>( + nullMessage_, + getParentForChildren(), + isClean()); + nullMessage_ = null; + } + return nullMessageBuilder_; + } + + // optional .signalservice.ReceiptMessage receiptMessage = 5; + private org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage receiptMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder> receiptMessageBuilder_; + /** + * optional .signalservice.ReceiptMessage receiptMessage = 5; + */ + public boolean hasReceiptMessage() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .signalservice.ReceiptMessage receiptMessage = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage getReceiptMessage() { + if (receiptMessageBuilder_ == null) { + return receiptMessage_; + } else { + return receiptMessageBuilder_.getMessage(); + } + } + /** + * optional .signalservice.ReceiptMessage receiptMessage = 5; + */ + public Builder setReceiptMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage value) { + if (receiptMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + receiptMessage_ = value; + onChanged(); + } else { + receiptMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .signalservice.ReceiptMessage receiptMessage = 5; + */ + public Builder setReceiptMessage( + org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Builder builderForValue) { + if (receiptMessageBuilder_ == null) { + receiptMessage_ = builderForValue.build(); + onChanged(); + } else { + receiptMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .signalservice.ReceiptMessage receiptMessage = 5; + */ + public Builder mergeReceiptMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage value) { + if (receiptMessageBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + receiptMessage_ != org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance()) { + receiptMessage_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.newBuilder(receiptMessage_).mergeFrom(value).buildPartial(); + } else { + receiptMessage_ = value; + } + onChanged(); + } else { + receiptMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .signalservice.ReceiptMessage receiptMessage = 5; + */ + public Builder clearReceiptMessage() { + if (receiptMessageBuilder_ == null) { + receiptMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance(); + onChanged(); + } else { + receiptMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + /** + * optional .signalservice.ReceiptMessage receiptMessage = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Builder getReceiptMessageBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getReceiptMessageFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.ReceiptMessage receiptMessage = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder getReceiptMessageOrBuilder() { + if (receiptMessageBuilder_ != null) { + return receiptMessageBuilder_.getMessageOrBuilder(); + } else { + return receiptMessage_; + } + } + /** + * optional .signalservice.ReceiptMessage receiptMessage = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder> + getReceiptMessageFieldBuilder() { + if (receiptMessageBuilder_ == null) { + receiptMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder>( + receiptMessage_, + getParentForChildren(), + isClean()); + receiptMessage_ = null; + } + return receiptMessageBuilder_; + } + + // optional .signalservice.TypingMessage typingMessage = 6; + private org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage typingMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessageOrBuilder> typingMessageBuilder_; + /** + * optional .signalservice.TypingMessage typingMessage = 6; + */ + public boolean hasTypingMessage() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional .signalservice.TypingMessage typingMessage = 6; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage getTypingMessage() { + if (typingMessageBuilder_ == null) { + return typingMessage_; + } else { + return typingMessageBuilder_.getMessage(); + } + } + /** + * optional .signalservice.TypingMessage typingMessage = 6; + */ + public Builder setTypingMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage value) { + if (typingMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typingMessage_ = value; + onChanged(); + } else { + typingMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .signalservice.TypingMessage typingMessage = 6; + */ + public Builder setTypingMessage( + org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Builder builderForValue) { + if (typingMessageBuilder_ == null) { + typingMessage_ = builderForValue.build(); + onChanged(); + } else { + typingMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .signalservice.TypingMessage typingMessage = 6; + */ + public Builder mergeTypingMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage value) { + if (typingMessageBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020) && + typingMessage_ != org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance()) { + typingMessage_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.newBuilder(typingMessage_).mergeFrom(value).buildPartial(); + } else { + typingMessage_ = value; + } + onChanged(); + } else { + typingMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .signalservice.TypingMessage typingMessage = 6; + */ + public Builder clearTypingMessage() { + if (typingMessageBuilder_ == null) { + typingMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance(); + onChanged(); + } else { + typingMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + /** + * optional .signalservice.TypingMessage typingMessage = 6; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Builder getTypingMessageBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getTypingMessageFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.TypingMessage typingMessage = 6; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessageOrBuilder getTypingMessageOrBuilder() { + if (typingMessageBuilder_ != null) { + return typingMessageBuilder_.getMessageOrBuilder(); + } else { + return typingMessage_; + } + } + /** + * optional .signalservice.TypingMessage typingMessage = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessageOrBuilder> + getTypingMessageFieldBuilder() { + if (typingMessageBuilder_ == null) { + typingMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessageOrBuilder>( + typingMessage_, + getParentForChildren(), + isClean()); + typingMessage_ = null; + } + return typingMessageBuilder_; + } + + // optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + private org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage preKeyBundleMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessageOrBuilder> preKeyBundleMessageBuilder_; + /** + * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + * + *
+       * Loki
+       * 
+ */ + public boolean hasPreKeyBundleMessage() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + * + *
+       * Loki
+       * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage getPreKeyBundleMessage() { + if (preKeyBundleMessageBuilder_ == null) { + return preKeyBundleMessage_; + } else { + return preKeyBundleMessageBuilder_.getMessage(); + } + } + /** + * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + * + *
+       * Loki
+       * 
+ */ + public Builder setPreKeyBundleMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage value) { + if (preKeyBundleMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + preKeyBundleMessage_ = value; + onChanged(); + } else { + preKeyBundleMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + return this; + } + /** + * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + * + *
+       * Loki
+       * 
+ */ + public Builder setPreKeyBundleMessage( + org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.Builder builderForValue) { + if (preKeyBundleMessageBuilder_ == null) { + preKeyBundleMessage_ = builderForValue.build(); + onChanged(); + } else { + preKeyBundleMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + return this; + } + /** + * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + * + *
+       * Loki
+       * 
+ */ + public Builder mergePreKeyBundleMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage value) { + if (preKeyBundleMessageBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040) && + preKeyBundleMessage_ != org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.getDefaultInstance()) { + preKeyBundleMessage_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.newBuilder(preKeyBundleMessage_).mergeFrom(value).buildPartial(); + } else { + preKeyBundleMessage_ = value; + } + onChanged(); + } else { + preKeyBundleMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + return this; + } + /** + * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + * + *
+       * Loki
+       * 
+ */ + public Builder clearPreKeyBundleMessage() { + if (preKeyBundleMessageBuilder_ == null) { + preKeyBundleMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.getDefaultInstance(); + onChanged(); + } else { + preKeyBundleMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + /** + * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + * + *
+       * Loki
+       * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.Builder getPreKeyBundleMessageBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getPreKeyBundleMessageFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + * + *
+       * Loki
+       * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessageOrBuilder getPreKeyBundleMessageOrBuilder() { + if (preKeyBundleMessageBuilder_ != null) { + return preKeyBundleMessageBuilder_.getMessageOrBuilder(); + } else { + return preKeyBundleMessage_; + } + } + /** + * optional .signalservice.PreKeyBundleMessage preKeyBundleMessage = 101; + * + *
+       * Loki
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessageOrBuilder> + getPreKeyBundleMessageFieldBuilder() { + if (preKeyBundleMessageBuilder_ == null) { + preKeyBundleMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessageOrBuilder>( + preKeyBundleMessage_, + getParentForChildren(), + isClean()); + preKeyBundleMessage_ = null; + } + return preKeyBundleMessageBuilder_; + } + + // optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage deviceLinkMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessageOrBuilder> deviceLinkMessageBuilder_; + /** + * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + * + *
+       * Loki
+       * 
+ */ + public boolean hasDeviceLinkMessage() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + * + *
+       * Loki
+       * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage getDeviceLinkMessage() { + if (deviceLinkMessageBuilder_ == null) { + return deviceLinkMessage_; + } else { + return deviceLinkMessageBuilder_.getMessage(); + } + } + /** + * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + * + *
+       * Loki
+       * 
+ */ + public Builder setDeviceLinkMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage value) { + if (deviceLinkMessageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deviceLinkMessage_ = value; + onChanged(); + } else { + deviceLinkMessageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + return this; + } + /** + * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + * + *
+       * Loki
+       * 
+ */ + public Builder setDeviceLinkMessage( + org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.Builder builderForValue) { + if (deviceLinkMessageBuilder_ == null) { + deviceLinkMessage_ = builderForValue.build(); + onChanged(); + } else { + deviceLinkMessageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + return this; + } + /** + * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + * + *
+       * Loki
+       * 
+ */ + public Builder mergeDeviceLinkMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage value) { + if (deviceLinkMessageBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080) && + deviceLinkMessage_ != org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.getDefaultInstance()) { + deviceLinkMessage_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.newBuilder(deviceLinkMessage_).mergeFrom(value).buildPartial(); + } else { + deviceLinkMessage_ = value; + } + onChanged(); + } else { + deviceLinkMessageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + return this; + } + /** + * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + * + *
+       * Loki
+       * 
+ */ + public Builder clearDeviceLinkMessage() { + if (deviceLinkMessageBuilder_ == null) { + deviceLinkMessage_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.getDefaultInstance(); + onChanged(); + } else { + deviceLinkMessageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + /** + * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + * + *
+       * Loki
+       * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.Builder getDeviceLinkMessageBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getDeviceLinkMessageFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + * + *
+       * Loki
+       * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessageOrBuilder getDeviceLinkMessageOrBuilder() { + if (deviceLinkMessageBuilder_ != null) { + return deviceLinkMessageBuilder_.getMessageOrBuilder(); + } else { + return deviceLinkMessage_; + } + } + /** + * optional .signalservice.DeviceLinkMessage deviceLinkMessage = 103; + * + *
+       * Loki
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessageOrBuilder> + getDeviceLinkMessageFieldBuilder() { + if (deviceLinkMessageBuilder_ == null) { + deviceLinkMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessageOrBuilder>( + deviceLinkMessage_, + getParentForChildren(), + isClean()); + deviceLinkMessage_ = null; + } + return deviceLinkMessageBuilder_; + } + + // @@protoc_insertion_point(builder_scope:signalservice.Content) } - public interface DeviceLinkMessageOrBuilder - extends com.google.protobuf.MessageOrBuilder { + static { + defaultInstance = new Content(true); + defaultInstance.initFields(); + } - // optional string primaryPublicKey = 1; - /** - * optional string primaryPublicKey = 1; - */ - boolean hasPrimaryPublicKey(); - /** - * optional string primaryPublicKey = 1; - */ - java.lang.String getPrimaryPublicKey(); - /** - * optional string primaryPublicKey = 1; - */ - com.google.protobuf.ByteString + // @@protoc_insertion_point(class_scope:signalservice.Content) + } + + public interface DeviceLinkMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string primaryPublicKey = 1; + /** + * optional string primaryPublicKey = 1; + */ + boolean hasPrimaryPublicKey(); + /** + * optional string primaryPublicKey = 1; + */ + java.lang.String getPrimaryPublicKey(); + /** + * optional string primaryPublicKey = 1; + */ + com.google.protobuf.ByteString getPrimaryPublicKeyBytes(); - // optional string secondaryPublicKey = 2; - /** - * optional string secondaryPublicKey = 2; - */ - boolean hasSecondaryPublicKey(); - /** - * optional string secondaryPublicKey = 2; - */ - java.lang.String getSecondaryPublicKey(); - /** - * optional string secondaryPublicKey = 2; - */ - com.google.protobuf.ByteString + // optional string secondaryPublicKey = 2; + /** + * optional string secondaryPublicKey = 2; + */ + boolean hasSecondaryPublicKey(); + /** + * optional string secondaryPublicKey = 2; + */ + java.lang.String getSecondaryPublicKey(); + /** + * optional string secondaryPublicKey = 2; + */ + com.google.protobuf.ByteString getSecondaryPublicKeyBytes(); - // optional bytes requestSignature = 3; - /** - * optional bytes requestSignature = 3; - */ - boolean hasRequestSignature(); - /** - * optional bytes requestSignature = 3; - */ - com.google.protobuf.ByteString getRequestSignature(); + // optional bytes requestSignature = 3; + /** + * optional bytes requestSignature = 3; + */ + boolean hasRequestSignature(); + /** + * optional bytes requestSignature = 3; + */ + com.google.protobuf.ByteString getRequestSignature(); - // optional bytes authorizationSignature = 4; - /** - * optional bytes authorizationSignature = 4; - */ - boolean hasAuthorizationSignature(); - /** - * optional bytes authorizationSignature = 4; - */ - com.google.protobuf.ByteString getAuthorizationSignature(); + // optional bytes authorizationSignature = 4; + /** + * optional bytes authorizationSignature = 4; + */ + boolean hasAuthorizationSignature(); + /** + * optional bytes authorizationSignature = 4; + */ + com.google.protobuf.ByteString getAuthorizationSignature(); + } + /** + * Protobuf type {@code signalservice.DeviceLinkMessage} + */ + public static final class DeviceLinkMessage extends + com.google.protobuf.GeneratedMessage + implements DeviceLinkMessageOrBuilder { + // Use DeviceLinkMessage.newBuilder() to construct. + private DeviceLinkMessage(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private DeviceLinkMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final DeviceLinkMessage defaultInstance; + public static DeviceLinkMessage getDefaultInstance() { + return defaultInstance; + } + + public DeviceLinkMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceLinkMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + primaryPublicKey_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + secondaryPublicKey_ = input.readBytes(); + break; + } + case 26: { + bitField0_ |= 0x00000004; + requestSignature_ = input.readBytes(); + break; + } + case 34: { + bitField0_ |= 0x00000008; + authorizationSignature_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DeviceLinkMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DeviceLinkMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public DeviceLinkMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceLinkMessage(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string primaryPublicKey = 1; + public static final int PRIMARYPUBLICKEY_FIELD_NUMBER = 1; + private java.lang.Object primaryPublicKey_; + /** + * optional string primaryPublicKey = 1; + */ + public boolean hasPrimaryPublicKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string primaryPublicKey = 1; + */ + public java.lang.String getPrimaryPublicKey() { + java.lang.Object ref = primaryPublicKey_; + 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()) { + primaryPublicKey_ = s; + } + return s; + } + } + /** + * optional string primaryPublicKey = 1; + */ + public com.google.protobuf.ByteString + getPrimaryPublicKeyBytes() { + java.lang.Object ref = primaryPublicKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + primaryPublicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional string secondaryPublicKey = 2; + public static final int SECONDARYPUBLICKEY_FIELD_NUMBER = 2; + private java.lang.Object secondaryPublicKey_; + /** + * optional string secondaryPublicKey = 2; + */ + public boolean hasSecondaryPublicKey() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string secondaryPublicKey = 2; + */ + public java.lang.String getSecondaryPublicKey() { + java.lang.Object ref = secondaryPublicKey_; + 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()) { + secondaryPublicKey_ = s; + } + return s; + } + } + /** + * optional string secondaryPublicKey = 2; + */ + public com.google.protobuf.ByteString + getSecondaryPublicKeyBytes() { + java.lang.Object ref = secondaryPublicKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryPublicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional bytes requestSignature = 3; + public static final int REQUESTSIGNATURE_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString requestSignature_; + /** + * optional bytes requestSignature = 3; + */ + public boolean hasRequestSignature() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bytes requestSignature = 3; + */ + public com.google.protobuf.ByteString getRequestSignature() { + return requestSignature_; + } + + // optional bytes authorizationSignature = 4; + public static final int AUTHORIZATIONSIGNATURE_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString authorizationSignature_; + /** + * optional bytes authorizationSignature = 4; + */ + public boolean hasAuthorizationSignature() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional bytes authorizationSignature = 4; + */ + public com.google.protobuf.ByteString getAuthorizationSignature() { + return authorizationSignature_; + } + + private void initFields() { + primaryPublicKey_ = ""; + secondaryPublicKey_ = ""; + requestSignature_ = com.google.protobuf.ByteString.EMPTY; + authorizationSignature_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getPrimaryPublicKeyBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getSecondaryPublicKeyBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, requestSignature_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(4, authorizationSignature_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getPrimaryPublicKeyBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getSecondaryPublicKeyBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, requestSignature_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, authorizationSignature_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage 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.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.DeviceLinkMessage} */ - public static final class DeviceLinkMessage extends - com.google.protobuf.GeneratedMessage - implements DeviceLinkMessageOrBuilder { - // Use DeviceLinkMessage.newBuilder() to construct. - private DeviceLinkMessage(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DeviceLinkMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DeviceLinkMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } - private DeviceLinkMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + } + private static Builder create() { + return new Builder(); + } - private static final DeviceLinkMessage defaultInstance; - public static DeviceLinkMessage getDefaultInstance() { - return defaultInstance; + public Builder clear() { + super.clear(); + primaryPublicKey_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + secondaryPublicKey_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + requestSignature_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + authorizationSignature_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DeviceLinkMessage_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - public DeviceLinkMessage getDefaultInstanceForType() { - return defaultInstance; + public org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + result.primaryPublicKey_ = primaryPublicKey_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - private DeviceLinkMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - primaryPublicKey_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - secondaryPublicKey_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - requestSignature_ = input.readBytes(); - break; - } - case 34: { - bitField0_ |= 0x00000008; - authorizationSignature_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + result.secondaryPublicKey_ = secondaryPublicKey_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DeviceLinkMessage_descriptor; + result.requestSignature_ = requestSignature_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; } + result.authorizationSignature_ = authorizationSignature_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DeviceLinkMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.Builder.class); + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage)other); + } else { + super.mergeFrom(other); + return this; } + } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DeviceLinkMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeviceLinkMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.getDefaultInstance()) return this; + if (other.hasPrimaryPublicKey()) { + bitField0_ |= 0x00000001; + primaryPublicKey_ = other.primaryPublicKey_; + onChanged(); } - - private int bitField0_; - // optional string primaryPublicKey = 1; - public static final int PRIMARYPUBLICKEY_FIELD_NUMBER = 1; - private java.lang.Object primaryPublicKey_; - /** - * optional string primaryPublicKey = 1; - */ - public boolean hasPrimaryPublicKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); + if (other.hasSecondaryPublicKey()) { + bitField0_ |= 0x00000002; + secondaryPublicKey_ = other.secondaryPublicKey_; + onChanged(); } - /** - * optional string primaryPublicKey = 1; - */ - public java.lang.String getPrimaryPublicKey() { - java.lang.Object ref = primaryPublicKey_; - 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()) { - primaryPublicKey_ = s; - } - return s; - } + if (other.hasRequestSignature()) { + setRequestSignature(other.getRequestSignature()); } - /** - * optional string primaryPublicKey = 1; - */ - public com.google.protobuf.ByteString - getPrimaryPublicKeyBytes() { - java.lang.Object ref = primaryPublicKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - primaryPublicKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + if (other.hasAuthorizationSignature()) { + setAuthorizationSignature(other.getAuthorizationSignature()); } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } - // optional string secondaryPublicKey = 2; - public static final int SECONDARYPUBLICKEY_FIELD_NUMBER = 2; - private java.lang.Object secondaryPublicKey_; - /** - * optional string secondaryPublicKey = 2; - */ - public boolean hasSecondaryPublicKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } - /** - * optional string secondaryPublicKey = 2; - */ - public java.lang.String getSecondaryPublicKey() { - java.lang.Object ref = secondaryPublicKey_; - 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()) { - secondaryPublicKey_ = s; - } - return s; - } + return this; + } + private int bitField0_; + + // optional string primaryPublicKey = 1; + private java.lang.Object primaryPublicKey_ = ""; + /** + * optional string primaryPublicKey = 1; + */ + public boolean hasPrimaryPublicKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string primaryPublicKey = 1; + */ + public java.lang.String getPrimaryPublicKey() { + java.lang.Object ref = primaryPublicKey_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + primaryPublicKey_ = s; + return s; + } else { + return (java.lang.String) ref; } - /** - * optional string secondaryPublicKey = 2; - */ - public com.google.protobuf.ByteString - getSecondaryPublicKeyBytes() { - java.lang.Object ref = secondaryPublicKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - secondaryPublicKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + } + /** + * optional string primaryPublicKey = 1; + */ + public com.google.protobuf.ByteString + getPrimaryPublicKeyBytes() { + java.lang.Object ref = primaryPublicKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + primaryPublicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } + /** + * optional string primaryPublicKey = 1; + */ + public Builder setPrimaryPublicKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + primaryPublicKey_ = value; + onChanged(); + return this; + } + /** + * optional string primaryPublicKey = 1; + */ + public Builder clearPrimaryPublicKey() { + bitField0_ = (bitField0_ & ~0x00000001); + primaryPublicKey_ = getDefaultInstance().getPrimaryPublicKey(); + onChanged(); + return this; + } + /** + * optional string primaryPublicKey = 1; + */ + public Builder setPrimaryPublicKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + primaryPublicKey_ = value; + onChanged(); + return this; + } - // optional bytes requestSignature = 3; - public static final int REQUESTSIGNATURE_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString requestSignature_; - /** - * optional bytes requestSignature = 3; - */ - public boolean hasRequestSignature() { - return ((bitField0_ & 0x00000004) == 0x00000004); + // optional string secondaryPublicKey = 2; + private java.lang.Object secondaryPublicKey_ = ""; + /** + * optional string secondaryPublicKey = 2; + */ + public boolean hasSecondaryPublicKey() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string secondaryPublicKey = 2; + */ + public java.lang.String getSecondaryPublicKey() { + java.lang.Object ref = secondaryPublicKey_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + secondaryPublicKey_ = s; + return s; + } else { + return (java.lang.String) ref; } - /** - * optional bytes requestSignature = 3; - */ - public com.google.protobuf.ByteString getRequestSignature() { - return requestSignature_; + } + /** + * optional string secondaryPublicKey = 2; + */ + public com.google.protobuf.ByteString + getSecondaryPublicKeyBytes() { + java.lang.Object ref = secondaryPublicKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + secondaryPublicKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } + /** + * optional string secondaryPublicKey = 2; + */ + public Builder setSecondaryPublicKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + secondaryPublicKey_ = value; + onChanged(); + return this; + } + /** + * optional string secondaryPublicKey = 2; + */ + public Builder clearSecondaryPublicKey() { + bitField0_ = (bitField0_ & ~0x00000002); + secondaryPublicKey_ = getDefaultInstance().getSecondaryPublicKey(); + onChanged(); + return this; + } + /** + * optional string secondaryPublicKey = 2; + */ + public Builder setSecondaryPublicKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + secondaryPublicKey_ = value; + onChanged(); + return this; + } - // optional bytes authorizationSignature = 4; - public static final int AUTHORIZATIONSIGNATURE_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString authorizationSignature_; - /** - * optional bytes authorizationSignature = 4; - */ - public boolean hasAuthorizationSignature() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bytes authorizationSignature = 4; - */ - public com.google.protobuf.ByteString getAuthorizationSignature() { - return authorizationSignature_; - } + // optional bytes requestSignature = 3; + private com.google.protobuf.ByteString requestSignature_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes requestSignature = 3; + */ + public boolean hasRequestSignature() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bytes requestSignature = 3; + */ + public com.google.protobuf.ByteString getRequestSignature() { + return requestSignature_; + } + /** + * optional bytes requestSignature = 3; + */ + public Builder setRequestSignature(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + requestSignature_ = value; + onChanged(); + return this; + } + /** + * optional bytes requestSignature = 3; + */ + public Builder clearRequestSignature() { + bitField0_ = (bitField0_ & ~0x00000004); + requestSignature_ = getDefaultInstance().getRequestSignature(); + onChanged(); + return this; + } - private void initFields() { - primaryPublicKey_ = ""; - secondaryPublicKey_ = ""; - requestSignature_ = com.google.protobuf.ByteString.EMPTY; - authorizationSignature_ = com.google.protobuf.ByteString.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; + // optional bytes authorizationSignature = 4; + private com.google.protobuf.ByteString authorizationSignature_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes authorizationSignature = 4; + */ + public boolean hasAuthorizationSignature() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional bytes authorizationSignature = 4; + */ + public com.google.protobuf.ByteString getAuthorizationSignature() { + return authorizationSignature_; + } + /** + * optional bytes authorizationSignature = 4; + */ + public Builder setAuthorizationSignature(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + authorizationSignature_ = value; + onChanged(); + return this; + } + /** + * optional bytes authorizationSignature = 4; + */ + public Builder clearAuthorizationSignature() { + bitField0_ = (bitField0_ & ~0x00000008); + authorizationSignature_ = getDefaultInstance().getAuthorizationSignature(); + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getPrimaryPublicKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getSecondaryPublicKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, requestSignature_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, authorizationSignature_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getPrimaryPublicKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getSecondaryPublicKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, requestSignature_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, authorizationSignature_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage 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.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.DeviceLinkMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DeviceLinkMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DeviceLinkMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - primaryPublicKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - secondaryPublicKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - requestSignature_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - authorizationSignature_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DeviceLinkMessage_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.primaryPublicKey_ = primaryPublicKey_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.secondaryPublicKey_ = secondaryPublicKey_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.requestSignature_ = requestSignature_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.authorizationSignature_ = authorizationSignature_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage.getDefaultInstance()) return this; - if (other.hasPrimaryPublicKey()) { - bitField0_ |= 0x00000001; - primaryPublicKey_ = other.primaryPublicKey_; - onChanged(); - } - if (other.hasSecondaryPublicKey()) { - bitField0_ |= 0x00000002; - secondaryPublicKey_ = other.secondaryPublicKey_; - onChanged(); - } - if (other.hasRequestSignature()) { - setRequestSignature(other.getRequestSignature()); - } - if (other.hasAuthorizationSignature()) { - setAuthorizationSignature(other.getAuthorizationSignature()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DeviceLinkMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string primaryPublicKey = 1; - private java.lang.Object primaryPublicKey_ = ""; - /** - * optional string primaryPublicKey = 1; - */ - public boolean hasPrimaryPublicKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string primaryPublicKey = 1; - */ - public java.lang.String getPrimaryPublicKey() { - java.lang.Object ref = primaryPublicKey_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - primaryPublicKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string primaryPublicKey = 1; - */ - public com.google.protobuf.ByteString - getPrimaryPublicKeyBytes() { - java.lang.Object ref = primaryPublicKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - primaryPublicKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string primaryPublicKey = 1; - */ - public Builder setPrimaryPublicKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - primaryPublicKey_ = value; - onChanged(); - return this; - } - /** - * optional string primaryPublicKey = 1; - */ - public Builder clearPrimaryPublicKey() { - bitField0_ = (bitField0_ & ~0x00000001); - primaryPublicKey_ = getDefaultInstance().getPrimaryPublicKey(); - onChanged(); - return this; - } - /** - * optional string primaryPublicKey = 1; - */ - public Builder setPrimaryPublicKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - primaryPublicKey_ = value; - onChanged(); - return this; - } - - // optional string secondaryPublicKey = 2; - private java.lang.Object secondaryPublicKey_ = ""; - /** - * optional string secondaryPublicKey = 2; - */ - public boolean hasSecondaryPublicKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string secondaryPublicKey = 2; - */ - public java.lang.String getSecondaryPublicKey() { - java.lang.Object ref = secondaryPublicKey_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - secondaryPublicKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string secondaryPublicKey = 2; - */ - public com.google.protobuf.ByteString - getSecondaryPublicKeyBytes() { - java.lang.Object ref = secondaryPublicKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - secondaryPublicKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string secondaryPublicKey = 2; - */ - public Builder setSecondaryPublicKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - secondaryPublicKey_ = value; - onChanged(); - return this; - } - /** - * optional string secondaryPublicKey = 2; - */ - public Builder clearSecondaryPublicKey() { - bitField0_ = (bitField0_ & ~0x00000002); - secondaryPublicKey_ = getDefaultInstance().getSecondaryPublicKey(); - onChanged(); - return this; - } - /** - * optional string secondaryPublicKey = 2; - */ - public Builder setSecondaryPublicKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - secondaryPublicKey_ = value; - onChanged(); - return this; - } - - // optional bytes requestSignature = 3; - private com.google.protobuf.ByteString requestSignature_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes requestSignature = 3; - */ - public boolean hasRequestSignature() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bytes requestSignature = 3; - */ - public com.google.protobuf.ByteString getRequestSignature() { - return requestSignature_; - } - /** - * optional bytes requestSignature = 3; - */ - public Builder setRequestSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - requestSignature_ = value; - onChanged(); - return this; - } - /** - * optional bytes requestSignature = 3; - */ - public Builder clearRequestSignature() { - bitField0_ = (bitField0_ & ~0x00000004); - requestSignature_ = getDefaultInstance().getRequestSignature(); - onChanged(); - return this; - } - - // optional bytes authorizationSignature = 4; - private com.google.protobuf.ByteString authorizationSignature_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes authorizationSignature = 4; - */ - public boolean hasAuthorizationSignature() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bytes authorizationSignature = 4; - */ - public com.google.protobuf.ByteString getAuthorizationSignature() { - return authorizationSignature_; - } - /** - * optional bytes authorizationSignature = 4; - */ - public Builder setAuthorizationSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - authorizationSignature_ = value; - onChanged(); - return this; - } - /** - * optional bytes authorizationSignature = 4; - */ - public Builder clearAuthorizationSignature() { - bitField0_ = (bitField0_ & ~0x00000008); - authorizationSignature_ = getDefaultInstance().getAuthorizationSignature(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.DeviceLinkMessage) - } - - static { - defaultInstance = new DeviceLinkMessage(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.DeviceLinkMessage) + // @@protoc_insertion_point(builder_scope:signalservice.DeviceLinkMessage) } - public interface PreKeyBundleMessageOrBuilder - extends com.google.protobuf.MessageOrBuilder { + static { + defaultInstance = new DeviceLinkMessage(true); + defaultInstance.initFields(); + } - // optional bytes identityKey = 1; - /** - * optional bytes identityKey = 1; - */ - boolean hasIdentityKey(); - /** - * optional bytes identityKey = 1; - */ - com.google.protobuf.ByteString getIdentityKey(); + // @@protoc_insertion_point(class_scope:signalservice.DeviceLinkMessage) + } - // optional uint32 deviceId = 2; - /** - * optional uint32 deviceId = 2; - */ - boolean hasDeviceId(); - /** - * optional uint32 deviceId = 2; - */ - int getDeviceId(); + public interface PreKeyBundleMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { - // optional uint32 preKeyId = 3; - /** - * optional uint32 preKeyId = 3; - */ - boolean hasPreKeyId(); - /** - * optional uint32 preKeyId = 3; - */ - int getPreKeyId(); + // optional bytes identityKey = 1; + /** + * optional bytes identityKey = 1; + */ + boolean hasIdentityKey(); + /** + * optional bytes identityKey = 1; + */ + com.google.protobuf.ByteString getIdentityKey(); - // optional uint32 signedKeyId = 4; - /** - * optional uint32 signedKeyId = 4; - */ - boolean hasSignedKeyId(); - /** - * optional uint32 signedKeyId = 4; - */ - int getSignedKeyId(); + // optional uint32 deviceId = 2; + /** + * optional uint32 deviceId = 2; + */ + boolean hasDeviceId(); + /** + * optional uint32 deviceId = 2; + */ + int getDeviceId(); - // optional bytes preKey = 5; - /** - * optional bytes preKey = 5; - */ - boolean hasPreKey(); - /** - * optional bytes preKey = 5; - */ - com.google.protobuf.ByteString getPreKey(); + // optional uint32 preKeyId = 3; + /** + * optional uint32 preKeyId = 3; + */ + boolean hasPreKeyId(); + /** + * optional uint32 preKeyId = 3; + */ + int getPreKeyId(); - // optional bytes signedKey = 6; - /** - * optional bytes signedKey = 6; - */ - boolean hasSignedKey(); - /** - * optional bytes signedKey = 6; - */ - com.google.protobuf.ByteString getSignedKey(); + // optional uint32 signedKeyId = 4; + /** + * optional uint32 signedKeyId = 4; + */ + boolean hasSignedKeyId(); + /** + * optional uint32 signedKeyId = 4; + */ + int getSignedKeyId(); - // optional bytes signature = 7; - /** - * optional bytes signature = 7; - */ - boolean hasSignature(); - /** - * optional bytes signature = 7; - */ - com.google.protobuf.ByteString getSignature(); + // optional bytes preKey = 5; + /** + * optional bytes preKey = 5; + */ + boolean hasPreKey(); + /** + * optional bytes preKey = 5; + */ + com.google.protobuf.ByteString getPreKey(); + + // optional bytes signedKey = 6; + /** + * optional bytes signedKey = 6; + */ + boolean hasSignedKey(); + /** + * optional bytes signedKey = 6; + */ + com.google.protobuf.ByteString getSignedKey(); + + // optional bytes signature = 7; + /** + * optional bytes signature = 7; + */ + boolean hasSignature(); + /** + * optional bytes signature = 7; + */ + com.google.protobuf.ByteString getSignature(); + } + /** + * Protobuf type {@code signalservice.PreKeyBundleMessage} + */ + public static final class PreKeyBundleMessage extends + com.google.protobuf.GeneratedMessage + implements PreKeyBundleMessageOrBuilder { + // Use PreKeyBundleMessage.newBuilder() to construct. + private PreKeyBundleMessage(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PreKeyBundleMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final PreKeyBundleMessage defaultInstance; + public static PreKeyBundleMessage getDefaultInstance() { + return defaultInstance; + } + + public PreKeyBundleMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PreKeyBundleMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + identityKey_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + deviceId_ = input.readUInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + preKeyId_ = input.readUInt32(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + signedKeyId_ = input.readUInt32(); + break; + } + case 42: { + bitField0_ |= 0x00000010; + preKey_ = input.readBytes(); + break; + } + case 50: { + bitField0_ |= 0x00000020; + signedKey_ = input.readBytes(); + break; + } + case 58: { + bitField0_ |= 0x00000040; + signature_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_PreKeyBundleMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_PreKeyBundleMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public PreKeyBundleMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PreKeyBundleMessage(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional bytes identityKey = 1; + public static final int IDENTITYKEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString identityKey_; + /** + * optional bytes identityKey = 1; + */ + public boolean hasIdentityKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional bytes identityKey = 1; + */ + public com.google.protobuf.ByteString getIdentityKey() { + return identityKey_; + } + + // optional uint32 deviceId = 2; + public static final int DEVICEID_FIELD_NUMBER = 2; + private int deviceId_; + /** + * optional uint32 deviceId = 2; + */ + public boolean hasDeviceId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional uint32 deviceId = 2; + */ + public int getDeviceId() { + return deviceId_; + } + + // optional uint32 preKeyId = 3; + public static final int PREKEYID_FIELD_NUMBER = 3; + private int preKeyId_; + /** + * optional uint32 preKeyId = 3; + */ + public boolean hasPreKeyId() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional uint32 preKeyId = 3; + */ + public int getPreKeyId() { + return preKeyId_; + } + + // optional uint32 signedKeyId = 4; + public static final int SIGNEDKEYID_FIELD_NUMBER = 4; + private int signedKeyId_; + /** + * optional uint32 signedKeyId = 4; + */ + public boolean hasSignedKeyId() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional uint32 signedKeyId = 4; + */ + public int getSignedKeyId() { + return signedKeyId_; + } + + // optional bytes preKey = 5; + public static final int PREKEY_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString preKey_; + /** + * optional bytes preKey = 5; + */ + public boolean hasPreKey() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional bytes preKey = 5; + */ + public com.google.protobuf.ByteString getPreKey() { + return preKey_; + } + + // optional bytes signedKey = 6; + public static final int SIGNEDKEY_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString signedKey_; + /** + * optional bytes signedKey = 6; + */ + public boolean hasSignedKey() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional bytes signedKey = 6; + */ + public com.google.protobuf.ByteString getSignedKey() { + return signedKey_; + } + + // optional bytes signature = 7; + public static final int SIGNATURE_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString signature_; + /** + * optional bytes signature = 7; + */ + public boolean hasSignature() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional bytes signature = 7; + */ + public com.google.protobuf.ByteString getSignature() { + return signature_; + } + + private void initFields() { + identityKey_ = com.google.protobuf.ByteString.EMPTY; + deviceId_ = 0; + preKeyId_ = 0; + signedKeyId_ = 0; + preKey_ = com.google.protobuf.ByteString.EMPTY; + signedKey_ = com.google.protobuf.ByteString.EMPTY; + signature_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, identityKey_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, deviceId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, preKeyId_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(4, signedKeyId_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeBytes(5, preKey_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBytes(6, signedKey_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeBytes(7, signature_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, identityKey_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, deviceId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, preKeyId_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, signedKeyId_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, preKey_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, signedKey_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, signature_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage 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.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.PreKeyBundleMessage} */ - public static final class PreKeyBundleMessage extends - com.google.protobuf.GeneratedMessage - implements PreKeyBundleMessageOrBuilder { - // Use PreKeyBundleMessage.newBuilder() to construct. - private PreKeyBundleMessage(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private PreKeyBundleMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_PreKeyBundleMessage_descriptor; + } - private static final PreKeyBundleMessage defaultInstance; - public static PreKeyBundleMessage getDefaultInstance() { - return defaultInstance; - } + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_PreKeyBundleMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.Builder.class); + } - public PreKeyBundleMessage getDefaultInstanceForType() { - return defaultInstance; - } + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + identityKey_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + deviceId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + preKeyId_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + signedKeyId_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + preKey_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + signedKey_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + signature_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_PreKeyBundleMessage_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage result = new org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.identityKey_ = identityKey_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.deviceId_ = deviceId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.preKeyId_ = preKeyId_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.signedKeyId_ = signedKeyId_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.preKey_ = preKey_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.signedKey_ = signedKey_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.signature_ = signature_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.getDefaultInstance()) return this; + if (other.hasIdentityKey()) { + setIdentityKey(other.getIdentityKey()); + } + if (other.hasDeviceId()) { + setDeviceId(other.getDeviceId()); + } + if (other.hasPreKeyId()) { + setPreKeyId(other.getPreKeyId()); + } + if (other.hasSignedKeyId()) { + setSignedKeyId(other.getSignedKeyId()); + } + if (other.hasPreKey()) { + setPreKey(other.getPreKey()); + } + if (other.hasSignedKey()) { + setSignedKey(other.getSignedKey()); + } + if (other.hasSignature()) { + setSignature(other.getSignature()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional bytes identityKey = 1; + private com.google.protobuf.ByteString identityKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes identityKey = 1; + */ + public boolean hasIdentityKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional bytes identityKey = 1; + */ + public com.google.protobuf.ByteString getIdentityKey() { + return identityKey_; + } + /** + * optional bytes identityKey = 1; + */ + public Builder setIdentityKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + identityKey_ = value; + onChanged(); + return this; + } + /** + * optional bytes identityKey = 1; + */ + public Builder clearIdentityKey() { + bitField0_ = (bitField0_ & ~0x00000001); + identityKey_ = getDefaultInstance().getIdentityKey(); + onChanged(); + return this; + } + + // optional uint32 deviceId = 2; + private int deviceId_ ; + /** + * optional uint32 deviceId = 2; + */ + public boolean hasDeviceId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional uint32 deviceId = 2; + */ + public int getDeviceId() { + return deviceId_; + } + /** + * optional uint32 deviceId = 2; + */ + public Builder setDeviceId(int value) { + bitField0_ |= 0x00000002; + deviceId_ = value; + onChanged(); + return this; + } + /** + * optional uint32 deviceId = 2; + */ + public Builder clearDeviceId() { + bitField0_ = (bitField0_ & ~0x00000002); + deviceId_ = 0; + onChanged(); + return this; + } + + // optional uint32 preKeyId = 3; + private int preKeyId_ ; + /** + * optional uint32 preKeyId = 3; + */ + public boolean hasPreKeyId() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional uint32 preKeyId = 3; + */ + public int getPreKeyId() { + return preKeyId_; + } + /** + * optional uint32 preKeyId = 3; + */ + public Builder setPreKeyId(int value) { + bitField0_ |= 0x00000004; + preKeyId_ = value; + onChanged(); + return this; + } + /** + * optional uint32 preKeyId = 3; + */ + public Builder clearPreKeyId() { + bitField0_ = (bitField0_ & ~0x00000004); + preKeyId_ = 0; + onChanged(); + return this; + } + + // optional uint32 signedKeyId = 4; + private int signedKeyId_ ; + /** + * optional uint32 signedKeyId = 4; + */ + public boolean hasSignedKeyId() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional uint32 signedKeyId = 4; + */ + public int getSignedKeyId() { + return signedKeyId_; + } + /** + * optional uint32 signedKeyId = 4; + */ + public Builder setSignedKeyId(int value) { + bitField0_ |= 0x00000008; + signedKeyId_ = value; + onChanged(); + return this; + } + /** + * optional uint32 signedKeyId = 4; + */ + public Builder clearSignedKeyId() { + bitField0_ = (bitField0_ & ~0x00000008); + signedKeyId_ = 0; + onChanged(); + return this; + } + + // optional bytes preKey = 5; + private com.google.protobuf.ByteString preKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes preKey = 5; + */ + public boolean hasPreKey() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional bytes preKey = 5; + */ + public com.google.protobuf.ByteString getPreKey() { + return preKey_; + } + /** + * optional bytes preKey = 5; + */ + public Builder setPreKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + preKey_ = value; + onChanged(); + return this; + } + /** + * optional bytes preKey = 5; + */ + public Builder clearPreKey() { + bitField0_ = (bitField0_ & ~0x00000010); + preKey_ = getDefaultInstance().getPreKey(); + onChanged(); + return this; + } + + // optional bytes signedKey = 6; + private com.google.protobuf.ByteString signedKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes signedKey = 6; + */ + public boolean hasSignedKey() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional bytes signedKey = 6; + */ + public com.google.protobuf.ByteString getSignedKey() { + return signedKey_; + } + /** + * optional bytes signedKey = 6; + */ + public Builder setSignedKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + signedKey_ = value; + onChanged(); + return this; + } + /** + * optional bytes signedKey = 6; + */ + public Builder clearSignedKey() { + bitField0_ = (bitField0_ & ~0x00000020); + signedKey_ = getDefaultInstance().getSignedKey(); + onChanged(); + return this; + } + + // optional bytes signature = 7; + private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes signature = 7; + */ + public boolean hasSignature() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional bytes signature = 7; + */ + public com.google.protobuf.ByteString getSignature() { + return signature_; + } + /** + * optional bytes signature = 7; + */ + public Builder setSignature(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + signature_ = value; + onChanged(); + return this; + } + /** + * optional bytes signature = 7; + */ + public Builder clearSignature() { + bitField0_ = (bitField0_ & ~0x00000040); + signature_ = getDefaultInstance().getSignature(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.PreKeyBundleMessage) + } + + static { + defaultInstance = new PreKeyBundleMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.PreKeyBundleMessage) + } + + public interface CallMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional .signalservice.CallMessage.Offer offer = 1; + /** + * optional .signalservice.CallMessage.Offer offer = 1; + */ + boolean hasOffer(); + /** + * optional .signalservice.CallMessage.Offer offer = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer getOffer(); + /** + * optional .signalservice.CallMessage.Offer offer = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder getOfferOrBuilder(); + + // optional .signalservice.CallMessage.Answer answer = 2; + /** + * optional .signalservice.CallMessage.Answer answer = 2; + */ + boolean hasAnswer(); + /** + * optional .signalservice.CallMessage.Answer answer = 2; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer getAnswer(); + /** + * optional .signalservice.CallMessage.Answer answer = 2; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.AnswerOrBuilder getAnswerOrBuilder(); + + // repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + java.util.List + getIceUpdateList(); + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate getIceUpdate(int index); + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + int getIceUpdateCount(); + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + java.util.List + getIceUpdateOrBuilderList(); + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder getIceUpdateOrBuilder( + int index); + + // optional .signalservice.CallMessage.Hangup hangup = 4; + /** + * optional .signalservice.CallMessage.Hangup hangup = 4; + */ + boolean hasHangup(); + /** + * optional .signalservice.CallMessage.Hangup hangup = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup getHangup(); + /** + * optional .signalservice.CallMessage.Hangup hangup = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder getHangupOrBuilder(); + + // optional .signalservice.CallMessage.Busy busy = 5; + /** + * optional .signalservice.CallMessage.Busy busy = 5; + */ + boolean hasBusy(); + /** + * optional .signalservice.CallMessage.Busy busy = 5; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy getBusy(); + /** + * optional .signalservice.CallMessage.Busy busy = 5; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder getBusyOrBuilder(); + } + /** + * Protobuf type {@code signalservice.CallMessage} + */ + public static final class CallMessage extends + com.google.protobuf.GeneratedMessage + implements CallMessageOrBuilder { + // Use CallMessage.newBuilder() to construct. + private CallMessage(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private CallMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final CallMessage defaultInstance; + public static CallMessage getDefaultInstance() { + return defaultInstance; + } + + public CallMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - private PreKeyBundleMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - identityKey_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - deviceId_ = input.readUInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - preKeyId_ = input.readUInt32(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - signedKeyId_ = input.readUInt32(); - break; - } - case 42: { - bitField0_ |= 0x00000010; - preKey_ = input.readBytes(); - break; - } - case 50: { - bitField0_ |= 0x00000020; - signedKey_ = input.readBytes(); - break; - } - case 58: { - bitField0_ |= 0x00000040; - signature_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); + return this.unknownFields; + } + private CallMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; } + case 10: { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = offer_.toBuilder(); + } + offer_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(offer_); + offer_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = answer_.toBuilder(); + } + answer_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(answer_); + answer_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + iceUpdate_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + iceUpdate_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.PARSER, extensionRegistry)); + break; + } + case 34: { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = hangup_.toBuilder(); + } + hangup_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hangup_); + hangup_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 42: { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = busy_.toBuilder(); + } + busy_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(busy_); + busy_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + } } - public static final com.google.protobuf.Descriptors.Descriptor + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + iceUpdate_ = java.util.Collections.unmodifiableList(iceUpdate_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_PreKeyBundleMessage_descriptor; + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public CallMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CallMessage(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public interface OfferOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional uint64 id = 1; + /** + * optional uint64 id = 1; + */ + boolean hasId(); + /** + * optional uint64 id = 1; + */ + long getId(); + + // optional string description = 2; + /** + * optional string description = 2; + */ + boolean hasDescription(); + /** + * optional string description = 2; + */ + java.lang.String getDescription(); + /** + * optional string description = 2; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + * Protobuf type {@code signalservice.CallMessage.Offer} + */ + public static final class Offer extends + com.google.protobuf.GeneratedMessage + implements OfferOrBuilder { + // Use Offer.newBuilder() to construct. + private Offer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Offer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Offer defaultInstance; + public static Offer getDefaultInstance() { + return defaultInstance; + } + + public Offer getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Offer( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + id_ = input.readUInt64(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + description_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Offer_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Offer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Offer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Offer(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional uint64 id = 1; + public static final int ID_FIELD_NUMBER = 1; + private long id_; + /** + * optional uint64 id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional uint64 id = 1; + */ + public long getId() { + return id_; + } + + // optional string description = 2; + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private java.lang.Object description_; + /** + * optional string description = 2; + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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()) { + description_ = s; + } + return s; + } + } + /** + * optional string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + id_ = 0L; + description_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt64(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getDescriptionBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getDescriptionBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer 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.service.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.CallMessage.Offer} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Offer_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_PreKeyBundleMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PreKeyBundleMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PreKeyBundleMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional bytes identityKey = 1; - public static final int IDENTITYKEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString identityKey_; - /** - * optional bytes identityKey = 1; - */ - public boolean hasIdentityKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bytes identityKey = 1; - */ - public com.google.protobuf.ByteString getIdentityKey() { - return identityKey_; - } - - // optional uint32 deviceId = 2; - public static final int DEVICEID_FIELD_NUMBER = 2; - private int deviceId_; - /** - * optional uint32 deviceId = 2; - */ - public boolean hasDeviceId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional uint32 deviceId = 2; - */ - public int getDeviceId() { - return deviceId_; - } - - // optional uint32 preKeyId = 3; - public static final int PREKEYID_FIELD_NUMBER = 3; - private int preKeyId_; - /** - * optional uint32 preKeyId = 3; - */ - public boolean hasPreKeyId() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional uint32 preKeyId = 3; - */ - public int getPreKeyId() { - return preKeyId_; - } - - // optional uint32 signedKeyId = 4; - public static final int SIGNEDKEYID_FIELD_NUMBER = 4; - private int signedKeyId_; - /** - * optional uint32 signedKeyId = 4; - */ - public boolean hasSignedKeyId() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional uint32 signedKeyId = 4; - */ - public int getSignedKeyId() { - return signedKeyId_; - } - - // optional bytes preKey = 5; - public static final int PREKEY_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString preKey_; - /** - * optional bytes preKey = 5; - */ - public boolean hasPreKey() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional bytes preKey = 5; - */ - public com.google.protobuf.ByteString getPreKey() { - return preKey_; - } - - // optional bytes signedKey = 6; - public static final int SIGNEDKEY_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString signedKey_; - /** - * optional bytes signedKey = 6; - */ - public boolean hasSignedKey() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional bytes signedKey = 6; - */ - public com.google.protobuf.ByteString getSignedKey() { - return signedKey_; - } - - // optional bytes signature = 7; - public static final int SIGNATURE_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString signature_; - /** - * optional bytes signature = 7; - */ - public boolean hasSignature() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional bytes signature = 7; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - - private void initFields() { - identityKey_ = com.google.protobuf.ByteString.EMPTY; - deviceId_ = 0; - preKeyId_ = 0; - signedKeyId_ = 0; - preKey_ = com.google.protobuf.ByteString.EMPTY; - signedKey_ = com.google.protobuf.ByteString.EMPTY; - signature_ = com.google.protobuf.ByteString.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, identityKey_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeUInt32(2, deviceId_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeUInt32(3, preKeyId_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeUInt32(4, signedKeyId_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, preKey_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, signedKey_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, signature_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, identityKey_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, deviceId_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, preKeyId_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, signedKeyId_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, preKey_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, signedKey_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, signature_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage 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.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.PreKeyBundleMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_PreKeyBundleMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_PreKeyBundleMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.Builder.class); - } + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Offer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.Builder.class); + } - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } - public Builder clear() { - super.clear(); - identityKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - deviceId_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - preKeyId_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - signedKeyId_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - preKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - signedKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); - signature_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } + public Builder clear() { + super.clear(); + id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + description_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } + public Builder clone() { + return create().mergeFrom(buildPartial()); + } - public com.google.protobuf.Descriptors.Descriptor + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_PreKeyBundleMessage_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage result = new org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.identityKey_ = identityKey_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.deviceId_ = deviceId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.preKeyId_ = preKeyId_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.signedKeyId_ = signedKeyId_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.preKey_ = preKey_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.signedKey_ = signedKey_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.signature_ = signature_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage.getDefaultInstance()) return this; - if (other.hasIdentityKey()) { - setIdentityKey(other.getIdentityKey()); - } - if (other.hasDeviceId()) { - setDeviceId(other.getDeviceId()); - } - if (other.hasPreKeyId()) { - setPreKeyId(other.getPreKeyId()); - } - if (other.hasSignedKeyId()) { - setSignedKeyId(other.getSignedKeyId()); - } - if (other.hasPreKey()) { - setPreKey(other.getPreKey()); - } - if (other.hasSignedKey()) { - setSignedKey(other.getSignedKey()); - } - if (other.hasSignature()) { - setSignature(other.getSignature()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.PreKeyBundleMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional bytes identityKey = 1; - private com.google.protobuf.ByteString identityKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes identityKey = 1; - */ - public boolean hasIdentityKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bytes identityKey = 1; - */ - public com.google.protobuf.ByteString getIdentityKey() { - return identityKey_; - } - /** - * optional bytes identityKey = 1; - */ - public Builder setIdentityKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - identityKey_ = value; - onChanged(); - return this; - } - /** - * optional bytes identityKey = 1; - */ - public Builder clearIdentityKey() { - bitField0_ = (bitField0_ & ~0x00000001); - identityKey_ = getDefaultInstance().getIdentityKey(); - onChanged(); - return this; - } - - // optional uint32 deviceId = 2; - private int deviceId_ ; - /** - * optional uint32 deviceId = 2; - */ - public boolean hasDeviceId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional uint32 deviceId = 2; - */ - public int getDeviceId() { - return deviceId_; - } - /** - * optional uint32 deviceId = 2; - */ - public Builder setDeviceId(int value) { - bitField0_ |= 0x00000002; - deviceId_ = value; - onChanged(); - return this; - } - /** - * optional uint32 deviceId = 2; - */ - public Builder clearDeviceId() { - bitField0_ = (bitField0_ & ~0x00000002); - deviceId_ = 0; - onChanged(); - return this; - } - - // optional uint32 preKeyId = 3; - private int preKeyId_ ; - /** - * optional uint32 preKeyId = 3; - */ - public boolean hasPreKeyId() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional uint32 preKeyId = 3; - */ - public int getPreKeyId() { - return preKeyId_; - } - /** - * optional uint32 preKeyId = 3; - */ - public Builder setPreKeyId(int value) { - bitField0_ |= 0x00000004; - preKeyId_ = value; - onChanged(); - return this; - } - /** - * optional uint32 preKeyId = 3; - */ - public Builder clearPreKeyId() { - bitField0_ = (bitField0_ & ~0x00000004); - preKeyId_ = 0; - onChanged(); - return this; - } - - // optional uint32 signedKeyId = 4; - private int signedKeyId_ ; - /** - * optional uint32 signedKeyId = 4; - */ - public boolean hasSignedKeyId() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional uint32 signedKeyId = 4; - */ - public int getSignedKeyId() { - return signedKeyId_; - } - /** - * optional uint32 signedKeyId = 4; - */ - public Builder setSignedKeyId(int value) { - bitField0_ |= 0x00000008; - signedKeyId_ = value; - onChanged(); - return this; - } - /** - * optional uint32 signedKeyId = 4; - */ - public Builder clearSignedKeyId() { - bitField0_ = (bitField0_ & ~0x00000008); - signedKeyId_ = 0; - onChanged(); - return this; - } - - // optional bytes preKey = 5; - private com.google.protobuf.ByteString preKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes preKey = 5; - */ - public boolean hasPreKey() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional bytes preKey = 5; - */ - public com.google.protobuf.ByteString getPreKey() { - return preKey_; - } - /** - * optional bytes preKey = 5; - */ - public Builder setPreKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - preKey_ = value; - onChanged(); - return this; - } - /** - * optional bytes preKey = 5; - */ - public Builder clearPreKey() { - bitField0_ = (bitField0_ & ~0x00000010); - preKey_ = getDefaultInstance().getPreKey(); - onChanged(); - return this; - } - - // optional bytes signedKey = 6; - private com.google.protobuf.ByteString signedKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes signedKey = 6; - */ - public boolean hasSignedKey() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional bytes signedKey = 6; - */ - public com.google.protobuf.ByteString getSignedKey() { - return signedKey_; - } - /** - * optional bytes signedKey = 6; - */ - public Builder setSignedKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - signedKey_ = value; - onChanged(); - return this; - } - /** - * optional bytes signedKey = 6; - */ - public Builder clearSignedKey() { - bitField0_ = (bitField0_ & ~0x00000020); - signedKey_ = getDefaultInstance().getSignedKey(); - onChanged(); - return this; - } - - // optional bytes signature = 7; - private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes signature = 7; - */ - public boolean hasSignature() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional bytes signature = 7; - */ - public com.google.protobuf.ByteString getSignature() { - return signature_; - } - /** - * optional bytes signature = 7; - */ - public Builder setSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - signature_ = value; - onChanged(); - return this; - } - /** - * optional bytes signature = 7; - */ - public Builder clearSignature() { - bitField0_ = (bitField0_ & ~0x00000040); - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.PreKeyBundleMessage) + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Offer_descriptor; } - static { - defaultInstance = new PreKeyBundleMessage(true); - defaultInstance.initFields(); + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance(); } - // @@protoc_insertion_point(class_scope:signalservice.PreKeyBundleMessage) + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer result = new org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.description_ = description_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance()) return this; + if (other.hasId()) { + setId(other.getId()); + } + if (other.hasDescription()) { + bitField0_ |= 0x00000002; + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional uint64 id = 1; + private long id_ ; + /** + * optional uint64 id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional uint64 id = 1; + */ + public long getId() { + return id_; + } + /** + * optional uint64 id = 1; + */ + public Builder setId(long value) { + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + /** + * optional uint64 id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = 0L; + onChanged(); + return this; + } + + // optional string description = 2; + private java.lang.Object description_ = ""; + /** + * optional string description = 2; + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string description = 2; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + description_ = value; + onChanged(); + return this; + } + /** + * optional string description = 2; + */ + public Builder clearDescription() { + bitField0_ = (bitField0_ & ~0x00000002); + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * optional string description = 2; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + description_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.CallMessage.Offer) + } + + static { + defaultInstance = new Offer(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.CallMessage.Offer) } - public interface CallMessageOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface AnswerOrBuilder + extends com.google.protobuf.MessageOrBuilder { - // optional .signalservice.CallMessage.Offer offer = 1; - /** - * optional .signalservice.CallMessage.Offer offer = 1; - */ - boolean hasOffer(); - /** - * optional .signalservice.CallMessage.Offer offer = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer getOffer(); - /** - * optional .signalservice.CallMessage.Offer offer = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder getOfferOrBuilder(); + // optional uint64 id = 1; + /** + * optional uint64 id = 1; + */ + boolean hasId(); + /** + * optional uint64 id = 1; + */ + long getId(); - // optional .signalservice.CallMessage.Answer answer = 2; - /** - * optional .signalservice.CallMessage.Answer answer = 2; - */ - boolean hasAnswer(); - /** - * optional .signalservice.CallMessage.Answer answer = 2; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer getAnswer(); - /** - * optional .signalservice.CallMessage.Answer answer = 2; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.AnswerOrBuilder getAnswerOrBuilder(); + // optional string description = 2; + /** + * optional string description = 2; + */ + boolean hasDescription(); + /** + * optional string description = 2; + */ + java.lang.String getDescription(); + /** + * optional string description = 2; + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + * Protobuf type {@code signalservice.CallMessage.Answer} + */ + public static final class Answer extends + com.google.protobuf.GeneratedMessage + implements AnswerOrBuilder { + // Use Answer.newBuilder() to construct. + private Answer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Answer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - // repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - java.util.List - getIceUpdateList(); - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate getIceUpdate(int index); - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - int getIceUpdateCount(); - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - java.util.List - getIceUpdateOrBuilderList(); - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder getIceUpdateOrBuilder( - int index); + private static final Answer defaultInstance; + public static Answer getDefaultInstance() { + return defaultInstance; + } - // optional .signalservice.CallMessage.Hangup hangup = 4; - /** - * optional .signalservice.CallMessage.Hangup hangup = 4; - */ - boolean hasHangup(); - /** - * optional .signalservice.CallMessage.Hangup hangup = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup getHangup(); - /** - * optional .signalservice.CallMessage.Hangup hangup = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder getHangupOrBuilder(); + public Answer getDefaultInstanceForType() { + return defaultInstance; + } - // optional .signalservice.CallMessage.Busy busy = 5; + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Answer( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + id_ = input.readUInt64(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + description_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Answer_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Answer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Answer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Answer(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional uint64 id = 1; + public static final int ID_FIELD_NUMBER = 1; + private long id_; + /** + * optional uint64 id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional uint64 id = 1; + */ + public long getId() { + return id_; + } + + // optional string description = 2; + public static final int DESCRIPTION_FIELD_NUMBER = 2; + private java.lang.Object description_; + /** + * optional string description = 2; + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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()) { + description_ = s; + } + return s; + } + } + /** + * optional string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + id_ = 0L; + description_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt64(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getDescriptionBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getDescriptionBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer 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.service.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.CallMessage.Answer} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.AnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Answer_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Answer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + description_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Answer_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer result = new org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.description_ = description_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance()) return this; + if (other.hasId()) { + setId(other.getId()); + } + if (other.hasDescription()) { + bitField0_ |= 0x00000002; + description_ = other.description_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional uint64 id = 1; + private long id_ ; /** - * optional .signalservice.CallMessage.Busy busy = 5; + * optional uint64 id = 1; */ - boolean hasBusy(); + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } /** - * optional .signalservice.CallMessage.Busy busy = 5; + * optional uint64 id = 1; */ - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy getBusy(); + public long getId() { + return id_; + } /** - * optional .signalservice.CallMessage.Busy busy = 5; + * optional uint64 id = 1; */ - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder getBusyOrBuilder(); + public Builder setId(long value) { + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + /** + * optional uint64 id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = 0L; + onChanged(); + return this; + } + + // optional string description = 2; + private java.lang.Object description_ = ""; + /** + * optional string description = 2; + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string description = 2; + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string description = 2; + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string description = 2; + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + description_ = value; + onChanged(); + return this; + } + /** + * optional string description = 2; + */ + public Builder clearDescription() { + bitField0_ = (bitField0_ & ~0x00000002); + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * optional string description = 2; + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + description_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.CallMessage.Answer) + } + + static { + defaultInstance = new Answer(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.CallMessage.Answer) + } + + public interface IceUpdateOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional uint64 id = 1; + /** + * optional uint64 id = 1; + */ + boolean hasId(); + /** + * optional uint64 id = 1; + */ + long getId(); + + // optional string sdpMid = 2; + /** + * optional string sdpMid = 2; + */ + boolean hasSdpMid(); + /** + * optional string sdpMid = 2; + */ + java.lang.String getSdpMid(); + /** + * optional string sdpMid = 2; + */ + com.google.protobuf.ByteString + getSdpMidBytes(); + + // optional uint32 sdpMLineIndex = 3; + /** + * optional uint32 sdpMLineIndex = 3; + */ + boolean hasSdpMLineIndex(); + /** + * optional uint32 sdpMLineIndex = 3; + */ + int getSdpMLineIndex(); + + // optional string sdp = 4; + /** + * optional string sdp = 4; + */ + boolean hasSdp(); + /** + * optional string sdp = 4; + */ + java.lang.String getSdp(); + /** + * optional string sdp = 4; + */ + com.google.protobuf.ByteString + getSdpBytes(); + } + /** + * Protobuf type {@code signalservice.CallMessage.IceUpdate} + */ + public static final class IceUpdate extends + com.google.protobuf.GeneratedMessage + implements IceUpdateOrBuilder { + // Use IceUpdate.newBuilder() to construct. + private IceUpdate(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private IceUpdate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final IceUpdate defaultInstance; + public static IceUpdate getDefaultInstance() { + return defaultInstance; + } + + public IceUpdate getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private IceUpdate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + id_ = input.readUInt64(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + sdpMid_ = input.readBytes(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + sdpMLineIndex_ = input.readUInt32(); + break; + } + case 34: { + bitField0_ |= 0x00000008; + sdp_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_IceUpdate_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_IceUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public IceUpdate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IceUpdate(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional uint64 id = 1; + public static final int ID_FIELD_NUMBER = 1; + private long id_; + /** + * optional uint64 id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional uint64 id = 1; + */ + public long getId() { + return id_; + } + + // optional string sdpMid = 2; + public static final int SDPMID_FIELD_NUMBER = 2; + private java.lang.Object sdpMid_; + /** + * optional string sdpMid = 2; + */ + public boolean hasSdpMid() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string sdpMid = 2; + */ + public java.lang.String getSdpMid() { + java.lang.Object ref = sdpMid_; + 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()) { + sdpMid_ = s; + } + return s; + } + } + /** + * optional string sdpMid = 2; + */ + public com.google.protobuf.ByteString + getSdpMidBytes() { + java.lang.Object ref = sdpMid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sdpMid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional uint32 sdpMLineIndex = 3; + public static final int SDPMLINEINDEX_FIELD_NUMBER = 3; + private int sdpMLineIndex_; + /** + * optional uint32 sdpMLineIndex = 3; + */ + public boolean hasSdpMLineIndex() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional uint32 sdpMLineIndex = 3; + */ + public int getSdpMLineIndex() { + return sdpMLineIndex_; + } + + // optional string sdp = 4; + public static final int SDP_FIELD_NUMBER = 4; + private java.lang.Object sdp_; + /** + * optional string sdp = 4; + */ + public boolean hasSdp() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional string sdp = 4; + */ + public java.lang.String getSdp() { + java.lang.Object ref = sdp_; + 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()) { + sdp_ = s; + } + return s; + } + } + /** + * optional string sdp = 4; + */ + public com.google.protobuf.ByteString + getSdpBytes() { + java.lang.Object ref = sdp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sdp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + id_ = 0L; + sdpMid_ = ""; + sdpMLineIndex_ = 0; + sdp_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt64(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getSdpMidBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, sdpMLineIndex_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(4, getSdpBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getSdpMidBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, sdpMLineIndex_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, getSdpBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate 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.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.CallMessage.IceUpdate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_IceUpdate_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_IceUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + sdpMid_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + sdpMLineIndex_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + sdp_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_IceUpdate_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate result = new org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.sdpMid_ = sdpMid_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.sdpMLineIndex_ = sdpMLineIndex_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.sdp_ = sdp_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.getDefaultInstance()) return this; + if (other.hasId()) { + setId(other.getId()); + } + if (other.hasSdpMid()) { + bitField0_ |= 0x00000002; + sdpMid_ = other.sdpMid_; + onChanged(); + } + if (other.hasSdpMLineIndex()) { + setSdpMLineIndex(other.getSdpMLineIndex()); + } + if (other.hasSdp()) { + bitField0_ |= 0x00000008; + sdp_ = other.sdp_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional uint64 id = 1; + private long id_ ; + /** + * optional uint64 id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional uint64 id = 1; + */ + public long getId() { + return id_; + } + /** + * optional uint64 id = 1; + */ + public Builder setId(long value) { + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + /** + * optional uint64 id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = 0L; + onChanged(); + return this; + } + + // optional string sdpMid = 2; + private java.lang.Object sdpMid_ = ""; + /** + * optional string sdpMid = 2; + */ + public boolean hasSdpMid() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string sdpMid = 2; + */ + public java.lang.String getSdpMid() { + java.lang.Object ref = sdpMid_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + sdpMid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string sdpMid = 2; + */ + public com.google.protobuf.ByteString + getSdpMidBytes() { + java.lang.Object ref = sdpMid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sdpMid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string sdpMid = 2; + */ + public Builder setSdpMid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + sdpMid_ = value; + onChanged(); + return this; + } + /** + * optional string sdpMid = 2; + */ + public Builder clearSdpMid() { + bitField0_ = (bitField0_ & ~0x00000002); + sdpMid_ = getDefaultInstance().getSdpMid(); + onChanged(); + return this; + } + /** + * optional string sdpMid = 2; + */ + public Builder setSdpMidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + sdpMid_ = value; + onChanged(); + return this; + } + + // optional uint32 sdpMLineIndex = 3; + private int sdpMLineIndex_ ; + /** + * optional uint32 sdpMLineIndex = 3; + */ + public boolean hasSdpMLineIndex() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional uint32 sdpMLineIndex = 3; + */ + public int getSdpMLineIndex() { + return sdpMLineIndex_; + } + /** + * optional uint32 sdpMLineIndex = 3; + */ + public Builder setSdpMLineIndex(int value) { + bitField0_ |= 0x00000004; + sdpMLineIndex_ = value; + onChanged(); + return this; + } + /** + * optional uint32 sdpMLineIndex = 3; + */ + public Builder clearSdpMLineIndex() { + bitField0_ = (bitField0_ & ~0x00000004); + sdpMLineIndex_ = 0; + onChanged(); + return this; + } + + // optional string sdp = 4; + private java.lang.Object sdp_ = ""; + /** + * optional string sdp = 4; + */ + public boolean hasSdp() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional string sdp = 4; + */ + public java.lang.String getSdp() { + java.lang.Object ref = sdp_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + sdp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string sdp = 4; + */ + public com.google.protobuf.ByteString + getSdpBytes() { + java.lang.Object ref = sdp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sdp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string sdp = 4; + */ + public Builder setSdp( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + sdp_ = value; + onChanged(); + return this; + } + /** + * optional string sdp = 4; + */ + public Builder clearSdp() { + bitField0_ = (bitField0_ & ~0x00000008); + sdp_ = getDefaultInstance().getSdp(); + onChanged(); + return this; + } + /** + * optional string sdp = 4; + */ + public Builder setSdpBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + sdp_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.CallMessage.IceUpdate) + } + + static { + defaultInstance = new IceUpdate(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.CallMessage.IceUpdate) + } + + public interface BusyOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional uint64 id = 1; + /** + * optional uint64 id = 1; + */ + boolean hasId(); + /** + * optional uint64 id = 1; + */ + long getId(); + } + /** + * Protobuf type {@code signalservice.CallMessage.Busy} + */ + public static final class Busy extends + com.google.protobuf.GeneratedMessage + implements BusyOrBuilder { + // Use Busy.newBuilder() to construct. + private Busy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Busy(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Busy defaultInstance; + public static Busy getDefaultInstance() { + return defaultInstance; + } + + public Busy getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Busy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + id_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Busy_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Busy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Busy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Busy(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional uint64 id = 1; + public static final int ID_FIELD_NUMBER = 1; + private long id_; + /** + * optional uint64 id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional uint64 id = 1; + */ + public long getId() { + return id_; + } + + private void initFields() { + id_ = 0L; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt64(1, id_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, id_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy 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.service.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.CallMessage.Busy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Busy_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Busy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Busy_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy result = new org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.id_ = id_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance()) return this; + if (other.hasId()) { + setId(other.getId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional uint64 id = 1; + private long id_ ; + /** + * optional uint64 id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional uint64 id = 1; + */ + public long getId() { + return id_; + } + /** + * optional uint64 id = 1; + */ + public Builder setId(long value) { + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + /** + * optional uint64 id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.CallMessage.Busy) + } + + static { + defaultInstance = new Busy(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.CallMessage.Busy) + } + + public interface HangupOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional uint64 id = 1; + /** + * optional uint64 id = 1; + */ + boolean hasId(); + /** + * optional uint64 id = 1; + */ + long getId(); + } + /** + * Protobuf type {@code signalservice.CallMessage.Hangup} + */ + public static final class Hangup extends + com.google.protobuf.GeneratedMessage + implements HangupOrBuilder { + // Use Hangup.newBuilder() to construct. + private Hangup(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Hangup(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Hangup defaultInstance; + public static Hangup getDefaultInstance() { + return defaultInstance; + } + + public Hangup getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Hangup( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + id_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Hangup_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Hangup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Hangup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Hangup(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional uint64 id = 1; + public static final int ID_FIELD_NUMBER = 1; + private long id_; + /** + * optional uint64 id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional uint64 id = 1; + */ + public long getId() { + return id_; + } + + private void initFields() { + id_ = 0L; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt64(1, id_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, id_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup 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.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.CallMessage.Hangup} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Hangup_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Hangup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Hangup_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup result = new org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.id_ = id_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance()) return this; + if (other.hasId()) { + setId(other.getId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional uint64 id = 1; + private long id_ ; + /** + * optional uint64 id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional uint64 id = 1; + */ + public long getId() { + return id_; + } + /** + * optional uint64 id = 1; + */ + public Builder setId(long value) { + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + /** + * optional uint64 id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.CallMessage.Hangup) + } + + static { + defaultInstance = new Hangup(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.CallMessage.Hangup) + } + + private int bitField0_; + // optional .signalservice.CallMessage.Offer offer = 1; + public static final int OFFER_FIELD_NUMBER = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer offer_; + /** + * optional .signalservice.CallMessage.Offer offer = 1; + */ + public boolean hasOffer() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.CallMessage.Offer offer = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer getOffer() { + return offer_; + } + /** + * optional .signalservice.CallMessage.Offer offer = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder getOfferOrBuilder() { + return offer_; + } + + // optional .signalservice.CallMessage.Answer answer = 2; + public static final int ANSWER_FIELD_NUMBER = 2; + private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer answer_; + /** + * optional .signalservice.CallMessage.Answer answer = 2; + */ + public boolean hasAnswer() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .signalservice.CallMessage.Answer answer = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer getAnswer() { + return answer_; + } + /** + * optional .signalservice.CallMessage.Answer answer = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.AnswerOrBuilder getAnswerOrBuilder() { + return answer_; + } + + // repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + public static final int ICEUPDATE_FIELD_NUMBER = 3; + private java.util.List iceUpdate_; + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public java.util.List getIceUpdateList() { + return iceUpdate_; + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public java.util.List + getIceUpdateOrBuilderList() { + return iceUpdate_; + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public int getIceUpdateCount() { + return iceUpdate_.size(); + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate getIceUpdate(int index) { + return iceUpdate_.get(index); + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder getIceUpdateOrBuilder( + int index) { + return iceUpdate_.get(index); + } + + // optional .signalservice.CallMessage.Hangup hangup = 4; + public static final int HANGUP_FIELD_NUMBER = 4; + private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup hangup_; + /** + * optional .signalservice.CallMessage.Hangup hangup = 4; + */ + public boolean hasHangup() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.CallMessage.Hangup hangup = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup getHangup() { + return hangup_; + } + /** + * optional .signalservice.CallMessage.Hangup hangup = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder getHangupOrBuilder() { + return hangup_; + } + + // optional .signalservice.CallMessage.Busy busy = 5; + public static final int BUSY_FIELD_NUMBER = 5; + private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy busy_; + /** + * optional .signalservice.CallMessage.Busy busy = 5; + */ + public boolean hasBusy() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .signalservice.CallMessage.Busy busy = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy getBusy() { + return busy_; + } + /** + * optional .signalservice.CallMessage.Busy busy = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder getBusyOrBuilder() { + return busy_; + } + + private void initFields() { + offer_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance(); + answer_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance(); + iceUpdate_ = java.util.Collections.emptyList(); + hangup_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance(); + busy_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, offer_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, answer_); + } + for (int i = 0; i < iceUpdate_.size(); i++) { + output.writeMessage(3, iceUpdate_.get(i)); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(4, hangup_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(5, busy_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, offer_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, answer_); + } + for (int i = 0; i < iceUpdate_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, iceUpdate_.get(i)); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, hangup_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, busy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.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.service.internal.push.SignalServiceProtos.CallMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.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.service.internal.push.SignalServiceProtos.CallMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.CallMessage} */ - public static final class CallMessage extends - com.google.protobuf.GeneratedMessage - implements CallMessageOrBuilder { - // Use CallMessage.newBuilder() to construct. - private CallMessage(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getOfferFieldBuilder(); + getAnswerFieldBuilder(); + getIceUpdateFieldBuilder(); + getHangupFieldBuilder(); + getBusyFieldBuilder(); } - private CallMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + } + private static Builder create() { + return new Builder(); + } - private static final CallMessage defaultInstance; - public static CallMessage getDefaultInstance() { - return defaultInstance; + public Builder clear() { + super.clear(); + if (offerBuilder_ == null) { + offer_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance(); + } else { + offerBuilder_.clear(); } - - public CallMessage getDefaultInstanceForType() { - return defaultInstance; + bitField0_ = (bitField0_ & ~0x00000001); + if (answerBuilder_ == null) { + answer_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance(); + } else { + answerBuilder_.clear(); } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + bitField0_ = (bitField0_ & ~0x00000002); + if (iceUpdateBuilder_ == null) { + iceUpdate_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + iceUpdateBuilder_.clear(); } - private CallMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = offer_.toBuilder(); - } - offer_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(offer_); - offer_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = answer_.toBuilder(); - } - answer_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(answer_); - answer_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - iceUpdate_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - iceUpdate_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.PARSER, extensionRegistry)); - break; - } - case 34: { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = hangup_.toBuilder(); - } - hangup_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hangup_); - hangup_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 42: { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = busy_.toBuilder(); - } - busy_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(busy_); - busy_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - iceUpdate_ = java.util.Collections.unmodifiableList(iceUpdate_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + if (hangupBuilder_ == null) { + hangup_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance(); + } else { + hangupBuilder_.clear(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_descriptor; + bitField0_ = (bitField0_ & ~0x00000008); + if (busyBuilder_ == null) { + busy_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance(); + } else { + busyBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Builder.class); + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CallMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CallMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage result = new org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - - public interface OfferOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional uint64 id = 1; - /** - * optional uint64 id = 1; - */ - boolean hasId(); - /** - * optional uint64 id = 1; - */ - long getId(); - - // optional string description = 2; - /** - * optional string description = 2; - */ - boolean hasDescription(); - /** - * optional string description = 2; - */ - java.lang.String getDescription(); - /** - * optional string description = 2; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); + if (offerBuilder_ == null) { + result.offer_ = offer_; + } else { + result.offer_ = offerBuilder_.build(); } - /** - * Protobuf type {@code signalservice.CallMessage.Offer} - */ - public static final class Offer extends - com.google.protobuf.GeneratedMessage - implements OfferOrBuilder { - // Use Offer.newBuilder() to construct. - private Offer(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Offer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Offer defaultInstance; - public static Offer getDefaultInstance() { - return defaultInstance; - } - - public Offer getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Offer( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - id_ = input.readUInt64(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - description_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Offer_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Offer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Offer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Offer(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional uint64 id = 1; - public static final int ID_FIELD_NUMBER = 1; - private long id_; - /** - * optional uint64 id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional uint64 id = 1; - */ - public long getId() { - return id_; - } - - // optional string description = 2; - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private java.lang.Object description_; - /** - * optional string description = 2; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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()) { - description_ = s; - } - return s; - } - } - /** - * optional string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - id_ = 0L; - description_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeUInt64(1, id_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getDescriptionBytes()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, id_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getDescriptionBytes()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer 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.service.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.CallMessage.Offer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Offer_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Offer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - id_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - description_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Offer_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer result = new org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.description_ = description_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance()) return this; - if (other.hasId()) { - setId(other.getId()); - } - if (other.hasDescription()) { - bitField0_ |= 0x00000002; - description_ = other.description_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional uint64 id = 1; - private long id_ ; - /** - * optional uint64 id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional uint64 id = 1; - */ - public long getId() { - return id_; - } - /** - * optional uint64 id = 1; - */ - public Builder setId(long value) { - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional uint64 id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = 0L; - onChanged(); - return this; - } - - // optional string description = 2; - private java.lang.Object description_ = ""; - /** - * optional string description = 2; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string description = 2; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - description_ = value; - onChanged(); - return this; - } - /** - * optional string description = 2; - */ - public Builder clearDescription() { - bitField0_ = (bitField0_ & ~0x00000002); - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * optional string description = 2; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - description_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.CallMessage.Offer) - } - - static { - defaultInstance = new Offer(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.CallMessage.Offer) + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - - public interface AnswerOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional uint64 id = 1; - /** - * optional uint64 id = 1; - */ - boolean hasId(); - /** - * optional uint64 id = 1; - */ - long getId(); - - // optional string description = 2; - /** - * optional string description = 2; - */ - boolean hasDescription(); - /** - * optional string description = 2; - */ - java.lang.String getDescription(); - /** - * optional string description = 2; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); + if (answerBuilder_ == null) { + result.answer_ = answer_; + } else { + result.answer_ = answerBuilder_.build(); } - /** - * Protobuf type {@code signalservice.CallMessage.Answer} - */ - public static final class Answer extends - com.google.protobuf.GeneratedMessage - implements AnswerOrBuilder { - // Use Answer.newBuilder() to construct. - private Answer(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Answer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Answer defaultInstance; - public static Answer getDefaultInstance() { - return defaultInstance; - } - - public Answer getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Answer( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - id_ = input.readUInt64(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - description_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Answer_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Answer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Answer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Answer(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional uint64 id = 1; - public static final int ID_FIELD_NUMBER = 1; - private long id_; - /** - * optional uint64 id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional uint64 id = 1; - */ - public long getId() { - return id_; - } - - // optional string description = 2; - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private java.lang.Object description_; - /** - * optional string description = 2; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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()) { - description_ = s; - } - return s; - } - } - /** - * optional string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - id_ = 0L; - description_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeUInt64(1, id_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getDescriptionBytes()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, id_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getDescriptionBytes()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer 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.service.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.CallMessage.Answer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.AnswerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Answer_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Answer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - id_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - description_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Answer_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer result = new org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.description_ = description_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance()) return this; - if (other.hasId()) { - setId(other.getId()); - } - if (other.hasDescription()) { - bitField0_ |= 0x00000002; - description_ = other.description_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional uint64 id = 1; - private long id_ ; - /** - * optional uint64 id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional uint64 id = 1; - */ - public long getId() { - return id_; - } - /** - * optional uint64 id = 1; - */ - public Builder setId(long value) { - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional uint64 id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = 0L; - onChanged(); - return this; - } - - // optional string description = 2; - private java.lang.Object description_ = ""; - /** - * optional string description = 2; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string description = 2; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - description_ = value; - onChanged(); - return this; - } - /** - * optional string description = 2; - */ - public Builder clearDescription() { - bitField0_ = (bitField0_ & ~0x00000002); - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * optional string description = 2; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - description_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.CallMessage.Answer) - } - - static { - defaultInstance = new Answer(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.CallMessage.Answer) + if (iceUpdateBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + iceUpdate_ = java.util.Collections.unmodifiableList(iceUpdate_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.iceUpdate_ = iceUpdate_; + } else { + result.iceUpdate_ = iceUpdateBuilder_.build(); } - - public interface IceUpdateOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional uint64 id = 1; - /** - * optional uint64 id = 1; - */ - boolean hasId(); - /** - * optional uint64 id = 1; - */ - long getId(); - - // optional string sdpMid = 2; - /** - * optional string sdpMid = 2; - */ - boolean hasSdpMid(); - /** - * optional string sdpMid = 2; - */ - java.lang.String getSdpMid(); - /** - * optional string sdpMid = 2; - */ - com.google.protobuf.ByteString - getSdpMidBytes(); - - // optional uint32 sdpMLineIndex = 3; - /** - * optional uint32 sdpMLineIndex = 3; - */ - boolean hasSdpMLineIndex(); - /** - * optional uint32 sdpMLineIndex = 3; - */ - int getSdpMLineIndex(); - - // optional string sdp = 4; - /** - * optional string sdp = 4; - */ - boolean hasSdp(); - /** - * optional string sdp = 4; - */ - java.lang.String getSdp(); - /** - * optional string sdp = 4; - */ - com.google.protobuf.ByteString - getSdpBytes(); + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000004; } - /** - * Protobuf type {@code signalservice.CallMessage.IceUpdate} - */ - public static final class IceUpdate extends - com.google.protobuf.GeneratedMessage - implements IceUpdateOrBuilder { - // Use IceUpdate.newBuilder() to construct. - private IceUpdate(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private IceUpdate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final IceUpdate defaultInstance; - public static IceUpdate getDefaultInstance() { - return defaultInstance; - } - - public IceUpdate getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IceUpdate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - id_ = input.readUInt64(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - sdpMid_ = input.readBytes(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - sdpMLineIndex_ = input.readUInt32(); - break; - } - case 34: { - bitField0_ |= 0x00000008; - sdp_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_IceUpdate_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_IceUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public IceUpdate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IceUpdate(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional uint64 id = 1; - public static final int ID_FIELD_NUMBER = 1; - private long id_; - /** - * optional uint64 id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional uint64 id = 1; - */ - public long getId() { - return id_; - } - - // optional string sdpMid = 2; - public static final int SDPMID_FIELD_NUMBER = 2; - private java.lang.Object sdpMid_; - /** - * optional string sdpMid = 2; - */ - public boolean hasSdpMid() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string sdpMid = 2; - */ - public java.lang.String getSdpMid() { - java.lang.Object ref = sdpMid_; - 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()) { - sdpMid_ = s; - } - return s; - } - } - /** - * optional string sdpMid = 2; - */ - public com.google.protobuf.ByteString - getSdpMidBytes() { - java.lang.Object ref = sdpMid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sdpMid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional uint32 sdpMLineIndex = 3; - public static final int SDPMLINEINDEX_FIELD_NUMBER = 3; - private int sdpMLineIndex_; - /** - * optional uint32 sdpMLineIndex = 3; - */ - public boolean hasSdpMLineIndex() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional uint32 sdpMLineIndex = 3; - */ - public int getSdpMLineIndex() { - return sdpMLineIndex_; - } - - // optional string sdp = 4; - public static final int SDP_FIELD_NUMBER = 4; - private java.lang.Object sdp_; - /** - * optional string sdp = 4; - */ - public boolean hasSdp() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string sdp = 4; - */ - public java.lang.String getSdp() { - java.lang.Object ref = sdp_; - 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()) { - sdp_ = s; - } - return s; - } - } - /** - * optional string sdp = 4; - */ - public com.google.protobuf.ByteString - getSdpBytes() { - java.lang.Object ref = sdp_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sdp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - id_ = 0L; - sdpMid_ = ""; - sdpMLineIndex_ = 0; - sdp_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeUInt64(1, id_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getSdpMidBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeUInt32(3, sdpMLineIndex_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getSdpBytes()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, id_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getSdpMidBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, sdpMLineIndex_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getSdpBytes()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate 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.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.CallMessage.IceUpdate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_IceUpdate_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_IceUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - id_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - sdpMid_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - sdpMLineIndex_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - sdp_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_IceUpdate_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate result = new org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.sdpMid_ = sdpMid_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.sdpMLineIndex_ = sdpMLineIndex_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.sdp_ = sdp_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.getDefaultInstance()) return this; - if (other.hasId()) { - setId(other.getId()); - } - if (other.hasSdpMid()) { - bitField0_ |= 0x00000002; - sdpMid_ = other.sdpMid_; - onChanged(); - } - if (other.hasSdpMLineIndex()) { - setSdpMLineIndex(other.getSdpMLineIndex()); - } - if (other.hasSdp()) { - bitField0_ |= 0x00000008; - sdp_ = other.sdp_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional uint64 id = 1; - private long id_ ; - /** - * optional uint64 id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional uint64 id = 1; - */ - public long getId() { - return id_; - } - /** - * optional uint64 id = 1; - */ - public Builder setId(long value) { - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional uint64 id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = 0L; - onChanged(); - return this; - } - - // optional string sdpMid = 2; - private java.lang.Object sdpMid_ = ""; - /** - * optional string sdpMid = 2; - */ - public boolean hasSdpMid() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string sdpMid = 2; - */ - public java.lang.String getSdpMid() { - java.lang.Object ref = sdpMid_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - sdpMid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string sdpMid = 2; - */ - public com.google.protobuf.ByteString - getSdpMidBytes() { - java.lang.Object ref = sdpMid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sdpMid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string sdpMid = 2; - */ - public Builder setSdpMid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - sdpMid_ = value; - onChanged(); - return this; - } - /** - * optional string sdpMid = 2; - */ - public Builder clearSdpMid() { - bitField0_ = (bitField0_ & ~0x00000002); - sdpMid_ = getDefaultInstance().getSdpMid(); - onChanged(); - return this; - } - /** - * optional string sdpMid = 2; - */ - public Builder setSdpMidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - sdpMid_ = value; - onChanged(); - return this; - } - - // optional uint32 sdpMLineIndex = 3; - private int sdpMLineIndex_ ; - /** - * optional uint32 sdpMLineIndex = 3; - */ - public boolean hasSdpMLineIndex() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional uint32 sdpMLineIndex = 3; - */ - public int getSdpMLineIndex() { - return sdpMLineIndex_; - } - /** - * optional uint32 sdpMLineIndex = 3; - */ - public Builder setSdpMLineIndex(int value) { - bitField0_ |= 0x00000004; - sdpMLineIndex_ = value; - onChanged(); - return this; - } - /** - * optional uint32 sdpMLineIndex = 3; - */ - public Builder clearSdpMLineIndex() { - bitField0_ = (bitField0_ & ~0x00000004); - sdpMLineIndex_ = 0; - onChanged(); - return this; - } - - // optional string sdp = 4; - private java.lang.Object sdp_ = ""; - /** - * optional string sdp = 4; - */ - public boolean hasSdp() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string sdp = 4; - */ - public java.lang.String getSdp() { - java.lang.Object ref = sdp_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - sdp_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string sdp = 4; - */ - public com.google.protobuf.ByteString - getSdpBytes() { - java.lang.Object ref = sdp_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sdp_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string sdp = 4; - */ - public Builder setSdp( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - sdp_ = value; - onChanged(); - return this; - } - /** - * optional string sdp = 4; - */ - public Builder clearSdp() { - bitField0_ = (bitField0_ & ~0x00000008); - sdp_ = getDefaultInstance().getSdp(); - onChanged(); - return this; - } - /** - * optional string sdp = 4; - */ - public Builder setSdpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - sdp_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.CallMessage.IceUpdate) - } - - static { - defaultInstance = new IceUpdate(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.CallMessage.IceUpdate) + if (hangupBuilder_ == null) { + result.hangup_ = hangup_; + } else { + result.hangup_ = hangupBuilder_.build(); } - - public interface BusyOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional uint64 id = 1; - /** - * optional uint64 id = 1; - */ - boolean hasId(); - /** - * optional uint64 id = 1; - */ - long getId(); + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; } - /** - * Protobuf type {@code signalservice.CallMessage.Busy} - */ - public static final class Busy extends - com.google.protobuf.GeneratedMessage - implements BusyOrBuilder { - // Use Busy.newBuilder() to construct. - private Busy(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Busy(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Busy defaultInstance; - public static Busy getDefaultInstance() { - return defaultInstance; - } - - public Busy getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Busy( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - id_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Busy_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Busy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Busy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Busy(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional uint64 id = 1; - public static final int ID_FIELD_NUMBER = 1; - private long id_; - /** - * optional uint64 id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional uint64 id = 1; - */ - public long getId() { - return id_; - } - - private void initFields() { - id_ = 0L; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeUInt64(1, id_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, id_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy 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.service.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.CallMessage.Busy} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Busy_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Busy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - id_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Busy_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy result = new org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance()) return this; - if (other.hasId()) { - setId(other.getId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional uint64 id = 1; - private long id_ ; - /** - * optional uint64 id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional uint64 id = 1; - */ - public long getId() { - return id_; - } - /** - * optional uint64 id = 1; - */ - public Builder setId(long value) { - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional uint64 id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.CallMessage.Busy) - } - - static { - defaultInstance = new Busy(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.CallMessage.Busy) + if (busyBuilder_ == null) { + result.busy_ = busy_; + } else { + result.busy_ = busyBuilder_.build(); } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } - public interface HangupOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional uint64 id = 1; - /** - * optional uint64 id = 1; - */ - boolean hasId(); - /** - * optional uint64 id = 1; - */ - long getId(); + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage)other); + } else { + super.mergeFrom(other); + return this; } - /** - * Protobuf type {@code signalservice.CallMessage.Hangup} - */ - public static final class Hangup extends - com.google.protobuf.GeneratedMessage - implements HangupOrBuilder { - // Use Hangup.newBuilder() to construct. - private Hangup(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Hangup(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + } - private static final Hangup defaultInstance; - public static Hangup getDefaultInstance() { - return defaultInstance; - } - - public Hangup getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Hangup( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - id_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Hangup_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Hangup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Hangup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Hangup(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional uint64 id = 1; - public static final int ID_FIELD_NUMBER = 1; - private long id_; - /** - * optional uint64 id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional uint64 id = 1; - */ - public long getId() { - return id_; - } - - private void initFields() { - id_ = 0L; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeUInt64(1, id_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, id_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup 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.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.CallMessage.Hangup} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Hangup_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Hangup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - id_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Hangup_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup result = new org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance()) return this; - if (other.hasId()) { - setId(other.getId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional uint64 id = 1; - private long id_ ; - /** - * optional uint64 id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional uint64 id = 1; - */ - public long getId() { - return id_; - } - /** - * optional uint64 id = 1; - */ - public Builder setId(long value) { - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional uint64 id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.CallMessage.Hangup) - } - - static { - defaultInstance = new Hangup(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.CallMessage.Hangup) + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance()) return this; + if (other.hasOffer()) { + mergeOffer(other.getOffer()); } - - private int bitField0_; - // optional .signalservice.CallMessage.Offer offer = 1; - public static final int OFFER_FIELD_NUMBER = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer offer_; - /** - * optional .signalservice.CallMessage.Offer offer = 1; - */ - public boolean hasOffer() { - return ((bitField0_ & 0x00000001) == 0x00000001); + if (other.hasAnswer()) { + mergeAnswer(other.getAnswer()); } - /** - * optional .signalservice.CallMessage.Offer offer = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer getOffer() { - return offer_; + if (iceUpdateBuilder_ == null) { + if (!other.iceUpdate_.isEmpty()) { + if (iceUpdate_.isEmpty()) { + iceUpdate_ = other.iceUpdate_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureIceUpdateIsMutable(); + iceUpdate_.addAll(other.iceUpdate_); + } + onChanged(); + } + } else { + if (!other.iceUpdate_.isEmpty()) { + if (iceUpdateBuilder_.isEmpty()) { + iceUpdateBuilder_.dispose(); + iceUpdateBuilder_ = null; + iceUpdate_ = other.iceUpdate_; + bitField0_ = (bitField0_ & ~0x00000004); + iceUpdateBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getIceUpdateFieldBuilder() : null; + } else { + iceUpdateBuilder_.addAllMessages(other.iceUpdate_); + } + } } - /** - * optional .signalservice.CallMessage.Offer offer = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder getOfferOrBuilder() { - return offer_; + if (other.hasHangup()) { + mergeHangup(other.getHangup()); } - - // optional .signalservice.CallMessage.Answer answer = 2; - public static final int ANSWER_FIELD_NUMBER = 2; - private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer answer_; - /** - * optional .signalservice.CallMessage.Answer answer = 2; - */ - public boolean hasAnswer() { - return ((bitField0_ & 0x00000002) == 0x00000002); + if (other.hasBusy()) { + mergeBusy(other.getBusy()); } - /** - * optional .signalservice.CallMessage.Answer answer = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer getAnswer() { - return answer_; + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } - /** - * optional .signalservice.CallMessage.Answer answer = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.AnswerOrBuilder getAnswerOrBuilder() { - return answer_; + return this; + } + private int bitField0_; + + // optional .signalservice.CallMessage.Offer offer = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer offer_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder> offerBuilder_; + /** + * optional .signalservice.CallMessage.Offer offer = 1; + */ + public boolean hasOffer() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.CallMessage.Offer offer = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer getOffer() { + if (offerBuilder_ == null) { + return offer_; + } else { + return offerBuilder_.getMessage(); } - - // repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - public static final int ICEUPDATE_FIELD_NUMBER = 3; - private java.util.List iceUpdate_; - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public java.util.List getIceUpdateList() { - return iceUpdate_; + } + /** + * optional .signalservice.CallMessage.Offer offer = 1; + */ + public Builder setOffer(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer value) { + if (offerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + offer_ = value; + onChanged(); + } else { + offerBuilder_.setMessage(value); } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public java.util.List - getIceUpdateOrBuilderList() { - return iceUpdate_; + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.CallMessage.Offer offer = 1; + */ + public Builder setOffer( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.Builder builderForValue) { + if (offerBuilder_ == null) { + offer_ = builderForValue.build(); + onChanged(); + } else { + offerBuilder_.setMessage(builderForValue.build()); } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public int getIceUpdateCount() { - return iceUpdate_.size(); + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.CallMessage.Offer offer = 1; + */ + public Builder mergeOffer(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer value) { + if (offerBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + offer_ != org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance()) { + offer_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.newBuilder(offer_).mergeFrom(value).buildPartial(); + } else { + offer_ = value; + } + onChanged(); + } else { + offerBuilder_.mergeFrom(value); } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate getIceUpdate(int index) { - return iceUpdate_.get(index); + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.CallMessage.Offer offer = 1; + */ + public Builder clearOffer() { + if (offerBuilder_ == null) { + offer_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance(); + onChanged(); + } else { + offerBuilder_.clear(); } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder getIceUpdateOrBuilder( - int index) { - return iceUpdate_.get(index); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + * optional .signalservice.CallMessage.Offer offer = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.Builder getOfferBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOfferFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.CallMessage.Offer offer = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder getOfferOrBuilder() { + if (offerBuilder_ != null) { + return offerBuilder_.getMessageOrBuilder(); + } else { + return offer_; } - - // optional .signalservice.CallMessage.Hangup hangup = 4; - public static final int HANGUP_FIELD_NUMBER = 4; - private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup hangup_; - /** - * optional .signalservice.CallMessage.Hangup hangup = 4; - */ - public boolean hasHangup() { - return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.CallMessage.Offer offer = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder> + getOfferFieldBuilder() { + if (offerBuilder_ == null) { + offerBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder>( + offer_, + getParentForChildren(), + isClean()); + offer_ = null; } - /** - * optional .signalservice.CallMessage.Hangup hangup = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup getHangup() { - return hangup_; + return offerBuilder_; + } + + // optional .signalservice.CallMessage.Answer answer = 2; + private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer answer_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.AnswerOrBuilder> answerBuilder_; + /** + * optional .signalservice.CallMessage.Answer answer = 2; + */ + public boolean hasAnswer() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .signalservice.CallMessage.Answer answer = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer getAnswer() { + if (answerBuilder_ == null) { + return answer_; + } else { + return answerBuilder_.getMessage(); } - /** - * optional .signalservice.CallMessage.Hangup hangup = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder getHangupOrBuilder() { - return hangup_; + } + /** + * optional .signalservice.CallMessage.Answer answer = 2; + */ + public Builder setAnswer(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer value) { + if (answerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + answer_ = value; + onChanged(); + } else { + answerBuilder_.setMessage(value); } - - // optional .signalservice.CallMessage.Busy busy = 5; - public static final int BUSY_FIELD_NUMBER = 5; - private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy busy_; - /** - * optional .signalservice.CallMessage.Busy busy = 5; - */ - public boolean hasBusy() { - return ((bitField0_ & 0x00000008) == 0x00000008); + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .signalservice.CallMessage.Answer answer = 2; + */ + public Builder setAnswer( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.Builder builderForValue) { + if (answerBuilder_ == null) { + answer_ = builderForValue.build(); + onChanged(); + } else { + answerBuilder_.setMessage(builderForValue.build()); } - /** - * optional .signalservice.CallMessage.Busy busy = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy getBusy() { - return busy_; + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .signalservice.CallMessage.Answer answer = 2; + */ + public Builder mergeAnswer(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer value) { + if (answerBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + answer_ != org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance()) { + answer_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.newBuilder(answer_).mergeFrom(value).buildPartial(); + } else { + answer_ = value; + } + onChanged(); + } else { + answerBuilder_.mergeFrom(value); } - /** - * optional .signalservice.CallMessage.Busy busy = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder getBusyOrBuilder() { - return busy_; + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .signalservice.CallMessage.Answer answer = 2; + */ + public Builder clearAnswer() { + if (answerBuilder_ == null) { + answer_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance(); + onChanged(); + } else { + answerBuilder_.clear(); } - - private void initFields() { - offer_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance(); - answer_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance(); - iceUpdate_ = java.util.Collections.emptyList(); - hangup_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance(); - busy_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + * optional .signalservice.CallMessage.Answer answer = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.Builder getAnswerBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAnswerFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.CallMessage.Answer answer = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.AnswerOrBuilder getAnswerOrBuilder() { + if (answerBuilder_ != null) { + return answerBuilder_.getMessageOrBuilder(); + } else { + return answer_; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; + } + /** + * optional .signalservice.CallMessage.Answer answer = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.AnswerOrBuilder> + getAnswerFieldBuilder() { + if (answerBuilder_ == null) { + answerBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.AnswerOrBuilder>( + answer_, + getParentForChildren(), + isClean()); + answer_ = null; } + return answerBuilder_; + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, offer_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, answer_); - } - for (int i = 0; i < iceUpdate_.size(); i++) { - output.writeMessage(3, iceUpdate_.get(i)); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(4, hangup_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(5, busy_); - } - getUnknownFields().writeTo(output); + // repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + private java.util.List iceUpdate_ = + java.util.Collections.emptyList(); + private void ensureIceUpdateIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + iceUpdate_ = new java.util.ArrayList(iceUpdate_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder> iceUpdateBuilder_; + + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public java.util.List getIceUpdateList() { + if (iceUpdateBuilder_ == null) { + return java.util.Collections.unmodifiableList(iceUpdate_); + } else { + return iceUpdateBuilder_.getMessageList(); } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, offer_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, answer_); - } - for (int i = 0; i < iceUpdate_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, iceUpdate_.get(i)); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, hangup_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, busy_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public int getIceUpdateCount() { + if (iceUpdateBuilder_ == null) { + return iceUpdate_.size(); + } else { + return iceUpdateBuilder_.getCount(); } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate getIceUpdate(int index) { + if (iceUpdateBuilder_ == null) { + return iceUpdate_.get(index); + } else { + return iceUpdateBuilder_.getMessage(index); } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public Builder setIceUpdate( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate value) { + if (iceUpdateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIceUpdateIsMutable(); + iceUpdate_.set(index, value); + onChanged(); + } else { + iceUpdateBuilder_.setMessage(index, value); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return this; + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public Builder setIceUpdate( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder builderForValue) { + if (iceUpdateBuilder_ == null) { + ensureIceUpdateIsMutable(); + iceUpdate_.set(index, builderForValue.build()); + onChanged(); + } else { + iceUpdateBuilder_.setMessage(index, builderForValue.build()); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return this; + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public Builder addIceUpdate(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate value) { + if (iceUpdateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIceUpdateIsMutable(); + iceUpdate_.add(value); + onChanged(); + } else { + iceUpdateBuilder_.addMessage(value); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return this; + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public Builder addIceUpdate( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate value) { + if (iceUpdateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIceUpdateIsMutable(); + iceUpdate_.add(index, value); + onChanged(); + } else { + iceUpdateBuilder_.addMessage(index, value); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); + return this; + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public Builder addIceUpdate( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder builderForValue) { + if (iceUpdateBuilder_ == null) { + ensureIceUpdateIsMutable(); + iceUpdate_.add(builderForValue.build()); + onChanged(); + } else { + iceUpdateBuilder_.addMessage(builderForValue.build()); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return this; + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public Builder addIceUpdate( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder builderForValue) { + if (iceUpdateBuilder_ == null) { + ensureIceUpdateIsMutable(); + iceUpdate_.add(index, builderForValue.build()); + onChanged(); + } else { + iceUpdateBuilder_.addMessage(index, builderForValue.build()); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return this; + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public Builder addAllIceUpdate( + java.lang.Iterable values) { + if (iceUpdateBuilder_ == null) { + ensureIceUpdateIsMutable(); + super.addAll(values, iceUpdate_); + onChanged(); + } else { + iceUpdateBuilder_.addAllMessages(values); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return this; + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public Builder clearIceUpdate() { + if (iceUpdateBuilder_ == null) { + iceUpdate_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + iceUpdateBuilder_.clear(); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); + return this; + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public Builder removeIceUpdate(int index) { + if (iceUpdateBuilder_ == null) { + ensureIceUpdateIsMutable(); + iceUpdate_.remove(index); + onChanged(); + } else { + iceUpdateBuilder_.remove(index); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return this; + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder getIceUpdateBuilder( + int index) { + return getIceUpdateFieldBuilder().getBuilder(index); + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder getIceUpdateOrBuilder( + int index) { + if (iceUpdateBuilder_ == null) { + return iceUpdate_.get(index); } else { + return iceUpdateBuilder_.getMessageOrBuilder(index); } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage prototype) { - return newBuilder().mergeFrom(prototype); + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public java.util.List + getIceUpdateOrBuilderList() { + if (iceUpdateBuilder_ != null) { + return iceUpdateBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(iceUpdate_); } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder addIceUpdateBuilder() { + return getIceUpdateFieldBuilder().addBuilder( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.getDefaultInstance()); + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder addIceUpdateBuilder( + int index) { + return getIceUpdateFieldBuilder().addBuilder( + index, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.getDefaultInstance()); + } + /** + * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; + */ + public java.util.List + getIceUpdateBuilderList() { + return getIceUpdateFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder> + getIceUpdateFieldBuilder() { + if (iceUpdateBuilder_ == null) { + iceUpdateBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder>( + iceUpdate_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + iceUpdate_ = null; } - /** - * Protobuf type {@code signalservice.CallMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_descriptor; - } + return iceUpdateBuilder_; + } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getOfferFieldBuilder(); - getAnswerFieldBuilder(); - getIceUpdateFieldBuilder(); - getHangupFieldBuilder(); - getBusyFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (offerBuilder_ == null) { - offer_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance(); - } else { - offerBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (answerBuilder_ == null) { - answer_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance(); - } else { - answerBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (iceUpdateBuilder_ == null) { - iceUpdate_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - iceUpdateBuilder_.clear(); - } - if (hangupBuilder_ == null) { - hangup_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance(); - } else { - hangupBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - if (busyBuilder_ == null) { - busy_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance(); - } else { - busyBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage result = new org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (offerBuilder_ == null) { - result.offer_ = offer_; - } else { - result.offer_ = offerBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (answerBuilder_ == null) { - result.answer_ = answer_; - } else { - result.answer_ = answerBuilder_.build(); - } - if (iceUpdateBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { - iceUpdate_ = java.util.Collections.unmodifiableList(iceUpdate_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.iceUpdate_ = iceUpdate_; - } else { - result.iceUpdate_ = iceUpdateBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000004; - } - if (hangupBuilder_ == null) { - result.hangup_ = hangup_; - } else { - result.hangup_ = hangupBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000008; - } - if (busyBuilder_ == null) { - result.busy_ = busy_; - } else { - result.busy_ = busyBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance()) return this; - if (other.hasOffer()) { - mergeOffer(other.getOffer()); - } - if (other.hasAnswer()) { - mergeAnswer(other.getAnswer()); - } - if (iceUpdateBuilder_ == null) { - if (!other.iceUpdate_.isEmpty()) { - if (iceUpdate_.isEmpty()) { - iceUpdate_ = other.iceUpdate_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureIceUpdateIsMutable(); - iceUpdate_.addAll(other.iceUpdate_); - } - onChanged(); - } - } else { - if (!other.iceUpdate_.isEmpty()) { - if (iceUpdateBuilder_.isEmpty()) { - iceUpdateBuilder_.dispose(); - iceUpdateBuilder_ = null; - iceUpdate_ = other.iceUpdate_; - bitField0_ = (bitField0_ & ~0x00000004); - iceUpdateBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getIceUpdateFieldBuilder() : null; - } else { - iceUpdateBuilder_.addAllMessages(other.iceUpdate_); - } - } - } - if (other.hasHangup()) { - mergeHangup(other.getHangup()); - } - if (other.hasBusy()) { - mergeBusy(other.getBusy()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional .signalservice.CallMessage.Offer offer = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer offer_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder> offerBuilder_; - /** - * optional .signalservice.CallMessage.Offer offer = 1; - */ - public boolean hasOffer() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.CallMessage.Offer offer = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer getOffer() { - if (offerBuilder_ == null) { - return offer_; - } else { - return offerBuilder_.getMessage(); - } - } - /** - * optional .signalservice.CallMessage.Offer offer = 1; - */ - public Builder setOffer(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer value) { - if (offerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - offer_ = value; - onChanged(); - } else { - offerBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.CallMessage.Offer offer = 1; - */ - public Builder setOffer( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.Builder builderForValue) { - if (offerBuilder_ == null) { - offer_ = builderForValue.build(); - onChanged(); - } else { - offerBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.CallMessage.Offer offer = 1; - */ - public Builder mergeOffer(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer value) { - if (offerBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - offer_ != org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance()) { - offer_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.newBuilder(offer_).mergeFrom(value).buildPartial(); - } else { - offer_ = value; - } - onChanged(); - } else { - offerBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.CallMessage.Offer offer = 1; - */ - public Builder clearOffer() { - if (offerBuilder_ == null) { - offer_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance(); - onChanged(); - } else { - offerBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .signalservice.CallMessage.Offer offer = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.Builder getOfferBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getOfferFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.CallMessage.Offer offer = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder getOfferOrBuilder() { - if (offerBuilder_ != null) { - return offerBuilder_.getMessageOrBuilder(); - } else { - return offer_; - } - } - /** - * optional .signalservice.CallMessage.Offer offer = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder> - getOfferFieldBuilder() { - if (offerBuilder_ == null) { - offerBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Offer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder>( - offer_, - getParentForChildren(), - isClean()); - offer_ = null; - } - return offerBuilder_; - } - - // optional .signalservice.CallMessage.Answer answer = 2; - private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer answer_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.AnswerOrBuilder> answerBuilder_; - /** - * optional .signalservice.CallMessage.Answer answer = 2; - */ - public boolean hasAnswer() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .signalservice.CallMessage.Answer answer = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer getAnswer() { - if (answerBuilder_ == null) { - return answer_; - } else { - return answerBuilder_.getMessage(); - } - } - /** - * optional .signalservice.CallMessage.Answer answer = 2; - */ - public Builder setAnswer(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer value) { - if (answerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - answer_ = value; - onChanged(); - } else { - answerBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .signalservice.CallMessage.Answer answer = 2; - */ - public Builder setAnswer( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.Builder builderForValue) { - if (answerBuilder_ == null) { - answer_ = builderForValue.build(); - onChanged(); - } else { - answerBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .signalservice.CallMessage.Answer answer = 2; - */ - public Builder mergeAnswer(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer value) { - if (answerBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - answer_ != org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance()) { - answer_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.newBuilder(answer_).mergeFrom(value).buildPartial(); - } else { - answer_ = value; - } - onChanged(); - } else { - answerBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .signalservice.CallMessage.Answer answer = 2; - */ - public Builder clearAnswer() { - if (answerBuilder_ == null) { - answer_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance(); - onChanged(); - } else { - answerBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - * optional .signalservice.CallMessage.Answer answer = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.Builder getAnswerBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getAnswerFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.CallMessage.Answer answer = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.AnswerOrBuilder getAnswerOrBuilder() { - if (answerBuilder_ != null) { - return answerBuilder_.getMessageOrBuilder(); - } else { - return answer_; - } - } - /** - * optional .signalservice.CallMessage.Answer answer = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.AnswerOrBuilder> - getAnswerFieldBuilder() { - if (answerBuilder_ == null) { - answerBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Answer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.AnswerOrBuilder>( - answer_, - getParentForChildren(), - isClean()); - answer_ = null; - } - return answerBuilder_; - } - - // repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - private java.util.List iceUpdate_ = - java.util.Collections.emptyList(); - private void ensureIceUpdateIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - iceUpdate_ = new java.util.ArrayList(iceUpdate_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder> iceUpdateBuilder_; - - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public java.util.List getIceUpdateList() { - if (iceUpdateBuilder_ == null) { - return java.util.Collections.unmodifiableList(iceUpdate_); - } else { - return iceUpdateBuilder_.getMessageList(); - } - } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public int getIceUpdateCount() { - if (iceUpdateBuilder_ == null) { - return iceUpdate_.size(); - } else { - return iceUpdateBuilder_.getCount(); - } - } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate getIceUpdate(int index) { - if (iceUpdateBuilder_ == null) { - return iceUpdate_.get(index); - } else { - return iceUpdateBuilder_.getMessage(index); - } - } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public Builder setIceUpdate( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate value) { - if (iceUpdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIceUpdateIsMutable(); - iceUpdate_.set(index, value); - onChanged(); - } else { - iceUpdateBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public Builder setIceUpdate( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder builderForValue) { - if (iceUpdateBuilder_ == null) { - ensureIceUpdateIsMutable(); - iceUpdate_.set(index, builderForValue.build()); - onChanged(); - } else { - iceUpdateBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public Builder addIceUpdate(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate value) { - if (iceUpdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIceUpdateIsMutable(); - iceUpdate_.add(value); - onChanged(); - } else { - iceUpdateBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public Builder addIceUpdate( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate value) { - if (iceUpdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIceUpdateIsMutable(); - iceUpdate_.add(index, value); - onChanged(); - } else { - iceUpdateBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public Builder addIceUpdate( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder builderForValue) { - if (iceUpdateBuilder_ == null) { - ensureIceUpdateIsMutable(); - iceUpdate_.add(builderForValue.build()); - onChanged(); - } else { - iceUpdateBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public Builder addIceUpdate( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder builderForValue) { - if (iceUpdateBuilder_ == null) { - ensureIceUpdateIsMutable(); - iceUpdate_.add(index, builderForValue.build()); - onChanged(); - } else { - iceUpdateBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public Builder addAllIceUpdate( - java.lang.Iterable values) { - if (iceUpdateBuilder_ == null) { - ensureIceUpdateIsMutable(); - super.addAll(values, iceUpdate_); - onChanged(); - } else { - iceUpdateBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public Builder clearIceUpdate() { - if (iceUpdateBuilder_ == null) { - iceUpdate_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - iceUpdateBuilder_.clear(); - } - return this; - } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public Builder removeIceUpdate(int index) { - if (iceUpdateBuilder_ == null) { - ensureIceUpdateIsMutable(); - iceUpdate_.remove(index); - onChanged(); - } else { - iceUpdateBuilder_.remove(index); - } - return this; - } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder getIceUpdateBuilder( - int index) { - return getIceUpdateFieldBuilder().getBuilder(index); - } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder getIceUpdateOrBuilder( - int index) { - if (iceUpdateBuilder_ == null) { - return iceUpdate_.get(index); } else { - return iceUpdateBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public java.util.List - getIceUpdateOrBuilderList() { - if (iceUpdateBuilder_ != null) { - return iceUpdateBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(iceUpdate_); - } - } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder addIceUpdateBuilder() { - return getIceUpdateFieldBuilder().addBuilder( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.getDefaultInstance()); - } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder addIceUpdateBuilder( - int index) { - return getIceUpdateFieldBuilder().addBuilder( - index, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.getDefaultInstance()); - } - /** - * repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3; - */ - public java.util.List - getIceUpdateBuilderList() { - return getIceUpdateFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder> - getIceUpdateFieldBuilder() { - if (iceUpdateBuilder_ == null) { - iceUpdateBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder>( - iceUpdate_, - ((bitField0_ & 0x00000004) == 0x00000004), - getParentForChildren(), - isClean()); - iceUpdate_ = null; - } - return iceUpdateBuilder_; - } - - // optional .signalservice.CallMessage.Hangup hangup = 4; - private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup hangup_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder> hangupBuilder_; - /** - * optional .signalservice.CallMessage.Hangup hangup = 4; - */ - public boolean hasHangup() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .signalservice.CallMessage.Hangup hangup = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup getHangup() { - if (hangupBuilder_ == null) { - return hangup_; - } else { - return hangupBuilder_.getMessage(); - } - } - /** - * optional .signalservice.CallMessage.Hangup hangup = 4; - */ - public Builder setHangup(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup value) { - if (hangupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - hangup_ = value; - onChanged(); - } else { - hangupBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.CallMessage.Hangup hangup = 4; - */ - public Builder setHangup( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder builderForValue) { - if (hangupBuilder_ == null) { - hangup_ = builderForValue.build(); - onChanged(); - } else { - hangupBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.CallMessage.Hangup hangup = 4; - */ - public Builder mergeHangup(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup value) { - if (hangupBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - hangup_ != org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance()) { - hangup_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.newBuilder(hangup_).mergeFrom(value).buildPartial(); - } else { - hangup_ = value; - } - onChanged(); - } else { - hangupBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.CallMessage.Hangup hangup = 4; - */ - public Builder clearHangup() { - if (hangupBuilder_ == null) { - hangup_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance(); - onChanged(); - } else { - hangupBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - /** - * optional .signalservice.CallMessage.Hangup hangup = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder getHangupBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getHangupFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.CallMessage.Hangup hangup = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder getHangupOrBuilder() { - if (hangupBuilder_ != null) { - return hangupBuilder_.getMessageOrBuilder(); - } else { - return hangup_; - } - } - /** - * optional .signalservice.CallMessage.Hangup hangup = 4; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder> - getHangupFieldBuilder() { - if (hangupBuilder_ == null) { - hangupBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder>( - hangup_, - getParentForChildren(), - isClean()); - hangup_ = null; - } - return hangupBuilder_; - } - - // optional .signalservice.CallMessage.Busy busy = 5; - private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy busy_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder> busyBuilder_; - /** - * optional .signalservice.CallMessage.Busy busy = 5; - */ - public boolean hasBusy() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional .signalservice.CallMessage.Busy busy = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy getBusy() { - if (busyBuilder_ == null) { - return busy_; - } else { - return busyBuilder_.getMessage(); - } - } - /** - * optional .signalservice.CallMessage.Busy busy = 5; - */ - public Builder setBusy(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy value) { - if (busyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - busy_ = value; - onChanged(); - } else { - busyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .signalservice.CallMessage.Busy busy = 5; - */ - public Builder setBusy( - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.Builder builderForValue) { - if (busyBuilder_ == null) { - busy_ = builderForValue.build(); - onChanged(); - } else { - busyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .signalservice.CallMessage.Busy busy = 5; - */ - public Builder mergeBusy(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy value) { - if (busyBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - busy_ != org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance()) { - busy_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.newBuilder(busy_).mergeFrom(value).buildPartial(); - } else { - busy_ = value; - } - onChanged(); - } else { - busyBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .signalservice.CallMessage.Busy busy = 5; - */ - public Builder clearBusy() { - if (busyBuilder_ == null) { - busy_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance(); - onChanged(); - } else { - busyBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - /** - * optional .signalservice.CallMessage.Busy busy = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.Builder getBusyBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getBusyFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.CallMessage.Busy busy = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder getBusyOrBuilder() { - if (busyBuilder_ != null) { - return busyBuilder_.getMessageOrBuilder(); - } else { - return busy_; - } - } - /** - * optional .signalservice.CallMessage.Busy busy = 5; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder> - getBusyFieldBuilder() { - if (busyBuilder_ == null) { - busyBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder>( - busy_, - getParentForChildren(), - isClean()); - busy_ = null; - } - return busyBuilder_; - } - - // @@protoc_insertion_point(builder_scope:signalservice.CallMessage) + // optional .signalservice.CallMessage.Hangup hangup = 4; + private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup hangup_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder> hangupBuilder_; + /** + * optional .signalservice.CallMessage.Hangup hangup = 4; + */ + public boolean hasHangup() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .signalservice.CallMessage.Hangup hangup = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup getHangup() { + if (hangupBuilder_ == null) { + return hangup_; + } else { + return hangupBuilder_.getMessage(); } - - static { - defaultInstance = new CallMessage(true); - defaultInstance.initFields(); + } + /** + * optional .signalservice.CallMessage.Hangup hangup = 4; + */ + public Builder setHangup(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup value) { + if (hangupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hangup_ = value; + onChanged(); + } else { + hangupBuilder_.setMessage(value); } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.CallMessage.Hangup hangup = 4; + */ + public Builder setHangup( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder builderForValue) { + if (hangupBuilder_ == null) { + hangup_ = builderForValue.build(); + onChanged(); + } else { + hangupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.CallMessage.Hangup hangup = 4; + */ + public Builder mergeHangup(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup value) { + if (hangupBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + hangup_ != org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance()) { + hangup_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.newBuilder(hangup_).mergeFrom(value).buildPartial(); + } else { + hangup_ = value; + } + onChanged(); + } else { + hangupBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.CallMessage.Hangup hangup = 4; + */ + public Builder clearHangup() { + if (hangupBuilder_ == null) { + hangup_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance(); + onChanged(); + } else { + hangupBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + /** + * optional .signalservice.CallMessage.Hangup hangup = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder getHangupBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getHangupFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.CallMessage.Hangup hangup = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder getHangupOrBuilder() { + if (hangupBuilder_ != null) { + return hangupBuilder_.getMessageOrBuilder(); + } else { + return hangup_; + } + } + /** + * optional .signalservice.CallMessage.Hangup hangup = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder> + getHangupFieldBuilder() { + if (hangupBuilder_ == null) { + hangupBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder>( + hangup_, + getParentForChildren(), + isClean()); + hangup_ = null; + } + return hangupBuilder_; + } - // @@protoc_insertion_point(class_scope:signalservice.CallMessage) + // optional .signalservice.CallMessage.Busy busy = 5; + private org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy busy_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder> busyBuilder_; + /** + * optional .signalservice.CallMessage.Busy busy = 5; + */ + public boolean hasBusy() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .signalservice.CallMessage.Busy busy = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy getBusy() { + if (busyBuilder_ == null) { + return busy_; + } else { + return busyBuilder_.getMessage(); + } + } + /** + * optional .signalservice.CallMessage.Busy busy = 5; + */ + public Builder setBusy(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy value) { + if (busyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + busy_ = value; + onChanged(); + } else { + busyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .signalservice.CallMessage.Busy busy = 5; + */ + public Builder setBusy( + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.Builder builderForValue) { + if (busyBuilder_ == null) { + busy_ = builderForValue.build(); + onChanged(); + } else { + busyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .signalservice.CallMessage.Busy busy = 5; + */ + public Builder mergeBusy(org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy value) { + if (busyBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + busy_ != org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance()) { + busy_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.newBuilder(busy_).mergeFrom(value).buildPartial(); + } else { + busy_ = value; + } + onChanged(); + } else { + busyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .signalservice.CallMessage.Busy busy = 5; + */ + public Builder clearBusy() { + if (busyBuilder_ == null) { + busy_ = org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance(); + onChanged(); + } else { + busyBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + /** + * optional .signalservice.CallMessage.Busy busy = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.Builder getBusyBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getBusyFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.CallMessage.Busy busy = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder getBusyOrBuilder() { + if (busyBuilder_ != null) { + return busyBuilder_.getMessageOrBuilder(); + } else { + return busy_; + } + } + /** + * optional .signalservice.CallMessage.Busy busy = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder> + getBusyFieldBuilder() { + if (busyBuilder_ == null) { + busyBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.Busy.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder>( + busy_, + getParentForChildren(), + isClean()); + busy_ = null; + } + return busyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:signalservice.CallMessage) } - public interface ClosedGroupCiphertextMessageWrapperOrBuilder - extends com.google.protobuf.MessageOrBuilder { + static { + defaultInstance = new CallMessage(true); + defaultInstance.initFields(); + } - // optional bytes ciphertext = 1; - /** - * optional bytes ciphertext = 1; - * - *
-         * @required
-         * 
- */ - boolean hasCiphertext(); - /** - * optional bytes ciphertext = 1; - * - *
-         * @required
-         * 
- */ - com.google.protobuf.ByteString getCiphertext(); + // @@protoc_insertion_point(class_scope:signalservice.CallMessage) + } - // optional bytes ephemeralPublicKey = 2; - /** - * optional bytes ephemeralPublicKey = 2; - * - *
-         * @required
-         * 
- */ - boolean hasEphemeralPublicKey(); - /** - * optional bytes ephemeralPublicKey = 2; - * - *
-         * @required
-         * 
- */ - com.google.protobuf.ByteString getEphemeralPublicKey(); + public interface ClosedGroupCiphertextMessageWrapperOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional bytes ciphertext = 1; + /** + * optional bytes ciphertext = 1; + * + *
+     * @required
+     * 
+ */ + boolean hasCiphertext(); + /** + * optional bytes ciphertext = 1; + * + *
+     * @required
+     * 
+ */ + com.google.protobuf.ByteString getCiphertext(); + + // optional bytes ephemeralPublicKey = 2; + /** + * optional bytes ephemeralPublicKey = 2; + * + *
+     * @required
+     * 
+ */ + boolean hasEphemeralPublicKey(); + /** + * optional bytes ephemeralPublicKey = 2; + * + *
+     * @required
+     * 
+ */ + com.google.protobuf.ByteString getEphemeralPublicKey(); + } + /** + * Protobuf type {@code signalservice.ClosedGroupCiphertextMessageWrapper} + */ + public static final class ClosedGroupCiphertextMessageWrapper extends + com.google.protobuf.GeneratedMessage + implements ClosedGroupCiphertextMessageWrapperOrBuilder { + // Use ClosedGroupCiphertextMessageWrapper.newBuilder() to construct. + private ClosedGroupCiphertextMessageWrapper(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private ClosedGroupCiphertextMessageWrapper(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final ClosedGroupCiphertextMessageWrapper defaultInstance; + public static ClosedGroupCiphertextMessageWrapper getDefaultInstance() { + return defaultInstance; + } + + public ClosedGroupCiphertextMessageWrapper getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClosedGroupCiphertextMessageWrapper( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + ciphertext_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + ephemeralPublicKey_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public ClosedGroupCiphertextMessageWrapper parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClosedGroupCiphertextMessageWrapper(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional bytes ciphertext = 1; + public static final int CIPHERTEXT_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString ciphertext_; + /** + * optional bytes ciphertext = 1; + * + *
+     * @required
+     * 
+ */ + public boolean hasCiphertext() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional bytes ciphertext = 1; + * + *
+     * @required
+     * 
+ */ + public com.google.protobuf.ByteString getCiphertext() { + return ciphertext_; + } + + // optional bytes ephemeralPublicKey = 2; + public static final int EPHEMERALPUBLICKEY_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString ephemeralPublicKey_; + /** + * optional bytes ephemeralPublicKey = 2; + * + *
+     * @required
+     * 
+ */ + public boolean hasEphemeralPublicKey() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bytes ephemeralPublicKey = 2; + * + *
+     * @required
+     * 
+ */ + public com.google.protobuf.ByteString getEphemeralPublicKey() { + return ephemeralPublicKey_; + } + + private void initFields() { + ciphertext_ = com.google.protobuf.ByteString.EMPTY; + ephemeralPublicKey_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, ciphertext_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, ephemeralPublicKey_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, ciphertext_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, ephemeralPublicKey_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper 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.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.ClosedGroupCiphertextMessageWrapper} */ - public static final class ClosedGroupCiphertextMessageWrapper extends - com.google.protobuf.GeneratedMessage - implements ClosedGroupCiphertextMessageWrapperOrBuilder { - // Use ClosedGroupCiphertextMessageWrapper.newBuilder() to construct. - private ClosedGroupCiphertextMessageWrapper(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ClosedGroupCiphertextMessageWrapper(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapperOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_descriptor; + } - private static final ClosedGroupCiphertextMessageWrapper defaultInstance; - public static ClosedGroupCiphertextMessageWrapper getDefaultInstance() { - return defaultInstance; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + ciphertext_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + ephemeralPublicKey_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.ciphertext_ = ciphertext_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.ephemeralPublicKey_ = ephemeralPublicKey_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper.getDefaultInstance()) return this; + if (other.hasCiphertext()) { + setCiphertext(other.getCiphertext()); + } + if (other.hasEphemeralPublicKey()) { + setEphemeralPublicKey(other.getEphemeralPublicKey()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional bytes ciphertext = 1; + private com.google.protobuf.ByteString ciphertext_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes ciphertext = 1; + * + *
+       * @required
+       * 
+ */ + public boolean hasCiphertext() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional bytes ciphertext = 1; + * + *
+       * @required
+       * 
+ */ + public com.google.protobuf.ByteString getCiphertext() { + return ciphertext_; + } + /** + * optional bytes ciphertext = 1; + * + *
+       * @required
+       * 
+ */ + public Builder setCiphertext(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + ciphertext_ = value; + onChanged(); + return this; + } + /** + * optional bytes ciphertext = 1; + * + *
+       * @required
+       * 
+ */ + public Builder clearCiphertext() { + bitField0_ = (bitField0_ & ~0x00000001); + ciphertext_ = getDefaultInstance().getCiphertext(); + onChanged(); + return this; + } + + // optional bytes ephemeralPublicKey = 2; + private com.google.protobuf.ByteString ephemeralPublicKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes ephemeralPublicKey = 2; + * + *
+       * @required
+       * 
+ */ + public boolean hasEphemeralPublicKey() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bytes ephemeralPublicKey = 2; + * + *
+       * @required
+       * 
+ */ + public com.google.protobuf.ByteString getEphemeralPublicKey() { + return ephemeralPublicKey_; + } + /** + * optional bytes ephemeralPublicKey = 2; + * + *
+       * @required
+       * 
+ */ + public Builder setEphemeralPublicKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + ephemeralPublicKey_ = value; + onChanged(); + return this; + } + /** + * optional bytes ephemeralPublicKey = 2; + * + *
+       * @required
+       * 
+ */ + public Builder clearEphemeralPublicKey() { + bitField0_ = (bitField0_ & ~0x00000002); + ephemeralPublicKey_ = getDefaultInstance().getEphemeralPublicKey(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.ClosedGroupCiphertextMessageWrapper) + } + + static { + defaultInstance = new ClosedGroupCiphertextMessageWrapper(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.ClosedGroupCiphertextMessageWrapper) + } + + public interface DataMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string body = 1; + /** + * optional string body = 1; + */ + boolean hasBody(); + /** + * optional string body = 1; + */ + java.lang.String getBody(); + /** + * optional string body = 1; + */ + com.google.protobuf.ByteString + getBodyBytes(); + + // repeated .signalservice.AttachmentPointer attachments = 2; + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + java.util.List + getAttachmentsList(); + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getAttachments(int index); + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + int getAttachmentsCount(); + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + java.util.List + getAttachmentsOrBuilderList(); + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAttachmentsOrBuilder( + int index); + + // optional .signalservice.GroupContext group = 3; + /** + * optional .signalservice.GroupContext group = 3; + */ + boolean hasGroup(); + /** + * optional .signalservice.GroupContext group = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext getGroup(); + /** + * optional .signalservice.GroupContext group = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContextOrBuilder getGroupOrBuilder(); + + // optional uint32 flags = 4; + /** + * optional uint32 flags = 4; + */ + boolean hasFlags(); + /** + * optional uint32 flags = 4; + */ + int getFlags(); + + // optional uint32 expireTimer = 5; + /** + * optional uint32 expireTimer = 5; + */ + boolean hasExpireTimer(); + /** + * optional uint32 expireTimer = 5; + */ + int getExpireTimer(); + + // optional bytes profileKey = 6; + /** + * optional bytes profileKey = 6; + */ + boolean hasProfileKey(); + /** + * optional bytes profileKey = 6; + */ + com.google.protobuf.ByteString getProfileKey(); + + // optional uint64 timestamp = 7; + /** + * optional uint64 timestamp = 7; + */ + boolean hasTimestamp(); + /** + * optional uint64 timestamp = 7; + */ + long getTimestamp(); + + // optional .signalservice.DataMessage.Quote quote = 8; + /** + * optional .signalservice.DataMessage.Quote quote = 8; + */ + boolean hasQuote(); + /** + * optional .signalservice.DataMessage.Quote quote = 8; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote getQuote(); + /** + * optional .signalservice.DataMessage.Quote quote = 8; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.QuoteOrBuilder getQuoteOrBuilder(); + + // repeated .signalservice.DataMessage.Contact contact = 9; + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + java.util.List + getContactList(); + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact getContact(int index); + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + int getContactCount(); + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + java.util.List + getContactOrBuilderList(); + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder getContactOrBuilder( + int index); + + // repeated .signalservice.DataMessage.Preview preview = 10; + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + java.util.List + getPreviewList(); + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview getPreview(int index); + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + int getPreviewCount(); + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + java.util.List + getPreviewOrBuilderList(); + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.PreviewOrBuilder getPreviewOrBuilder( + int index); + + // optional .signalservice.DataMessage.Sticker sticker = 11; + /** + * optional .signalservice.DataMessage.Sticker sticker = 11; + */ + boolean hasSticker(); + /** + * optional .signalservice.DataMessage.Sticker sticker = 11; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker getSticker(); + /** + * optional .signalservice.DataMessage.Sticker sticker = 11; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.StickerOrBuilder getStickerOrBuilder(); + + // optional .signalservice.LokiUserProfile profile = 101; + /** + * optional .signalservice.LokiUserProfile profile = 101; + * + *
+     * Loki - The profile of the current user
+     * 
+ */ + boolean hasProfile(); + /** + * optional .signalservice.LokiUserProfile profile = 101; + * + *
+     * Loki - The profile of the current user
+     * 
+ */ + org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile getProfile(); + /** + * optional .signalservice.LokiUserProfile profile = 101; + * + *
+     * Loki - The profile of the current user
+     * 
+ */ + org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfileOrBuilder getProfileOrBuilder(); + + // optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + /** + * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + * + *
+     * Loki
+     * 
+ */ + boolean hasClosedGroupUpdate(); + /** + * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + * + *
+     * Loki
+     * 
+ */ + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate getClosedGroupUpdate(); + /** + * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + * + *
+     * Loki
+     * 
+ */ + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateOrBuilder getClosedGroupUpdateOrBuilder(); + + // optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + /** + * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + */ + boolean hasClosedGroupUpdateV2(); + /** + * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 getClosedGroupUpdateV2(); + /** + * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2OrBuilder getClosedGroupUpdateV2OrBuilder(); + } + /** + * Protobuf type {@code signalservice.DataMessage} + */ + public static final class DataMessage extends + com.google.protobuf.GeneratedMessage + implements DataMessageOrBuilder { + // Use DataMessage.newBuilder() to construct. + private DataMessage(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private DataMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final DataMessage defaultInstance; + public static DataMessage getDefaultInstance() { + return defaultInstance; + } + + public DataMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DataMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + body_ = input.readBytes(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + attachments_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + attachments_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry)); + break; + } + case 26: { + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = group_.toBuilder(); + } + group_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(group_); + group_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 32: { + bitField0_ |= 0x00000004; + flags_ = input.readUInt32(); + break; + } + case 40: { + bitField0_ |= 0x00000008; + expireTimer_ = input.readUInt32(); + break; + } + case 50: { + bitField0_ |= 0x00000010; + profileKey_ = input.readBytes(); + break; + } + case 56: { + bitField0_ |= 0x00000020; + timestamp_ = input.readUInt64(); + break; + } + case 66: { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.Builder subBuilder = null; + if (((bitField0_ & 0x00000040) == 0x00000040)) { + subBuilder = quote_.toBuilder(); + } + quote_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(quote_); + quote_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000040; + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + contact_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000100; + } + contact_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PARSER, extensionRegistry)); + break; + } + case 82: { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + preview_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + preview_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.PARSER, extensionRegistry)); + break; + } + case 90: { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.Builder subBuilder = null; + if (((bitField0_ & 0x00000080) == 0x00000080)) { + subBuilder = sticker_.toBuilder(); + } + sticker_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sticker_); + sticker_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000080; + break; + } + case 810: { + org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.Builder subBuilder = null; + if (((bitField0_ & 0x00000100) == 0x00000100)) { + subBuilder = profile_.toBuilder(); + } + profile_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(profile_); + profile_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000100; + break; + } + case 826: { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Builder subBuilder = null; + if (((bitField0_ & 0x00000200) == 0x00000200)) { + subBuilder = closedGroupUpdate_.toBuilder(); + } + closedGroupUpdate_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closedGroupUpdate_); + closedGroupUpdate_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000200; + break; + } + case 834: { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Builder subBuilder = null; + if (((bitField0_ & 0x00000400) == 0x00000400)) { + subBuilder = closedGroupUpdateV2_.toBuilder(); + } + closedGroupUpdateV2_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(closedGroupUpdateV2_); + closedGroupUpdateV2_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000400; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + attachments_ = java.util.Collections.unmodifiableList(attachments_); + } + if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + contact_ = java.util.Collections.unmodifiableList(contact_); + } + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + preview_ = java.util.Collections.unmodifiableList(preview_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public DataMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DataMessage(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + /** + * Protobuf enum {@code signalservice.DataMessage.Flags} + */ + public enum Flags + implements com.google.protobuf.ProtocolMessageEnum { + /** + * END_SESSION = 1; + */ + END_SESSION(0, 1), + /** + * EXPIRATION_TIMER_UPDATE = 2; + */ + EXPIRATION_TIMER_UPDATE(1, 2), + /** + * PROFILE_KEY_UPDATE = 4; + */ + PROFILE_KEY_UPDATE(2, 4), + /** + * DEVICE_UNLINKING_REQUEST = 128; + */ + DEVICE_UNLINKING_REQUEST(3, 128), + ; + + /** + * END_SESSION = 1; + */ + public static final int END_SESSION_VALUE = 1; + /** + * EXPIRATION_TIMER_UPDATE = 2; + */ + public static final int EXPIRATION_TIMER_UPDATE_VALUE = 2; + /** + * PROFILE_KEY_UPDATE = 4; + */ + public static final int PROFILE_KEY_UPDATE_VALUE = 4; + /** + * DEVICE_UNLINKING_REQUEST = 128; + */ + public static final int DEVICE_UNLINKING_REQUEST_VALUE = 128; + + + public final int getNumber() { return value; } + + public static Flags valueOf(int value) { + switch (value) { + case 1: return END_SESSION; + case 2: return EXPIRATION_TIMER_UPDATE; + case 4: return PROFILE_KEY_UPDATE; + case 128: return DEVICE_UNLINKING_REQUEST; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Flags findValueByNumber(int number) { + return Flags.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDescriptor().getEnumTypes().get(0); + } + + private static final Flags[] VALUES = values(); + + public static Flags valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int index; + private final int value; + + private Flags(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:signalservice.DataMessage.Flags) + } + + public interface QuoteOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional uint64 id = 1; + /** + * optional uint64 id = 1; + */ + boolean hasId(); + /** + * optional uint64 id = 1; + */ + long getId(); + + // optional string author = 2; + /** + * optional string author = 2; + */ + boolean hasAuthor(); + /** + * optional string author = 2; + */ + java.lang.String getAuthor(); + /** + * optional string author = 2; + */ + com.google.protobuf.ByteString + getAuthorBytes(); + + // optional string text = 3; + /** + * optional string text = 3; + */ + boolean hasText(); + /** + * optional string text = 3; + */ + java.lang.String getText(); + /** + * optional string text = 3; + */ + com.google.protobuf.ByteString + getTextBytes(); + + // repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + java.util.List + getAttachmentsList(); + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment getAttachments(int index); + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + int getAttachmentsCount(); + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + java.util.List + getAttachmentsOrBuilderList(); + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder getAttachmentsOrBuilder( + int index); + } + /** + * Protobuf type {@code signalservice.DataMessage.Quote} + */ + public static final class Quote extends + com.google.protobuf.GeneratedMessage + implements QuoteOrBuilder { + // Use Quote.newBuilder() to construct. + private Quote(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Quote(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Quote defaultInstance; + public static Quote getDefaultInstance() { + return defaultInstance; + } + + public Quote getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Quote( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + id_ = input.readUInt64(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + author_ = input.readBytes(); + break; + } + case 26: { + bitField0_ |= 0x00000004; + text_ = input.readBytes(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + attachments_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + attachments_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + attachments_ = java.util.Collections.unmodifiableList(attachments_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Quote parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Quote(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public interface QuotedAttachmentOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string contentType = 1; + /** + * optional string contentType = 1; + */ + boolean hasContentType(); + /** + * optional string contentType = 1; + */ + java.lang.String getContentType(); + /** + * optional string contentType = 1; + */ + com.google.protobuf.ByteString + getContentTypeBytes(); + + // optional string fileName = 2; + /** + * optional string fileName = 2; + */ + boolean hasFileName(); + /** + * optional string fileName = 2; + */ + java.lang.String getFileName(); + /** + * optional string fileName = 2; + */ + com.google.protobuf.ByteString + getFileNameBytes(); + + // optional .signalservice.AttachmentPointer thumbnail = 3; + /** + * optional .signalservice.AttachmentPointer thumbnail = 3; + */ + boolean hasThumbnail(); + /** + * optional .signalservice.AttachmentPointer thumbnail = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getThumbnail(); + /** + * optional .signalservice.AttachmentPointer thumbnail = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getThumbnailOrBuilder(); + } + /** + * Protobuf type {@code signalservice.DataMessage.Quote.QuotedAttachment} + */ + public static final class QuotedAttachment extends + com.google.protobuf.GeneratedMessage + implements QuotedAttachmentOrBuilder { + // Use QuotedAttachment.newBuilder() to construct. + private QuotedAttachment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private QuotedAttachment(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final QuotedAttachment defaultInstance; + public static QuotedAttachment getDefaultInstance() { + return defaultInstance; } - public ClosedGroupCiphertextMessageWrapper getDefaultInstanceForType() { - return defaultInstance; + public QuotedAttachment getDefaultInstanceForType() { + return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + getUnknownFields() { + return this.unknownFields; } - private ClosedGroupCiphertextMessageWrapper( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - ciphertext_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - ephemeralPublicKey_ = input.readBytes(); - break; - } - } + private QuotedAttachment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); + case 10: { + bitField0_ |= 0x00000001; + contentType_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + fileName_ = input.readBytes(); + break; + } + case 26: { + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = thumbnail_.toBuilder(); + } + thumbnail_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(thumbnail_); + thumbnail_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + } } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_descriptor; + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_QuotedAttachment_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper.Builder.class); + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_QuotedAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ClosedGroupCiphertextMessageWrapper parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClosedGroupCiphertextMessageWrapper(input, extensionRegistry); - } - }; + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public QuotedAttachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QuotedAttachment(input, extensionRegistry); + } + }; @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public com.google.protobuf.Parser getParserForType() { + return PARSER; } private int bitField0_; - // optional bytes ciphertext = 1; - public static final int CIPHERTEXT_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString ciphertext_; + // optional string contentType = 1; + public static final int CONTENTTYPE_FIELD_NUMBER = 1; + private java.lang.Object contentType_; /** - * optional bytes ciphertext = 1; - * - *
-         * @required
-         * 
+ * optional string contentType = 1; */ - public boolean hasCiphertext() { - return ((bitField0_ & 0x00000001) == 0x00000001); + public boolean hasContentType() { + return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * optional bytes ciphertext = 1; - * - *
-         * @required
-         * 
+ * optional string contentType = 1; */ - public com.google.protobuf.ByteString getCiphertext() { - return ciphertext_; + public java.lang.String getContentType() { + java.lang.Object ref = contentType_; + 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()) { + contentType_ = s; + } + return s; + } + } + /** + * optional string contentType = 1; + */ + public com.google.protobuf.ByteString + getContentTypeBytes() { + java.lang.Object ref = contentType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - // optional bytes ephemeralPublicKey = 2; - public static final int EPHEMERALPUBLICKEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString ephemeralPublicKey_; + // optional string fileName = 2; + public static final int FILENAME_FIELD_NUMBER = 2; + private java.lang.Object fileName_; /** - * optional bytes ephemeralPublicKey = 2; - * - *
-         * @required
-         * 
+ * optional string fileName = 2; */ - public boolean hasEphemeralPublicKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public boolean hasFileName() { + return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * optional bytes ephemeralPublicKey = 2; - * - *
-         * @required
-         * 
+ * optional string fileName = 2; */ - public com.google.protobuf.ByteString getEphemeralPublicKey() { - return ephemeralPublicKey_; + public java.lang.String getFileName() { + java.lang.Object ref = fileName_; + 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()) { + fileName_ = s; + } + return s; + } + } + /** + * optional string fileName = 2; + */ + public com.google.protobuf.ByteString + getFileNameBytes() { + java.lang.Object ref = fileName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional .signalservice.AttachmentPointer thumbnail = 3; + public static final int THUMBNAIL_FIELD_NUMBER = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer thumbnail_; + /** + * optional .signalservice.AttachmentPointer thumbnail = 3; + */ + public boolean hasThumbnail() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.AttachmentPointer thumbnail = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getThumbnail() { + return thumbnail_; + } + /** + * optional .signalservice.AttachmentPointer thumbnail = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getThumbnailOrBuilder() { + return thumbnail_; } private void initFields() { - ciphertext_ = com.google.protobuf.ByteString.EMPTY; - ephemeralPublicKey_ = com.google.protobuf.ByteString.EMPTY; + contentType_ = ""; + fileName_ = ""; + thumbnail_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; - memoizedIsInitialized = 1; - return true; + memoizedIsInitialized = 1; + return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, ciphertext_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, ephemeralPublicKey_); - } - getUnknownFields().writeTo(output); + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getContentTypeBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getFileNameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, thumbnail_); + } + getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; + int size = memoizedSerializedSize; + if (size != -1) return size; - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, ciphertext_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, ephemeralPublicKey_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getContentTypeBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getFileNameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, thumbnail_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); + throws java.io.ObjectStreamException { + return super.writeReplace(); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper 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.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment 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.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper prototype) { - return newBuilder().mergeFrom(prototype); + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment prototype) { + return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** - * Protobuf type {@code signalservice.ClosedGroupCiphertextMessageWrapper} + * Protobuf type {@code signalservice.DataMessage.Quote.QuotedAttachment} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapperOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_descriptor; - } + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_QuotedAttachment_descriptor; + } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper.Builder.class); - } + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_QuotedAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder.class); + } - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getThumbnailFieldBuilder(); } + } + private static Builder create() { + return new Builder(); + } - public Builder clear() { - super.clear(); - ciphertext_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - ephemeralPublicKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; + public Builder clear() { + super.clear(); + contentType_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + fileName_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + if (thumbnailBuilder_ == null) { + thumbnail_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + } else { + thumbnailBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } + public Builder clone() { + return create().mergeFrom(buildPartial()); + } - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_descriptor; - } + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_QuotedAttachment_descriptor; + } - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper.getDefaultInstance(); - } + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.getDefaultInstance(); + } - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.ciphertext_ = ciphertext_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.ephemeralPublicKey_ = ephemeralPublicKey_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } + result.contentType_ = contentType_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.fileName_ = fileName_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (thumbnailBuilder_ == null) { + result.thumbnail_ = thumbnail_; + } else { + result.thumbnail_ = thumbnailBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper)other); - } else { - super.mergeFrom(other); - return this; - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment)other); + } else { + super.mergeFrom(other); + return this; } + } - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper.getDefaultInstance()) return this; - if (other.hasCiphertext()) { - setCiphertext(other.getCiphertext()); - } - if (other.hasEphemeralPublicKey()) { - setEphemeralPublicKey(other.getEphemeralPublicKey()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.getDefaultInstance()) return this; + if (other.hasContentType()) { + bitField0_ |= 0x00000001; + contentType_ = other.contentType_; + onChanged(); } + if (other.hasFileName()) { + bitField0_ |= 0x00000002; + fileName_ = other.fileName_; + onChanged(); + } + if (other.hasThumbnail()) { + mergeThumbnail(other.getThumbnail()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } - public final boolean isInitialized() { - return true; - } + public final boolean isInitialized() { + return true; + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupCiphertextMessageWrapper) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } - private int bitField0_; + return this; + } + private int bitField0_; - // optional bytes ciphertext = 1; - private com.google.protobuf.ByteString ciphertext_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes ciphertext = 1; - * - *
-             * @required
-             * 
- */ - public boolean hasCiphertext() { - return ((bitField0_ & 0x00000001) == 0x00000001); + // optional string contentType = 1; + private java.lang.Object contentType_ = ""; + /** + * optional string contentType = 1; + */ + public boolean hasContentType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string contentType = 1; + */ + public java.lang.String getContentType() { + java.lang.Object ref = contentType_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + contentType_ = s; + return s; + } else { + return (java.lang.String) ref; } - /** - * optional bytes ciphertext = 1; - * - *
-             * @required
-             * 
- */ - public com.google.protobuf.ByteString getCiphertext() { - return ciphertext_; - } - /** - * optional bytes ciphertext = 1; - * - *
-             * @required
-             * 
- */ - public Builder setCiphertext(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - ciphertext_ = value; - onChanged(); - return this; - } - /** - * optional bytes ciphertext = 1; - * - *
-             * @required
-             * 
- */ - public Builder clearCiphertext() { - bitField0_ = (bitField0_ & ~0x00000001); - ciphertext_ = getDefaultInstance().getCiphertext(); - onChanged(); - return this; + } + /** + * optional string contentType = 1; + */ + public com.google.protobuf.ByteString + getContentTypeBytes() { + java.lang.Object ref = contentType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } + /** + * optional string contentType = 1; + */ + public Builder setContentType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + contentType_ = value; + onChanged(); + return this; + } + /** + * optional string contentType = 1; + */ + public Builder clearContentType() { + bitField0_ = (bitField0_ & ~0x00000001); + contentType_ = getDefaultInstance().getContentType(); + onChanged(); + return this; + } + /** + * optional string contentType = 1; + */ + public Builder setContentTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + contentType_ = value; + onChanged(); + return this; + } - // optional bytes ephemeralPublicKey = 2; - private com.google.protobuf.ByteString ephemeralPublicKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes ephemeralPublicKey = 2; - * - *
-             * @required
-             * 
- */ - public boolean hasEphemeralPublicKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); + // optional string fileName = 2; + private java.lang.Object fileName_ = ""; + /** + * optional string fileName = 2; + */ + public boolean hasFileName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string fileName = 2; + */ + public java.lang.String getFileName() { + java.lang.Object ref = fileName_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + fileName_ = s; + return s; + } else { + return (java.lang.String) ref; } - /** - * optional bytes ephemeralPublicKey = 2; - * - *
-             * @required
-             * 
- */ - public com.google.protobuf.ByteString getEphemeralPublicKey() { - return ephemeralPublicKey_; - } - /** - * optional bytes ephemeralPublicKey = 2; - * - *
-             * @required
-             * 
- */ - public Builder setEphemeralPublicKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - ephemeralPublicKey_ = value; - onChanged(); - return this; - } - /** - * optional bytes ephemeralPublicKey = 2; - * - *
-             * @required
-             * 
- */ - public Builder clearEphemeralPublicKey() { - bitField0_ = (bitField0_ & ~0x00000002); - ephemeralPublicKey_ = getDefaultInstance().getEphemeralPublicKey(); - onChanged(); - return this; + } + /** + * optional string fileName = 2; + */ + public com.google.protobuf.ByteString + getFileNameBytes() { + java.lang.Object ref = fileName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } + /** + * optional string fileName = 2; + */ + public Builder setFileName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + fileName_ = value; + onChanged(); + return this; + } + /** + * optional string fileName = 2; + */ + public Builder clearFileName() { + bitField0_ = (bitField0_ & ~0x00000002); + fileName_ = getDefaultInstance().getFileName(); + onChanged(); + return this; + } + /** + * optional string fileName = 2; + */ + public Builder setFileNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + fileName_ = value; + onChanged(); + return this; + } - // @@protoc_insertion_point(builder_scope:signalservice.ClosedGroupCiphertextMessageWrapper) + // optional .signalservice.AttachmentPointer thumbnail = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer thumbnail_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> thumbnailBuilder_; + /** + * optional .signalservice.AttachmentPointer thumbnail = 3; + */ + public boolean hasThumbnail() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.AttachmentPointer thumbnail = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getThumbnail() { + if (thumbnailBuilder_ == null) { + return thumbnail_; + } else { + return thumbnailBuilder_.getMessage(); + } + } + /** + * optional .signalservice.AttachmentPointer thumbnail = 3; + */ + public Builder setThumbnail(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { + if (thumbnailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + thumbnail_ = value; + onChanged(); + } else { + thumbnailBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.AttachmentPointer thumbnail = 3; + */ + public Builder setThumbnail( + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder builderForValue) { + if (thumbnailBuilder_ == null) { + thumbnail_ = builderForValue.build(); + onChanged(); + } else { + thumbnailBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.AttachmentPointer thumbnail = 3; + */ + public Builder mergeThumbnail(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { + if (thumbnailBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + thumbnail_ != org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) { + thumbnail_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.newBuilder(thumbnail_).mergeFrom(value).buildPartial(); + } else { + thumbnail_ = value; + } + onChanged(); + } else { + thumbnailBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.AttachmentPointer thumbnail = 3; + */ + public Builder clearThumbnail() { + if (thumbnailBuilder_ == null) { + thumbnail_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + onChanged(); + } else { + thumbnailBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + * optional .signalservice.AttachmentPointer thumbnail = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder getThumbnailBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getThumbnailFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.AttachmentPointer thumbnail = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getThumbnailOrBuilder() { + if (thumbnailBuilder_ != null) { + return thumbnailBuilder_.getMessageOrBuilder(); + } else { + return thumbnail_; + } + } + /** + * optional .signalservice.AttachmentPointer thumbnail = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> + getThumbnailFieldBuilder() { + if (thumbnailBuilder_ == null) { + thumbnailBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>( + thumbnail_, + getParentForChildren(), + isClean()); + thumbnail_ = null; + } + return thumbnailBuilder_; + } + + // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Quote.QuotedAttachment) } static { - defaultInstance = new ClosedGroupCiphertextMessageWrapper(true); - defaultInstance.initFields(); + defaultInstance = new QuotedAttachment(true); + defaultInstance.initFields(); } - // @@protoc_insertion_point(class_scope:signalservice.ClosedGroupCiphertextMessageWrapper) + // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Quote.QuotedAttachment) + } + + private int bitField0_; + // optional uint64 id = 1; + public static final int ID_FIELD_NUMBER = 1; + private long id_; + /** + * optional uint64 id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional uint64 id = 1; + */ + public long getId() { + return id_; + } + + // optional string author = 2; + public static final int AUTHOR_FIELD_NUMBER = 2; + private java.lang.Object author_; + /** + * optional string author = 2; + */ + public boolean hasAuthor() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string author = 2; + */ + 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; + } + } + /** + * optional string author = 2; + */ + 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; + } + } + + // optional string text = 3; + public static final int TEXT_FIELD_NUMBER = 3; + private java.lang.Object text_; + /** + * optional string text = 3; + */ + public boolean hasText() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string text = 3; + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + 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()) { + text_ = s; + } + return s; + } + } + /** + * optional string text = 3; + */ + public com.google.protobuf.ByteString + getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + public static final int ATTACHMENTS_FIELD_NUMBER = 4; + private java.util.List attachments_; + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public java.util.List getAttachmentsList() { + return attachments_; + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public java.util.List + getAttachmentsOrBuilderList() { + return attachments_; + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public int getAttachmentsCount() { + return attachments_.size(); + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment getAttachments(int index) { + return attachments_.get(index); + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder getAttachmentsOrBuilder( + int index) { + return attachments_.get(index); + } + + private void initFields() { + id_ = 0L; + author_ = ""; + text_ = ""; + attachments_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt64(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getAuthorBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getTextBytes()); + } + for (int i = 0; i < attachments_.size(); i++) { + output.writeMessage(4, attachments_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getAuthorBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getTextBytes()); + } + for (int i = 0; i < attachments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, attachments_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote 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.service.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.DataMessage.Quote} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.QuoteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.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(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + author_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + text_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + if (attachmentsBuilder_ == null) { + attachments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + attachmentsBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.author_ = author_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.text_ = text_; + if (attachmentsBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + attachments_ = java.util.Collections.unmodifiableList(attachments_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.attachments_ = attachments_; + } else { + result.attachments_ = attachmentsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance()) return this; + if (other.hasId()) { + setId(other.getId()); + } + if (other.hasAuthor()) { + bitField0_ |= 0x00000002; + author_ = other.author_; + onChanged(); + } + if (other.hasText()) { + bitField0_ |= 0x00000004; + text_ = other.text_; + onChanged(); + } + if (attachmentsBuilder_ == null) { + if (!other.attachments_.isEmpty()) { + if (attachments_.isEmpty()) { + attachments_ = other.attachments_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAttachmentsIsMutable(); + attachments_.addAll(other.attachments_); + } + onChanged(); + } + } else { + if (!other.attachments_.isEmpty()) { + if (attachmentsBuilder_.isEmpty()) { + attachmentsBuilder_.dispose(); + attachmentsBuilder_ = null; + attachments_ = other.attachments_; + bitField0_ = (bitField0_ & ~0x00000008); + attachmentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getAttachmentsFieldBuilder() : null; + } else { + attachmentsBuilder_.addAllMessages(other.attachments_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional uint64 id = 1; + private long id_ ; + /** + * optional uint64 id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional uint64 id = 1; + */ + public long getId() { + return id_; + } + /** + * optional uint64 id = 1; + */ + public Builder setId(long value) { + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + /** + * optional uint64 id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = 0L; + onChanged(); + return this; + } + + // optional string author = 2; + private java.lang.Object author_ = ""; + /** + * optional string author = 2; + */ + public boolean hasAuthor() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string author = 2; + */ + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + author_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string author = 2; + */ + 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; + } + } + /** + * optional string author = 2; + */ + public Builder setAuthor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + author_ = value; + onChanged(); + return this; + } + /** + * optional string author = 2; + */ + public Builder clearAuthor() { + bitField0_ = (bitField0_ & ~0x00000002); + author_ = getDefaultInstance().getAuthor(); + onChanged(); + return this; + } + /** + * optional string author = 2; + */ + public Builder setAuthorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + author_ = value; + onChanged(); + return this; + } + + // optional string text = 3; + private java.lang.Object text_ = ""; + /** + * optional string text = 3; + */ + public boolean hasText() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string text = 3; + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string text = 3; + */ + public com.google.protobuf.ByteString + getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string text = 3; + */ + public Builder setText( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + text_ = value; + onChanged(); + return this; + } + /** + * optional string text = 3; + */ + public Builder clearText() { + bitField0_ = (bitField0_ & ~0x00000004); + text_ = getDefaultInstance().getText(); + onChanged(); + return this; + } + /** + * optional string text = 3; + */ + public Builder setTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + text_ = value; + onChanged(); + return this; + } + + // repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + private java.util.List attachments_ = + java.util.Collections.emptyList(); + private void ensureAttachmentsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + attachments_ = new java.util.ArrayList(attachments_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder> attachmentsBuilder_; + + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public java.util.List getAttachmentsList() { + if (attachmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(attachments_); + } else { + return attachmentsBuilder_.getMessageList(); + } + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public int getAttachmentsCount() { + if (attachmentsBuilder_ == null) { + return attachments_.size(); + } else { + return attachmentsBuilder_.getCount(); + } + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment getAttachments(int index) { + if (attachmentsBuilder_ == null) { + return attachments_.get(index); + } else { + return attachmentsBuilder_.getMessage(index); + } + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public Builder setAttachments( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment 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.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public Builder setAttachments( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder builderForValue) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.set(index, builderForValue.build()); + onChanged(); + } else { + attachmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public Builder addAttachments(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment value) { + if (attachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachmentsIsMutable(); + attachments_.add(value); + onChanged(); + } else { + attachmentsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public Builder addAttachments( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment 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.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public Builder addAttachments( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder builderForValue) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.add(builderForValue.build()); + onChanged(); + } else { + attachmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public Builder addAttachments( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder builderForValue) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.add(index, builderForValue.build()); + onChanged(); + } else { + attachmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public Builder addAllAttachments( + java.lang.Iterable values) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + super.addAll(values, attachments_); + onChanged(); + } else { + attachmentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public Builder clearAttachments() { + if (attachmentsBuilder_ == null) { + attachments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + attachmentsBuilder_.clear(); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public Builder removeAttachments(int index) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.remove(index); + onChanged(); + } else { + attachmentsBuilder_.remove(index); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder getAttachmentsBuilder( + int index) { + return getAttachmentsFieldBuilder().getBuilder(index); + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder getAttachmentsOrBuilder( + int index) { + if (attachmentsBuilder_ == null) { + return attachments_.get(index); } else { + return attachmentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public java.util.List + getAttachmentsOrBuilderList() { + if (attachmentsBuilder_ != null) { + return attachmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attachments_); + } + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder addAttachmentsBuilder() { + return getAttachmentsFieldBuilder().addBuilder( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.getDefaultInstance()); + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder addAttachmentsBuilder( + int index) { + return getAttachmentsFieldBuilder().addBuilder( + index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.getDefaultInstance()); + } + /** + * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; + */ + public java.util.List + getAttachmentsBuilderList() { + return getAttachmentsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder> + getAttachmentsFieldBuilder() { + if (attachmentsBuilder_ == null) { + attachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder>( + attachments_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + attachments_ = null; + } + return attachmentsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Quote) + } + + static { + defaultInstance = new Quote(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Quote) } - public interface DataMessageOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface ContactOrBuilder + extends com.google.protobuf.MessageOrBuilder { - // optional string body = 1; + // optional .signalservice.DataMessage.Contact.Name name = 1; + /** + * optional .signalservice.DataMessage.Contact.Name name = 1; + */ + boolean hasName(); + /** + * optional .signalservice.DataMessage.Contact.Name name = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name getName(); + /** + * optional .signalservice.DataMessage.Contact.Name name = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.NameOrBuilder getNameOrBuilder(); + + // repeated .signalservice.DataMessage.Contact.Phone number = 3; + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + java.util.List + getNumberList(); + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone getNumber(int index); + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + int getNumberCount(); + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + java.util.List + getNumberOrBuilderList(); + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder getNumberOrBuilder( + int index); + + // repeated .signalservice.DataMessage.Contact.Email email = 4; + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + java.util.List + getEmailList(); + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email getEmail(int index); + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + int getEmailCount(); + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + java.util.List + getEmailOrBuilderList(); + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder getEmailOrBuilder( + int index); + + // repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + java.util.List + getAddressList(); + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress getAddress(int index); + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + int getAddressCount(); + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + java.util.List + getAddressOrBuilderList(); + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder getAddressOrBuilder( + int index); + + // optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + /** + * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + */ + boolean hasAvatar(); + /** + * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar getAvatar(); + /** + * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.AvatarOrBuilder getAvatarOrBuilder(); + + // optional string organization = 7; + /** + * optional string organization = 7; + */ + boolean hasOrganization(); + /** + * optional string organization = 7; + */ + java.lang.String getOrganization(); + /** + * optional string organization = 7; + */ + com.google.protobuf.ByteString + getOrganizationBytes(); + } + /** + * Protobuf type {@code signalservice.DataMessage.Contact} + */ + public static final class Contact extends + com.google.protobuf.GeneratedMessage + implements ContactOrBuilder { + // Use Contact.newBuilder() to construct. + private Contact(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Contact(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Contact defaultInstance; + public static Contact getDefaultInstance() { + return defaultInstance; + } + + public Contact getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Contact( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = name_.toBuilder(); + } + name_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(name_); + name_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + number_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + number_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.PARSER, extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + email_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + email_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.PARSER, extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + address_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + address_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.PARSER, extensionRegistry)); + break; + } + case 50: { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = avatar_.toBuilder(); + } + avatar_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(avatar_); + avatar_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 58: { + bitField0_ |= 0x00000004; + organization_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + number_ = java.util.Collections.unmodifiableList(number_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + email_ = java.util.Collections.unmodifiableList(email_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + address_ = java.util.Collections.unmodifiableList(address_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Contact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Contact(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public interface NameOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string givenName = 1; /** - * optional string body = 1; + * optional string givenName = 1; */ - boolean hasBody(); + boolean hasGivenName(); /** - * optional string body = 1; + * optional string givenName = 1; */ - java.lang.String getBody(); + java.lang.String getGivenName(); /** - * optional string body = 1; + * optional string givenName = 1; */ com.google.protobuf.ByteString - getBodyBytes(); + getGivenNameBytes(); - // repeated .signalservice.AttachmentPointer attachments = 2; + // optional string familyName = 2; /** - * repeated .signalservice.AttachmentPointer attachments = 2; + * optional string familyName = 2; */ - java.util.List - getAttachmentsList(); + boolean hasFamilyName(); /** - * repeated .signalservice.AttachmentPointer attachments = 2; + * optional string familyName = 2; */ - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getAttachments(int index); + java.lang.String getFamilyName(); /** - * repeated .signalservice.AttachmentPointer attachments = 2; + * optional string familyName = 2; */ - int getAttachmentsCount(); - /** - * repeated .signalservice.AttachmentPointer attachments = 2; - */ - java.util.List - getAttachmentsOrBuilderList(); - /** - * repeated .signalservice.AttachmentPointer attachments = 2; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAttachmentsOrBuilder( - int index); + com.google.protobuf.ByteString + getFamilyNameBytes(); - // optional .signalservice.GroupContext group = 3; + // optional string prefix = 3; /** - * optional .signalservice.GroupContext group = 3; + * optional string prefix = 3; */ - boolean hasGroup(); + boolean hasPrefix(); /** - * optional .signalservice.GroupContext group = 3; + * optional string prefix = 3; */ - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext getGroup(); + java.lang.String getPrefix(); /** - * optional .signalservice.GroupContext group = 3; + * optional string prefix = 3; */ - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContextOrBuilder getGroupOrBuilder(); + com.google.protobuf.ByteString + getPrefixBytes(); - // optional uint32 flags = 4; + // optional string suffix = 4; /** - * optional uint32 flags = 4; + * optional string suffix = 4; */ - boolean hasFlags(); + boolean hasSuffix(); /** - * optional uint32 flags = 4; + * optional string suffix = 4; */ - int getFlags(); + java.lang.String getSuffix(); + /** + * optional string suffix = 4; + */ + com.google.protobuf.ByteString + getSuffixBytes(); - // optional uint32 expireTimer = 5; + // optional string middleName = 5; /** - * optional uint32 expireTimer = 5; + * optional string middleName = 5; */ - boolean hasExpireTimer(); + boolean hasMiddleName(); /** - * optional uint32 expireTimer = 5; + * optional string middleName = 5; */ - int getExpireTimer(); + java.lang.String getMiddleName(); + /** + * optional string middleName = 5; + */ + com.google.protobuf.ByteString + getMiddleNameBytes(); - // optional bytes profileKey = 6; + // optional string displayName = 6; /** - * optional bytes profileKey = 6; + * optional string displayName = 6; */ - boolean hasProfileKey(); + boolean hasDisplayName(); /** - * optional bytes profileKey = 6; + * optional string displayName = 6; */ - com.google.protobuf.ByteString getProfileKey(); + java.lang.String getDisplayName(); + /** + * optional string displayName = 6; + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + } + /** + * Protobuf type {@code signalservice.DataMessage.Contact.Name} + */ + public static final class Name extends + com.google.protobuf.GeneratedMessage + implements NameOrBuilder { + // Use Name.newBuilder() to construct. + private Name(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Name(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - // optional uint64 timestamp = 7; - /** - * optional uint64 timestamp = 7; - */ - boolean hasTimestamp(); - /** - * optional uint64 timestamp = 7; - */ - long getTimestamp(); + private static final Name defaultInstance; + public static Name getDefaultInstance() { + return defaultInstance; + } - // optional .signalservice.DataMessage.Quote quote = 8; - /** - * optional .signalservice.DataMessage.Quote quote = 8; - */ - boolean hasQuote(); - /** - * optional .signalservice.DataMessage.Quote quote = 8; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote getQuote(); - /** - * optional .signalservice.DataMessage.Quote quote = 8; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.QuoteOrBuilder getQuoteOrBuilder(); + public Name getDefaultInstanceForType() { + return defaultInstance; + } - // repeated .signalservice.DataMessage.Contact contact = 9; - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - java.util.List - getContactList(); - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact getContact(int index); - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - int getContactCount(); - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - java.util.List - getContactOrBuilderList(); - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder getContactOrBuilder( - int index); + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Name( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + givenName_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + familyName_ = input.readBytes(); + break; + } + case 26: { + bitField0_ |= 0x00000004; + prefix_ = input.readBytes(); + break; + } + case 34: { + bitField0_ |= 0x00000008; + suffix_ = input.readBytes(); + break; + } + case 42: { + bitField0_ |= 0x00000010; + middleName_ = input.readBytes(); + break; + } + case 50: { + bitField0_ |= 0x00000020; + displayName_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Name_descriptor; + } - // repeated .signalservice.DataMessage.Preview preview = 10; - /** - * repeated .signalservice.DataMessage.Preview preview = 10; - */ - java.util.List - getPreviewList(); - /** - * repeated .signalservice.DataMessage.Preview preview = 10; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview getPreview(int index); - /** - * repeated .signalservice.DataMessage.Preview preview = 10; - */ - int getPreviewCount(); - /** - * repeated .signalservice.DataMessage.Preview preview = 10; - */ - java.util.List - getPreviewOrBuilderList(); - /** - * repeated .signalservice.DataMessage.Preview preview = 10; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.PreviewOrBuilder getPreviewOrBuilder( - int index); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Name_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder.class); + } - // optional .signalservice.DataMessage.Sticker sticker = 11; - /** - * optional .signalservice.DataMessage.Sticker sticker = 11; - */ - boolean hasSticker(); - /** - * optional .signalservice.DataMessage.Sticker sticker = 11; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker getSticker(); - /** - * optional .signalservice.DataMessage.Sticker sticker = 11; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.StickerOrBuilder getStickerOrBuilder(); + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Name parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Name(input, extensionRegistry); + } + }; - // optional .signalservice.LokiUserProfile profile = 101; - /** - * optional .signalservice.LokiUserProfile profile = 101; - * - *
-         * Loki - The profile of the current user
-         * 
- */ - boolean hasProfile(); - /** - * optional .signalservice.LokiUserProfile profile = 101; - * - *
-         * Loki - The profile of the current user
-         * 
- */ - org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile getProfile(); - /** - * optional .signalservice.LokiUserProfile profile = 101; - * - *
-         * Loki - The profile of the current user
-         * 
- */ - org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfileOrBuilder getProfileOrBuilder(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - // optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + private int bitField0_; + // optional string givenName = 1; + public static final int GIVENNAME_FIELD_NUMBER = 1; + private java.lang.Object givenName_; /** - * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; - * - *
-         * Loki
-         * 
+ * optional string givenName = 1; */ - boolean hasClosedGroupUpdate(); + public boolean hasGivenName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } /** - * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; - * - *
-         * Loki
-         * 
+ * optional string givenName = 1; */ - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate getClosedGroupUpdate(); + public java.lang.String getGivenName() { + java.lang.Object ref = givenName_; + 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()) { + givenName_ = s; + } + return s; + } + } /** - * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; - * - *
-         * Loki
-         * 
+ * optional string givenName = 1; */ - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateOrBuilder getClosedGroupUpdateOrBuilder(); + public com.google.protobuf.ByteString + getGivenNameBytes() { + java.lang.Object ref = givenName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + givenName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + // optional string familyName = 2; + public static final int FAMILYNAME_FIELD_NUMBER = 2; + private java.lang.Object familyName_; /** - * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + * optional string familyName = 2; */ - boolean hasClosedGroupUpdateV2(); + public boolean hasFamilyName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } /** - * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + * optional string familyName = 2; */ - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 getClosedGroupUpdateV2(); + public java.lang.String getFamilyName() { + java.lang.Object ref = familyName_; + 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()) { + familyName_ = s; + } + return s; + } + } /** - * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + * optional string familyName = 2; */ - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2OrBuilder getClosedGroupUpdateV2OrBuilder(); + public com.google.protobuf.ByteString + getFamilyNameBytes() { + java.lang.Object ref = familyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + familyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional string prefix = 3; + public static final int PREFIX_FIELD_NUMBER = 3; + private java.lang.Object prefix_; + /** + * optional string prefix = 3; + */ + public boolean hasPrefix() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string prefix = 3; + */ + public java.lang.String getPrefix() { + java.lang.Object ref = prefix_; + 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()) { + prefix_ = s; + } + return s; + } + } + /** + * optional string prefix = 3; + */ + public com.google.protobuf.ByteString + getPrefixBytes() { + java.lang.Object ref = prefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional string suffix = 4; + public static final int SUFFIX_FIELD_NUMBER = 4; + private java.lang.Object suffix_; + /** + * optional string suffix = 4; + */ + public boolean hasSuffix() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional string suffix = 4; + */ + public java.lang.String getSuffix() { + java.lang.Object ref = suffix_; + 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()) { + suffix_ = s; + } + return s; + } + } + /** + * optional string suffix = 4; + */ + public com.google.protobuf.ByteString + getSuffixBytes() { + java.lang.Object ref = suffix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + suffix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional string middleName = 5; + public static final int MIDDLENAME_FIELD_NUMBER = 5; + private java.lang.Object middleName_; + /** + * optional string middleName = 5; + */ + public boolean hasMiddleName() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional string middleName = 5; + */ + public java.lang.String getMiddleName() { + java.lang.Object ref = middleName_; + 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()) { + middleName_ = s; + } + return s; + } + } + /** + * optional string middleName = 5; + */ + public com.google.protobuf.ByteString + getMiddleNameBytes() { + java.lang.Object ref = middleName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + middleName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional string displayName = 6; + public static final int DISPLAYNAME_FIELD_NUMBER = 6; + private java.lang.Object displayName_; + /** + * optional string displayName = 6; + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional string displayName = 6; + */ + 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; + } + return s; + } + } + /** + * optional string displayName = 6; + */ + 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; + } + } + + private void initFields() { + givenName_ = ""; + familyName_ = ""; + prefix_ = ""; + suffix_ = ""; + middleName_ = ""; + displayName_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getGivenNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getFamilyNameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getPrefixBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(4, getSuffixBytes()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeBytes(5, getMiddleNameBytes()); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBytes(6, getDisplayNameBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getGivenNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getFamilyNameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getPrefixBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, getSuffixBytes()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, getMiddleNameBytes()); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, getDisplayNameBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name 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.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.DataMessage.Contact.Name} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.NameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Name_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Name_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + givenName_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + familyName_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + prefix_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + suffix_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + middleName_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + displayName_ = ""; + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Name_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.givenName_ = givenName_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.familyName_ = familyName_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.prefix_ = prefix_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.suffix_ = suffix_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.middleName_ = middleName_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.displayName_ = displayName_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance()) return this; + if (other.hasGivenName()) { + bitField0_ |= 0x00000001; + givenName_ = other.givenName_; + onChanged(); + } + if (other.hasFamilyName()) { + bitField0_ |= 0x00000002; + familyName_ = other.familyName_; + onChanged(); + } + if (other.hasPrefix()) { + bitField0_ |= 0x00000004; + prefix_ = other.prefix_; + onChanged(); + } + if (other.hasSuffix()) { + bitField0_ |= 0x00000008; + suffix_ = other.suffix_; + onChanged(); + } + if (other.hasMiddleName()) { + bitField0_ |= 0x00000010; + middleName_ = other.middleName_; + onChanged(); + } + if (other.hasDisplayName()) { + bitField0_ |= 0x00000020; + displayName_ = other.displayName_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string givenName = 1; + private java.lang.Object givenName_ = ""; + /** + * optional string givenName = 1; + */ + public boolean hasGivenName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string givenName = 1; + */ + public java.lang.String getGivenName() { + java.lang.Object ref = givenName_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + givenName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string givenName = 1; + */ + public com.google.protobuf.ByteString + getGivenNameBytes() { + java.lang.Object ref = givenName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + givenName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string givenName = 1; + */ + public Builder setGivenName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + givenName_ = value; + onChanged(); + return this; + } + /** + * optional string givenName = 1; + */ + public Builder clearGivenName() { + bitField0_ = (bitField0_ & ~0x00000001); + givenName_ = getDefaultInstance().getGivenName(); + onChanged(); + return this; + } + /** + * optional string givenName = 1; + */ + public Builder setGivenNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + givenName_ = value; + onChanged(); + return this; + } + + // optional string familyName = 2; + private java.lang.Object familyName_ = ""; + /** + * optional string familyName = 2; + */ + public boolean hasFamilyName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string familyName = 2; + */ + public java.lang.String getFamilyName() { + java.lang.Object ref = familyName_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + familyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string familyName = 2; + */ + public com.google.protobuf.ByteString + getFamilyNameBytes() { + java.lang.Object ref = familyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + familyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string familyName = 2; + */ + public Builder setFamilyName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + familyName_ = value; + onChanged(); + return this; + } + /** + * optional string familyName = 2; + */ + public Builder clearFamilyName() { + bitField0_ = (bitField0_ & ~0x00000002); + familyName_ = getDefaultInstance().getFamilyName(); + onChanged(); + return this; + } + /** + * optional string familyName = 2; + */ + public Builder setFamilyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + familyName_ = value; + onChanged(); + return this; + } + + // optional string prefix = 3; + private java.lang.Object prefix_ = ""; + /** + * optional string prefix = 3; + */ + public boolean hasPrefix() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string prefix = 3; + */ + public java.lang.String getPrefix() { + java.lang.Object ref = prefix_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + prefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string prefix = 3; + */ + public com.google.protobuf.ByteString + getPrefixBytes() { + java.lang.Object ref = prefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string prefix = 3; + */ + public Builder setPrefix( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + prefix_ = value; + onChanged(); + return this; + } + /** + * optional string prefix = 3; + */ + public Builder clearPrefix() { + bitField0_ = (bitField0_ & ~0x00000004); + prefix_ = getDefaultInstance().getPrefix(); + onChanged(); + return this; + } + /** + * optional string prefix = 3; + */ + public Builder setPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + prefix_ = value; + onChanged(); + return this; + } + + // optional string suffix = 4; + private java.lang.Object suffix_ = ""; + /** + * optional string suffix = 4; + */ + public boolean hasSuffix() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional string suffix = 4; + */ + public java.lang.String getSuffix() { + java.lang.Object ref = suffix_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + suffix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string suffix = 4; + */ + public com.google.protobuf.ByteString + getSuffixBytes() { + java.lang.Object ref = suffix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + suffix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string suffix = 4; + */ + public Builder setSuffix( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + suffix_ = value; + onChanged(); + return this; + } + /** + * optional string suffix = 4; + */ + public Builder clearSuffix() { + bitField0_ = (bitField0_ & ~0x00000008); + suffix_ = getDefaultInstance().getSuffix(); + onChanged(); + return this; + } + /** + * optional string suffix = 4; + */ + public Builder setSuffixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + suffix_ = value; + onChanged(); + return this; + } + + // optional string middleName = 5; + private java.lang.Object middleName_ = ""; + /** + * optional string middleName = 5; + */ + public boolean hasMiddleName() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional string middleName = 5; + */ + public java.lang.String getMiddleName() { + java.lang.Object ref = middleName_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + middleName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string middleName = 5; + */ + public com.google.protobuf.ByteString + getMiddleNameBytes() { + java.lang.Object ref = middleName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + middleName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string middleName = 5; + */ + public Builder setMiddleName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + middleName_ = value; + onChanged(); + return this; + } + /** + * optional string middleName = 5; + */ + public Builder clearMiddleName() { + bitField0_ = (bitField0_ & ~0x00000010); + middleName_ = getDefaultInstance().getMiddleName(); + onChanged(); + return this; + } + /** + * optional string middleName = 5; + */ + public Builder setMiddleNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + middleName_ = value; + onChanged(); + return this; + } + + // optional string displayName = 6; + private java.lang.Object displayName_ = ""; + /** + * optional string displayName = 6; + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional string displayName = 6; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string displayName = 6; + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof 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; + } + } + /** + * optional string displayName = 6; + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + displayName_ = value; + onChanged(); + return this; + } + /** + * optional string displayName = 6; + */ + public Builder clearDisplayName() { + bitField0_ = (bitField0_ & ~0x00000020); + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * optional string displayName = 6; + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + displayName_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Contact.Name) + } + + static { + defaultInstance = new Name(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Contact.Name) + } + + public interface PhoneOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string value = 1; + /** + * optional string value = 1; + */ + boolean hasValue(); + /** + * optional string value = 1; + */ + java.lang.String getValue(); + /** + * optional string value = 1; + */ + com.google.protobuf.ByteString + getValueBytes(); + + // optional .signalservice.DataMessage.Contact.Phone.Type type = 2; + /** + * optional .signalservice.DataMessage.Contact.Phone.Type type = 2; + */ + boolean hasType(); + /** + * optional .signalservice.DataMessage.Contact.Phone.Type type = 2; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type getType(); + + // optional string label = 3; + /** + * optional string label = 3; + */ + boolean hasLabel(); + /** + * optional string label = 3; + */ + java.lang.String getLabel(); + /** + * optional string label = 3; + */ + com.google.protobuf.ByteString + getLabelBytes(); + } + /** + * Protobuf type {@code signalservice.DataMessage.Contact.Phone} + */ + public static final class Phone extends + com.google.protobuf.GeneratedMessage + implements PhoneOrBuilder { + // Use Phone.newBuilder() to construct. + private Phone(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Phone(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Phone defaultInstance; + public static Phone getDefaultInstance() { + return defaultInstance; + } + + public Phone getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Phone( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + value_ = input.readBytes(); + break; + } + case 16: { + int rawValue = input.readEnum(); + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + type_ = value; + } + break; + } + case 26: { + bitField0_ |= 0x00000004; + label_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Phone_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Phone_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Phone parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Phone(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + /** + * Protobuf enum {@code signalservice.DataMessage.Contact.Phone.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * HOME = 1; + */ + HOME(0, 1), + /** + * MOBILE = 2; + */ + MOBILE(1, 2), + /** + * WORK = 3; + */ + WORK(2, 3), + /** + * CUSTOM = 4; + */ + CUSTOM(3, 4), + ; + + /** + * HOME = 1; + */ + public static final int HOME_VALUE = 1; + /** + * MOBILE = 2; + */ + public static final int MOBILE_VALUE = 2; + /** + * WORK = 3; + */ + public static final int WORK_VALUE = 3; + /** + * CUSTOM = 4; + */ + public static final int CUSTOM_VALUE = 4; + + + public final int getNumber() { return value; } + + public static Type valueOf(int value) { + switch (value) { + case 1: return HOME; + case 2: return MOBILE; + case 3: return WORK; + case 4: return CUSTOM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.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 index; + private final int value; + + private Type(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:signalservice.DataMessage.Contact.Phone.Type) + } + + private int bitField0_; + // optional string value = 1; + public static final int VALUE_FIELD_NUMBER = 1; + private java.lang.Object value_; + /** + * optional string value = 1; + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string value = 1; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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()) { + value_ = s; + } + return s; + } + } + /** + * optional string value = 1; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional .signalservice.DataMessage.Contact.Phone.Type type = 2; + public static final int TYPE_FIELD_NUMBER = 2; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type type_; + /** + * optional .signalservice.DataMessage.Contact.Phone.Type type = 2; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .signalservice.DataMessage.Contact.Phone.Type type = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type getType() { + return type_; + } + + // optional string label = 3; + public static final int LABEL_FIELD_NUMBER = 3; + private java.lang.Object label_; + /** + * optional string label = 3; + */ + public boolean hasLabel() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string label = 3; + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + 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()) { + label_ = s; + } + return s; + } + } + /** + * optional string label = 3; + */ + public com.google.protobuf.ByteString + getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + value_ = ""; + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type.HOME; + label_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getValueBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, type_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getLabelBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getValueBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getLabelBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone 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.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.DataMessage.Contact.Phone} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Phone_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Phone_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + value_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type.HOME; + bitField0_ = (bitField0_ & ~0x00000002); + label_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Phone_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.value_ = value_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.label_ = label_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.getDefaultInstance()) return this; + if (other.hasValue()) { + bitField0_ |= 0x00000001; + value_ = other.value_; + onChanged(); + } + if (other.hasType()) { + setType(other.getType()); + } + if (other.hasLabel()) { + bitField0_ |= 0x00000004; + label_ = other.label_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string value = 1; + private java.lang.Object value_ = ""; + /** + * optional string value = 1; + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string value = 1; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string value = 1; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string value = 1; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + value_ = value; + onChanged(); + return this; + } + /** + * optional string value = 1; + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000001); + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * optional string value = 1; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + value_ = value; + onChanged(); + return this; + } + + // optional .signalservice.DataMessage.Contact.Phone.Type type = 2; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type.HOME; + /** + * optional .signalservice.DataMessage.Contact.Phone.Type type = 2; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .signalservice.DataMessage.Contact.Phone.Type type = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type getType() { + return type_; + } + /** + * optional .signalservice.DataMessage.Contact.Phone.Type type = 2; + */ + public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value; + onChanged(); + return this; + } + /** + * optional .signalservice.DataMessage.Contact.Phone.Type type = 2; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type.HOME; + onChanged(); + return this; + } + + // optional string label = 3; + private java.lang.Object label_ = ""; + /** + * optional string label = 3; + */ + public boolean hasLabel() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string label = 3; + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string label = 3; + */ + public com.google.protobuf.ByteString + getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string label = 3; + */ + public Builder setLabel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + label_ = value; + onChanged(); + return this; + } + /** + * optional string label = 3; + */ + public Builder clearLabel() { + bitField0_ = (bitField0_ & ~0x00000004); + label_ = getDefaultInstance().getLabel(); + onChanged(); + return this; + } + /** + * optional string label = 3; + */ + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + label_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Contact.Phone) + } + + static { + defaultInstance = new Phone(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Contact.Phone) + } + + public interface EmailOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string value = 1; + /** + * optional string value = 1; + */ + boolean hasValue(); + /** + * optional string value = 1; + */ + java.lang.String getValue(); + /** + * optional string value = 1; + */ + com.google.protobuf.ByteString + getValueBytes(); + + // optional .signalservice.DataMessage.Contact.Email.Type type = 2; + /** + * optional .signalservice.DataMessage.Contact.Email.Type type = 2; + */ + boolean hasType(); + /** + * optional .signalservice.DataMessage.Contact.Email.Type type = 2; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type getType(); + + // optional string label = 3; + /** + * optional string label = 3; + */ + boolean hasLabel(); + /** + * optional string label = 3; + */ + java.lang.String getLabel(); + /** + * optional string label = 3; + */ + com.google.protobuf.ByteString + getLabelBytes(); + } + /** + * Protobuf type {@code signalservice.DataMessage.Contact.Email} + */ + public static final class Email extends + com.google.protobuf.GeneratedMessage + implements EmailOrBuilder { + // Use Email.newBuilder() to construct. + private Email(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Email(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Email defaultInstance; + public static Email getDefaultInstance() { + return defaultInstance; + } + + public Email getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Email( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + value_ = input.readBytes(); + break; + } + case 16: { + int rawValue = input.readEnum(); + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + type_ = value; + } + break; + } + case 26: { + bitField0_ |= 0x00000004; + label_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Email_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Email_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Email parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Email(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + /** + * Protobuf enum {@code signalservice.DataMessage.Contact.Email.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * HOME = 1; + */ + HOME(0, 1), + /** + * MOBILE = 2; + */ + MOBILE(1, 2), + /** + * WORK = 3; + */ + WORK(2, 3), + /** + * CUSTOM = 4; + */ + CUSTOM(3, 4), + ; + + /** + * HOME = 1; + */ + public static final int HOME_VALUE = 1; + /** + * MOBILE = 2; + */ + public static final int MOBILE_VALUE = 2; + /** + * WORK = 3; + */ + public static final int WORK_VALUE = 3; + /** + * CUSTOM = 4; + */ + public static final int CUSTOM_VALUE = 4; + + + public final int getNumber() { return value; } + + public static Type valueOf(int value) { + switch (value) { + case 1: return HOME; + case 2: return MOBILE; + case 3: return WORK; + case 4: return CUSTOM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.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 index; + private final int value; + + private Type(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:signalservice.DataMessage.Contact.Email.Type) + } + + private int bitField0_; + // optional string value = 1; + public static final int VALUE_FIELD_NUMBER = 1; + private java.lang.Object value_; + /** + * optional string value = 1; + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string value = 1; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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()) { + value_ = s; + } + return s; + } + } + /** + * optional string value = 1; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional .signalservice.DataMessage.Contact.Email.Type type = 2; + public static final int TYPE_FIELD_NUMBER = 2; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type type_; + /** + * optional .signalservice.DataMessage.Contact.Email.Type type = 2; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .signalservice.DataMessage.Contact.Email.Type type = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type getType() { + return type_; + } + + // optional string label = 3; + public static final int LABEL_FIELD_NUMBER = 3; + private java.lang.Object label_; + /** + * optional string label = 3; + */ + public boolean hasLabel() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string label = 3; + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + 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()) { + label_ = s; + } + return s; + } + } + /** + * optional string label = 3; + */ + public com.google.protobuf.ByteString + getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + value_ = ""; + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type.HOME; + label_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getValueBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, type_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getLabelBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getValueBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getLabelBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email 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.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.DataMessage.Contact.Email} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Email_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Email_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + value_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type.HOME; + bitField0_ = (bitField0_ & ~0x00000002); + label_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Email_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.value_ = value_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.label_ = label_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.getDefaultInstance()) return this; + if (other.hasValue()) { + bitField0_ |= 0x00000001; + value_ = other.value_; + onChanged(); + } + if (other.hasType()) { + setType(other.getType()); + } + if (other.hasLabel()) { + bitField0_ |= 0x00000004; + label_ = other.label_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string value = 1; + private java.lang.Object value_ = ""; + /** + * optional string value = 1; + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string value = 1; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string value = 1; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string value = 1; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + value_ = value; + onChanged(); + return this; + } + /** + * optional string value = 1; + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000001); + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * optional string value = 1; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + value_ = value; + onChanged(); + return this; + } + + // optional .signalservice.DataMessage.Contact.Email.Type type = 2; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type.HOME; + /** + * optional .signalservice.DataMessage.Contact.Email.Type type = 2; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .signalservice.DataMessage.Contact.Email.Type type = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type getType() { + return type_; + } + /** + * optional .signalservice.DataMessage.Contact.Email.Type type = 2; + */ + public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value; + onChanged(); + return this; + } + /** + * optional .signalservice.DataMessage.Contact.Email.Type type = 2; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type.HOME; + onChanged(); + return this; + } + + // optional string label = 3; + private java.lang.Object label_ = ""; + /** + * optional string label = 3; + */ + public boolean hasLabel() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string label = 3; + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string label = 3; + */ + public com.google.protobuf.ByteString + getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string label = 3; + */ + public Builder setLabel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + label_ = value; + onChanged(); + return this; + } + /** + * optional string label = 3; + */ + public Builder clearLabel() { + bitField0_ = (bitField0_ & ~0x00000004); + label_ = getDefaultInstance().getLabel(); + onChanged(); + return this; + } + /** + * optional string label = 3; + */ + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + label_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Contact.Email) + } + + static { + defaultInstance = new Email(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Contact.Email) + } + + public interface PostalAddressOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; + /** + * optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; + */ + boolean hasType(); + /** + * optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type getType(); + + // optional string label = 2; + /** + * optional string label = 2; + */ + boolean hasLabel(); + /** + * optional string label = 2; + */ + java.lang.String getLabel(); + /** + * optional string label = 2; + */ + com.google.protobuf.ByteString + getLabelBytes(); + + // optional string street = 3; + /** + * optional string street = 3; + */ + boolean hasStreet(); + /** + * optional string street = 3; + */ + java.lang.String getStreet(); + /** + * optional string street = 3; + */ + com.google.protobuf.ByteString + getStreetBytes(); + + // optional string pobox = 4; + /** + * optional string pobox = 4; + */ + boolean hasPobox(); + /** + * optional string pobox = 4; + */ + java.lang.String getPobox(); + /** + * optional string pobox = 4; + */ + com.google.protobuf.ByteString + getPoboxBytes(); + + // optional string neighborhood = 5; + /** + * optional string neighborhood = 5; + */ + boolean hasNeighborhood(); + /** + * optional string neighborhood = 5; + */ + java.lang.String getNeighborhood(); + /** + * optional string neighborhood = 5; + */ + com.google.protobuf.ByteString + getNeighborhoodBytes(); + + // optional string city = 6; + /** + * optional string city = 6; + */ + boolean hasCity(); + /** + * optional string city = 6; + */ + java.lang.String getCity(); + /** + * optional string city = 6; + */ + com.google.protobuf.ByteString + getCityBytes(); + + // optional string region = 7; + /** + * optional string region = 7; + */ + boolean hasRegion(); + /** + * optional string region = 7; + */ + java.lang.String getRegion(); + /** + * optional string region = 7; + */ + com.google.protobuf.ByteString + getRegionBytes(); + + // optional string postcode = 8; + /** + * optional string postcode = 8; + */ + boolean hasPostcode(); + /** + * optional string postcode = 8; + */ + java.lang.String getPostcode(); + /** + * optional string postcode = 8; + */ + com.google.protobuf.ByteString + getPostcodeBytes(); + + // optional string country = 9; + /** + * optional string country = 9; + */ + boolean hasCountry(); + /** + * optional string country = 9; + */ + java.lang.String getCountry(); + /** + * optional string country = 9; + */ + com.google.protobuf.ByteString + getCountryBytes(); + } + /** + * Protobuf type {@code signalservice.DataMessage.Contact.PostalAddress} + */ + public static final class PostalAddress extends + com.google.protobuf.GeneratedMessage + implements PostalAddressOrBuilder { + // Use PostalAddress.newBuilder() to construct. + private PostalAddress(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private PostalAddress(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final PostalAddress defaultInstance; + public static PostalAddress getDefaultInstance() { + return defaultInstance; + } + + public PostalAddress getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PostalAddress( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + type_ = value; + } + break; + } + case 18: { + bitField0_ |= 0x00000002; + label_ = input.readBytes(); + break; + } + case 26: { + bitField0_ |= 0x00000004; + street_ = input.readBytes(); + break; + } + case 34: { + bitField0_ |= 0x00000008; + pobox_ = input.readBytes(); + break; + } + case 42: { + bitField0_ |= 0x00000010; + neighborhood_ = input.readBytes(); + break; + } + case 50: { + bitField0_ |= 0x00000020; + city_ = input.readBytes(); + break; + } + case 58: { + bitField0_ |= 0x00000040; + region_ = input.readBytes(); + break; + } + case 66: { + bitField0_ |= 0x00000080; + postcode_ = input.readBytes(); + break; + } + case 74: { + bitField0_ |= 0x00000100; + country_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_PostalAddress_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_PostalAddress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public PostalAddress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PostalAddress(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + /** + * Protobuf enum {@code signalservice.DataMessage.Contact.PostalAddress.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * HOME = 1; + */ + HOME(0, 1), + /** + * WORK = 2; + */ + WORK(1, 2), + /** + * CUSTOM = 3; + */ + CUSTOM(2, 3), + ; + + /** + * HOME = 1; + */ + public static final int HOME_VALUE = 1; + /** + * WORK = 2; + */ + public static final int WORK_VALUE = 2; + /** + * CUSTOM = 3; + */ + public static final int CUSTOM_VALUE = 3; + + + public final int getNumber() { return value; } + + public static Type valueOf(int value) { + switch (value) { + case 1: return HOME; + case 2: return WORK; + case 3: return CUSTOM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.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 index; + private final int value; + + private Type(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:signalservice.DataMessage.Contact.PostalAddress.Type) + } + + private int bitField0_; + // optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; + public static final int TYPE_FIELD_NUMBER = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type type_; + /** + * optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type getType() { + return type_; + } + + // optional string label = 2; + public static final int LABEL_FIELD_NUMBER = 2; + private java.lang.Object label_; + /** + * optional string label = 2; + */ + public boolean hasLabel() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string label = 2; + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + 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()) { + label_ = s; + } + return s; + } + } + /** + * optional string label = 2; + */ + public com.google.protobuf.ByteString + getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional string street = 3; + public static final int STREET_FIELD_NUMBER = 3; + private java.lang.Object street_; + /** + * optional string street = 3; + */ + public boolean hasStreet() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string street = 3; + */ + public java.lang.String getStreet() { + java.lang.Object ref = street_; + 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()) { + street_ = s; + } + return s; + } + } + /** + * optional string street = 3; + */ + public com.google.protobuf.ByteString + getStreetBytes() { + java.lang.Object ref = street_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + street_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional string pobox = 4; + public static final int POBOX_FIELD_NUMBER = 4; + private java.lang.Object pobox_; + /** + * optional string pobox = 4; + */ + public boolean hasPobox() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional string pobox = 4; + */ + public java.lang.String getPobox() { + java.lang.Object ref = pobox_; + 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()) { + pobox_ = s; + } + return s; + } + } + /** + * optional string pobox = 4; + */ + public com.google.protobuf.ByteString + getPoboxBytes() { + java.lang.Object ref = pobox_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pobox_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional string neighborhood = 5; + public static final int NEIGHBORHOOD_FIELD_NUMBER = 5; + private java.lang.Object neighborhood_; + /** + * optional string neighborhood = 5; + */ + public boolean hasNeighborhood() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional string neighborhood = 5; + */ + public java.lang.String getNeighborhood() { + java.lang.Object ref = neighborhood_; + 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()) { + neighborhood_ = s; + } + return s; + } + } + /** + * optional string neighborhood = 5; + */ + public com.google.protobuf.ByteString + getNeighborhoodBytes() { + java.lang.Object ref = neighborhood_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + neighborhood_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional string city = 6; + public static final int CITY_FIELD_NUMBER = 6; + private java.lang.Object city_; + /** + * optional string city = 6; + */ + public boolean hasCity() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional string city = 6; + */ + public java.lang.String getCity() { + java.lang.Object ref = city_; + 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()) { + city_ = s; + } + return s; + } + } + /** + * optional string city = 6; + */ + public com.google.protobuf.ByteString + getCityBytes() { + java.lang.Object ref = city_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + city_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional string region = 7; + public static final int REGION_FIELD_NUMBER = 7; + private java.lang.Object region_; + /** + * optional string region = 7; + */ + public boolean hasRegion() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional string region = 7; + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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()) { + region_ = s; + } + return s; + } + } + /** + * optional string region = 7; + */ + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional string postcode = 8; + public static final int POSTCODE_FIELD_NUMBER = 8; + private java.lang.Object postcode_; + /** + * optional string postcode = 8; + */ + public boolean hasPostcode() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional string postcode = 8; + */ + public java.lang.String getPostcode() { + java.lang.Object ref = postcode_; + 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()) { + postcode_ = s; + } + return s; + } + } + /** + * optional string postcode = 8; + */ + public com.google.protobuf.ByteString + getPostcodeBytes() { + java.lang.Object ref = postcode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + postcode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional string country = 9; + public static final int COUNTRY_FIELD_NUMBER = 9; + private java.lang.Object country_; + /** + * optional string country = 9; + */ + public boolean hasCountry() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional string country = 9; + */ + public java.lang.String getCountry() { + java.lang.Object ref = country_; + 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()) { + country_ = s; + } + return s; + } + } + /** + * optional string country = 9; + */ + public com.google.protobuf.ByteString + getCountryBytes() { + java.lang.Object ref = country_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + country_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type.HOME; + label_ = ""; + street_ = ""; + pobox_ = ""; + neighborhood_ = ""; + city_ = ""; + region_ = ""; + postcode_ = ""; + country_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, type_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getLabelBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getStreetBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(4, getPoboxBytes()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeBytes(5, getNeighborhoodBytes()); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBytes(6, getCityBytes()); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeBytes(7, getRegionBytes()); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeBytes(8, getPostcodeBytes()); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeBytes(9, getCountryBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getLabelBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getStreetBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, getPoboxBytes()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, getNeighborhoodBytes()); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, getCityBytes()); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, getRegionBytes()); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(8, getPostcodeBytes()); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(9, getCountryBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress 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.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.DataMessage.Contact.PostalAddress} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_PostalAddress_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_PostalAddress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type.HOME; + bitField0_ = (bitField0_ & ~0x00000001); + label_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + street_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + pobox_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + neighborhood_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + city_ = ""; + bitField0_ = (bitField0_ & ~0x00000020); + region_ = ""; + bitField0_ = (bitField0_ & ~0x00000040); + postcode_ = ""; + bitField0_ = (bitField0_ & ~0x00000080); + country_ = ""; + bitField0_ = (bitField0_ & ~0x00000100); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_PostalAddress_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.label_ = label_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.street_ = street_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.pobox_ = pobox_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.neighborhood_ = neighborhood_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.city_ = city_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.region_ = region_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; + } + result.postcode_ = postcode_; + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000100; + } + result.country_ = country_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.getDefaultInstance()) return this; + if (other.hasType()) { + setType(other.getType()); + } + if (other.hasLabel()) { + bitField0_ |= 0x00000002; + label_ = other.label_; + onChanged(); + } + if (other.hasStreet()) { + bitField0_ |= 0x00000004; + street_ = other.street_; + onChanged(); + } + if (other.hasPobox()) { + bitField0_ |= 0x00000008; + pobox_ = other.pobox_; + onChanged(); + } + if (other.hasNeighborhood()) { + bitField0_ |= 0x00000010; + neighborhood_ = other.neighborhood_; + onChanged(); + } + if (other.hasCity()) { + bitField0_ |= 0x00000020; + city_ = other.city_; + onChanged(); + } + if (other.hasRegion()) { + bitField0_ |= 0x00000040; + region_ = other.region_; + onChanged(); + } + if (other.hasPostcode()) { + bitField0_ |= 0x00000080; + postcode_ = other.postcode_; + onChanged(); + } + if (other.hasCountry()) { + bitField0_ |= 0x00000100; + country_ = other.country_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type.HOME; + /** + * optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type getType() { + return type_; + } + /** + * optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; + */ + public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + /** + * optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type.HOME; + onChanged(); + return this; + } + + // optional string label = 2; + private java.lang.Object label_ = ""; + /** + * optional string label = 2; + */ + public boolean hasLabel() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string label = 2; + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string label = 2; + */ + public com.google.protobuf.ByteString + getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string label = 2; + */ + public Builder setLabel( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + label_ = value; + onChanged(); + return this; + } + /** + * optional string label = 2; + */ + public Builder clearLabel() { + bitField0_ = (bitField0_ & ~0x00000002); + label_ = getDefaultInstance().getLabel(); + onChanged(); + return this; + } + /** + * optional string label = 2; + */ + public Builder setLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + label_ = value; + onChanged(); + return this; + } + + // optional string street = 3; + private java.lang.Object street_ = ""; + /** + * optional string street = 3; + */ + public boolean hasStreet() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string street = 3; + */ + public java.lang.String getStreet() { + java.lang.Object ref = street_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + street_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string street = 3; + */ + public com.google.protobuf.ByteString + getStreetBytes() { + java.lang.Object ref = street_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + street_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string street = 3; + */ + public Builder setStreet( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + street_ = value; + onChanged(); + return this; + } + /** + * optional string street = 3; + */ + public Builder clearStreet() { + bitField0_ = (bitField0_ & ~0x00000004); + street_ = getDefaultInstance().getStreet(); + onChanged(); + return this; + } + /** + * optional string street = 3; + */ + public Builder setStreetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + street_ = value; + onChanged(); + return this; + } + + // optional string pobox = 4; + private java.lang.Object pobox_ = ""; + /** + * optional string pobox = 4; + */ + public boolean hasPobox() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional string pobox = 4; + */ + public java.lang.String getPobox() { + java.lang.Object ref = pobox_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + pobox_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string pobox = 4; + */ + public com.google.protobuf.ByteString + getPoboxBytes() { + java.lang.Object ref = pobox_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pobox_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string pobox = 4; + */ + public Builder setPobox( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + pobox_ = value; + onChanged(); + return this; + } + /** + * optional string pobox = 4; + */ + public Builder clearPobox() { + bitField0_ = (bitField0_ & ~0x00000008); + pobox_ = getDefaultInstance().getPobox(); + onChanged(); + return this; + } + /** + * optional string pobox = 4; + */ + public Builder setPoboxBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + pobox_ = value; + onChanged(); + return this; + } + + // optional string neighborhood = 5; + private java.lang.Object neighborhood_ = ""; + /** + * optional string neighborhood = 5; + */ + public boolean hasNeighborhood() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional string neighborhood = 5; + */ + public java.lang.String getNeighborhood() { + java.lang.Object ref = neighborhood_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + neighborhood_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string neighborhood = 5; + */ + public com.google.protobuf.ByteString + getNeighborhoodBytes() { + java.lang.Object ref = neighborhood_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + neighborhood_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string neighborhood = 5; + */ + public Builder setNeighborhood( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + neighborhood_ = value; + onChanged(); + return this; + } + /** + * optional string neighborhood = 5; + */ + public Builder clearNeighborhood() { + bitField0_ = (bitField0_ & ~0x00000010); + neighborhood_ = getDefaultInstance().getNeighborhood(); + onChanged(); + return this; + } + /** + * optional string neighborhood = 5; + */ + public Builder setNeighborhoodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + neighborhood_ = value; + onChanged(); + return this; + } + + // optional string city = 6; + private java.lang.Object city_ = ""; + /** + * optional string city = 6; + */ + public boolean hasCity() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional string city = 6; + */ + public java.lang.String getCity() { + java.lang.Object ref = city_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + city_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string city = 6; + */ + public com.google.protobuf.ByteString + getCityBytes() { + java.lang.Object ref = city_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + city_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string city = 6; + */ + public Builder setCity( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + city_ = value; + onChanged(); + return this; + } + /** + * optional string city = 6; + */ + public Builder clearCity() { + bitField0_ = (bitField0_ & ~0x00000020); + city_ = getDefaultInstance().getCity(); + onChanged(); + return this; + } + /** + * optional string city = 6; + */ + public Builder setCityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + city_ = value; + onChanged(); + return this; + } + + // optional string region = 7; + private java.lang.Object region_ = ""; + /** + * optional string region = 7; + */ + public boolean hasRegion() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional string region = 7; + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string region = 7; + */ + public com.google.protobuf.ByteString + getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string region = 7; + */ + public Builder setRegion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + region_ = value; + onChanged(); + return this; + } + /** + * optional string region = 7; + */ + public Builder clearRegion() { + bitField0_ = (bitField0_ & ~0x00000040); + region_ = getDefaultInstance().getRegion(); + onChanged(); + return this; + } + /** + * optional string region = 7; + */ + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + region_ = value; + onChanged(); + return this; + } + + // optional string postcode = 8; + private java.lang.Object postcode_ = ""; + /** + * optional string postcode = 8; + */ + public boolean hasPostcode() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional string postcode = 8; + */ + public java.lang.String getPostcode() { + java.lang.Object ref = postcode_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + postcode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string postcode = 8; + */ + public com.google.protobuf.ByteString + getPostcodeBytes() { + java.lang.Object ref = postcode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + postcode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string postcode = 8; + */ + public Builder setPostcode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + postcode_ = value; + onChanged(); + return this; + } + /** + * optional string postcode = 8; + */ + public Builder clearPostcode() { + bitField0_ = (bitField0_ & ~0x00000080); + postcode_ = getDefaultInstance().getPostcode(); + onChanged(); + return this; + } + /** + * optional string postcode = 8; + */ + public Builder setPostcodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + postcode_ = value; + onChanged(); + return this; + } + + // optional string country = 9; + private java.lang.Object country_ = ""; + /** + * optional string country = 9; + */ + public boolean hasCountry() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional string country = 9; + */ + public java.lang.String getCountry() { + java.lang.Object ref = country_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + country_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string country = 9; + */ + public com.google.protobuf.ByteString + getCountryBytes() { + java.lang.Object ref = country_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + country_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string country = 9; + */ + public Builder setCountry( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + country_ = value; + onChanged(); + return this; + } + /** + * optional string country = 9; + */ + public Builder clearCountry() { + bitField0_ = (bitField0_ & ~0x00000100); + country_ = getDefaultInstance().getCountry(); + onChanged(); + return this; + } + /** + * optional string country = 9; + */ + public Builder setCountryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + country_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Contact.PostalAddress) + } + + static { + defaultInstance = new PostalAddress(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Contact.PostalAddress) + } + + public interface AvatarOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional .signalservice.AttachmentPointer avatar = 1; + /** + * optional .signalservice.AttachmentPointer avatar = 1; + */ + boolean hasAvatar(); + /** + * optional .signalservice.AttachmentPointer avatar = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getAvatar(); + /** + * optional .signalservice.AttachmentPointer avatar = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAvatarOrBuilder(); + + // optional bool isProfile = 2; + /** + * optional bool isProfile = 2; + */ + boolean hasIsProfile(); + /** + * optional bool isProfile = 2; + */ + boolean getIsProfile(); + } + /** + * Protobuf type {@code signalservice.DataMessage.Contact.Avatar} + */ + public static final class Avatar extends + com.google.protobuf.GeneratedMessage + implements AvatarOrBuilder { + // Use Avatar.newBuilder() to construct. + private Avatar(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Avatar(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Avatar defaultInstance; + public static Avatar getDefaultInstance() { + return defaultInstance; + } + + public Avatar getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Avatar( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = avatar_.toBuilder(); + } + avatar_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(avatar_); + avatar_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 16: { + bitField0_ |= 0x00000002; + isProfile_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Avatar_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Avatar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Avatar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Avatar(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional .signalservice.AttachmentPointer avatar = 1; + public static final int AVATAR_FIELD_NUMBER = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer avatar_; + /** + * optional .signalservice.AttachmentPointer avatar = 1; + */ + public boolean hasAvatar() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.AttachmentPointer avatar = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getAvatar() { + return avatar_; + } + /** + * optional .signalservice.AttachmentPointer avatar = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAvatarOrBuilder() { + return avatar_; + } + + // optional bool isProfile = 2; + public static final int ISPROFILE_FIELD_NUMBER = 2; + private boolean isProfile_; + /** + * optional bool isProfile = 2; + */ + public boolean hasIsProfile() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bool isProfile = 2; + */ + public boolean getIsProfile() { + return isProfile_; + } + + private void initFields() { + avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + isProfile_ = false; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, avatar_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBool(2, isProfile_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, avatar_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, isProfile_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar 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.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.DataMessage.Contact.Avatar} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.AvatarOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Avatar_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Avatar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getAvatarFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (avatarBuilder_ == null) { + avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + } else { + avatarBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + isProfile_ = false; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Avatar_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (avatarBuilder_ == null) { + result.avatar_ = avatar_; + } else { + result.avatar_ = avatarBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.isProfile_ = isProfile_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.getDefaultInstance()) return this; + if (other.hasAvatar()) { + mergeAvatar(other.getAvatar()); + } + if (other.hasIsProfile()) { + setIsProfile(other.getIsProfile()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional .signalservice.AttachmentPointer avatar = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> avatarBuilder_; + /** + * optional .signalservice.AttachmentPointer avatar = 1; + */ + public boolean hasAvatar() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.AttachmentPointer avatar = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getAvatar() { + if (avatarBuilder_ == null) { + return avatar_; + } else { + return avatarBuilder_.getMessage(); + } + } + /** + * optional .signalservice.AttachmentPointer avatar = 1; + */ + public Builder setAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + avatar_ = value; + onChanged(); + } else { + avatarBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.AttachmentPointer avatar = 1; + */ + public Builder setAvatar( + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder builderForValue) { + if (avatarBuilder_ == null) { + avatar_ = builderForValue.build(); + onChanged(); + } else { + avatarBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.AttachmentPointer avatar = 1; + */ + public Builder mergeAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { + if (avatarBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + avatar_ != org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) { + avatar_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.newBuilder(avatar_).mergeFrom(value).buildPartial(); + } else { + avatar_ = value; + } + onChanged(); + } else { + avatarBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.AttachmentPointer avatar = 1; + */ + public Builder clearAvatar() { + if (avatarBuilder_ == null) { + avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + onChanged(); + } else { + avatarBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + * optional .signalservice.AttachmentPointer avatar = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder getAvatarBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAvatarFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.AttachmentPointer avatar = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAvatarOrBuilder() { + if (avatarBuilder_ != null) { + return avatarBuilder_.getMessageOrBuilder(); + } else { + return avatar_; + } + } + /** + * optional .signalservice.AttachmentPointer avatar = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> + getAvatarFieldBuilder() { + if (avatarBuilder_ == null) { + avatarBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>( + avatar_, + getParentForChildren(), + isClean()); + avatar_ = null; + } + return avatarBuilder_; + } + + // optional bool isProfile = 2; + private boolean isProfile_ ; + /** + * optional bool isProfile = 2; + */ + public boolean hasIsProfile() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bool isProfile = 2; + */ + public boolean getIsProfile() { + return isProfile_; + } + /** + * optional bool isProfile = 2; + */ + public Builder setIsProfile(boolean value) { + bitField0_ |= 0x00000002; + isProfile_ = value; + onChanged(); + return this; + } + /** + * optional bool isProfile = 2; + */ + public Builder clearIsProfile() { + bitField0_ = (bitField0_ & ~0x00000002); + isProfile_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Contact.Avatar) + } + + static { + defaultInstance = new Avatar(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Contact.Avatar) + } + + private int bitField0_; + // optional .signalservice.DataMessage.Contact.Name name = 1; + public static final int NAME_FIELD_NUMBER = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name name_; + /** + * optional .signalservice.DataMessage.Contact.Name name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.DataMessage.Contact.Name name = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name getName() { + return name_; + } + /** + * optional .signalservice.DataMessage.Contact.Name name = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.NameOrBuilder getNameOrBuilder() { + return name_; + } + + // repeated .signalservice.DataMessage.Contact.Phone number = 3; + public static final int NUMBER_FIELD_NUMBER = 3; + private java.util.List number_; + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public java.util.List getNumberList() { + return number_; + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public java.util.List + getNumberOrBuilderList() { + return number_; + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public int getNumberCount() { + return number_.size(); + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone getNumber(int index) { + return number_.get(index); + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder getNumberOrBuilder( + int index) { + return number_.get(index); + } + + // repeated .signalservice.DataMessage.Contact.Email email = 4; + public static final int EMAIL_FIELD_NUMBER = 4; + private java.util.List email_; + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public java.util.List getEmailList() { + return email_; + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public java.util.List + getEmailOrBuilderList() { + return email_; + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public int getEmailCount() { + return email_.size(); + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email getEmail(int index) { + return email_.get(index); + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder getEmailOrBuilder( + int index) { + return email_.get(index); + } + + // repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + public static final int ADDRESS_FIELD_NUMBER = 5; + private java.util.List address_; + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public java.util.List getAddressList() { + return address_; + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public java.util.List + getAddressOrBuilderList() { + return address_; + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public int getAddressCount() { + return address_.size(); + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress getAddress(int index) { + return address_.get(index); + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder getAddressOrBuilder( + int index) { + return address_.get(index); + } + + // optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + public static final int AVATAR_FIELD_NUMBER = 6; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar avatar_; + /** + * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + */ + public boolean hasAvatar() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar getAvatar() { + return avatar_; + } + /** + * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.AvatarOrBuilder getAvatarOrBuilder() { + return avatar_; + } + + // optional string organization = 7; + public static final int ORGANIZATION_FIELD_NUMBER = 7; + private java.lang.Object organization_; + /** + * optional string organization = 7; + */ + public boolean hasOrganization() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string organization = 7; + */ + public java.lang.String getOrganization() { + java.lang.Object ref = organization_; + 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()) { + organization_ = s; + } + return s; + } + } + /** + * optional string organization = 7; + */ + public com.google.protobuf.ByteString + getOrganizationBytes() { + java.lang.Object ref = organization_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organization_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + name_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance(); + number_ = java.util.Collections.emptyList(); + email_ = java.util.Collections.emptyList(); + address_ = java.util.Collections.emptyList(); + avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.getDefaultInstance(); + organization_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, name_); + } + for (int i = 0; i < number_.size(); i++) { + output.writeMessage(3, number_.get(i)); + } + for (int i = 0; i < email_.size(); i++) { + output.writeMessage(4, email_.get(i)); + } + for (int i = 0; i < address_.size(); i++) { + output.writeMessage(5, address_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(6, avatar_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(7, getOrganizationBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, name_); + } + for (int i = 0; i < number_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, number_.get(i)); + } + for (int i = 0; i < email_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, email_.get(i)); + } + for (int i = 0; i < address_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, address_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, avatar_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, getOrganizationBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact 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.service.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.DataMessage.Contact} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getNameFieldBuilder(); + getNumberFieldBuilder(); + getEmailFieldBuilder(); + getAddressFieldBuilder(); + getAvatarFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (nameBuilder_ == null) { + name_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance(); + } else { + nameBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (numberBuilder_ == null) { + number_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + numberBuilder_.clear(); + } + if (emailBuilder_ == null) { + email_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + emailBuilder_.clear(); + } + if (addressBuilder_ == null) { + address_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + addressBuilder_.clear(); + } + if (avatarBuilder_ == null) { + avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.getDefaultInstance(); + } else { + avatarBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + organization_ = ""; + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (nameBuilder_ == null) { + result.name_ = name_; + } else { + result.name_ = nameBuilder_.build(); + } + if (numberBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + number_ = java.util.Collections.unmodifiableList(number_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.number_ = number_; + } else { + result.number_ = numberBuilder_.build(); + } + if (emailBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + email_ = java.util.Collections.unmodifiableList(email_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.email_ = email_; + } else { + result.email_ = emailBuilder_.build(); + } + if (addressBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + address_ = java.util.Collections.unmodifiableList(address_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.address_ = address_; + } else { + result.address_ = addressBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000002; + } + if (avatarBuilder_ == null) { + result.avatar_ = avatar_; + } else { + result.avatar_ = avatarBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000004; + } + result.organization_ = organization_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.getDefaultInstance()) return this; + if (other.hasName()) { + mergeName(other.getName()); + } + if (numberBuilder_ == null) { + if (!other.number_.isEmpty()) { + if (number_.isEmpty()) { + number_ = other.number_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNumberIsMutable(); + number_.addAll(other.number_); + } + onChanged(); + } + } else { + if (!other.number_.isEmpty()) { + if (numberBuilder_.isEmpty()) { + numberBuilder_.dispose(); + numberBuilder_ = null; + number_ = other.number_; + bitField0_ = (bitField0_ & ~0x00000002); + numberBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getNumberFieldBuilder() : null; + } else { + numberBuilder_.addAllMessages(other.number_); + } + } + } + if (emailBuilder_ == null) { + if (!other.email_.isEmpty()) { + if (email_.isEmpty()) { + email_ = other.email_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureEmailIsMutable(); + email_.addAll(other.email_); + } + onChanged(); + } + } else { + if (!other.email_.isEmpty()) { + if (emailBuilder_.isEmpty()) { + emailBuilder_.dispose(); + emailBuilder_ = null; + email_ = other.email_; + bitField0_ = (bitField0_ & ~0x00000004); + emailBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getEmailFieldBuilder() : null; + } else { + emailBuilder_.addAllMessages(other.email_); + } + } + } + if (addressBuilder_ == null) { + if (!other.address_.isEmpty()) { + if (address_.isEmpty()) { + address_ = other.address_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAddressIsMutable(); + address_.addAll(other.address_); + } + onChanged(); + } + } else { + if (!other.address_.isEmpty()) { + if (addressBuilder_.isEmpty()) { + addressBuilder_.dispose(); + addressBuilder_ = null; + address_ = other.address_; + bitField0_ = (bitField0_ & ~0x00000008); + addressBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getAddressFieldBuilder() : null; + } else { + addressBuilder_.addAllMessages(other.address_); + } + } + } + if (other.hasAvatar()) { + mergeAvatar(other.getAvatar()); + } + if (other.hasOrganization()) { + bitField0_ |= 0x00000020; + organization_ = other.organization_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional .signalservice.DataMessage.Contact.Name name = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name name_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.NameOrBuilder> nameBuilder_; + /** + * optional .signalservice.DataMessage.Contact.Name name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.DataMessage.Contact.Name name = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name getName() { + if (nameBuilder_ == null) { + return name_; + } else { + return nameBuilder_.getMessage(); + } + } + /** + * optional .signalservice.DataMessage.Contact.Name name = 1; + */ + public Builder setName(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name value) { + if (nameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + onChanged(); + } else { + nameBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.DataMessage.Contact.Name name = 1; + */ + public Builder setName( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder builderForValue) { + if (nameBuilder_ == null) { + name_ = builderForValue.build(); + onChanged(); + } else { + nameBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.DataMessage.Contact.Name name = 1; + */ + public Builder mergeName(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name value) { + if (nameBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + name_ != org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance()) { + name_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.newBuilder(name_).mergeFrom(value).buildPartial(); + } else { + name_ = value; + } + onChanged(); + } else { + nameBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.DataMessage.Contact.Name name = 1; + */ + public Builder clearName() { + if (nameBuilder_ == null) { + name_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance(); + onChanged(); + } else { + nameBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + * optional .signalservice.DataMessage.Contact.Name name = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder getNameBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getNameFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.DataMessage.Contact.Name name = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.NameOrBuilder getNameOrBuilder() { + if (nameBuilder_ != null) { + return nameBuilder_.getMessageOrBuilder(); + } else { + return name_; + } + } + /** + * optional .signalservice.DataMessage.Contact.Name name = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.NameOrBuilder> + getNameFieldBuilder() { + if (nameBuilder_ == null) { + nameBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.NameOrBuilder>( + name_, + getParentForChildren(), + isClean()); + name_ = null; + } + return nameBuilder_; + } + + // repeated .signalservice.DataMessage.Contact.Phone number = 3; + private java.util.List number_ = + java.util.Collections.emptyList(); + private void ensureNumberIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + number_ = new java.util.ArrayList(number_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder> numberBuilder_; + + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public java.util.List getNumberList() { + if (numberBuilder_ == null) { + return java.util.Collections.unmodifiableList(number_); + } else { + return numberBuilder_.getMessageList(); + } + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public int getNumberCount() { + if (numberBuilder_ == null) { + return number_.size(); + } else { + return numberBuilder_.getCount(); + } + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone getNumber(int index) { + if (numberBuilder_ == null) { + return number_.get(index); + } else { + return numberBuilder_.getMessage(index); + } + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public Builder setNumber( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone value) { + if (numberBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNumberIsMutable(); + number_.set(index, value); + onChanged(); + } else { + numberBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public Builder setNumber( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder builderForValue) { + if (numberBuilder_ == null) { + ensureNumberIsMutable(); + number_.set(index, builderForValue.build()); + onChanged(); + } else { + numberBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public Builder addNumber(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone value) { + if (numberBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNumberIsMutable(); + number_.add(value); + onChanged(); + } else { + numberBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public Builder addNumber( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone value) { + if (numberBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNumberIsMutable(); + number_.add(index, value); + onChanged(); + } else { + numberBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public Builder addNumber( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder builderForValue) { + if (numberBuilder_ == null) { + ensureNumberIsMutable(); + number_.add(builderForValue.build()); + onChanged(); + } else { + numberBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public Builder addNumber( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder builderForValue) { + if (numberBuilder_ == null) { + ensureNumberIsMutable(); + number_.add(index, builderForValue.build()); + onChanged(); + } else { + numberBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public Builder addAllNumber( + java.lang.Iterable values) { + if (numberBuilder_ == null) { + ensureNumberIsMutable(); + super.addAll(values, number_); + onChanged(); + } else { + numberBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public Builder clearNumber() { + if (numberBuilder_ == null) { + number_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + numberBuilder_.clear(); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public Builder removeNumber(int index) { + if (numberBuilder_ == null) { + ensureNumberIsMutable(); + number_.remove(index); + onChanged(); + } else { + numberBuilder_.remove(index); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder getNumberBuilder( + int index) { + return getNumberFieldBuilder().getBuilder(index); + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder getNumberOrBuilder( + int index) { + if (numberBuilder_ == null) { + return number_.get(index); } else { + return numberBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public java.util.List + getNumberOrBuilderList() { + if (numberBuilder_ != null) { + return numberBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(number_); + } + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder addNumberBuilder() { + return getNumberFieldBuilder().addBuilder( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.getDefaultInstance()); + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder addNumberBuilder( + int index) { + return getNumberFieldBuilder().addBuilder( + index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.getDefaultInstance()); + } + /** + * repeated .signalservice.DataMessage.Contact.Phone number = 3; + */ + public java.util.List + getNumberBuilderList() { + return getNumberFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder> + getNumberFieldBuilder() { + if (numberBuilder_ == null) { + numberBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder>( + number_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + number_ = null; + } + return numberBuilder_; + } + + // repeated .signalservice.DataMessage.Contact.Email email = 4; + private java.util.List email_ = + java.util.Collections.emptyList(); + private void ensureEmailIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + email_ = new java.util.ArrayList(email_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder> emailBuilder_; + + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public java.util.List getEmailList() { + if (emailBuilder_ == null) { + return java.util.Collections.unmodifiableList(email_); + } else { + return emailBuilder_.getMessageList(); + } + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public int getEmailCount() { + if (emailBuilder_ == null) { + return email_.size(); + } else { + return emailBuilder_.getCount(); + } + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email getEmail(int index) { + if (emailBuilder_ == null) { + return email_.get(index); + } else { + return emailBuilder_.getMessage(index); + } + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public Builder setEmail( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email value) { + if (emailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailIsMutable(); + email_.set(index, value); + onChanged(); + } else { + emailBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public Builder setEmail( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder builderForValue) { + if (emailBuilder_ == null) { + ensureEmailIsMutable(); + email_.set(index, builderForValue.build()); + onChanged(); + } else { + emailBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public Builder addEmail(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email value) { + if (emailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailIsMutable(); + email_.add(value); + onChanged(); + } else { + emailBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public Builder addEmail( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email value) { + if (emailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmailIsMutable(); + email_.add(index, value); + onChanged(); + } else { + emailBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public Builder addEmail( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder builderForValue) { + if (emailBuilder_ == null) { + ensureEmailIsMutable(); + email_.add(builderForValue.build()); + onChanged(); + } else { + emailBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public Builder addEmail( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder builderForValue) { + if (emailBuilder_ == null) { + ensureEmailIsMutable(); + email_.add(index, builderForValue.build()); + onChanged(); + } else { + emailBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public Builder addAllEmail( + java.lang.Iterable values) { + if (emailBuilder_ == null) { + ensureEmailIsMutable(); + super.addAll(values, email_); + onChanged(); + } else { + emailBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public Builder clearEmail() { + if (emailBuilder_ == null) { + email_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + emailBuilder_.clear(); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public Builder removeEmail(int index) { + if (emailBuilder_ == null) { + ensureEmailIsMutable(); + email_.remove(index); + onChanged(); + } else { + emailBuilder_.remove(index); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder getEmailBuilder( + int index) { + return getEmailFieldBuilder().getBuilder(index); + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder getEmailOrBuilder( + int index) { + if (emailBuilder_ == null) { + return email_.get(index); } else { + return emailBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public java.util.List + getEmailOrBuilderList() { + if (emailBuilder_ != null) { + return emailBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(email_); + } + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder addEmailBuilder() { + return getEmailFieldBuilder().addBuilder( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.getDefaultInstance()); + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder addEmailBuilder( + int index) { + return getEmailFieldBuilder().addBuilder( + index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.getDefaultInstance()); + } + /** + * repeated .signalservice.DataMessage.Contact.Email email = 4; + */ + public java.util.List + getEmailBuilderList() { + return getEmailFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder> + getEmailFieldBuilder() { + if (emailBuilder_ == null) { + emailBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder>( + email_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + email_ = null; + } + return emailBuilder_; + } + + // repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + private java.util.List address_ = + java.util.Collections.emptyList(); + private void ensureAddressIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + address_ = new java.util.ArrayList(address_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder> addressBuilder_; + + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public java.util.List getAddressList() { + if (addressBuilder_ == null) { + return java.util.Collections.unmodifiableList(address_); + } else { + return addressBuilder_.getMessageList(); + } + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public int getAddressCount() { + if (addressBuilder_ == null) { + return address_.size(); + } else { + return addressBuilder_.getCount(); + } + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress getAddress(int index) { + if (addressBuilder_ == null) { + return address_.get(index); + } else { + return addressBuilder_.getMessage(index); + } + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public Builder setAddress( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress value) { + if (addressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressIsMutable(); + address_.set(index, value); + onChanged(); + } else { + addressBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public Builder setAddress( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder builderForValue) { + if (addressBuilder_ == null) { + ensureAddressIsMutable(); + address_.set(index, builderForValue.build()); + onChanged(); + } else { + addressBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public Builder addAddress(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress value) { + if (addressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressIsMutable(); + address_.add(value); + onChanged(); + } else { + addressBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public Builder addAddress( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress value) { + if (addressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressIsMutable(); + address_.add(index, value); + onChanged(); + } else { + addressBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public Builder addAddress( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder builderForValue) { + if (addressBuilder_ == null) { + ensureAddressIsMutable(); + address_.add(builderForValue.build()); + onChanged(); + } else { + addressBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public Builder addAddress( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder builderForValue) { + if (addressBuilder_ == null) { + ensureAddressIsMutable(); + address_.add(index, builderForValue.build()); + onChanged(); + } else { + addressBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public Builder addAllAddress( + java.lang.Iterable values) { + if (addressBuilder_ == null) { + ensureAddressIsMutable(); + super.addAll(values, address_); + onChanged(); + } else { + addressBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public Builder clearAddress() { + if (addressBuilder_ == null) { + address_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + addressBuilder_.clear(); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public Builder removeAddress(int index) { + if (addressBuilder_ == null) { + ensureAddressIsMutable(); + address_.remove(index); + onChanged(); + } else { + addressBuilder_.remove(index); + } + return this; + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder getAddressBuilder( + int index) { + return getAddressFieldBuilder().getBuilder(index); + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder getAddressOrBuilder( + int index) { + if (addressBuilder_ == null) { + return address_.get(index); } else { + return addressBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public java.util.List + getAddressOrBuilderList() { + if (addressBuilder_ != null) { + return addressBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(address_); + } + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder addAddressBuilder() { + return getAddressFieldBuilder().addBuilder( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.getDefaultInstance()); + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder addAddressBuilder( + int index) { + return getAddressFieldBuilder().addBuilder( + index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.getDefaultInstance()); + } + /** + * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; + */ + public java.util.List + getAddressBuilderList() { + return getAddressFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder> + getAddressFieldBuilder() { + if (addressBuilder_ == null) { + addressBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder>( + address_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + address_ = null; + } + return addressBuilder_; + } + + // optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.AvatarOrBuilder> avatarBuilder_; + /** + * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + */ + public boolean hasAvatar() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar getAvatar() { + if (avatarBuilder_ == null) { + return avatar_; + } else { + return avatarBuilder_.getMessage(); + } + } + /** + * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + */ + public Builder setAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar value) { + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + avatar_ = value; + onChanged(); + } else { + avatarBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + */ + public Builder setAvatar( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder builderForValue) { + if (avatarBuilder_ == null) { + avatar_ = builderForValue.build(); + onChanged(); + } else { + avatarBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + */ + public Builder mergeAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar value) { + if (avatarBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + avatar_ != org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.getDefaultInstance()) { + avatar_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); + } else { + avatar_ = value; + } + onChanged(); + } else { + avatarBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + */ + public Builder clearAvatar() { + if (avatarBuilder_ == null) { + avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.getDefaultInstance(); + onChanged(); + } else { + avatarBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + /** + * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder getAvatarBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getAvatarFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.AvatarOrBuilder getAvatarOrBuilder() { + if (avatarBuilder_ != null) { + return avatarBuilder_.getMessageOrBuilder(); + } else { + return avatar_; + } + } + /** + * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.AvatarOrBuilder> + getAvatarFieldBuilder() { + if (avatarBuilder_ == null) { + avatarBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.AvatarOrBuilder>( + avatar_, + getParentForChildren(), + isClean()); + avatar_ = null; + } + return avatarBuilder_; + } + + // optional string organization = 7; + private java.lang.Object organization_ = ""; + /** + * optional string organization = 7; + */ + public boolean hasOrganization() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional string organization = 7; + */ + public java.lang.String getOrganization() { + java.lang.Object ref = organization_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + organization_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string organization = 7; + */ + public com.google.protobuf.ByteString + getOrganizationBytes() { + java.lang.Object ref = organization_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organization_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string organization = 7; + */ + public Builder setOrganization( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + organization_ = value; + onChanged(); + return this; + } + /** + * optional string organization = 7; + */ + public Builder clearOrganization() { + bitField0_ = (bitField0_ & ~0x00000020); + organization_ = getDefaultInstance().getOrganization(); + onChanged(); + return this; + } + /** + * optional string organization = 7; + */ + public Builder setOrganizationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + organization_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Contact) + } + + static { + defaultInstance = new Contact(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Contact) + } + + public interface PreviewOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string url = 1; + /** + * optional string url = 1; + */ + boolean hasUrl(); + /** + * optional string url = 1; + */ + java.lang.String getUrl(); + /** + * optional string url = 1; + */ + com.google.protobuf.ByteString + getUrlBytes(); + + // optional string title = 2; + /** + * optional string title = 2; + */ + boolean hasTitle(); + /** + * optional string title = 2; + */ + java.lang.String getTitle(); + /** + * optional string title = 2; + */ + com.google.protobuf.ByteString + getTitleBytes(); + + // optional .signalservice.AttachmentPointer image = 3; + /** + * optional .signalservice.AttachmentPointer image = 3; + */ + boolean hasImage(); + /** + * optional .signalservice.AttachmentPointer image = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getImage(); + /** + * optional .signalservice.AttachmentPointer image = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getImageOrBuilder(); + } + /** + * Protobuf type {@code signalservice.DataMessage.Preview} + */ + public static final class Preview extends + com.google.protobuf.GeneratedMessage + implements PreviewOrBuilder { + // Use Preview.newBuilder() to construct. + private Preview(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Preview(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Preview defaultInstance; + public static Preview getDefaultInstance() { + return defaultInstance; + } + + public Preview getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Preview( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + url_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + title_ = input.readBytes(); + break; + } + case 26: { + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = image_.toBuilder(); + } + image_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(image_); + image_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Preview_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Preview_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Preview parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Preview(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string url = 1; + public static final int URL_FIELD_NUMBER = 1; + private java.lang.Object url_; + /** + * optional string url = 1; + */ + public boolean hasUrl() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string url = 1; + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + 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()) { + url_ = s; + } + return s; + } + } + /** + * optional string url = 1; + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional string title = 2; + public static final int TITLE_FIELD_NUMBER = 2; + private java.lang.Object title_; + /** + * optional string title = 2; + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string title = 2; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + 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()) { + title_ = s; + } + return s; + } + } + /** + * optional string title = 2; + */ + public com.google.protobuf.ByteString + getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional .signalservice.AttachmentPointer image = 3; + public static final int IMAGE_FIELD_NUMBER = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer image_; + /** + * optional .signalservice.AttachmentPointer image = 3; + */ + public boolean hasImage() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.AttachmentPointer image = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getImage() { + return image_; + } + /** + * optional .signalservice.AttachmentPointer image = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getImageOrBuilder() { + return image_; + } + + private void initFields() { + url_ = ""; + title_ = ""; + image_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getUrlBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getTitleBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, image_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getUrlBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getTitleBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, image_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview 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.service.internal.push.SignalServiceProtos.DataMessage.Preview parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.DataMessage.Preview} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.PreviewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Preview_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Preview_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getImageFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + url_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + title_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + if (imageBuilder_ == null) { + image_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + } else { + imageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Preview_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.url_ = url_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.title_ = title_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (imageBuilder_ == null) { + result.image_ = image_; + } else { + result.image_ = imageBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.getDefaultInstance()) return this; + if (other.hasUrl()) { + bitField0_ |= 0x00000001; + url_ = other.url_; + onChanged(); + } + if (other.hasTitle()) { + bitField0_ |= 0x00000002; + title_ = other.title_; + onChanged(); + } + if (other.hasImage()) { + mergeImage(other.getImage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string url = 1; + private java.lang.Object url_ = ""; + /** + * optional string url = 1; + */ + public boolean hasUrl() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string url = 1; + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string url = 1; + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string url = 1; + */ + public Builder setUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + url_ = value; + onChanged(); + return this; + } + /** + * optional string url = 1; + */ + public Builder clearUrl() { + bitField0_ = (bitField0_ & ~0x00000001); + url_ = getDefaultInstance().getUrl(); + onChanged(); + return this; + } + /** + * optional string url = 1; + */ + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + url_ = value; + onChanged(); + return this; + } + + // optional string title = 2; + private java.lang.Object title_ = ""; + /** + * optional string title = 2; + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string title = 2; + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string title = 2; + */ + public com.google.protobuf.ByteString + getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string title = 2; + */ + public Builder setTitle( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + title_ = value; + onChanged(); + return this; + } + /** + * optional string title = 2; + */ + public Builder clearTitle() { + bitField0_ = (bitField0_ & ~0x00000002); + title_ = getDefaultInstance().getTitle(); + onChanged(); + return this; + } + /** + * optional string title = 2; + */ + public Builder setTitleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + title_ = value; + onChanged(); + return this; + } + + // optional .signalservice.AttachmentPointer image = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer image_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> imageBuilder_; + /** + * optional .signalservice.AttachmentPointer image = 3; + */ + public boolean hasImage() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.AttachmentPointer image = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getImage() { + if (imageBuilder_ == null) { + return image_; + } else { + return imageBuilder_.getMessage(); + } + } + /** + * optional .signalservice.AttachmentPointer image = 3; + */ + public Builder setImage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { + if (imageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + image_ = value; + onChanged(); + } else { + imageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.AttachmentPointer image = 3; + */ + public Builder setImage( + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder builderForValue) { + if (imageBuilder_ == null) { + image_ = builderForValue.build(); + onChanged(); + } else { + imageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.AttachmentPointer image = 3; + */ + public Builder mergeImage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { + if (imageBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + image_ != org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) { + image_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.newBuilder(image_).mergeFrom(value).buildPartial(); + } else { + image_ = value; + } + onChanged(); + } else { + imageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.AttachmentPointer image = 3; + */ + public Builder clearImage() { + if (imageBuilder_ == null) { + image_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + onChanged(); + } else { + imageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + * optional .signalservice.AttachmentPointer image = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder getImageBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getImageFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.AttachmentPointer image = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getImageOrBuilder() { + if (imageBuilder_ != null) { + return imageBuilder_.getMessageOrBuilder(); + } else { + return image_; + } + } + /** + * optional .signalservice.AttachmentPointer image = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> + getImageFieldBuilder() { + if (imageBuilder_ == null) { + imageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>( + image_, + getParentForChildren(), + isClean()); + image_ = null; + } + return imageBuilder_; + } + + // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Preview) + } + + static { + defaultInstance = new Preview(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Preview) + } + + public interface StickerOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional bytes packId = 1; + /** + * optional bytes packId = 1; + */ + boolean hasPackId(); + /** + * optional bytes packId = 1; + */ + com.google.protobuf.ByteString getPackId(); + + // optional bytes packKey = 2; + /** + * optional bytes packKey = 2; + */ + boolean hasPackKey(); + /** + * optional bytes packKey = 2; + */ + com.google.protobuf.ByteString getPackKey(); + + // optional uint32 stickerId = 3; + /** + * optional uint32 stickerId = 3; + */ + boolean hasStickerId(); + /** + * optional uint32 stickerId = 3; + */ + int getStickerId(); + + // optional .signalservice.AttachmentPointer data = 4; + /** + * optional .signalservice.AttachmentPointer data = 4; + */ + boolean hasData(); + /** + * optional .signalservice.AttachmentPointer data = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getData(); + /** + * optional .signalservice.AttachmentPointer data = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getDataOrBuilder(); + } + /** + * Protobuf type {@code signalservice.DataMessage.Sticker} + */ + public static final class Sticker extends + com.google.protobuf.GeneratedMessage + implements StickerOrBuilder { + // Use Sticker.newBuilder() to construct. + private Sticker(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Sticker(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Sticker defaultInstance; + public static Sticker getDefaultInstance() { + return defaultInstance; + } + + public Sticker getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Sticker( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + packId_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + packKey_ = input.readBytes(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + stickerId_ = input.readUInt32(); + break; + } + case 34: { + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = data_.toBuilder(); + } + data_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(data_); + data_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Sticker_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Sticker_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Sticker parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Sticker(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional bytes packId = 1; + public static final int PACKID_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString packId_; + /** + * optional bytes packId = 1; + */ + public boolean hasPackId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional bytes packId = 1; + */ + public com.google.protobuf.ByteString getPackId() { + return packId_; + } + + // optional bytes packKey = 2; + public static final int PACKKEY_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString packKey_; + /** + * optional bytes packKey = 2; + */ + public boolean hasPackKey() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bytes packKey = 2; + */ + public com.google.protobuf.ByteString getPackKey() { + return packKey_; + } + + // optional uint32 stickerId = 3; + public static final int STICKERID_FIELD_NUMBER = 3; + private int stickerId_; + /** + * optional uint32 stickerId = 3; + */ + public boolean hasStickerId() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional uint32 stickerId = 3; + */ + public int getStickerId() { + return stickerId_; + } + + // optional .signalservice.AttachmentPointer data = 4; + public static final int DATA_FIELD_NUMBER = 4; + private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer data_; + /** + * optional .signalservice.AttachmentPointer data = 4; + */ + public boolean hasData() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .signalservice.AttachmentPointer data = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getData() { + return data_; + } + /** + * optional .signalservice.AttachmentPointer data = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getDataOrBuilder() { + return data_; + } + + private void initFields() { + packId_ = com.google.protobuf.ByteString.EMPTY; + packKey_ = com.google.protobuf.ByteString.EMPTY; + stickerId_ = 0; + data_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, packId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, packKey_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(3, stickerId_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(4, data_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, packId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, packKey_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, stickerId_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, data_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker 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.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.DataMessage.Sticker} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.StickerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Sticker_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Sticker_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getDataFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + packId_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + packKey_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + stickerId_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + if (dataBuilder_ == null) { + data_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + } else { + dataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Sticker_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.packId_ = packId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.packKey_ = packKey_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.stickerId_ = stickerId_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.getDefaultInstance()) return this; + if (other.hasPackId()) { + setPackId(other.getPackId()); + } + if (other.hasPackKey()) { + setPackKey(other.getPackKey()); + } + if (other.hasStickerId()) { + setStickerId(other.getStickerId()); + } + if (other.hasData()) { + mergeData(other.getData()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional bytes packId = 1; + private com.google.protobuf.ByteString packId_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes packId = 1; + */ + public boolean hasPackId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional bytes packId = 1; + */ + public com.google.protobuf.ByteString getPackId() { + return packId_; + } + /** + * optional bytes packId = 1; + */ + public Builder setPackId(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + packId_ = value; + onChanged(); + return this; + } + /** + * optional bytes packId = 1; + */ + public Builder clearPackId() { + bitField0_ = (bitField0_ & ~0x00000001); + packId_ = getDefaultInstance().getPackId(); + onChanged(); + return this; + } + + // optional bytes packKey = 2; + private com.google.protobuf.ByteString packKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes packKey = 2; + */ + public boolean hasPackKey() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bytes packKey = 2; + */ + public com.google.protobuf.ByteString getPackKey() { + return packKey_; + } + /** + * optional bytes packKey = 2; + */ + public Builder setPackKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + packKey_ = value; + onChanged(); + return this; + } + /** + * optional bytes packKey = 2; + */ + public Builder clearPackKey() { + bitField0_ = (bitField0_ & ~0x00000002); + packKey_ = getDefaultInstance().getPackKey(); + onChanged(); + return this; + } + + // optional uint32 stickerId = 3; + private int stickerId_ ; + /** + * optional uint32 stickerId = 3; + */ + public boolean hasStickerId() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional uint32 stickerId = 3; + */ + public int getStickerId() { + return stickerId_; + } + /** + * optional uint32 stickerId = 3; + */ + public Builder setStickerId(int value) { + bitField0_ |= 0x00000004; + stickerId_ = value; + onChanged(); + return this; + } + /** + * optional uint32 stickerId = 3; + */ + public Builder clearStickerId() { + bitField0_ = (bitField0_ & ~0x00000004); + stickerId_ = 0; + onChanged(); + return this; + } + + // optional .signalservice.AttachmentPointer data = 4; + private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer data_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> dataBuilder_; + /** + * optional .signalservice.AttachmentPointer data = 4; + */ + public boolean hasData() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .signalservice.AttachmentPointer data = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getData() { + if (dataBuilder_ == null) { + return data_; + } else { + return dataBuilder_.getMessage(); + } + } + /** + * optional .signalservice.AttachmentPointer data = 4; + */ + public Builder setData(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + dataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.AttachmentPointer data = 4; + */ + public Builder setData( + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + dataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.AttachmentPointer data = 4; + */ + public Builder mergeData(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + data_ != org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) { + data_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.newBuilder(data_).mergeFrom(value).buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + dataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.AttachmentPointer data = 4; + */ + public Builder clearData() { + if (dataBuilder_ == null) { + data_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + onChanged(); + } else { + dataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + /** + * optional .signalservice.AttachmentPointer data = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder getDataBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getDataFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.AttachmentPointer data = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_; + } + } + /** + * optional .signalservice.AttachmentPointer data = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>( + data_, + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Sticker) + } + + static { + defaultInstance = new Sticker(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Sticker) + } + + private int bitField0_; + // optional string body = 1; + public static final int BODY_FIELD_NUMBER = 1; + private java.lang.Object body_; + /** + * optional string body = 1; + */ + public boolean hasBody() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string body = 1; + */ + 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; + */ + 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; + } + } + + // repeated .signalservice.AttachmentPointer attachments = 2; + public static final int ATTACHMENTS_FIELD_NUMBER = 2; + private java.util.List attachments_; + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public java.util.List getAttachmentsList() { + return attachments_; + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public java.util.List + getAttachmentsOrBuilderList() { + return attachments_; + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public int getAttachmentsCount() { + return attachments_.size(); + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getAttachments(int index) { + return attachments_.get(index); + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAttachmentsOrBuilder( + int index) { + return attachments_.get(index); + } + + // optional .signalservice.GroupContext group = 3; + public static final int GROUP_FIELD_NUMBER = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext group_; + /** + * optional .signalservice.GroupContext group = 3; + */ + public boolean hasGroup() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .signalservice.GroupContext group = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext getGroup() { + return group_; + } + /** + * optional .signalservice.GroupContext group = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContextOrBuilder getGroupOrBuilder() { + return group_; + } + + // optional uint32 flags = 4; + public static final int FLAGS_FIELD_NUMBER = 4; + private int flags_; + /** + * optional uint32 flags = 4; + */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional uint32 flags = 4; + */ + public int getFlags() { + return flags_; + } + + // optional uint32 expireTimer = 5; + public static final int EXPIRETIMER_FIELD_NUMBER = 5; + private int expireTimer_; + /** + * optional uint32 expireTimer = 5; + */ + public boolean hasExpireTimer() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional uint32 expireTimer = 5; + */ + public int getExpireTimer() { + return expireTimer_; + } + + // optional bytes profileKey = 6; + public static final int PROFILEKEY_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString profileKey_; + /** + * optional bytes profileKey = 6; + */ + public boolean hasProfileKey() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional bytes profileKey = 6; + */ + public com.google.protobuf.ByteString getProfileKey() { + return profileKey_; + } + + // optional uint64 timestamp = 7; + public static final int TIMESTAMP_FIELD_NUMBER = 7; + private long timestamp_; + /** + * optional uint64 timestamp = 7; + */ + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional uint64 timestamp = 7; + */ + public long getTimestamp() { + return timestamp_; + } + + // optional .signalservice.DataMessage.Quote quote = 8; + public static final int QUOTE_FIELD_NUMBER = 8; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote quote_; + /** + * optional .signalservice.DataMessage.Quote quote = 8; + */ + public boolean hasQuote() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional .signalservice.DataMessage.Quote quote = 8; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote getQuote() { + return quote_; + } + /** + * optional .signalservice.DataMessage.Quote quote = 8; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.QuoteOrBuilder getQuoteOrBuilder() { + return quote_; + } + + // repeated .signalservice.DataMessage.Contact contact = 9; + public static final int CONTACT_FIELD_NUMBER = 9; + private java.util.List contact_; + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public java.util.List getContactList() { + return contact_; + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public java.util.List + getContactOrBuilderList() { + return contact_; + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public int getContactCount() { + return contact_.size(); + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact getContact(int index) { + return contact_.get(index); + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder getContactOrBuilder( + int index) { + return contact_.get(index); + } + + // repeated .signalservice.DataMessage.Preview preview = 10; + public static final int PREVIEW_FIELD_NUMBER = 10; + private java.util.List preview_; + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + public java.util.List getPreviewList() { + return preview_; + } + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + public java.util.List + getPreviewOrBuilderList() { + return preview_; + } + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + public int getPreviewCount() { + return preview_.size(); + } + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview getPreview(int index) { + return preview_.get(index); + } + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.PreviewOrBuilder getPreviewOrBuilder( + int index) { + return preview_.get(index); + } + + // optional .signalservice.DataMessage.Sticker sticker = 11; + public static final int STICKER_FIELD_NUMBER = 11; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker sticker_; + /** + * optional .signalservice.DataMessage.Sticker sticker = 11; + */ + public boolean hasSticker() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional .signalservice.DataMessage.Sticker sticker = 11; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker getSticker() { + return sticker_; + } + /** + * optional .signalservice.DataMessage.Sticker sticker = 11; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.StickerOrBuilder getStickerOrBuilder() { + return sticker_; + } + + // optional .signalservice.LokiUserProfile profile = 101; + public static final int PROFILE_FIELD_NUMBER = 101; + private org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile profile_; + /** + * optional .signalservice.LokiUserProfile profile = 101; + * + *
+     * Loki - The profile of the current user
+     * 
+ */ + public boolean hasProfile() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional .signalservice.LokiUserProfile profile = 101; + * + *
+     * Loki - The profile of the current user
+     * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile getProfile() { + return profile_; + } + /** + * optional .signalservice.LokiUserProfile profile = 101; + * + *
+     * Loki - The profile of the current user
+     * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfileOrBuilder getProfileOrBuilder() { + return profile_; + } + + // optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + public static final int CLOSEDGROUPUPDATE_FIELD_NUMBER = 103; + private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate closedGroupUpdate_; + /** + * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + * + *
+     * Loki
+     * 
+ */ + public boolean hasClosedGroupUpdate() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + /** + * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + * + *
+     * Loki
+     * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate getClosedGroupUpdate() { + return closedGroupUpdate_; + } + /** + * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + * + *
+     * Loki
+     * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateOrBuilder getClosedGroupUpdateOrBuilder() { + return closedGroupUpdate_; + } + + // optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + public static final int CLOSEDGROUPUPDATEV2_FIELD_NUMBER = 104; + private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 closedGroupUpdateV2_; + /** + * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + */ + public boolean hasClosedGroupUpdateV2() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 getClosedGroupUpdateV2() { + return closedGroupUpdateV2_; + } + /** + * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2OrBuilder getClosedGroupUpdateV2OrBuilder() { + return closedGroupUpdateV2_; + } + + private void initFields() { + body_ = ""; + attachments_ = java.util.Collections.emptyList(); + group_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance(); + flags_ = 0; + expireTimer_ = 0; + profileKey_ = com.google.protobuf.ByteString.EMPTY; + timestamp_ = 0L; + quote_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance(); + contact_ = java.util.Collections.emptyList(); + preview_ = java.util.Collections.emptyList(); + sticker_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.getDefaultInstance(); + profile_ = org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.getDefaultInstance(); + closedGroupUpdate_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.getDefaultInstance(); + closedGroupUpdateV2_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (hasClosedGroupUpdateV2()) { + if (!getClosedGroupUpdateV2().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getBodyBytes()); + } + for (int i = 0; i < attachments_.size(); i++) { + output.writeMessage(2, attachments_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(3, group_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeUInt32(4, flags_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(5, expireTimer_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeBytes(6, profileKey_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeUInt64(7, timestamp_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeMessage(8, quote_); + } + for (int i = 0; i < contact_.size(); i++) { + output.writeMessage(9, contact_.get(i)); + } + for (int i = 0; i < preview_.size(); i++) { + output.writeMessage(10, preview_.get(i)); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeMessage(11, sticker_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeMessage(101, profile_); + } + if (((bitField0_ & 0x00000200) == 0x00000200)) { + output.writeMessage(103, closedGroupUpdate_); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + output.writeMessage(104, closedGroupUpdateV2_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getBodyBytes()); + } + for (int i = 0; i < attachments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, attachments_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, group_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, flags_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, expireTimer_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, profileKey_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(7, timestamp_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, quote_); + } + for (int i = 0; i < contact_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, contact_.get(i)); + } + for (int i = 0; i < preview_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, preview_.get(i)); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, sticker_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, profile_); + } + if (((bitField0_ & 0x00000200) == 0x00000200)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(103, closedGroupUpdate_); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(104, closedGroupUpdateV2_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.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.service.internal.push.SignalServiceProtos.DataMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.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.service.internal.push.SignalServiceProtos.DataMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.DataMessage} */ - public static final class DataMessage extends - com.google.protobuf.GeneratedMessage - implements DataMessageOrBuilder { - // Use DataMessage.newBuilder() to construct. - private DataMessage(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.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(); + getGroupFieldBuilder(); + getQuoteFieldBuilder(); + getContactFieldBuilder(); + getPreviewFieldBuilder(); + getStickerFieldBuilder(); + getProfileFieldBuilder(); + getClosedGroupUpdateFieldBuilder(); + getClosedGroupUpdateV2FieldBuilder(); } - private DataMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + } + private static Builder create() { + return new Builder(); + } - private static final DataMessage defaultInstance; - public static DataMessage getDefaultInstance() { - return defaultInstance; + public Builder clear() { + super.clear(); + body_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (attachmentsBuilder_ == null) { + attachments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + attachmentsBuilder_.clear(); } - - public DataMessage getDefaultInstanceForType() { - return defaultInstance; + if (groupBuilder_ == null) { + group_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance(); + } else { + groupBuilder_.clear(); } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + bitField0_ = (bitField0_ & ~0x00000004); + flags_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + expireTimer_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + profileKey_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + timestamp_ = 0L; + bitField0_ = (bitField0_ & ~0x00000040); + if (quoteBuilder_ == null) { + quote_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance(); + } else { + quoteBuilder_.clear(); } - private DataMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - body_ = input.readBytes(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - attachments_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - attachments_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry)); - break; - } - case 26: { - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = group_.toBuilder(); - } - group_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(group_); - group_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 32: { - bitField0_ |= 0x00000004; - flags_ = input.readUInt32(); - break; - } - case 40: { - bitField0_ |= 0x00000008; - expireTimer_ = input.readUInt32(); - break; - } - case 50: { - bitField0_ |= 0x00000010; - profileKey_ = input.readBytes(); - break; - } - case 56: { - bitField0_ |= 0x00000020; - timestamp_ = input.readUInt64(); - break; - } - case 66: { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - subBuilder = quote_.toBuilder(); - } - quote_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(quote_); - quote_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { - contact_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000100; - } - contact_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PARSER, extensionRegistry)); - break; - } - case 82: { - if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { - preview_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000200; - } - preview_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.PARSER, extensionRegistry)); - break; - } - case 90: { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.Builder subBuilder = null; - if (((bitField0_ & 0x00000080) == 0x00000080)) { - subBuilder = sticker_.toBuilder(); - } - sticker_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sticker_); - sticker_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000080; - break; - } - case 810: { - org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.Builder subBuilder = null; - if (((bitField0_ & 0x00000100) == 0x00000100)) { - subBuilder = profile_.toBuilder(); - } - profile_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(profile_); - profile_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000100; - break; - } - case 826: { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Builder subBuilder = null; - if (((bitField0_ & 0x00000200) == 0x00000200)) { - subBuilder = closedGroupUpdate_.toBuilder(); - } - closedGroupUpdate_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closedGroupUpdate_); - closedGroupUpdate_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000200; - break; - } - case 834: { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Builder subBuilder = null; - if (((bitField0_ & 0x00000400) == 0x00000400)) { - subBuilder = closedGroupUpdateV2_.toBuilder(); - } - closedGroupUpdateV2_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closedGroupUpdateV2_); - closedGroupUpdateV2_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000400; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - attachments_ = java.util.Collections.unmodifiableList(attachments_); - } - if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { - contact_ = java.util.Collections.unmodifiableList(contact_); - } - if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { - preview_ = java.util.Collections.unmodifiableList(preview_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + bitField0_ = (bitField0_ & ~0x00000080); + if (contactBuilder_ == null) { + contact_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + } else { + contactBuilder_.clear(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_descriptor; + if (previewBuilder_ == null) { + preview_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + previewBuilder_.clear(); } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder.class); + if (stickerBuilder_ == null) { + sticker_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.getDefaultInstance(); + } else { + stickerBuilder_.clear(); } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DataMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DataMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + bitField0_ = (bitField0_ & ~0x00000400); + if (profileBuilder_ == null) { + profile_ = org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.getDefaultInstance(); + } else { + profileBuilder_.clear(); } - - /** - * Protobuf enum {@code signalservice.DataMessage.Flags} - */ - public enum Flags - implements com.google.protobuf.ProtocolMessageEnum { - /** - * END_SESSION = 1; - */ - END_SESSION(0, 1), - /** - * EXPIRATION_TIMER_UPDATE = 2; - */ - EXPIRATION_TIMER_UPDATE(1, 2), - /** - * PROFILE_KEY_UPDATE = 4; - */ - PROFILE_KEY_UPDATE(2, 4), - /** - * DEVICE_UNLINKING_REQUEST = 128; - */ - DEVICE_UNLINKING_REQUEST(3, 128), - ; - - /** - * END_SESSION = 1; - */ - public static final int END_SESSION_VALUE = 1; - /** - * EXPIRATION_TIMER_UPDATE = 2; - */ - public static final int EXPIRATION_TIMER_UPDATE_VALUE = 2; - /** - * PROFILE_KEY_UPDATE = 4; - */ - public static final int PROFILE_KEY_UPDATE_VALUE = 4; - /** - * DEVICE_UNLINKING_REQUEST = 128; - */ - public static final int DEVICE_UNLINKING_REQUEST_VALUE = 128; - - - public final int getNumber() { return value; } - - public static Flags valueOf(int value) { - switch (value) { - case 1: return END_SESSION; - case 2: return EXPIRATION_TIMER_UPDATE; - case 4: return PROFILE_KEY_UPDATE; - case 128: return DEVICE_UNLINKING_REQUEST; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Flags findValueByNumber(int number) { - return Flags.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDescriptor().getEnumTypes().get(0); - } - - private static final Flags[] VALUES = values(); - - public static Flags valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private Flags(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:signalservice.DataMessage.Flags) + bitField0_ = (bitField0_ & ~0x00000800); + if (closedGroupUpdateBuilder_ == null) { + closedGroupUpdate_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.getDefaultInstance(); + } else { + closedGroupUpdateBuilder_.clear(); } - - public interface QuoteOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional uint64 id = 1; - /** - * optional uint64 id = 1; - */ - boolean hasId(); - /** - * optional uint64 id = 1; - */ - long getId(); - - // optional string author = 2; - /** - * optional string author = 2; - */ - boolean hasAuthor(); - /** - * optional string author = 2; - */ - java.lang.String getAuthor(); - /** - * optional string author = 2; - */ - com.google.protobuf.ByteString - getAuthorBytes(); - - // optional string text = 3; - /** - * optional string text = 3; - */ - boolean hasText(); - /** - * optional string text = 3; - */ - java.lang.String getText(); - /** - * optional string text = 3; - */ - com.google.protobuf.ByteString - getTextBytes(); - - // repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - java.util.List - getAttachmentsList(); - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment getAttachments(int index); - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - int getAttachmentsCount(); - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - java.util.List - getAttachmentsOrBuilderList(); - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder getAttachmentsOrBuilder( - int index); + bitField0_ = (bitField0_ & ~0x00001000); + if (closedGroupUpdateV2Builder_ == null) { + closedGroupUpdateV2_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.getDefaultInstance(); + } else { + closedGroupUpdateV2Builder_.clear(); } - /** - * Protobuf type {@code signalservice.DataMessage.Quote} - */ - public static final class Quote extends - com.google.protobuf.GeneratedMessage - implements QuoteOrBuilder { - // Use Quote.newBuilder() to construct. - private Quote(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Quote(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Quote defaultInstance; - public static Quote getDefaultInstance() { - return defaultInstance; - } - - public Quote getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Quote( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - id_ = input.readUInt64(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - author_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - text_ = input.readBytes(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - attachments_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - attachments_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - attachments_ = java.util.Collections.unmodifiableList(attachments_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Quote parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Quote(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public interface QuotedAttachmentOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string contentType = 1; - /** - * optional string contentType = 1; - */ - boolean hasContentType(); - /** - * optional string contentType = 1; - */ - java.lang.String getContentType(); - /** - * optional string contentType = 1; - */ - com.google.protobuf.ByteString - getContentTypeBytes(); - - // optional string fileName = 2; - /** - * optional string fileName = 2; - */ - boolean hasFileName(); - /** - * optional string fileName = 2; - */ - java.lang.String getFileName(); - /** - * optional string fileName = 2; - */ - com.google.protobuf.ByteString - getFileNameBytes(); - - // optional .signalservice.AttachmentPointer thumbnail = 3; - /** - * optional .signalservice.AttachmentPointer thumbnail = 3; - */ - boolean hasThumbnail(); - /** - * optional .signalservice.AttachmentPointer thumbnail = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getThumbnail(); - /** - * optional .signalservice.AttachmentPointer thumbnail = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getThumbnailOrBuilder(); - } - /** - * Protobuf type {@code signalservice.DataMessage.Quote.QuotedAttachment} - */ - public static final class QuotedAttachment extends - com.google.protobuf.GeneratedMessage - implements QuotedAttachmentOrBuilder { - // Use QuotedAttachment.newBuilder() to construct. - private QuotedAttachment(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private QuotedAttachment(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final QuotedAttachment defaultInstance; - public static QuotedAttachment getDefaultInstance() { - return defaultInstance; - } - - public QuotedAttachment getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QuotedAttachment( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - contentType_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - fileName_ = input.readBytes(); - break; - } - case 26: { - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = thumbnail_.toBuilder(); - } - thumbnail_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(thumbnail_); - thumbnail_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_QuotedAttachment_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_QuotedAttachment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public QuotedAttachment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuotedAttachment(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string contentType = 1; - public static final int CONTENTTYPE_FIELD_NUMBER = 1; - private java.lang.Object contentType_; - /** - * optional string contentType = 1; - */ - public boolean hasContentType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string contentType = 1; - */ - public java.lang.String getContentType() { - java.lang.Object ref = contentType_; - 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()) { - contentType_ = s; - } - return s; - } - } - /** - * optional string contentType = 1; - */ - public com.google.protobuf.ByteString - getContentTypeBytes() { - java.lang.Object ref = contentType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contentType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string fileName = 2; - public static final int FILENAME_FIELD_NUMBER = 2; - private java.lang.Object fileName_; - /** - * optional string fileName = 2; - */ - public boolean hasFileName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string fileName = 2; - */ - public java.lang.String getFileName() { - java.lang.Object ref = fileName_; - 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()) { - fileName_ = s; - } - return s; - } - } - /** - * optional string fileName = 2; - */ - public com.google.protobuf.ByteString - getFileNameBytes() { - java.lang.Object ref = fileName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fileName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional .signalservice.AttachmentPointer thumbnail = 3; - public static final int THUMBNAIL_FIELD_NUMBER = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer thumbnail_; - /** - * optional .signalservice.AttachmentPointer thumbnail = 3; - */ - public boolean hasThumbnail() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .signalservice.AttachmentPointer thumbnail = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getThumbnail() { - return thumbnail_; - } - /** - * optional .signalservice.AttachmentPointer thumbnail = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getThumbnailOrBuilder() { - return thumbnail_; - } - - private void initFields() { - contentType_ = ""; - fileName_ = ""; - thumbnail_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getContentTypeBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getFileNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, thumbnail_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getContentTypeBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getFileNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, thumbnail_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment 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.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.DataMessage.Quote.QuotedAttachment} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_QuotedAttachment_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_QuotedAttachment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getThumbnailFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - contentType_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - fileName_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - if (thumbnailBuilder_ == null) { - thumbnail_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - } else { - thumbnailBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_QuotedAttachment_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.contentType_ = contentType_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.fileName_ = fileName_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (thumbnailBuilder_ == null) { - result.thumbnail_ = thumbnail_; - } else { - result.thumbnail_ = thumbnailBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.getDefaultInstance()) return this; - if (other.hasContentType()) { - bitField0_ |= 0x00000001; - contentType_ = other.contentType_; - onChanged(); - } - if (other.hasFileName()) { - bitField0_ |= 0x00000002; - fileName_ = other.fileName_; - onChanged(); - } - if (other.hasThumbnail()) { - mergeThumbnail(other.getThumbnail()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string contentType = 1; - private java.lang.Object contentType_ = ""; - /** - * optional string contentType = 1; - */ - public boolean hasContentType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string contentType = 1; - */ - public java.lang.String getContentType() { - java.lang.Object ref = contentType_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - contentType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string contentType = 1; - */ - public com.google.protobuf.ByteString - getContentTypeBytes() { - java.lang.Object ref = contentType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contentType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string contentType = 1; - */ - public Builder setContentType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - contentType_ = value; - onChanged(); - return this; - } - /** - * optional string contentType = 1; - */ - public Builder clearContentType() { - bitField0_ = (bitField0_ & ~0x00000001); - contentType_ = getDefaultInstance().getContentType(); - onChanged(); - return this; - } - /** - * optional string contentType = 1; - */ - public Builder setContentTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - contentType_ = value; - onChanged(); - return this; - } - - // optional string fileName = 2; - private java.lang.Object fileName_ = ""; - /** - * optional string fileName = 2; - */ - public boolean hasFileName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string fileName = 2; - */ - public java.lang.String getFileName() { - java.lang.Object ref = fileName_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - fileName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string fileName = 2; - */ - public com.google.protobuf.ByteString - getFileNameBytes() { - java.lang.Object ref = fileName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fileName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string fileName = 2; - */ - public Builder setFileName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - fileName_ = value; - onChanged(); - return this; - } - /** - * optional string fileName = 2; - */ - public Builder clearFileName() { - bitField0_ = (bitField0_ & ~0x00000002); - fileName_ = getDefaultInstance().getFileName(); - onChanged(); - return this; - } - /** - * optional string fileName = 2; - */ - public Builder setFileNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - fileName_ = value; - onChanged(); - return this; - } - - // optional .signalservice.AttachmentPointer thumbnail = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer thumbnail_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> thumbnailBuilder_; - /** - * optional .signalservice.AttachmentPointer thumbnail = 3; - */ - public boolean hasThumbnail() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .signalservice.AttachmentPointer thumbnail = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getThumbnail() { - if (thumbnailBuilder_ == null) { - return thumbnail_; - } else { - return thumbnailBuilder_.getMessage(); - } - } - /** - * optional .signalservice.AttachmentPointer thumbnail = 3; - */ - public Builder setThumbnail(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { - if (thumbnailBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - thumbnail_ = value; - onChanged(); - } else { - thumbnailBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.AttachmentPointer thumbnail = 3; - */ - public Builder setThumbnail( - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder builderForValue) { - if (thumbnailBuilder_ == null) { - thumbnail_ = builderForValue.build(); - onChanged(); - } else { - thumbnailBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.AttachmentPointer thumbnail = 3; - */ - public Builder mergeThumbnail(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { - if (thumbnailBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - thumbnail_ != org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) { - thumbnail_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.newBuilder(thumbnail_).mergeFrom(value).buildPartial(); - } else { - thumbnail_ = value; - } - onChanged(); - } else { - thumbnailBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.AttachmentPointer thumbnail = 3; - */ - public Builder clearThumbnail() { - if (thumbnailBuilder_ == null) { - thumbnail_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - onChanged(); - } else { - thumbnailBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - /** - * optional .signalservice.AttachmentPointer thumbnail = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder getThumbnailBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getThumbnailFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.AttachmentPointer thumbnail = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getThumbnailOrBuilder() { - if (thumbnailBuilder_ != null) { - return thumbnailBuilder_.getMessageOrBuilder(); - } else { - return thumbnail_; - } - } - /** - * optional .signalservice.AttachmentPointer thumbnail = 3; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> - getThumbnailFieldBuilder() { - if (thumbnailBuilder_ == null) { - thumbnailBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>( - thumbnail_, - getParentForChildren(), - isClean()); - thumbnail_ = null; - } - return thumbnailBuilder_; - } - - // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Quote.QuotedAttachment) - } - - static { - defaultInstance = new QuotedAttachment(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Quote.QuotedAttachment) - } - - private int bitField0_; - // optional uint64 id = 1; - public static final int ID_FIELD_NUMBER = 1; - private long id_; - /** - * optional uint64 id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional uint64 id = 1; - */ - public long getId() { - return id_; - } - - // optional string author = 2; - public static final int AUTHOR_FIELD_NUMBER = 2; - private java.lang.Object author_; - /** - * optional string author = 2; - */ - public boolean hasAuthor() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string author = 2; - */ - 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; - } - } - /** - * optional string author = 2; - */ - 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; - } - } - - // optional string text = 3; - public static final int TEXT_FIELD_NUMBER = 3; - private java.lang.Object text_; - /** - * optional string text = 3; - */ - public boolean hasText() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string text = 3; - */ - public java.lang.String getText() { - java.lang.Object ref = text_; - 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()) { - text_ = s; - } - return s; - } - } - /** - * optional string text = 3; - */ - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - public static final int ATTACHMENTS_FIELD_NUMBER = 4; - private java.util.List attachments_; - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public java.util.List getAttachmentsList() { - return attachments_; - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public java.util.List - getAttachmentsOrBuilderList() { - return attachments_; - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public int getAttachmentsCount() { - return attachments_.size(); - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment getAttachments(int index) { - return attachments_.get(index); - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder getAttachmentsOrBuilder( - int index) { - return attachments_.get(index); - } - - private void initFields() { - id_ = 0L; - author_ = ""; - text_ = ""; - attachments_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeUInt64(1, id_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getAuthorBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getTextBytes()); - } - for (int i = 0; i < attachments_.size(); i++) { - output.writeMessage(4, attachments_.get(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, id_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getAuthorBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getTextBytes()); - } - for (int i = 0; i < attachments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, attachments_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote 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.service.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.DataMessage.Quote} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.QuoteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.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(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - id_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - author_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - text_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - if (attachmentsBuilder_ == null) { - attachments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - attachmentsBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.author_ = author_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.text_ = text_; - if (attachmentsBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008)) { - attachments_ = java.util.Collections.unmodifiableList(attachments_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.attachments_ = attachments_; - } else { - result.attachments_ = attachmentsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance()) return this; - if (other.hasId()) { - setId(other.getId()); - } - if (other.hasAuthor()) { - bitField0_ |= 0x00000002; - author_ = other.author_; - onChanged(); - } - if (other.hasText()) { - bitField0_ |= 0x00000004; - text_ = other.text_; - onChanged(); - } - if (attachmentsBuilder_ == null) { - if (!other.attachments_.isEmpty()) { - if (attachments_.isEmpty()) { - attachments_ = other.attachments_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureAttachmentsIsMutable(); - attachments_.addAll(other.attachments_); - } - onChanged(); - } - } else { - if (!other.attachments_.isEmpty()) { - if (attachmentsBuilder_.isEmpty()) { - attachmentsBuilder_.dispose(); - attachmentsBuilder_ = null; - attachments_ = other.attachments_; - bitField0_ = (bitField0_ & ~0x00000008); - attachmentsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getAttachmentsFieldBuilder() : null; - } else { - attachmentsBuilder_.addAllMessages(other.attachments_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional uint64 id = 1; - private long id_ ; - /** - * optional uint64 id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional uint64 id = 1; - */ - public long getId() { - return id_; - } - /** - * optional uint64 id = 1; - */ - public Builder setId(long value) { - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional uint64 id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = 0L; - onChanged(); - return this; - } - - // optional string author = 2; - private java.lang.Object author_ = ""; - /** - * optional string author = 2; - */ - public boolean hasAuthor() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string author = 2; - */ - public java.lang.String getAuthor() { - java.lang.Object ref = author_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - author_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string author = 2; - */ - 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; - } - } - /** - * optional string author = 2; - */ - public Builder setAuthor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - author_ = value; - onChanged(); - return this; - } - /** - * optional string author = 2; - */ - public Builder clearAuthor() { - bitField0_ = (bitField0_ & ~0x00000002); - author_ = getDefaultInstance().getAuthor(); - onChanged(); - return this; - } - /** - * optional string author = 2; - */ - public Builder setAuthorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - author_ = value; - onChanged(); - return this; - } - - // optional string text = 3; - private java.lang.Object text_ = ""; - /** - * optional string text = 3; - */ - public boolean hasText() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string text = 3; - */ - public java.lang.String getText() { - java.lang.Object ref = text_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - text_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string text = 3; - */ - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string text = 3; - */ - public Builder setText( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - text_ = value; - onChanged(); - return this; - } - /** - * optional string text = 3; - */ - public Builder clearText() { - bitField0_ = (bitField0_ & ~0x00000004); - text_ = getDefaultInstance().getText(); - onChanged(); - return this; - } - /** - * optional string text = 3; - */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - text_ = value; - onChanged(); - return this; - } - - // repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - private java.util.List attachments_ = - java.util.Collections.emptyList(); - private void ensureAttachmentsIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - attachments_ = new java.util.ArrayList(attachments_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder> attachmentsBuilder_; - - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public java.util.List getAttachmentsList() { - if (attachmentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(attachments_); - } else { - return attachmentsBuilder_.getMessageList(); - } - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public int getAttachmentsCount() { - if (attachmentsBuilder_ == null) { - return attachments_.size(); - } else { - return attachmentsBuilder_.getCount(); - } - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment getAttachments(int index) { - if (attachmentsBuilder_ == null) { - return attachments_.get(index); - } else { - return attachmentsBuilder_.getMessage(index); - } - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public Builder setAttachments( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment 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.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public Builder setAttachments( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder builderForValue) { - if (attachmentsBuilder_ == null) { - ensureAttachmentsIsMutable(); - attachments_.set(index, builderForValue.build()); - onChanged(); - } else { - attachmentsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public Builder addAttachments(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment value) { - if (attachmentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttachmentsIsMutable(); - attachments_.add(value); - onChanged(); - } else { - attachmentsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public Builder addAttachments( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment 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.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public Builder addAttachments( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder builderForValue) { - if (attachmentsBuilder_ == null) { - ensureAttachmentsIsMutable(); - attachments_.add(builderForValue.build()); - onChanged(); - } else { - attachmentsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public Builder addAttachments( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder builderForValue) { - if (attachmentsBuilder_ == null) { - ensureAttachmentsIsMutable(); - attachments_.add(index, builderForValue.build()); - onChanged(); - } else { - attachmentsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public Builder addAllAttachments( - java.lang.Iterable values) { - if (attachmentsBuilder_ == null) { - ensureAttachmentsIsMutable(); - super.addAll(values, attachments_); - onChanged(); - } else { - attachmentsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public Builder clearAttachments() { - if (attachmentsBuilder_ == null) { - attachments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - attachmentsBuilder_.clear(); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public Builder removeAttachments(int index) { - if (attachmentsBuilder_ == null) { - ensureAttachmentsIsMutable(); - attachments_.remove(index); - onChanged(); - } else { - attachmentsBuilder_.remove(index); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder getAttachmentsBuilder( - int index) { - return getAttachmentsFieldBuilder().getBuilder(index); - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder getAttachmentsOrBuilder( - int index) { - if (attachmentsBuilder_ == null) { - return attachments_.get(index); } else { - return attachmentsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public java.util.List - getAttachmentsOrBuilderList() { - if (attachmentsBuilder_ != null) { - return attachmentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(attachments_); - } - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder addAttachmentsBuilder() { - return getAttachmentsFieldBuilder().addBuilder( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.getDefaultInstance()); - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder addAttachmentsBuilder( - int index) { - return getAttachmentsFieldBuilder().addBuilder( - index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.getDefaultInstance()); - } - /** - * repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4; - */ - public java.util.List - getAttachmentsBuilderList() { - return getAttachmentsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder> - getAttachmentsFieldBuilder() { - if (attachmentsBuilder_ == null) { - attachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder>( - attachments_, - ((bitField0_ & 0x00000008) == 0x00000008), - getParentForChildren(), - isClean()); - attachments_ = null; - } - return attachmentsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Quote) - } - - static { - defaultInstance = new Quote(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Quote) + bitField0_ = (bitField0_ & ~0x00002000); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - public interface ContactOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .signalservice.DataMessage.Contact.Name name = 1; - /** - * optional .signalservice.DataMessage.Contact.Name name = 1; - */ - boolean hasName(); - /** - * optional .signalservice.DataMessage.Contact.Name name = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name getName(); - /** - * optional .signalservice.DataMessage.Contact.Name name = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.NameOrBuilder getNameOrBuilder(); - - // repeated .signalservice.DataMessage.Contact.Phone number = 3; - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - java.util.List - getNumberList(); - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone getNumber(int index); - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - int getNumberCount(); - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - java.util.List - getNumberOrBuilderList(); - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder getNumberOrBuilder( - int index); - - // repeated .signalservice.DataMessage.Contact.Email email = 4; - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - java.util.List - getEmailList(); - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email getEmail(int index); - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - int getEmailCount(); - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - java.util.List - getEmailOrBuilderList(); - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder getEmailOrBuilder( - int index); - - // repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - java.util.List - getAddressList(); - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress getAddress(int index); - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - int getAddressCount(); - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - java.util.List - getAddressOrBuilderList(); - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder getAddressOrBuilder( - int index); - - // optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - /** - * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - */ - boolean hasAvatar(); - /** - * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar getAvatar(); - /** - * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.AvatarOrBuilder getAvatarOrBuilder(); - - // optional string organization = 7; - /** - * optional string organization = 7; - */ - boolean hasOrganization(); - /** - * optional string organization = 7; - */ - java.lang.String getOrganization(); - /** - * optional string organization = 7; - */ - com.google.protobuf.ByteString - getOrganizationBytes(); + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - /** - * Protobuf type {@code signalservice.DataMessage.Contact} - */ - public static final class Contact extends - com.google.protobuf.GeneratedMessage - implements ContactOrBuilder { - // Use Contact.newBuilder() to construct. - private Contact(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Contact(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Contact defaultInstance; - public static Contact getDefaultInstance() { - return defaultInstance; - } - - public Contact getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Contact( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = name_.toBuilder(); - } - name_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(name_); - name_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - number_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - number_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.PARSER, extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - email_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - email_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.PARSER, extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - address_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - address_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.PARSER, extensionRegistry)); - break; - } - case 50: { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = avatar_.toBuilder(); - } - avatar_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatar_); - avatar_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 58: { - bitField0_ |= 0x00000004; - organization_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - number_ = java.util.Collections.unmodifiableList(number_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - email_ = java.util.Collections.unmodifiableList(email_); - } - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - address_ = java.util.Collections.unmodifiableList(address_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Contact parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Contact(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public interface NameOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string givenName = 1; - /** - * optional string givenName = 1; - */ - boolean hasGivenName(); - /** - * optional string givenName = 1; - */ - java.lang.String getGivenName(); - /** - * optional string givenName = 1; - */ - com.google.protobuf.ByteString - getGivenNameBytes(); - - // optional string familyName = 2; - /** - * optional string familyName = 2; - */ - boolean hasFamilyName(); - /** - * optional string familyName = 2; - */ - java.lang.String getFamilyName(); - /** - * optional string familyName = 2; - */ - com.google.protobuf.ByteString - getFamilyNameBytes(); - - // optional string prefix = 3; - /** - * optional string prefix = 3; - */ - boolean hasPrefix(); - /** - * optional string prefix = 3; - */ - java.lang.String getPrefix(); - /** - * optional string prefix = 3; - */ - com.google.protobuf.ByteString - getPrefixBytes(); - - // optional string suffix = 4; - /** - * optional string suffix = 4; - */ - boolean hasSuffix(); - /** - * optional string suffix = 4; - */ - java.lang.String getSuffix(); - /** - * optional string suffix = 4; - */ - com.google.protobuf.ByteString - getSuffixBytes(); - - // optional string middleName = 5; - /** - * optional string middleName = 5; - */ - boolean hasMiddleName(); - /** - * optional string middleName = 5; - */ - java.lang.String getMiddleName(); - /** - * optional string middleName = 5; - */ - com.google.protobuf.ByteString - getMiddleNameBytes(); - - // optional string displayName = 6; - /** - * optional string displayName = 6; - */ - boolean hasDisplayName(); - /** - * optional string displayName = 6; - */ - java.lang.String getDisplayName(); - /** - * optional string displayName = 6; - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - } - /** - * Protobuf type {@code signalservice.DataMessage.Contact.Name} - */ - public static final class Name extends - com.google.protobuf.GeneratedMessage - implements NameOrBuilder { - // Use Name.newBuilder() to construct. - private Name(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Name(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Name defaultInstance; - public static Name getDefaultInstance() { - return defaultInstance; - } - - public Name getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Name( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - givenName_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - familyName_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - prefix_ = input.readBytes(); - break; - } - case 34: { - bitField0_ |= 0x00000008; - suffix_ = input.readBytes(); - break; - } - case 42: { - bitField0_ |= 0x00000010; - middleName_ = input.readBytes(); - break; - } - case 50: { - bitField0_ |= 0x00000020; - displayName_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Name_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Name_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Name parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Name(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string givenName = 1; - public static final int GIVENNAME_FIELD_NUMBER = 1; - private java.lang.Object givenName_; - /** - * optional string givenName = 1; - */ - public boolean hasGivenName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string givenName = 1; - */ - public java.lang.String getGivenName() { - java.lang.Object ref = givenName_; - 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()) { - givenName_ = s; - } - return s; - } - } - /** - * optional string givenName = 1; - */ - public com.google.protobuf.ByteString - getGivenNameBytes() { - java.lang.Object ref = givenName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - givenName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string familyName = 2; - public static final int FAMILYNAME_FIELD_NUMBER = 2; - private java.lang.Object familyName_; - /** - * optional string familyName = 2; - */ - public boolean hasFamilyName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string familyName = 2; - */ - public java.lang.String getFamilyName() { - java.lang.Object ref = familyName_; - 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()) { - familyName_ = s; - } - return s; - } - } - /** - * optional string familyName = 2; - */ - public com.google.protobuf.ByteString - getFamilyNameBytes() { - java.lang.Object ref = familyName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - familyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string prefix = 3; - public static final int PREFIX_FIELD_NUMBER = 3; - private java.lang.Object prefix_; - /** - * optional string prefix = 3; - */ - public boolean hasPrefix() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string prefix = 3; - */ - public java.lang.String getPrefix() { - java.lang.Object ref = prefix_; - 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()) { - prefix_ = s; - } - return s; - } - } - /** - * optional string prefix = 3; - */ - public com.google.protobuf.ByteString - getPrefixBytes() { - java.lang.Object ref = prefix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - prefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string suffix = 4; - public static final int SUFFIX_FIELD_NUMBER = 4; - private java.lang.Object suffix_; - /** - * optional string suffix = 4; - */ - public boolean hasSuffix() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string suffix = 4; - */ - public java.lang.String getSuffix() { - java.lang.Object ref = suffix_; - 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()) { - suffix_ = s; - } - return s; - } - } - /** - * optional string suffix = 4; - */ - public com.google.protobuf.ByteString - getSuffixBytes() { - java.lang.Object ref = suffix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - suffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string middleName = 5; - public static final int MIDDLENAME_FIELD_NUMBER = 5; - private java.lang.Object middleName_; - /** - * optional string middleName = 5; - */ - public boolean hasMiddleName() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string middleName = 5; - */ - public java.lang.String getMiddleName() { - java.lang.Object ref = middleName_; - 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()) { - middleName_ = s; - } - return s; - } - } - /** - * optional string middleName = 5; - */ - public com.google.protobuf.ByteString - getMiddleNameBytes() { - java.lang.Object ref = middleName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - middleName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string displayName = 6; - public static final int DISPLAYNAME_FIELD_NUMBER = 6; - private java.lang.Object displayName_; - /** - * optional string displayName = 6; - */ - public boolean hasDisplayName() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string displayName = 6; - */ - 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; - } - return s; - } - } - /** - * optional string displayName = 6; - */ - 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; - } - } - - private void initFields() { - givenName_ = ""; - familyName_ = ""; - prefix_ = ""; - suffix_ = ""; - middleName_ = ""; - displayName_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getGivenNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getFamilyNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getPrefixBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getSuffixBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getMiddleNameBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getDisplayNameBytes()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getGivenNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getFamilyNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getPrefixBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getSuffixBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getMiddleNameBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getDisplayNameBytes()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name 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.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.DataMessage.Contact.Name} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.NameOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Name_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Name_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - givenName_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - familyName_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - prefix_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - suffix_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - middleName_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - displayName_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Name_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.givenName_ = givenName_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.familyName_ = familyName_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.prefix_ = prefix_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.suffix_ = suffix_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.middleName_ = middleName_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.displayName_ = displayName_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance()) return this; - if (other.hasGivenName()) { - bitField0_ |= 0x00000001; - givenName_ = other.givenName_; - onChanged(); - } - if (other.hasFamilyName()) { - bitField0_ |= 0x00000002; - familyName_ = other.familyName_; - onChanged(); - } - if (other.hasPrefix()) { - bitField0_ |= 0x00000004; - prefix_ = other.prefix_; - onChanged(); - } - if (other.hasSuffix()) { - bitField0_ |= 0x00000008; - suffix_ = other.suffix_; - onChanged(); - } - if (other.hasMiddleName()) { - bitField0_ |= 0x00000010; - middleName_ = other.middleName_; - onChanged(); - } - if (other.hasDisplayName()) { - bitField0_ |= 0x00000020; - displayName_ = other.displayName_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string givenName = 1; - private java.lang.Object givenName_ = ""; - /** - * optional string givenName = 1; - */ - public boolean hasGivenName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string givenName = 1; - */ - public java.lang.String getGivenName() { - java.lang.Object ref = givenName_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - givenName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string givenName = 1; - */ - public com.google.protobuf.ByteString - getGivenNameBytes() { - java.lang.Object ref = givenName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - givenName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string givenName = 1; - */ - public Builder setGivenName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - givenName_ = value; - onChanged(); - return this; - } - /** - * optional string givenName = 1; - */ - public Builder clearGivenName() { - bitField0_ = (bitField0_ & ~0x00000001); - givenName_ = getDefaultInstance().getGivenName(); - onChanged(); - return this; - } - /** - * optional string givenName = 1; - */ - public Builder setGivenNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - givenName_ = value; - onChanged(); - return this; - } - - // optional string familyName = 2; - private java.lang.Object familyName_ = ""; - /** - * optional string familyName = 2; - */ - public boolean hasFamilyName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string familyName = 2; - */ - public java.lang.String getFamilyName() { - java.lang.Object ref = familyName_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - familyName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string familyName = 2; - */ - public com.google.protobuf.ByteString - getFamilyNameBytes() { - java.lang.Object ref = familyName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - familyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string familyName = 2; - */ - public Builder setFamilyName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - familyName_ = value; - onChanged(); - return this; - } - /** - * optional string familyName = 2; - */ - public Builder clearFamilyName() { - bitField0_ = (bitField0_ & ~0x00000002); - familyName_ = getDefaultInstance().getFamilyName(); - onChanged(); - return this; - } - /** - * optional string familyName = 2; - */ - public Builder setFamilyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - familyName_ = value; - onChanged(); - return this; - } - - // optional string prefix = 3; - private java.lang.Object prefix_ = ""; - /** - * optional string prefix = 3; - */ - public boolean hasPrefix() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string prefix = 3; - */ - public java.lang.String getPrefix() { - java.lang.Object ref = prefix_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - prefix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string prefix = 3; - */ - public com.google.protobuf.ByteString - getPrefixBytes() { - java.lang.Object ref = prefix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - prefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string prefix = 3; - */ - public Builder setPrefix( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - prefix_ = value; - onChanged(); - return this; - } - /** - * optional string prefix = 3; - */ - public Builder clearPrefix() { - bitField0_ = (bitField0_ & ~0x00000004); - prefix_ = getDefaultInstance().getPrefix(); - onChanged(); - return this; - } - /** - * optional string prefix = 3; - */ - public Builder setPrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - prefix_ = value; - onChanged(); - return this; - } - - // optional string suffix = 4; - private java.lang.Object suffix_ = ""; - /** - * optional string suffix = 4; - */ - public boolean hasSuffix() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string suffix = 4; - */ - public java.lang.String getSuffix() { - java.lang.Object ref = suffix_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - suffix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string suffix = 4; - */ - public com.google.protobuf.ByteString - getSuffixBytes() { - java.lang.Object ref = suffix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - suffix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string suffix = 4; - */ - public Builder setSuffix( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - suffix_ = value; - onChanged(); - return this; - } - /** - * optional string suffix = 4; - */ - public Builder clearSuffix() { - bitField0_ = (bitField0_ & ~0x00000008); - suffix_ = getDefaultInstance().getSuffix(); - onChanged(); - return this; - } - /** - * optional string suffix = 4; - */ - public Builder setSuffixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - suffix_ = value; - onChanged(); - return this; - } - - // optional string middleName = 5; - private java.lang.Object middleName_ = ""; - /** - * optional string middleName = 5; - */ - public boolean hasMiddleName() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string middleName = 5; - */ - public java.lang.String getMiddleName() { - java.lang.Object ref = middleName_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - middleName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string middleName = 5; - */ - public com.google.protobuf.ByteString - getMiddleNameBytes() { - java.lang.Object ref = middleName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - middleName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string middleName = 5; - */ - public Builder setMiddleName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - middleName_ = value; - onChanged(); - return this; - } - /** - * optional string middleName = 5; - */ - public Builder clearMiddleName() { - bitField0_ = (bitField0_ & ~0x00000010); - middleName_ = getDefaultInstance().getMiddleName(); - onChanged(); - return this; - } - /** - * optional string middleName = 5; - */ - public Builder setMiddleNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - middleName_ = value; - onChanged(); - return this; - } - - // optional string displayName = 6; - private java.lang.Object displayName_ = ""; - /** - * optional string displayName = 6; - */ - public boolean hasDisplayName() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string displayName = 6; - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string displayName = 6; - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof 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; - } - } - /** - * optional string displayName = 6; - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - displayName_ = value; - onChanged(); - return this; - } - /** - * optional string displayName = 6; - */ - public Builder clearDisplayName() { - bitField0_ = (bitField0_ & ~0x00000020); - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - * optional string displayName = 6; - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - displayName_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Contact.Name) - } - - static { - defaultInstance = new Name(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Contact.Name) - } - - public interface PhoneOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string value = 1; - /** - * optional string value = 1; - */ - boolean hasValue(); - /** - * optional string value = 1; - */ - java.lang.String getValue(); - /** - * optional string value = 1; - */ - com.google.protobuf.ByteString - getValueBytes(); - - // optional .signalservice.DataMessage.Contact.Phone.Type type = 2; - /** - * optional .signalservice.DataMessage.Contact.Phone.Type type = 2; - */ - boolean hasType(); - /** - * optional .signalservice.DataMessage.Contact.Phone.Type type = 2; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type getType(); - - // optional string label = 3; - /** - * optional string label = 3; - */ - boolean hasLabel(); - /** - * optional string label = 3; - */ - java.lang.String getLabel(); - /** - * optional string label = 3; - */ - com.google.protobuf.ByteString - getLabelBytes(); - } - /** - * Protobuf type {@code signalservice.DataMessage.Contact.Phone} - */ - public static final class Phone extends - com.google.protobuf.GeneratedMessage - implements PhoneOrBuilder { - // Use Phone.newBuilder() to construct. - private Phone(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Phone(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Phone defaultInstance; - public static Phone getDefaultInstance() { - return defaultInstance; - } - - public Phone getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Phone( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - value_ = input.readBytes(); - break; - } - case 16: { - int rawValue = input.readEnum(); - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - type_ = value; - } - break; - } - case 26: { - bitField0_ |= 0x00000004; - label_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Phone_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Phone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Phone parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Phone(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - /** - * Protobuf enum {@code signalservice.DataMessage.Contact.Phone.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * HOME = 1; - */ - HOME(0, 1), - /** - * MOBILE = 2; - */ - MOBILE(1, 2), - /** - * WORK = 3; - */ - WORK(2, 3), - /** - * CUSTOM = 4; - */ - CUSTOM(3, 4), - ; - - /** - * HOME = 1; - */ - public static final int HOME_VALUE = 1; - /** - * MOBILE = 2; - */ - public static final int MOBILE_VALUE = 2; - /** - * WORK = 3; - */ - public static final int WORK_VALUE = 3; - /** - * CUSTOM = 4; - */ - public static final int CUSTOM_VALUE = 4; - - - public final int getNumber() { return value; } - - public static Type valueOf(int value) { - switch (value) { - case 1: return HOME; - case 2: return MOBILE; - case 3: return WORK; - case 4: return CUSTOM; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.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 index; - private final int value; - - private Type(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:signalservice.DataMessage.Contact.Phone.Type) - } - - private int bitField0_; - // optional string value = 1; - public static final int VALUE_FIELD_NUMBER = 1; - private java.lang.Object value_; - /** - * optional string value = 1; - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string value = 1; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - 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()) { - value_ = s; - } - return s; - } - } - /** - * optional string value = 1; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional .signalservice.DataMessage.Contact.Phone.Type type = 2; - public static final int TYPE_FIELD_NUMBER = 2; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type type_; - /** - * optional .signalservice.DataMessage.Contact.Phone.Type type = 2; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .signalservice.DataMessage.Contact.Phone.Type type = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type getType() { - return type_; - } - - // optional string label = 3; - public static final int LABEL_FIELD_NUMBER = 3; - private java.lang.Object label_; - /** - * optional string label = 3; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string label = 3; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - 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()) { - label_ = s; - } - return s; - } - } - /** - * optional string label = 3; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - value_ = ""; - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type.HOME; - label_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getValueBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, type_.getNumber()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getLabelBytes()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getValueBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_.getNumber()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getLabelBytes()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone 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.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.DataMessage.Contact.Phone} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Phone_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Phone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - value_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type.HOME; - bitField0_ = (bitField0_ & ~0x00000002); - label_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Phone_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.value_ = value_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.type_ = type_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.label_ = label_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.getDefaultInstance()) return this; - if (other.hasValue()) { - bitField0_ |= 0x00000001; - value_ = other.value_; - onChanged(); - } - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasLabel()) { - bitField0_ |= 0x00000004; - label_ = other.label_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string value = 1; - private java.lang.Object value_ = ""; - /** - * optional string value = 1; - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string value = 1; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string value = 1; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string value = 1; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - value_ = value; - onChanged(); - return this; - } - /** - * optional string value = 1; - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000001); - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * optional string value = 1; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - value_ = value; - onChanged(); - return this; - } - - // optional .signalservice.DataMessage.Contact.Phone.Type type = 2; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type.HOME; - /** - * optional .signalservice.DataMessage.Contact.Phone.Type type = 2; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .signalservice.DataMessage.Contact.Phone.Type type = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type getType() { - return type_; - } - /** - * optional .signalservice.DataMessage.Contact.Phone.Type type = 2; - */ - public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - type_ = value; - onChanged(); - return this; - } - /** - * optional .signalservice.DataMessage.Contact.Phone.Type type = 2; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000002); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type.HOME; - onChanged(); - return this; - } - - // optional string label = 3; - private java.lang.Object label_ = ""; - /** - * optional string label = 3; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string label = 3; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - label_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string label = 3; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string label = 3; - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - label_ = value; - onChanged(); - return this; - } - /** - * optional string label = 3; - */ - public Builder clearLabel() { - bitField0_ = (bitField0_ & ~0x00000004); - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * optional string label = 3; - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - label_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Contact.Phone) - } - - static { - defaultInstance = new Phone(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Contact.Phone) - } - - public interface EmailOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string value = 1; - /** - * optional string value = 1; - */ - boolean hasValue(); - /** - * optional string value = 1; - */ - java.lang.String getValue(); - /** - * optional string value = 1; - */ - com.google.protobuf.ByteString - getValueBytes(); - - // optional .signalservice.DataMessage.Contact.Email.Type type = 2; - /** - * optional .signalservice.DataMessage.Contact.Email.Type type = 2; - */ - boolean hasType(); - /** - * optional .signalservice.DataMessage.Contact.Email.Type type = 2; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type getType(); - - // optional string label = 3; - /** - * optional string label = 3; - */ - boolean hasLabel(); - /** - * optional string label = 3; - */ - java.lang.String getLabel(); - /** - * optional string label = 3; - */ - com.google.protobuf.ByteString - getLabelBytes(); - } - /** - * Protobuf type {@code signalservice.DataMessage.Contact.Email} - */ - public static final class Email extends - com.google.protobuf.GeneratedMessage - implements EmailOrBuilder { - // Use Email.newBuilder() to construct. - private Email(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Email(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Email defaultInstance; - public static Email getDefaultInstance() { - return defaultInstance; - } - - public Email getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Email( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - value_ = input.readBytes(); - break; - } - case 16: { - int rawValue = input.readEnum(); - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - type_ = value; - } - break; - } - case 26: { - bitField0_ |= 0x00000004; - label_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Email_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Email_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Email parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Email(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - /** - * Protobuf enum {@code signalservice.DataMessage.Contact.Email.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * HOME = 1; - */ - HOME(0, 1), - /** - * MOBILE = 2; - */ - MOBILE(1, 2), - /** - * WORK = 3; - */ - WORK(2, 3), - /** - * CUSTOM = 4; - */ - CUSTOM(3, 4), - ; - - /** - * HOME = 1; - */ - public static final int HOME_VALUE = 1; - /** - * MOBILE = 2; - */ - public static final int MOBILE_VALUE = 2; - /** - * WORK = 3; - */ - public static final int WORK_VALUE = 3; - /** - * CUSTOM = 4; - */ - public static final int CUSTOM_VALUE = 4; - - - public final int getNumber() { return value; } - - public static Type valueOf(int value) { - switch (value) { - case 1: return HOME; - case 2: return MOBILE; - case 3: return WORK; - case 4: return CUSTOM; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.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 index; - private final int value; - - private Type(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:signalservice.DataMessage.Contact.Email.Type) - } - - private int bitField0_; - // optional string value = 1; - public static final int VALUE_FIELD_NUMBER = 1; - private java.lang.Object value_; - /** - * optional string value = 1; - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string value = 1; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - 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()) { - value_ = s; - } - return s; - } - } - /** - * optional string value = 1; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional .signalservice.DataMessage.Contact.Email.Type type = 2; - public static final int TYPE_FIELD_NUMBER = 2; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type type_; - /** - * optional .signalservice.DataMessage.Contact.Email.Type type = 2; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .signalservice.DataMessage.Contact.Email.Type type = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type getType() { - return type_; - } - - // optional string label = 3; - public static final int LABEL_FIELD_NUMBER = 3; - private java.lang.Object label_; - /** - * optional string label = 3; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string label = 3; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - 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()) { - label_ = s; - } - return s; - } - } - /** - * optional string label = 3; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - value_ = ""; - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type.HOME; - label_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getValueBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, type_.getNumber()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getLabelBytes()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getValueBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_.getNumber()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getLabelBytes()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email 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.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.DataMessage.Contact.Email} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Email_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Email_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - value_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type.HOME; - bitField0_ = (bitField0_ & ~0x00000002); - label_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Email_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.value_ = value_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.type_ = type_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.label_ = label_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.getDefaultInstance()) return this; - if (other.hasValue()) { - bitField0_ |= 0x00000001; - value_ = other.value_; - onChanged(); - } - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasLabel()) { - bitField0_ |= 0x00000004; - label_ = other.label_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string value = 1; - private java.lang.Object value_ = ""; - /** - * optional string value = 1; - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string value = 1; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string value = 1; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string value = 1; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - value_ = value; - onChanged(); - return this; - } - /** - * optional string value = 1; - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000001); - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * optional string value = 1; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - value_ = value; - onChanged(); - return this; - } - - // optional .signalservice.DataMessage.Contact.Email.Type type = 2; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type.HOME; - /** - * optional .signalservice.DataMessage.Contact.Email.Type type = 2; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .signalservice.DataMessage.Contact.Email.Type type = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type getType() { - return type_; - } - /** - * optional .signalservice.DataMessage.Contact.Email.Type type = 2; - */ - public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - type_ = value; - onChanged(); - return this; - } - /** - * optional .signalservice.DataMessage.Contact.Email.Type type = 2; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000002); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type.HOME; - onChanged(); - return this; - } - - // optional string label = 3; - private java.lang.Object label_ = ""; - /** - * optional string label = 3; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string label = 3; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - label_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string label = 3; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string label = 3; - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - label_ = value; - onChanged(); - return this; - } - /** - * optional string label = 3; - */ - public Builder clearLabel() { - bitField0_ = (bitField0_ & ~0x00000004); - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * optional string label = 3; - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - label_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Contact.Email) - } - - static { - defaultInstance = new Email(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Contact.Email) - } - - public interface PostalAddressOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; - /** - * optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; - */ - boolean hasType(); - /** - * optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type getType(); - - // optional string label = 2; - /** - * optional string label = 2; - */ - boolean hasLabel(); - /** - * optional string label = 2; - */ - java.lang.String getLabel(); - /** - * optional string label = 2; - */ - com.google.protobuf.ByteString - getLabelBytes(); - - // optional string street = 3; - /** - * optional string street = 3; - */ - boolean hasStreet(); - /** - * optional string street = 3; - */ - java.lang.String getStreet(); - /** - * optional string street = 3; - */ - com.google.protobuf.ByteString - getStreetBytes(); - - // optional string pobox = 4; - /** - * optional string pobox = 4; - */ - boolean hasPobox(); - /** - * optional string pobox = 4; - */ - java.lang.String getPobox(); - /** - * optional string pobox = 4; - */ - com.google.protobuf.ByteString - getPoboxBytes(); - - // optional string neighborhood = 5; - /** - * optional string neighborhood = 5; - */ - boolean hasNeighborhood(); - /** - * optional string neighborhood = 5; - */ - java.lang.String getNeighborhood(); - /** - * optional string neighborhood = 5; - */ - com.google.protobuf.ByteString - getNeighborhoodBytes(); - - // optional string city = 6; - /** - * optional string city = 6; - */ - boolean hasCity(); - /** - * optional string city = 6; - */ - java.lang.String getCity(); - /** - * optional string city = 6; - */ - com.google.protobuf.ByteString - getCityBytes(); - - // optional string region = 7; - /** - * optional string region = 7; - */ - boolean hasRegion(); - /** - * optional string region = 7; - */ - java.lang.String getRegion(); - /** - * optional string region = 7; - */ - com.google.protobuf.ByteString - getRegionBytes(); - - // optional string postcode = 8; - /** - * optional string postcode = 8; - */ - boolean hasPostcode(); - /** - * optional string postcode = 8; - */ - java.lang.String getPostcode(); - /** - * optional string postcode = 8; - */ - com.google.protobuf.ByteString - getPostcodeBytes(); - - // optional string country = 9; - /** - * optional string country = 9; - */ - boolean hasCountry(); - /** - * optional string country = 9; - */ - java.lang.String getCountry(); - /** - * optional string country = 9; - */ - com.google.protobuf.ByteString - getCountryBytes(); - } - /** - * Protobuf type {@code signalservice.DataMessage.Contact.PostalAddress} - */ - public static final class PostalAddress extends - com.google.protobuf.GeneratedMessage - implements PostalAddressOrBuilder { - // Use PostalAddress.newBuilder() to construct. - private PostalAddress(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private PostalAddress(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final PostalAddress defaultInstance; - public static PostalAddress getDefaultInstance() { - return defaultInstance; - } - - public PostalAddress getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PostalAddress( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - type_ = value; - } - break; - } - case 18: { - bitField0_ |= 0x00000002; - label_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - street_ = input.readBytes(); - break; - } - case 34: { - bitField0_ |= 0x00000008; - pobox_ = input.readBytes(); - break; - } - case 42: { - bitField0_ |= 0x00000010; - neighborhood_ = input.readBytes(); - break; - } - case 50: { - bitField0_ |= 0x00000020; - city_ = input.readBytes(); - break; - } - case 58: { - bitField0_ |= 0x00000040; - region_ = input.readBytes(); - break; - } - case 66: { - bitField0_ |= 0x00000080; - postcode_ = input.readBytes(); - break; - } - case 74: { - bitField0_ |= 0x00000100; - country_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_PostalAddress_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_PostalAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PostalAddress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PostalAddress(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - /** - * Protobuf enum {@code signalservice.DataMessage.Contact.PostalAddress.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * HOME = 1; - */ - HOME(0, 1), - /** - * WORK = 2; - */ - WORK(1, 2), - /** - * CUSTOM = 3; - */ - CUSTOM(2, 3), - ; - - /** - * HOME = 1; - */ - public static final int HOME_VALUE = 1; - /** - * WORK = 2; - */ - public static final int WORK_VALUE = 2; - /** - * CUSTOM = 3; - */ - public static final int CUSTOM_VALUE = 3; - - - public final int getNumber() { return value; } - - public static Type valueOf(int value) { - switch (value) { - case 1: return HOME; - case 2: return WORK; - case 3: return CUSTOM; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.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 index; - private final int value; - - private Type(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:signalservice.DataMessage.Contact.PostalAddress.Type) - } - - private int bitField0_; - // optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; - public static final int TYPE_FIELD_NUMBER = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type type_; - /** - * optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type getType() { - return type_; - } - - // optional string label = 2; - public static final int LABEL_FIELD_NUMBER = 2; - private java.lang.Object label_; - /** - * optional string label = 2; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string label = 2; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - 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()) { - label_ = s; - } - return s; - } - } - /** - * optional string label = 2; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string street = 3; - public static final int STREET_FIELD_NUMBER = 3; - private java.lang.Object street_; - /** - * optional string street = 3; - */ - public boolean hasStreet() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string street = 3; - */ - public java.lang.String getStreet() { - java.lang.Object ref = street_; - 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()) { - street_ = s; - } - return s; - } - } - /** - * optional string street = 3; - */ - public com.google.protobuf.ByteString - getStreetBytes() { - java.lang.Object ref = street_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - street_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string pobox = 4; - public static final int POBOX_FIELD_NUMBER = 4; - private java.lang.Object pobox_; - /** - * optional string pobox = 4; - */ - public boolean hasPobox() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string pobox = 4; - */ - public java.lang.String getPobox() { - java.lang.Object ref = pobox_; - 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()) { - pobox_ = s; - } - return s; - } - } - /** - * optional string pobox = 4; - */ - public com.google.protobuf.ByteString - getPoboxBytes() { - java.lang.Object ref = pobox_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pobox_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string neighborhood = 5; - public static final int NEIGHBORHOOD_FIELD_NUMBER = 5; - private java.lang.Object neighborhood_; - /** - * optional string neighborhood = 5; - */ - public boolean hasNeighborhood() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string neighborhood = 5; - */ - public java.lang.String getNeighborhood() { - java.lang.Object ref = neighborhood_; - 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()) { - neighborhood_ = s; - } - return s; - } - } - /** - * optional string neighborhood = 5; - */ - public com.google.protobuf.ByteString - getNeighborhoodBytes() { - java.lang.Object ref = neighborhood_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - neighborhood_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string city = 6; - public static final int CITY_FIELD_NUMBER = 6; - private java.lang.Object city_; - /** - * optional string city = 6; - */ - public boolean hasCity() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string city = 6; - */ - public java.lang.String getCity() { - java.lang.Object ref = city_; - 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()) { - city_ = s; - } - return s; - } - } - /** - * optional string city = 6; - */ - public com.google.protobuf.ByteString - getCityBytes() { - java.lang.Object ref = city_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - city_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string region = 7; - public static final int REGION_FIELD_NUMBER = 7; - private java.lang.Object region_; - /** - * optional string region = 7; - */ - public boolean hasRegion() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string region = 7; - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - 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()) { - region_ = s; - } - return s; - } - } - /** - * optional string region = 7; - */ - public com.google.protobuf.ByteString - getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string postcode = 8; - public static final int POSTCODE_FIELD_NUMBER = 8; - private java.lang.Object postcode_; - /** - * optional string postcode = 8; - */ - public boolean hasPostcode() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional string postcode = 8; - */ - public java.lang.String getPostcode() { - java.lang.Object ref = postcode_; - 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()) { - postcode_ = s; - } - return s; - } - } - /** - * optional string postcode = 8; - */ - public com.google.protobuf.ByteString - getPostcodeBytes() { - java.lang.Object ref = postcode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - postcode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string country = 9; - public static final int COUNTRY_FIELD_NUMBER = 9; - private java.lang.Object country_; - /** - * optional string country = 9; - */ - public boolean hasCountry() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional string country = 9; - */ - public java.lang.String getCountry() { - java.lang.Object ref = country_; - 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()) { - country_ = s; - } - return s; - } - } - /** - * optional string country = 9; - */ - public com.google.protobuf.ByteString - getCountryBytes() { - java.lang.Object ref = country_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - country_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type.HOME; - label_ = ""; - street_ = ""; - pobox_ = ""; - neighborhood_ = ""; - city_ = ""; - region_ = ""; - postcode_ = ""; - country_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, type_.getNumber()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getLabelBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getStreetBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getPoboxBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getNeighborhoodBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getCityBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getRegionBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(8, getPostcodeBytes()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(9, getCountryBytes()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_.getNumber()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getLabelBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getStreetBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getPoboxBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getNeighborhoodBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getCityBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getRegionBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getPostcodeBytes()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getCountryBytes()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress 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.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.DataMessage.Contact.PostalAddress} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_PostalAddress_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_PostalAddress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type.HOME; - bitField0_ = (bitField0_ & ~0x00000001); - label_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - street_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - pobox_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - neighborhood_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - city_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - region_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); - postcode_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); - country_ = ""; - bitField0_ = (bitField0_ & ~0x00000100); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_PostalAddress_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.type_ = type_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.label_ = label_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.street_ = street_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.pobox_ = pobox_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.neighborhood_ = neighborhood_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.city_ = city_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.region_ = region_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.postcode_ = postcode_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.country_ = country_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.getDefaultInstance()) return this; - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasLabel()) { - bitField0_ |= 0x00000002; - label_ = other.label_; - onChanged(); - } - if (other.hasStreet()) { - bitField0_ |= 0x00000004; - street_ = other.street_; - onChanged(); - } - if (other.hasPobox()) { - bitField0_ |= 0x00000008; - pobox_ = other.pobox_; - onChanged(); - } - if (other.hasNeighborhood()) { - bitField0_ |= 0x00000010; - neighborhood_ = other.neighborhood_; - onChanged(); - } - if (other.hasCity()) { - bitField0_ |= 0x00000020; - city_ = other.city_; - onChanged(); - } - if (other.hasRegion()) { - bitField0_ |= 0x00000040; - region_ = other.region_; - onChanged(); - } - if (other.hasPostcode()) { - bitField0_ |= 0x00000080; - postcode_ = other.postcode_; - onChanged(); - } - if (other.hasCountry()) { - bitField0_ |= 0x00000100; - country_ = other.country_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type.HOME; - /** - * optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type getType() { - return type_; - } - /** - * optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; - */ - public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - type_ = value; - onChanged(); - return this; - } - /** - * optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type.HOME; - onChanged(); - return this; - } - - // optional string label = 2; - private java.lang.Object label_ = ""; - /** - * optional string label = 2; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string label = 2; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - label_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string label = 2; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string label = 2; - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - label_ = value; - onChanged(); - return this; - } - /** - * optional string label = 2; - */ - public Builder clearLabel() { - bitField0_ = (bitField0_ & ~0x00000002); - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * optional string label = 2; - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - label_ = value; - onChanged(); - return this; - } - - // optional string street = 3; - private java.lang.Object street_ = ""; - /** - * optional string street = 3; - */ - public boolean hasStreet() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string street = 3; - */ - public java.lang.String getStreet() { - java.lang.Object ref = street_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - street_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string street = 3; - */ - public com.google.protobuf.ByteString - getStreetBytes() { - java.lang.Object ref = street_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - street_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string street = 3; - */ - public Builder setStreet( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - street_ = value; - onChanged(); - return this; - } - /** - * optional string street = 3; - */ - public Builder clearStreet() { - bitField0_ = (bitField0_ & ~0x00000004); - street_ = getDefaultInstance().getStreet(); - onChanged(); - return this; - } - /** - * optional string street = 3; - */ - public Builder setStreetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - street_ = value; - onChanged(); - return this; - } - - // optional string pobox = 4; - private java.lang.Object pobox_ = ""; - /** - * optional string pobox = 4; - */ - public boolean hasPobox() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string pobox = 4; - */ - public java.lang.String getPobox() { - java.lang.Object ref = pobox_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - pobox_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string pobox = 4; - */ - public com.google.protobuf.ByteString - getPoboxBytes() { - java.lang.Object ref = pobox_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pobox_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string pobox = 4; - */ - public Builder setPobox( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - pobox_ = value; - onChanged(); - return this; - } - /** - * optional string pobox = 4; - */ - public Builder clearPobox() { - bitField0_ = (bitField0_ & ~0x00000008); - pobox_ = getDefaultInstance().getPobox(); - onChanged(); - return this; - } - /** - * optional string pobox = 4; - */ - public Builder setPoboxBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - pobox_ = value; - onChanged(); - return this; - } - - // optional string neighborhood = 5; - private java.lang.Object neighborhood_ = ""; - /** - * optional string neighborhood = 5; - */ - public boolean hasNeighborhood() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string neighborhood = 5; - */ - public java.lang.String getNeighborhood() { - java.lang.Object ref = neighborhood_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - neighborhood_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string neighborhood = 5; - */ - public com.google.protobuf.ByteString - getNeighborhoodBytes() { - java.lang.Object ref = neighborhood_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - neighborhood_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string neighborhood = 5; - */ - public Builder setNeighborhood( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - neighborhood_ = value; - onChanged(); - return this; - } - /** - * optional string neighborhood = 5; - */ - public Builder clearNeighborhood() { - bitField0_ = (bitField0_ & ~0x00000010); - neighborhood_ = getDefaultInstance().getNeighborhood(); - onChanged(); - return this; - } - /** - * optional string neighborhood = 5; - */ - public Builder setNeighborhoodBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - neighborhood_ = value; - onChanged(); - return this; - } - - // optional string city = 6; - private java.lang.Object city_ = ""; - /** - * optional string city = 6; - */ - public boolean hasCity() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string city = 6; - */ - public java.lang.String getCity() { - java.lang.Object ref = city_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - city_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string city = 6; - */ - public com.google.protobuf.ByteString - getCityBytes() { - java.lang.Object ref = city_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - city_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string city = 6; - */ - public Builder setCity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - city_ = value; - onChanged(); - return this; - } - /** - * optional string city = 6; - */ - public Builder clearCity() { - bitField0_ = (bitField0_ & ~0x00000020); - city_ = getDefaultInstance().getCity(); - onChanged(); - return this; - } - /** - * optional string city = 6; - */ - public Builder setCityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - city_ = value; - onChanged(); - return this; - } - - // optional string region = 7; - private java.lang.Object region_ = ""; - /** - * optional string region = 7; - */ - public boolean hasRegion() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string region = 7; - */ - public java.lang.String getRegion() { - java.lang.Object ref = region_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - region_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string region = 7; - */ - public com.google.protobuf.ByteString - getRegionBytes() { - java.lang.Object ref = region_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - region_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string region = 7; - */ - public Builder setRegion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - region_ = value; - onChanged(); - return this; - } - /** - * optional string region = 7; - */ - public Builder clearRegion() { - bitField0_ = (bitField0_ & ~0x00000040); - region_ = getDefaultInstance().getRegion(); - onChanged(); - return this; - } - /** - * optional string region = 7; - */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - region_ = value; - onChanged(); - return this; - } - - // optional string postcode = 8; - private java.lang.Object postcode_ = ""; - /** - * optional string postcode = 8; - */ - public boolean hasPostcode() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional string postcode = 8; - */ - public java.lang.String getPostcode() { - java.lang.Object ref = postcode_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - postcode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string postcode = 8; - */ - public com.google.protobuf.ByteString - getPostcodeBytes() { - java.lang.Object ref = postcode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - postcode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string postcode = 8; - */ - public Builder setPostcode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - postcode_ = value; - onChanged(); - return this; - } - /** - * optional string postcode = 8; - */ - public Builder clearPostcode() { - bitField0_ = (bitField0_ & ~0x00000080); - postcode_ = getDefaultInstance().getPostcode(); - onChanged(); - return this; - } - /** - * optional string postcode = 8; - */ - public Builder setPostcodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - postcode_ = value; - onChanged(); - return this; - } - - // optional string country = 9; - private java.lang.Object country_ = ""; - /** - * optional string country = 9; - */ - public boolean hasCountry() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional string country = 9; - */ - public java.lang.String getCountry() { - java.lang.Object ref = country_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - country_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string country = 9; - */ - public com.google.protobuf.ByteString - getCountryBytes() { - java.lang.Object ref = country_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - country_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string country = 9; - */ - public Builder setCountry( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - country_ = value; - onChanged(); - return this; - } - /** - * optional string country = 9; - */ - public Builder clearCountry() { - bitField0_ = (bitField0_ & ~0x00000100); - country_ = getDefaultInstance().getCountry(); - onChanged(); - return this; - } - /** - * optional string country = 9; - */ - public Builder setCountryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - country_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Contact.PostalAddress) - } - - static { - defaultInstance = new PostalAddress(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Contact.PostalAddress) - } - - public interface AvatarOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .signalservice.AttachmentPointer avatar = 1; - /** - * optional .signalservice.AttachmentPointer avatar = 1; - */ - boolean hasAvatar(); - /** - * optional .signalservice.AttachmentPointer avatar = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getAvatar(); - /** - * optional .signalservice.AttachmentPointer avatar = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAvatarOrBuilder(); - - // optional bool isProfile = 2; - /** - * optional bool isProfile = 2; - */ - boolean hasIsProfile(); - /** - * optional bool isProfile = 2; - */ - boolean getIsProfile(); - } - /** - * Protobuf type {@code signalservice.DataMessage.Contact.Avatar} - */ - public static final class Avatar extends - com.google.protobuf.GeneratedMessage - implements AvatarOrBuilder { - // Use Avatar.newBuilder() to construct. - private Avatar(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Avatar(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Avatar defaultInstance; - public static Avatar getDefaultInstance() { - return defaultInstance; - } - - public Avatar getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Avatar( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = avatar_.toBuilder(); - } - avatar_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatar_); - avatar_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 16: { - bitField0_ |= 0x00000002; - isProfile_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Avatar_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Avatar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Avatar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Avatar(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional .signalservice.AttachmentPointer avatar = 1; - public static final int AVATAR_FIELD_NUMBER = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer avatar_; - /** - * optional .signalservice.AttachmentPointer avatar = 1; - */ - public boolean hasAvatar() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.AttachmentPointer avatar = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getAvatar() { - return avatar_; - } - /** - * optional .signalservice.AttachmentPointer avatar = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAvatarOrBuilder() { - return avatar_; - } - - // optional bool isProfile = 2; - public static final int ISPROFILE_FIELD_NUMBER = 2; - private boolean isProfile_; - /** - * optional bool isProfile = 2; - */ - public boolean hasIsProfile() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bool isProfile = 2; - */ - public boolean getIsProfile() { - return isProfile_; - } - - private void initFields() { - avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - isProfile_ = false; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, avatar_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBool(2, isProfile_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, avatar_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isProfile_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar 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.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.DataMessage.Contact.Avatar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.AvatarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Avatar_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Avatar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getAvatarFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (avatarBuilder_ == null) { - avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - } else { - avatarBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - isProfile_ = false; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Avatar_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (avatarBuilder_ == null) { - result.avatar_ = avatar_; - } else { - result.avatar_ = avatarBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.isProfile_ = isProfile_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.getDefaultInstance()) return this; - if (other.hasAvatar()) { - mergeAvatar(other.getAvatar()); - } - if (other.hasIsProfile()) { - setIsProfile(other.getIsProfile()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional .signalservice.AttachmentPointer avatar = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> avatarBuilder_; - /** - * optional .signalservice.AttachmentPointer avatar = 1; - */ - public boolean hasAvatar() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.AttachmentPointer avatar = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getAvatar() { - if (avatarBuilder_ == null) { - return avatar_; - } else { - return avatarBuilder_.getMessage(); - } - } - /** - * optional .signalservice.AttachmentPointer avatar = 1; - */ - public Builder setAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { - if (avatarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatar_ = value; - onChanged(); - } else { - avatarBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.AttachmentPointer avatar = 1; - */ - public Builder setAvatar( - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder builderForValue) { - if (avatarBuilder_ == null) { - avatar_ = builderForValue.build(); - onChanged(); - } else { - avatarBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.AttachmentPointer avatar = 1; - */ - public Builder mergeAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { - if (avatarBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - avatar_ != org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) { - avatar_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.newBuilder(avatar_).mergeFrom(value).buildPartial(); - } else { - avatar_ = value; - } - onChanged(); - } else { - avatarBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.AttachmentPointer avatar = 1; - */ - public Builder clearAvatar() { - if (avatarBuilder_ == null) { - avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - onChanged(); - } else { - avatarBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .signalservice.AttachmentPointer avatar = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder getAvatarBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getAvatarFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.AttachmentPointer avatar = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAvatarOrBuilder() { - if (avatarBuilder_ != null) { - return avatarBuilder_.getMessageOrBuilder(); - } else { - return avatar_; - } - } - /** - * optional .signalservice.AttachmentPointer avatar = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> - getAvatarFieldBuilder() { - if (avatarBuilder_ == null) { - avatarBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>( - avatar_, - getParentForChildren(), - isClean()); - avatar_ = null; - } - return avatarBuilder_; - } - - // optional bool isProfile = 2; - private boolean isProfile_ ; - /** - * optional bool isProfile = 2; - */ - public boolean hasIsProfile() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bool isProfile = 2; - */ - public boolean getIsProfile() { - return isProfile_; - } - /** - * optional bool isProfile = 2; - */ - public Builder setIsProfile(boolean value) { - bitField0_ |= 0x00000002; - isProfile_ = value; - onChanged(); - return this; - } - /** - * optional bool isProfile = 2; - */ - public Builder clearIsProfile() { - bitField0_ = (bitField0_ & ~0x00000002); - isProfile_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Contact.Avatar) - } - - static { - defaultInstance = new Avatar(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Contact.Avatar) - } - - private int bitField0_; - // optional .signalservice.DataMessage.Contact.Name name = 1; - public static final int NAME_FIELD_NUMBER = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name name_; - /** - * optional .signalservice.DataMessage.Contact.Name name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.DataMessage.Contact.Name name = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name getName() { - return name_; - } - /** - * optional .signalservice.DataMessage.Contact.Name name = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.NameOrBuilder getNameOrBuilder() { - return name_; - } - - // repeated .signalservice.DataMessage.Contact.Phone number = 3; - public static final int NUMBER_FIELD_NUMBER = 3; - private java.util.List number_; - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public java.util.List getNumberList() { - return number_; - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public java.util.List - getNumberOrBuilderList() { - return number_; - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public int getNumberCount() { - return number_.size(); - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone getNumber(int index) { - return number_.get(index); - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder getNumberOrBuilder( - int index) { - return number_.get(index); - } - - // repeated .signalservice.DataMessage.Contact.Email email = 4; - public static final int EMAIL_FIELD_NUMBER = 4; - private java.util.List email_; - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public java.util.List getEmailList() { - return email_; - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public java.util.List - getEmailOrBuilderList() { - return email_; - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public int getEmailCount() { - return email_.size(); - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email getEmail(int index) { - return email_.get(index); - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder getEmailOrBuilder( - int index) { - return email_.get(index); - } - - // repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - public static final int ADDRESS_FIELD_NUMBER = 5; - private java.util.List address_; - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public java.util.List getAddressList() { - return address_; - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public java.util.List - getAddressOrBuilderList() { - return address_; - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public int getAddressCount() { - return address_.size(); - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress getAddress(int index) { - return address_.get(index); - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder getAddressOrBuilder( - int index) { - return address_.get(index); - } - - // optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - public static final int AVATAR_FIELD_NUMBER = 6; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar avatar_; - /** - * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - */ - public boolean hasAvatar() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar getAvatar() { - return avatar_; - } - /** - * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.AvatarOrBuilder getAvatarOrBuilder() { - return avatar_; - } - - // optional string organization = 7; - public static final int ORGANIZATION_FIELD_NUMBER = 7; - private java.lang.Object organization_; - /** - * optional string organization = 7; - */ - public boolean hasOrganization() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string organization = 7; - */ - public java.lang.String getOrganization() { - java.lang.Object ref = organization_; - 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()) { - organization_ = s; - } - return s; - } - } - /** - * optional string organization = 7; - */ - public com.google.protobuf.ByteString - getOrganizationBytes() { - java.lang.Object ref = organization_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - organization_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - name_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance(); - number_ = java.util.Collections.emptyList(); - email_ = java.util.Collections.emptyList(); - address_ = java.util.Collections.emptyList(); - avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.getDefaultInstance(); - organization_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, name_); - } - for (int i = 0; i < number_.size(); i++) { - output.writeMessage(3, number_.get(i)); - } - for (int i = 0; i < email_.size(); i++) { - output.writeMessage(4, email_.get(i)); - } - for (int i = 0; i < address_.size(); i++) { - output.writeMessage(5, address_.get(i)); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(6, avatar_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(7, getOrganizationBytes()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, name_); - } - for (int i = 0; i < number_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, number_.get(i)); - } - for (int i = 0; i < email_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, email_.get(i)); - } - for (int i = 0; i < address_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, address_.get(i)); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, avatar_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getOrganizationBytes()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact 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.service.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.DataMessage.Contact} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getNameFieldBuilder(); - getNumberFieldBuilder(); - getEmailFieldBuilder(); - getAddressFieldBuilder(); - getAvatarFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (nameBuilder_ == null) { - name_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance(); - } else { - nameBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (numberBuilder_ == null) { - number_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - numberBuilder_.clear(); - } - if (emailBuilder_ == null) { - email_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - emailBuilder_.clear(); - } - if (addressBuilder_ == null) { - address_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - addressBuilder_.clear(); - } - if (avatarBuilder_ == null) { - avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.getDefaultInstance(); - } else { - avatarBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - organization_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (nameBuilder_ == null) { - result.name_ = name_; - } else { - result.name_ = nameBuilder_.build(); - } - if (numberBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - number_ = java.util.Collections.unmodifiableList(number_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.number_ = number_; - } else { - result.number_ = numberBuilder_.build(); - } - if (emailBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { - email_ = java.util.Collections.unmodifiableList(email_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.email_ = email_; - } else { - result.email_ = emailBuilder_.build(); - } - if (addressBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008)) { - address_ = java.util.Collections.unmodifiableList(address_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.address_ = address_; - } else { - result.address_ = addressBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000002; - } - if (avatarBuilder_ == null) { - result.avatar_ = avatar_; - } else { - result.avatar_ = avatarBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000004; - } - result.organization_ = organization_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.getDefaultInstance()) return this; - if (other.hasName()) { - mergeName(other.getName()); - } - if (numberBuilder_ == null) { - if (!other.number_.isEmpty()) { - if (number_.isEmpty()) { - number_ = other.number_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureNumberIsMutable(); - number_.addAll(other.number_); - } - onChanged(); - } - } else { - if (!other.number_.isEmpty()) { - if (numberBuilder_.isEmpty()) { - numberBuilder_.dispose(); - numberBuilder_ = null; - number_ = other.number_; - bitField0_ = (bitField0_ & ~0x00000002); - numberBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getNumberFieldBuilder() : null; - } else { - numberBuilder_.addAllMessages(other.number_); - } - } - } - if (emailBuilder_ == null) { - if (!other.email_.isEmpty()) { - if (email_.isEmpty()) { - email_ = other.email_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureEmailIsMutable(); - email_.addAll(other.email_); - } - onChanged(); - } - } else { - if (!other.email_.isEmpty()) { - if (emailBuilder_.isEmpty()) { - emailBuilder_.dispose(); - emailBuilder_ = null; - email_ = other.email_; - bitField0_ = (bitField0_ & ~0x00000004); - emailBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getEmailFieldBuilder() : null; - } else { - emailBuilder_.addAllMessages(other.email_); - } - } - } - if (addressBuilder_ == null) { - if (!other.address_.isEmpty()) { - if (address_.isEmpty()) { - address_ = other.address_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureAddressIsMutable(); - address_.addAll(other.address_); - } - onChanged(); - } - } else { - if (!other.address_.isEmpty()) { - if (addressBuilder_.isEmpty()) { - addressBuilder_.dispose(); - addressBuilder_ = null; - address_ = other.address_; - bitField0_ = (bitField0_ & ~0x00000008); - addressBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getAddressFieldBuilder() : null; - } else { - addressBuilder_.addAllMessages(other.address_); - } - } - } - if (other.hasAvatar()) { - mergeAvatar(other.getAvatar()); - } - if (other.hasOrganization()) { - bitField0_ |= 0x00000020; - organization_ = other.organization_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional .signalservice.DataMessage.Contact.Name name = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name name_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.NameOrBuilder> nameBuilder_; - /** - * optional .signalservice.DataMessage.Contact.Name name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.DataMessage.Contact.Name name = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name getName() { - if (nameBuilder_ == null) { - return name_; - } else { - return nameBuilder_.getMessage(); - } - } - /** - * optional .signalservice.DataMessage.Contact.Name name = 1; - */ - public Builder setName(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name value) { - if (nameBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - onChanged(); - } else { - nameBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.DataMessage.Contact.Name name = 1; - */ - public Builder setName( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder builderForValue) { - if (nameBuilder_ == null) { - name_ = builderForValue.build(); - onChanged(); - } else { - nameBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.DataMessage.Contact.Name name = 1; - */ - public Builder mergeName(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name value) { - if (nameBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - name_ != org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance()) { - name_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.newBuilder(name_).mergeFrom(value).buildPartial(); - } else { - name_ = value; - } - onChanged(); - } else { - nameBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.DataMessage.Contact.Name name = 1; - */ - public Builder clearName() { - if (nameBuilder_ == null) { - name_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance(); - onChanged(); - } else { - nameBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .signalservice.DataMessage.Contact.Name name = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder getNameBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getNameFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.DataMessage.Contact.Name name = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.NameOrBuilder getNameOrBuilder() { - if (nameBuilder_ != null) { - return nameBuilder_.getMessageOrBuilder(); - } else { - return name_; - } - } - /** - * optional .signalservice.DataMessage.Contact.Name name = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.NameOrBuilder> - getNameFieldBuilder() { - if (nameBuilder_ == null) { - nameBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.NameOrBuilder>( - name_, - getParentForChildren(), - isClean()); - name_ = null; - } - return nameBuilder_; - } - - // repeated .signalservice.DataMessage.Contact.Phone number = 3; - private java.util.List number_ = - java.util.Collections.emptyList(); - private void ensureNumberIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - number_ = new java.util.ArrayList(number_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder> numberBuilder_; - - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public java.util.List getNumberList() { - if (numberBuilder_ == null) { - return java.util.Collections.unmodifiableList(number_); - } else { - return numberBuilder_.getMessageList(); - } - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public int getNumberCount() { - if (numberBuilder_ == null) { - return number_.size(); - } else { - return numberBuilder_.getCount(); - } - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone getNumber(int index) { - if (numberBuilder_ == null) { - return number_.get(index); - } else { - return numberBuilder_.getMessage(index); - } - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public Builder setNumber( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone value) { - if (numberBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNumberIsMutable(); - number_.set(index, value); - onChanged(); - } else { - numberBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public Builder setNumber( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder builderForValue) { - if (numberBuilder_ == null) { - ensureNumberIsMutable(); - number_.set(index, builderForValue.build()); - onChanged(); - } else { - numberBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public Builder addNumber(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone value) { - if (numberBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNumberIsMutable(); - number_.add(value); - onChanged(); - } else { - numberBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public Builder addNumber( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone value) { - if (numberBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNumberIsMutable(); - number_.add(index, value); - onChanged(); - } else { - numberBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public Builder addNumber( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder builderForValue) { - if (numberBuilder_ == null) { - ensureNumberIsMutable(); - number_.add(builderForValue.build()); - onChanged(); - } else { - numberBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public Builder addNumber( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder builderForValue) { - if (numberBuilder_ == null) { - ensureNumberIsMutable(); - number_.add(index, builderForValue.build()); - onChanged(); - } else { - numberBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public Builder addAllNumber( - java.lang.Iterable values) { - if (numberBuilder_ == null) { - ensureNumberIsMutable(); - super.addAll(values, number_); - onChanged(); - } else { - numberBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public Builder clearNumber() { - if (numberBuilder_ == null) { - number_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - numberBuilder_.clear(); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public Builder removeNumber(int index) { - if (numberBuilder_ == null) { - ensureNumberIsMutable(); - number_.remove(index); - onChanged(); - } else { - numberBuilder_.remove(index); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder getNumberBuilder( - int index) { - return getNumberFieldBuilder().getBuilder(index); - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder getNumberOrBuilder( - int index) { - if (numberBuilder_ == null) { - return number_.get(index); } else { - return numberBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public java.util.List - getNumberOrBuilderList() { - if (numberBuilder_ != null) { - return numberBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(number_); - } - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder addNumberBuilder() { - return getNumberFieldBuilder().addBuilder( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.getDefaultInstance()); - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder addNumberBuilder( - int index) { - return getNumberFieldBuilder().addBuilder( - index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.getDefaultInstance()); - } - /** - * repeated .signalservice.DataMessage.Contact.Phone number = 3; - */ - public java.util.List - getNumberBuilderList() { - return getNumberFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder> - getNumberFieldBuilder() { - if (numberBuilder_ == null) { - numberBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder>( - number_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - number_ = null; - } - return numberBuilder_; - } - - // repeated .signalservice.DataMessage.Contact.Email email = 4; - private java.util.List email_ = - java.util.Collections.emptyList(); - private void ensureEmailIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - email_ = new java.util.ArrayList(email_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder> emailBuilder_; - - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public java.util.List getEmailList() { - if (emailBuilder_ == null) { - return java.util.Collections.unmodifiableList(email_); - } else { - return emailBuilder_.getMessageList(); - } - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public int getEmailCount() { - if (emailBuilder_ == null) { - return email_.size(); - } else { - return emailBuilder_.getCount(); - } - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email getEmail(int index) { - if (emailBuilder_ == null) { - return email_.get(index); - } else { - return emailBuilder_.getMessage(index); - } - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public Builder setEmail( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email value) { - if (emailBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmailIsMutable(); - email_.set(index, value); - onChanged(); - } else { - emailBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public Builder setEmail( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder builderForValue) { - if (emailBuilder_ == null) { - ensureEmailIsMutable(); - email_.set(index, builderForValue.build()); - onChanged(); - } else { - emailBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public Builder addEmail(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email value) { - if (emailBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmailIsMutable(); - email_.add(value); - onChanged(); - } else { - emailBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public Builder addEmail( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email value) { - if (emailBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmailIsMutable(); - email_.add(index, value); - onChanged(); - } else { - emailBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public Builder addEmail( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder builderForValue) { - if (emailBuilder_ == null) { - ensureEmailIsMutable(); - email_.add(builderForValue.build()); - onChanged(); - } else { - emailBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public Builder addEmail( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder builderForValue) { - if (emailBuilder_ == null) { - ensureEmailIsMutable(); - email_.add(index, builderForValue.build()); - onChanged(); - } else { - emailBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public Builder addAllEmail( - java.lang.Iterable values) { - if (emailBuilder_ == null) { - ensureEmailIsMutable(); - super.addAll(values, email_); - onChanged(); - } else { - emailBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public Builder clearEmail() { - if (emailBuilder_ == null) { - email_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - emailBuilder_.clear(); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public Builder removeEmail(int index) { - if (emailBuilder_ == null) { - ensureEmailIsMutable(); - email_.remove(index); - onChanged(); - } else { - emailBuilder_.remove(index); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder getEmailBuilder( - int index) { - return getEmailFieldBuilder().getBuilder(index); - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder getEmailOrBuilder( - int index) { - if (emailBuilder_ == null) { - return email_.get(index); } else { - return emailBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public java.util.List - getEmailOrBuilderList() { - if (emailBuilder_ != null) { - return emailBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(email_); - } - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder addEmailBuilder() { - return getEmailFieldBuilder().addBuilder( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.getDefaultInstance()); - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder addEmailBuilder( - int index) { - return getEmailFieldBuilder().addBuilder( - index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.getDefaultInstance()); - } - /** - * repeated .signalservice.DataMessage.Contact.Email email = 4; - */ - public java.util.List - getEmailBuilderList() { - return getEmailFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder> - getEmailFieldBuilder() { - if (emailBuilder_ == null) { - emailBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder>( - email_, - ((bitField0_ & 0x00000004) == 0x00000004), - getParentForChildren(), - isClean()); - email_ = null; - } - return emailBuilder_; - } - - // repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - private java.util.List address_ = - java.util.Collections.emptyList(); - private void ensureAddressIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - address_ = new java.util.ArrayList(address_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder> addressBuilder_; - - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public java.util.List getAddressList() { - if (addressBuilder_ == null) { - return java.util.Collections.unmodifiableList(address_); - } else { - return addressBuilder_.getMessageList(); - } - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public int getAddressCount() { - if (addressBuilder_ == null) { - return address_.size(); - } else { - return addressBuilder_.getCount(); - } - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress getAddress(int index) { - if (addressBuilder_ == null) { - return address_.get(index); - } else { - return addressBuilder_.getMessage(index); - } - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public Builder setAddress( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress value) { - if (addressBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressIsMutable(); - address_.set(index, value); - onChanged(); - } else { - addressBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public Builder setAddress( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder builderForValue) { - if (addressBuilder_ == null) { - ensureAddressIsMutable(); - address_.set(index, builderForValue.build()); - onChanged(); - } else { - addressBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public Builder addAddress(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress value) { - if (addressBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressIsMutable(); - address_.add(value); - onChanged(); - } else { - addressBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public Builder addAddress( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress value) { - if (addressBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressIsMutable(); - address_.add(index, value); - onChanged(); - } else { - addressBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public Builder addAddress( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder builderForValue) { - if (addressBuilder_ == null) { - ensureAddressIsMutable(); - address_.add(builderForValue.build()); - onChanged(); - } else { - addressBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public Builder addAddress( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder builderForValue) { - if (addressBuilder_ == null) { - ensureAddressIsMutable(); - address_.add(index, builderForValue.build()); - onChanged(); - } else { - addressBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public Builder addAllAddress( - java.lang.Iterable values) { - if (addressBuilder_ == null) { - ensureAddressIsMutable(); - super.addAll(values, address_); - onChanged(); - } else { - addressBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public Builder clearAddress() { - if (addressBuilder_ == null) { - address_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - addressBuilder_.clear(); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public Builder removeAddress(int index) { - if (addressBuilder_ == null) { - ensureAddressIsMutable(); - address_.remove(index); - onChanged(); - } else { - addressBuilder_.remove(index); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder getAddressBuilder( - int index) { - return getAddressFieldBuilder().getBuilder(index); - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder getAddressOrBuilder( - int index) { - if (addressBuilder_ == null) { - return address_.get(index); } else { - return addressBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public java.util.List - getAddressOrBuilderList() { - if (addressBuilder_ != null) { - return addressBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(address_); - } - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder addAddressBuilder() { - return getAddressFieldBuilder().addBuilder( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.getDefaultInstance()); - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder addAddressBuilder( - int index) { - return getAddressFieldBuilder().addBuilder( - index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.getDefaultInstance()); - } - /** - * repeated .signalservice.DataMessage.Contact.PostalAddress address = 5; - */ - public java.util.List - getAddressBuilderList() { - return getAddressFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder> - getAddressFieldBuilder() { - if (addressBuilder_ == null) { - addressBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder>( - address_, - ((bitField0_ & 0x00000008) == 0x00000008), - getParentForChildren(), - isClean()); - address_ = null; - } - return addressBuilder_; - } - - // optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.AvatarOrBuilder> avatarBuilder_; - /** - * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - */ - public boolean hasAvatar() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar getAvatar() { - if (avatarBuilder_ == null) { - return avatar_; - } else { - return avatarBuilder_.getMessage(); - } - } - /** - * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - */ - public Builder setAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar value) { - if (avatarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatar_ = value; - onChanged(); - } else { - avatarBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - */ - public Builder setAvatar( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder builderForValue) { - if (avatarBuilder_ == null) { - avatar_ = builderForValue.build(); - onChanged(); - } else { - avatarBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - */ - public Builder mergeAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar value) { - if (avatarBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - avatar_ != org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.getDefaultInstance()) { - avatar_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); - } else { - avatar_ = value; - } - onChanged(); - } else { - avatarBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - */ - public Builder clearAvatar() { - if (avatarBuilder_ == null) { - avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.getDefaultInstance(); - onChanged(); - } else { - avatarBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - /** - * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder getAvatarBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getAvatarFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.AvatarOrBuilder getAvatarOrBuilder() { - if (avatarBuilder_ != null) { - return avatarBuilder_.getMessageOrBuilder(); - } else { - return avatar_; - } - } - /** - * optional .signalservice.DataMessage.Contact.Avatar avatar = 6; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.AvatarOrBuilder> - getAvatarFieldBuilder() { - if (avatarBuilder_ == null) { - avatarBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.AvatarOrBuilder>( - avatar_, - getParentForChildren(), - isClean()); - avatar_ = null; - } - return avatarBuilder_; - } - - // optional string organization = 7; - private java.lang.Object organization_ = ""; - /** - * optional string organization = 7; - */ - public boolean hasOrganization() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string organization = 7; - */ - public java.lang.String getOrganization() { - java.lang.Object ref = organization_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - organization_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string organization = 7; - */ - public com.google.protobuf.ByteString - getOrganizationBytes() { - java.lang.Object ref = organization_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - organization_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string organization = 7; - */ - public Builder setOrganization( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - organization_ = value; - onChanged(); - return this; - } - /** - * optional string organization = 7; - */ - public Builder clearOrganization() { - bitField0_ = (bitField0_ & ~0x00000020); - organization_ = getDefaultInstance().getOrganization(); - onChanged(); - return this; - } - /** - * optional string organization = 7; - */ - public Builder setOrganizationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - organization_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Contact) - } - - static { - defaultInstance = new Contact(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Contact) + result.body_ = body_; + if (attachmentsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + attachments_ = java.util.Collections.unmodifiableList(attachments_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.attachments_ = attachments_; + } else { + result.attachments_ = attachmentsBuilder_.build(); } - - public interface PreviewOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string url = 1; - /** - * optional string url = 1; - */ - boolean hasUrl(); - /** - * optional string url = 1; - */ - java.lang.String getUrl(); - /** - * optional string url = 1; - */ - com.google.protobuf.ByteString - getUrlBytes(); - - // optional string title = 2; - /** - * optional string title = 2; - */ - boolean hasTitle(); - /** - * optional string title = 2; - */ - java.lang.String getTitle(); - /** - * optional string title = 2; - */ - com.google.protobuf.ByteString - getTitleBytes(); - - // optional .signalservice.AttachmentPointer image = 3; - /** - * optional .signalservice.AttachmentPointer image = 3; - */ - boolean hasImage(); - /** - * optional .signalservice.AttachmentPointer image = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getImage(); - /** - * optional .signalservice.AttachmentPointer image = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getImageOrBuilder(); + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000002; } - /** - * Protobuf type {@code signalservice.DataMessage.Preview} - */ - public static final class Preview extends - com.google.protobuf.GeneratedMessage - implements PreviewOrBuilder { - // Use Preview.newBuilder() to construct. - private Preview(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Preview(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Preview defaultInstance; - public static Preview getDefaultInstance() { - return defaultInstance; - } - - public Preview getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Preview( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - url_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - title_ = input.readBytes(); - break; - } - case 26: { - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = image_.toBuilder(); - } - image_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(image_); - image_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Preview_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Preview_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Preview parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Preview(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string url = 1; - public static final int URL_FIELD_NUMBER = 1; - private java.lang.Object url_; - /** - * optional string url = 1; - */ - public boolean hasUrl() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string url = 1; - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - 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()) { - url_ = s; - } - return s; - } - } - /** - * optional string url = 1; - */ - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string title = 2; - public static final int TITLE_FIELD_NUMBER = 2; - private java.lang.Object title_; - /** - * optional string title = 2; - */ - public boolean hasTitle() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string title = 2; - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - 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()) { - title_ = s; - } - return s; - } - } - /** - * optional string title = 2; - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional .signalservice.AttachmentPointer image = 3; - public static final int IMAGE_FIELD_NUMBER = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer image_; - /** - * optional .signalservice.AttachmentPointer image = 3; - */ - public boolean hasImage() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .signalservice.AttachmentPointer image = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getImage() { - return image_; - } - /** - * optional .signalservice.AttachmentPointer image = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getImageOrBuilder() { - return image_; - } - - private void initFields() { - url_ = ""; - title_ = ""; - image_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getUrlBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getTitleBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, image_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getUrlBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getTitleBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, image_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview 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.service.internal.push.SignalServiceProtos.DataMessage.Preview parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.DataMessage.Preview} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.PreviewOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Preview_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Preview_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getImageFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - url_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - title_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - if (imageBuilder_ == null) { - image_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - } else { - imageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Preview_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.url_ = url_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.title_ = title_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (imageBuilder_ == null) { - result.image_ = image_; - } else { - result.image_ = imageBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.getDefaultInstance()) return this; - if (other.hasUrl()) { - bitField0_ |= 0x00000001; - url_ = other.url_; - onChanged(); - } - if (other.hasTitle()) { - bitField0_ |= 0x00000002; - title_ = other.title_; - onChanged(); - } - if (other.hasImage()) { - mergeImage(other.getImage()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string url = 1; - private java.lang.Object url_ = ""; - /** - * optional string url = 1; - */ - public boolean hasUrl() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string url = 1; - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - url_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string url = 1; - */ - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string url = 1; - */ - public Builder setUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - url_ = value; - onChanged(); - return this; - } - /** - * optional string url = 1; - */ - public Builder clearUrl() { - bitField0_ = (bitField0_ & ~0x00000001); - url_ = getDefaultInstance().getUrl(); - onChanged(); - return this; - } - /** - * optional string url = 1; - */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - url_ = value; - onChanged(); - return this; - } - - // optional string title = 2; - private java.lang.Object title_ = ""; - /** - * optional string title = 2; - */ - public boolean hasTitle() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string title = 2; - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string title = 2; - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string title = 2; - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - title_ = value; - onChanged(); - return this; - } - /** - * optional string title = 2; - */ - public Builder clearTitle() { - bitField0_ = (bitField0_ & ~0x00000002); - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - * optional string title = 2; - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - title_ = value; - onChanged(); - return this; - } - - // optional .signalservice.AttachmentPointer image = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer image_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> imageBuilder_; - /** - * optional .signalservice.AttachmentPointer image = 3; - */ - public boolean hasImage() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .signalservice.AttachmentPointer image = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getImage() { - if (imageBuilder_ == null) { - return image_; - } else { - return imageBuilder_.getMessage(); - } - } - /** - * optional .signalservice.AttachmentPointer image = 3; - */ - public Builder setImage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { - if (imageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - image_ = value; - onChanged(); - } else { - imageBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.AttachmentPointer image = 3; - */ - public Builder setImage( - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder builderForValue) { - if (imageBuilder_ == null) { - image_ = builderForValue.build(); - onChanged(); - } else { - imageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.AttachmentPointer image = 3; - */ - public Builder mergeImage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { - if (imageBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - image_ != org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) { - image_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.newBuilder(image_).mergeFrom(value).buildPartial(); - } else { - image_ = value; - } - onChanged(); - } else { - imageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.AttachmentPointer image = 3; - */ - public Builder clearImage() { - if (imageBuilder_ == null) { - image_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - onChanged(); - } else { - imageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - /** - * optional .signalservice.AttachmentPointer image = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder getImageBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getImageFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.AttachmentPointer image = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getImageOrBuilder() { - if (imageBuilder_ != null) { - return imageBuilder_.getMessageOrBuilder(); - } else { - return image_; - } - } - /** - * optional .signalservice.AttachmentPointer image = 3; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> - getImageFieldBuilder() { - if (imageBuilder_ == null) { - imageBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>( - image_, - getParentForChildren(), - isClean()); - image_ = null; - } - return imageBuilder_; - } - - // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Preview) - } - - static { - defaultInstance = new Preview(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Preview) + if (groupBuilder_ == null) { + result.group_ = group_; + } else { + result.group_ = groupBuilder_.build(); } - - public interface StickerOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional bytes packId = 1; - /** - * optional bytes packId = 1; - */ - boolean hasPackId(); - /** - * optional bytes packId = 1; - */ - com.google.protobuf.ByteString getPackId(); - - // optional bytes packKey = 2; - /** - * optional bytes packKey = 2; - */ - boolean hasPackKey(); - /** - * optional bytes packKey = 2; - */ - com.google.protobuf.ByteString getPackKey(); - - // optional uint32 stickerId = 3; - /** - * optional uint32 stickerId = 3; - */ - boolean hasStickerId(); - /** - * optional uint32 stickerId = 3; - */ - int getStickerId(); - - // optional .signalservice.AttachmentPointer data = 4; - /** - * optional .signalservice.AttachmentPointer data = 4; - */ - boolean hasData(); - /** - * optional .signalservice.AttachmentPointer data = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getData(); - /** - * optional .signalservice.AttachmentPointer data = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getDataOrBuilder(); + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000004; } - /** - * Protobuf type {@code signalservice.DataMessage.Sticker} - */ - public static final class Sticker extends - com.google.protobuf.GeneratedMessage - implements StickerOrBuilder { - // Use Sticker.newBuilder() to construct. - private Sticker(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Sticker(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Sticker defaultInstance; - public static Sticker getDefaultInstance() { - return defaultInstance; - } - - public Sticker getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Sticker( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - packId_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - packKey_ = input.readBytes(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - stickerId_ = input.readUInt32(); - break; - } - case 34: { - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = data_.toBuilder(); - } - data_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(data_); - data_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Sticker_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Sticker_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Sticker parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Sticker(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional bytes packId = 1; - public static final int PACKID_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString packId_; - /** - * optional bytes packId = 1; - */ - public boolean hasPackId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bytes packId = 1; - */ - public com.google.protobuf.ByteString getPackId() { - return packId_; - } - - // optional bytes packKey = 2; - public static final int PACKKEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString packKey_; - /** - * optional bytes packKey = 2; - */ - public boolean hasPackKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bytes packKey = 2; - */ - public com.google.protobuf.ByteString getPackKey() { - return packKey_; - } - - // optional uint32 stickerId = 3; - public static final int STICKERID_FIELD_NUMBER = 3; - private int stickerId_; - /** - * optional uint32 stickerId = 3; - */ - public boolean hasStickerId() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional uint32 stickerId = 3; - */ - public int getStickerId() { - return stickerId_; - } - - // optional .signalservice.AttachmentPointer data = 4; - public static final int DATA_FIELD_NUMBER = 4; - private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer data_; - /** - * optional .signalservice.AttachmentPointer data = 4; - */ - public boolean hasData() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .signalservice.AttachmentPointer data = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getData() { - return data_; - } - /** - * optional .signalservice.AttachmentPointer data = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getDataOrBuilder() { - return data_; - } - - private void initFields() { - packId_ = com.google.protobuf.ByteString.EMPTY; - packKey_ = com.google.protobuf.ByteString.EMPTY; - stickerId_ = 0; - data_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, packId_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, packKey_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeUInt32(3, stickerId_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, data_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, packId_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, packKey_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, stickerId_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, data_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker 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.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.DataMessage.Sticker} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.StickerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Sticker_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Sticker_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDataFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - packId_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - packKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - stickerId_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - if (dataBuilder_ == null) { - data_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - } else { - dataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Sticker_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.packId_ = packId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.packKey_ = packKey_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.stickerId_ = stickerId_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - if (dataBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.getDefaultInstance()) return this; - if (other.hasPackId()) { - setPackId(other.getPackId()); - } - if (other.hasPackKey()) { - setPackKey(other.getPackKey()); - } - if (other.hasStickerId()) { - setStickerId(other.getStickerId()); - } - if (other.hasData()) { - mergeData(other.getData()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional bytes packId = 1; - private com.google.protobuf.ByteString packId_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes packId = 1; - */ - public boolean hasPackId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bytes packId = 1; - */ - public com.google.protobuf.ByteString getPackId() { - return packId_; - } - /** - * optional bytes packId = 1; - */ - public Builder setPackId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - packId_ = value; - onChanged(); - return this; - } - /** - * optional bytes packId = 1; - */ - public Builder clearPackId() { - bitField0_ = (bitField0_ & ~0x00000001); - packId_ = getDefaultInstance().getPackId(); - onChanged(); - return this; - } - - // optional bytes packKey = 2; - private com.google.protobuf.ByteString packKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes packKey = 2; - */ - public boolean hasPackKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bytes packKey = 2; - */ - public com.google.protobuf.ByteString getPackKey() { - return packKey_; - } - /** - * optional bytes packKey = 2; - */ - public Builder setPackKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - packKey_ = value; - onChanged(); - return this; - } - /** - * optional bytes packKey = 2; - */ - public Builder clearPackKey() { - bitField0_ = (bitField0_ & ~0x00000002); - packKey_ = getDefaultInstance().getPackKey(); - onChanged(); - return this; - } - - // optional uint32 stickerId = 3; - private int stickerId_ ; - /** - * optional uint32 stickerId = 3; - */ - public boolean hasStickerId() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional uint32 stickerId = 3; - */ - public int getStickerId() { - return stickerId_; - } - /** - * optional uint32 stickerId = 3; - */ - public Builder setStickerId(int value) { - bitField0_ |= 0x00000004; - stickerId_ = value; - onChanged(); - return this; - } - /** - * optional uint32 stickerId = 3; - */ - public Builder clearStickerId() { - bitField0_ = (bitField0_ & ~0x00000004); - stickerId_ = 0; - onChanged(); - return this; - } - - // optional .signalservice.AttachmentPointer data = 4; - private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer data_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> dataBuilder_; - /** - * optional .signalservice.AttachmentPointer data = 4; - */ - public boolean hasData() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .signalservice.AttachmentPointer data = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getData() { - if (dataBuilder_ == null) { - return data_; - } else { - return dataBuilder_.getMessage(); - } - } - /** - * optional .signalservice.AttachmentPointer data = 4; - */ - public Builder setData(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - dataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.AttachmentPointer data = 4; - */ - public Builder setData( - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder builderForValue) { - if (dataBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - dataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.AttachmentPointer data = 4; - */ - public Builder mergeData(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { - if (dataBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - data_ != org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) { - data_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.newBuilder(data_).mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - dataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.AttachmentPointer data = 4; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - onChanged(); - } else { - dataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - /** - * optional .signalservice.AttachmentPointer data = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder getDataBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getDataFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.AttachmentPointer data = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getDataOrBuilder() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilder(); - } else { - return data_; - } - } - /** - * optional .signalservice.AttachmentPointer data = 4; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>( - data_, - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:signalservice.DataMessage.Sticker) - } - - static { - defaultInstance = new Sticker(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.DataMessage.Sticker) + result.flags_ = flags_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; } - - private int bitField0_; - // optional string body = 1; - public static final int BODY_FIELD_NUMBER = 1; - private java.lang.Object body_; - /** - * optional string body = 1; - */ - public boolean hasBody() { - return ((bitField0_ & 0x00000001) == 0x00000001); + result.expireTimer_ = expireTimer_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; } - /** - * optional string body = 1; - */ - public java.lang.String getBody() { - java.lang.Object ref = body_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; + result.profileKey_ = profileKey_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000020; + } + result.timestamp_ = timestamp_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000040; + } + if (quoteBuilder_ == null) { + result.quote_ = quote_; + } else { + result.quote_ = quoteBuilder_.build(); + } + if (contactBuilder_ == null) { + if (((bitField0_ & 0x00000100) == 0x00000100)) { + contact_ = java.util.Collections.unmodifiableList(contact_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.contact_ = contact_; + } else { + result.contact_ = contactBuilder_.build(); + } + if (previewBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + preview_ = java.util.Collections.unmodifiableList(preview_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.preview_ = preview_; + } else { + result.preview_ = previewBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000080; + } + if (stickerBuilder_ == null) { + result.sticker_ = sticker_; + } else { + result.sticker_ = stickerBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + to_bitField0_ |= 0x00000100; + } + if (profileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = profileBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + to_bitField0_ |= 0x00000200; + } + if (closedGroupUpdateBuilder_ == null) { + result.closedGroupUpdate_ = closedGroupUpdate_; + } else { + result.closedGroupUpdate_ = closedGroupUpdateBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + to_bitField0_ |= 0x00000400; + } + if (closedGroupUpdateV2Builder_ == null) { + result.closedGroupUpdateV2_ = closedGroupUpdateV2_; + } else { + result.closedGroupUpdateV2_ = closedGroupUpdateV2Builder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance()) return this; + if (other.hasBody()) { + bitField0_ |= 0x00000001; + body_ = other.body_; + onChanged(); + } + if (attachmentsBuilder_ == null) { + if (!other.attachments_.isEmpty()) { + if (attachments_.isEmpty()) { + attachments_ = other.attachments_; + bitField0_ = (bitField0_ & ~0x00000002); } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - body_ = s; - } - return s; + ensureAttachmentsIsMutable(); + attachments_.addAll(other.attachments_); } - } - /** - * optional string body = 1; - */ - 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; + 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 { - return (com.google.protobuf.ByteString) ref; + attachmentsBuilder_.addAllMessages(other.attachments_); } + } } + if (other.hasGroup()) { + mergeGroup(other.getGroup()); + } + 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 (contactBuilder_ == null) { + if (!other.contact_.isEmpty()) { + if (contact_.isEmpty()) { + contact_ = other.contact_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureContactIsMutable(); + contact_.addAll(other.contact_); + } + onChanged(); + } + } else { + if (!other.contact_.isEmpty()) { + if (contactBuilder_.isEmpty()) { + contactBuilder_.dispose(); + contactBuilder_ = null; + contact_ = other.contact_; + bitField0_ = (bitField0_ & ~0x00000100); + contactBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getContactFieldBuilder() : null; + } else { + contactBuilder_.addAllMessages(other.contact_); + } + } + } + if (previewBuilder_ == null) { + if (!other.preview_.isEmpty()) { + if (preview_.isEmpty()) { + preview_ = other.preview_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensurePreviewIsMutable(); + preview_.addAll(other.preview_); + } + onChanged(); + } + } else { + if (!other.preview_.isEmpty()) { + if (previewBuilder_.isEmpty()) { + previewBuilder_.dispose(); + previewBuilder_ = null; + preview_ = other.preview_; + bitField0_ = (bitField0_ & ~0x00000200); + previewBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getPreviewFieldBuilder() : null; + } else { + previewBuilder_.addAllMessages(other.preview_); + } + } + } + if (other.hasSticker()) { + mergeSticker(other.getSticker()); + } + if (other.hasProfile()) { + mergeProfile(other.getProfile()); + } + if (other.hasClosedGroupUpdate()) { + mergeClosedGroupUpdate(other.getClosedGroupUpdate()); + } + if (other.hasClosedGroupUpdateV2()) { + mergeClosedGroupUpdateV2(other.getClosedGroupUpdateV2()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } - // repeated .signalservice.AttachmentPointer attachments = 2; - public static final int ATTACHMENTS_FIELD_NUMBER = 2; - private java.util.List attachments_; - /** - * repeated .signalservice.AttachmentPointer attachments = 2; - */ - public java.util.List getAttachmentsList() { - return attachments_; - } - /** - * repeated .signalservice.AttachmentPointer attachments = 2; - */ - public java.util.List - getAttachmentsOrBuilderList() { - return attachments_; - } - /** - * repeated .signalservice.AttachmentPointer attachments = 2; - */ - public int getAttachmentsCount() { - return attachments_.size(); - } - /** - * repeated .signalservice.AttachmentPointer attachments = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getAttachments(int index) { - return attachments_.get(index); - } - /** - * repeated .signalservice.AttachmentPointer attachments = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAttachmentsOrBuilder( - int index) { - return attachments_.get(index); + public final boolean isInitialized() { + if (hasClosedGroupUpdateV2()) { + if (!getClosedGroupUpdateV2().isInitialized()) { + + return false; + } } + return true; + } - // optional .signalservice.GroupContext group = 3; - public static final int GROUP_FIELD_NUMBER = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext group_; - /** - * optional .signalservice.GroupContext group = 3; - */ - public boolean hasGroup() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } - /** - * optional .signalservice.GroupContext group = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext getGroup() { - return group_; + return this; + } + private int bitField0_; + + // optional string body = 1; + private java.lang.Object body_ = ""; + /** + * optional string body = 1; + */ + public boolean hasBody() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string body = 1; + */ + public java.lang.String getBody() { + java.lang.Object ref = body_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + body_ = s; + return s; + } else { + return (java.lang.String) ref; } - /** - * optional .signalservice.GroupContext group = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContextOrBuilder getGroupOrBuilder() { - return group_; + } + /** + * optional string body = 1; + */ + 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; + */ + public Builder setBody( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + body_ = value; + onChanged(); + return this; + } + /** + * optional string body = 1; + */ + public Builder clearBody() { + bitField0_ = (bitField0_ & ~0x00000001); + body_ = getDefaultInstance().getBody(); + onChanged(); + return this; + } + /** + * optional string body = 1; + */ + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + body_ = value; + onChanged(); + return this; + } - // optional uint32 flags = 4; - public static final int FLAGS_FIELD_NUMBER = 4; - private int flags_; - /** - * optional uint32 flags = 4; - */ - public boolean hasFlags() { - return ((bitField0_ & 0x00000004) == 0x00000004); + // repeated .signalservice.AttachmentPointer attachments = 2; + private java.util.List attachments_ = + java.util.Collections.emptyList(); + private void ensureAttachmentsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + attachments_ = new java.util.ArrayList(attachments_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.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(); } - /** - * optional uint32 flags = 4; - */ - public int getFlags() { - return flags_; + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public int getAttachmentsCount() { + if (attachmentsBuilder_ == null) { + return attachments_.size(); + } else { + return attachmentsBuilder_.getCount(); } - - // optional uint32 expireTimer = 5; - public static final int EXPIRETIMER_FIELD_NUMBER = 5; - private int expireTimer_; - /** - * optional uint32 expireTimer = 5; - */ - public boolean hasExpireTimer() { - return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getAttachments(int index) { + if (attachmentsBuilder_ == null) { + return attachments_.get(index); + } else { + return attachmentsBuilder_.getMessage(index); } - /** - * optional uint32 expireTimer = 5; - */ - public int getExpireTimer() { - return expireTimer_; + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public Builder setAttachments( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { + if (attachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachmentsIsMutable(); + attachments_.set(index, value); + onChanged(); + } else { + attachmentsBuilder_.setMessage(index, value); } - - // optional bytes profileKey = 6; - public static final int PROFILEKEY_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString profileKey_; - /** - * optional bytes profileKey = 6; - */ - public boolean hasProfileKey() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return this; + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public Builder setAttachments( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder builderForValue) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.set(index, builderForValue.build()); + onChanged(); + } else { + attachmentsBuilder_.setMessage(index, builderForValue.build()); } - /** - * optional bytes profileKey = 6; - */ - public com.google.protobuf.ByteString getProfileKey() { - return profileKey_; + return this; + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public Builder addAttachments(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { + if (attachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachmentsIsMutable(); + attachments_.add(value); + onChanged(); + } else { + attachmentsBuilder_.addMessage(value); } - - // optional uint64 timestamp = 7; - public static final int TIMESTAMP_FIELD_NUMBER = 7; - private long timestamp_; - /** - * optional uint64 timestamp = 7; - */ - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return this; + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public Builder addAttachments( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { + if (attachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachmentsIsMutable(); + attachments_.add(index, value); + onChanged(); + } else { + attachmentsBuilder_.addMessage(index, value); } - /** - * optional uint64 timestamp = 7; - */ - public long getTimestamp() { - return timestamp_; + return this; + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public Builder addAttachments( + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder builderForValue) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.add(builderForValue.build()); + onChanged(); + } else { + attachmentsBuilder_.addMessage(builderForValue.build()); } - - // optional .signalservice.DataMessage.Quote quote = 8; - public static final int QUOTE_FIELD_NUMBER = 8; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote quote_; - /** - * optional .signalservice.DataMessage.Quote quote = 8; - */ - public boolean hasQuote() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return this; + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public Builder addAttachments( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder builderForValue) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.add(index, builderForValue.build()); + onChanged(); + } else { + attachmentsBuilder_.addMessage(index, builderForValue.build()); } - /** - * optional .signalservice.DataMessage.Quote quote = 8; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote getQuote() { - return quote_; + return this; + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public Builder addAllAttachments( + java.lang.Iterable values) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + super.addAll(values, attachments_); + onChanged(); + } else { + attachmentsBuilder_.addAllMessages(values); } - /** - * optional .signalservice.DataMessage.Quote quote = 8; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.QuoteOrBuilder getQuoteOrBuilder() { - return quote_; + 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(); } - - // repeated .signalservice.DataMessage.Contact contact = 9; - public static final int CONTACT_FIELD_NUMBER = 9; - private java.util.List contact_; - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public java.util.List getContactList() { - return contact_; + return this; + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public Builder removeAttachments(int index) { + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.remove(index); + onChanged(); + } else { + attachmentsBuilder_.remove(index); } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public java.util.List - getContactOrBuilderList() { - return contact_; + return this; + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder getAttachmentsBuilder( + int index) { + return getAttachmentsFieldBuilder().getBuilder(index); + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAttachmentsOrBuilder( + int index) { + if (attachmentsBuilder_ == null) { + return attachments_.get(index); } else { + return attachmentsBuilder_.getMessageOrBuilder(index); } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public int getContactCount() { - return contact_.size(); + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public java.util.List + getAttachmentsOrBuilderList() { + if (attachmentsBuilder_ != null) { + return attachmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(attachments_); } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact getContact(int index) { - return contact_.get(index); + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder addAttachmentsBuilder() { + return getAttachmentsFieldBuilder().addBuilder( + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()); + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder addAttachmentsBuilder( + int index) { + return getAttachmentsFieldBuilder().addBuilder( + index, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()); + } + /** + * repeated .signalservice.AttachmentPointer attachments = 2; + */ + public java.util.List + getAttachmentsBuilderList() { + return getAttachmentsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> + getAttachmentsFieldBuilder() { + if (attachmentsBuilder_ == null) { + attachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>( + attachments_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + attachments_ = null; } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder getContactOrBuilder( - int index) { - return contact_.get(index); + return attachmentsBuilder_; + } + + // optional .signalservice.GroupContext group = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext group_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContextOrBuilder> groupBuilder_; + /** + * optional .signalservice.GroupContext group = 3; + */ + public boolean hasGroup() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.GroupContext group = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext getGroup() { + if (groupBuilder_ == null) { + return group_; + } else { + return groupBuilder_.getMessage(); } - - // repeated .signalservice.DataMessage.Preview preview = 10; - public static final int PREVIEW_FIELD_NUMBER = 10; - private java.util.List preview_; - /** - * repeated .signalservice.DataMessage.Preview preview = 10; - */ - public java.util.List getPreviewList() { - return preview_; + } + /** + * optional .signalservice.GroupContext group = 3; + */ + public Builder setGroup(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext value) { + if (groupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + group_ = value; + onChanged(); + } else { + groupBuilder_.setMessage(value); } - /** - * repeated .signalservice.DataMessage.Preview preview = 10; - */ - public java.util.List - getPreviewOrBuilderList() { - return preview_; + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.GroupContext group = 3; + */ + public Builder setGroup( + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Builder builderForValue) { + if (groupBuilder_ == null) { + group_ = builderForValue.build(); + onChanged(); + } else { + groupBuilder_.setMessage(builderForValue.build()); } - /** - * repeated .signalservice.DataMessage.Preview preview = 10; - */ - public int getPreviewCount() { - return preview_.size(); + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.GroupContext group = 3; + */ + public Builder mergeGroup(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext value) { + if (groupBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + group_ != org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance()) { + group_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.newBuilder(group_).mergeFrom(value).buildPartial(); + } else { + group_ = value; + } + onChanged(); + } else { + groupBuilder_.mergeFrom(value); } - /** - * repeated .signalservice.DataMessage.Preview preview = 10; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview getPreview(int index) { - return preview_.get(index); + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.GroupContext group = 3; + */ + public Builder clearGroup() { + if (groupBuilder_ == null) { + group_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance(); + onChanged(); + } else { + groupBuilder_.clear(); } - /** - * repeated .signalservice.DataMessage.Preview preview = 10; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.PreviewOrBuilder getPreviewOrBuilder( - int index) { - return preview_.get(index); + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + * optional .signalservice.GroupContext group = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Builder getGroupBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getGroupFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.GroupContext group = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContextOrBuilder getGroupOrBuilder() { + if (groupBuilder_ != null) { + return groupBuilder_.getMessageOrBuilder(); + } else { + return group_; } - - // optional .signalservice.DataMessage.Sticker sticker = 11; - public static final int STICKER_FIELD_NUMBER = 11; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker sticker_; - /** - * optional .signalservice.DataMessage.Sticker sticker = 11; - */ - public boolean hasSticker() { - return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional .signalservice.GroupContext group = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContextOrBuilder> + getGroupFieldBuilder() { + if (groupBuilder_ == null) { + groupBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContextOrBuilder>( + group_, + getParentForChildren(), + isClean()); + group_ = null; } - /** - * optional .signalservice.DataMessage.Sticker sticker = 11; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker getSticker() { - return sticker_; + return groupBuilder_; + } + + // optional uint32 flags = 4; + private int flags_ ; + /** + * optional uint32 flags = 4; + */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional uint32 flags = 4; + */ + public int getFlags() { + return flags_; + } + /** + * optional uint32 flags = 4; + */ + public Builder setFlags(int value) { + bitField0_ |= 0x00000008; + flags_ = value; + onChanged(); + return this; + } + /** + * optional uint32 flags = 4; + */ + public Builder clearFlags() { + bitField0_ = (bitField0_ & ~0x00000008); + flags_ = 0; + onChanged(); + return this; + } + + // optional uint32 expireTimer = 5; + private int expireTimer_ ; + /** + * optional uint32 expireTimer = 5; + */ + public boolean hasExpireTimer() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional uint32 expireTimer = 5; + */ + public int getExpireTimer() { + return expireTimer_; + } + /** + * optional uint32 expireTimer = 5; + */ + public Builder setExpireTimer(int value) { + bitField0_ |= 0x00000010; + expireTimer_ = value; + onChanged(); + return this; + } + /** + * optional uint32 expireTimer = 5; + */ + public Builder clearExpireTimer() { + bitField0_ = (bitField0_ & ~0x00000010); + expireTimer_ = 0; + onChanged(); + return this; + } + + // optional bytes profileKey = 6; + private com.google.protobuf.ByteString profileKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes profileKey = 6; + */ + public boolean hasProfileKey() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional bytes profileKey = 6; + */ + public com.google.protobuf.ByteString getProfileKey() { + return profileKey_; + } + /** + * optional bytes profileKey = 6; + */ + public Builder setProfileKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + profileKey_ = value; + onChanged(); + return this; + } + /** + * optional bytes profileKey = 6; + */ + public Builder clearProfileKey() { + bitField0_ = (bitField0_ & ~0x00000020); + profileKey_ = getDefaultInstance().getProfileKey(); + onChanged(); + return this; + } + + // optional uint64 timestamp = 7; + private long timestamp_ ; + /** + * optional uint64 timestamp = 7; + */ + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional uint64 timestamp = 7; + */ + public long getTimestamp() { + return timestamp_; + } + /** + * optional uint64 timestamp = 7; + */ + public Builder setTimestamp(long value) { + bitField0_ |= 0x00000040; + timestamp_ = value; + onChanged(); + return this; + } + /** + * optional uint64 timestamp = 7; + */ + public Builder clearTimestamp() { + bitField0_ = (bitField0_ & ~0x00000040); + timestamp_ = 0L; + onChanged(); + return this; + } + + // optional .signalservice.DataMessage.Quote quote = 8; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote quote_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.QuoteOrBuilder> quoteBuilder_; + /** + * optional .signalservice.DataMessage.Quote quote = 8; + */ + public boolean hasQuote() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional .signalservice.DataMessage.Quote quote = 8; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote getQuote() { + if (quoteBuilder_ == null) { + return quote_; + } else { + return quoteBuilder_.getMessage(); } - /** - * optional .signalservice.DataMessage.Sticker sticker = 11; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.StickerOrBuilder getStickerOrBuilder() { - return sticker_; + } + /** + * optional .signalservice.DataMessage.Quote quote = 8; + */ + public Builder setQuote(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote value) { + if (quoteBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + quote_ = value; + onChanged(); + } else { + quoteBuilder_.setMessage(value); } - - // optional .signalservice.LokiUserProfile profile = 101; - public static final int PROFILE_FIELD_NUMBER = 101; - private org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile profile_; - /** - * optional .signalservice.LokiUserProfile profile = 101; - * - *
-         * Loki - The profile of the current user
-         * 
- */ - public boolean hasProfile() { - return ((bitField0_ & 0x00000100) == 0x00000100); + bitField0_ |= 0x00000080; + return this; + } + /** + * optional .signalservice.DataMessage.Quote quote = 8; + */ + public Builder setQuote( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.Builder builderForValue) { + if (quoteBuilder_ == null) { + quote_ = builderForValue.build(); + onChanged(); + } else { + quoteBuilder_.setMessage(builderForValue.build()); } - /** - * optional .signalservice.LokiUserProfile profile = 101; - * - *
-         * Loki - The profile of the current user
-         * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile getProfile() { - return profile_; + bitField0_ |= 0x00000080; + return this; + } + /** + * optional .signalservice.DataMessage.Quote quote = 8; + */ + public Builder mergeQuote(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote value) { + if (quoteBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080) && + quote_ != org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance()) { + quote_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.newBuilder(quote_).mergeFrom(value).buildPartial(); + } else { + quote_ = value; + } + onChanged(); + } else { + quoteBuilder_.mergeFrom(value); } - /** - * optional .signalservice.LokiUserProfile profile = 101; - * - *
-         * Loki - The profile of the current user
-         * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfileOrBuilder getProfileOrBuilder() { - return profile_; + bitField0_ |= 0x00000080; + return this; + } + /** + * optional .signalservice.DataMessage.Quote quote = 8; + */ + public Builder clearQuote() { + if (quoteBuilder_ == null) { + quote_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance(); + onChanged(); + } else { + quoteBuilder_.clear(); } - - // optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; - public static final int CLOSEDGROUPUPDATE_FIELD_NUMBER = 103; - private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate closedGroupUpdate_; - /** - * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; - * - *
-         * Loki
-         * 
- */ - public boolean hasClosedGroupUpdate() { - return ((bitField0_ & 0x00000200) == 0x00000200); + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + /** + * optional .signalservice.DataMessage.Quote quote = 8; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.Builder getQuoteBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getQuoteFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.DataMessage.Quote quote = 8; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.QuoteOrBuilder getQuoteOrBuilder() { + if (quoteBuilder_ != null) { + return quoteBuilder_.getMessageOrBuilder(); + } else { + return quote_; } - /** - * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; - * - *
-         * Loki
-         * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate getClosedGroupUpdate() { - return closedGroupUpdate_; + } + /** + * optional .signalservice.DataMessage.Quote quote = 8; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.QuoteOrBuilder> + getQuoteFieldBuilder() { + if (quoteBuilder_ == null) { + quoteBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.QuoteOrBuilder>( + quote_, + getParentForChildren(), + isClean()); + quote_ = null; } - /** - * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; - * - *
-         * Loki
-         * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateOrBuilder getClosedGroupUpdateOrBuilder() { - return closedGroupUpdate_; + return quoteBuilder_; + } + + // repeated .signalservice.DataMessage.Contact contact = 9; + private java.util.List contact_ = + java.util.Collections.emptyList(); + private void ensureContactIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + contact_ = new java.util.ArrayList(contact_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder> contactBuilder_; + + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public java.util.List getContactList() { + if (contactBuilder_ == null) { + return java.util.Collections.unmodifiableList(contact_); + } else { + return contactBuilder_.getMessageList(); } - - // optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; - public static final int CLOSEDGROUPUPDATEV2_FIELD_NUMBER = 104; - private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 closedGroupUpdateV2_; - /** - * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; - */ - public boolean hasClosedGroupUpdateV2() { - return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public int getContactCount() { + if (contactBuilder_ == null) { + return contact_.size(); + } else { + return contactBuilder_.getCount(); } - /** - * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 getClosedGroupUpdateV2() { - return closedGroupUpdateV2_; + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact getContact(int index) { + if (contactBuilder_ == null) { + return contact_.get(index); + } else { + return contactBuilder_.getMessage(index); } - /** - * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2OrBuilder getClosedGroupUpdateV2OrBuilder() { - return closedGroupUpdateV2_; + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public Builder setContact( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact value) { + if (contactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactIsMutable(); + contact_.set(index, value); + onChanged(); + } else { + contactBuilder_.setMessage(index, value); } - - private void initFields() { - body_ = ""; - attachments_ = java.util.Collections.emptyList(); - group_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance(); - flags_ = 0; - expireTimer_ = 0; - profileKey_ = com.google.protobuf.ByteString.EMPTY; - timestamp_ = 0L; - quote_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance(); - contact_ = java.util.Collections.emptyList(); - preview_ = java.util.Collections.emptyList(); - sticker_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.getDefaultInstance(); - profile_ = org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.getDefaultInstance(); - closedGroupUpdate_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.getDefaultInstance(); - closedGroupUpdateV2_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.getDefaultInstance(); + return this; + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public Builder setContact( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder builderForValue) { + if (contactBuilder_ == null) { + ensureContactIsMutable(); + contact_.set(index, builderForValue.build()); + onChanged(); + } else { + contactBuilder_.setMessage(index, builderForValue.build()); } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasClosedGroupUpdateV2()) { - if (!getClosedGroupUpdateV2().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; + return this; + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public Builder addContact(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact value) { + if (contactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactIsMutable(); + contact_.add(value); + onChanged(); + } else { + contactBuilder_.addMessage(value); } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getBodyBytes()); - } - for (int i = 0; i < attachments_.size(); i++) { - output.writeMessage(2, attachments_.get(i)); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(3, group_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeUInt32(4, flags_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeUInt32(5, expireTimer_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(6, profileKey_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeUInt64(7, timestamp_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(8, quote_); - } - for (int i = 0; i < contact_.size(); i++) { - output.writeMessage(9, contact_.get(i)); - } - for (int i = 0; i < preview_.size(); i++) { - output.writeMessage(10, preview_.get(i)); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(11, sticker_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeMessage(101, profile_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeMessage(103, closedGroupUpdate_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeMessage(104, closedGroupUpdateV2_); - } - getUnknownFields().writeTo(output); + return this; + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public Builder addContact( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact value) { + if (contactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactIsMutable(); + contact_.add(index, value); + onChanged(); + } else { + contactBuilder_.addMessage(index, value); } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getBodyBytes()); - } - for (int i = 0; i < attachments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, attachments_.get(i)); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, group_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, flags_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, expireTimer_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, profileKey_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(7, timestamp_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, quote_); - } - for (int i = 0; i < contact_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, contact_.get(i)); - } - for (int i = 0; i < preview_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, preview_.get(i)); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, sticker_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, profile_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(103, closedGroupUpdate_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(104, closedGroupUpdateV2_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; + return this; + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public Builder addContact( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder builderForValue) { + if (contactBuilder_ == null) { + ensureContactIsMutable(); + contact_.add(builderForValue.build()); + onChanged(); + } else { + contactBuilder_.addMessage(builderForValue.build()); } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); + return this; + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public Builder addContact( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder builderForValue) { + if (contactBuilder_ == null) { + ensureContactIsMutable(); + contact_.add(index, builderForValue.build()); + onChanged(); + } else { + contactBuilder_.addMessage(index, builderForValue.build()); } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return this; + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public Builder addAllContact( + java.lang.Iterable values) { + if (contactBuilder_ == null) { + ensureContactIsMutable(); + super.addAll(values, contact_); + onChanged(); + } else { + contactBuilder_.addAllMessages(values); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return this; + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public Builder clearContact() { + if (contactBuilder_ == null) { + contact_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + contactBuilder_.clear(); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return this; + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public Builder removeContact(int index) { + if (contactBuilder_ == null) { + ensureContactIsMutable(); + contact_.remove(index); + onChanged(); + } else { + contactBuilder_.remove(index); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return this; + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder getContactBuilder( + int index) { + return getContactFieldBuilder().getBuilder(index); + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder getContactOrBuilder( + int index) { + if (contactBuilder_ == null) { + return contact_.get(index); } else { + return contactBuilder_.getMessageOrBuilder(index); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public java.util.List + getContactOrBuilderList() { + if (contactBuilder_ != null) { + return contactBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contact_); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder addContactBuilder() { + return getContactFieldBuilder().addBuilder( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.getDefaultInstance()); + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder addContactBuilder( + int index) { + return getContactFieldBuilder().addBuilder( + index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.getDefaultInstance()); + } + /** + * repeated .signalservice.DataMessage.Contact contact = 9; + */ + public java.util.List + getContactBuilderList() { + return getContactFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder> + getContactFieldBuilder() { + if (contactBuilder_ == null) { + contactBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder>( + contact_, + ((bitField0_ & 0x00000100) == 0x00000100), + getParentForChildren(), + isClean()); + contact_ = null; } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return contactBuilder_; + } + + // repeated .signalservice.DataMessage.Preview preview = 10; + private java.util.List preview_ = + java.util.Collections.emptyList(); + private void ensurePreviewIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + preview_ = new java.util.ArrayList(preview_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.Builder, org.session.libsignal.service.internal.push.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(); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + public int getPreviewCount() { + if (previewBuilder_ == null) { + return preview_.size(); + } else { + return previewBuilder_.getCount(); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); + } + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview getPreview(int index) { + if (previewBuilder_ == null) { + return preview_.get(index); + } else { + return previewBuilder_.getMessage(index); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + } + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + public Builder setPreview( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview value) { + if (previewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePreviewIsMutable(); + preview_.set(index, value); + onChanged(); + } else { + previewBuilder_.setMessage(index, value); } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage prototype) { - return newBuilder().mergeFrom(prototype); + return this; + } + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + public Builder setPreview( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.Builder builderForValue) { + if (previewBuilder_ == null) { + ensurePreviewIsMutable(); + preview_.set(index, builderForValue.build()); + onChanged(); + } else { + previewBuilder_.setMessage(index, builderForValue.build()); } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + return this; + } + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + public Builder addPreview(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview value) { + if (previewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePreviewIsMutable(); + preview_.add(value); + onChanged(); + } else { + previewBuilder_.addMessage(value); } - /** - * Protobuf type {@code signalservice.DataMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.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(); - getGroupFieldBuilder(); - getQuoteFieldBuilder(); - getContactFieldBuilder(); - getPreviewFieldBuilder(); - getStickerFieldBuilder(); - getProfileFieldBuilder(); - getClosedGroupUpdateFieldBuilder(); - getClosedGroupUpdateV2FieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - body_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (attachmentsBuilder_ == null) { - attachments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - attachmentsBuilder_.clear(); - } - if (groupBuilder_ == null) { - group_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance(); - } else { - groupBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - flags_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - expireTimer_ = 0; - bitField0_ = (bitField0_ & ~0x00000010); - profileKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); - timestamp_ = 0L; - bitField0_ = (bitField0_ & ~0x00000040); - if (quoteBuilder_ == null) { - quote_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance(); - } else { - quoteBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - if (contactBuilder_ == null) { - contact_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - } else { - contactBuilder_.clear(); - } - if (previewBuilder_ == null) { - preview_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - } else { - previewBuilder_.clear(); - } - if (stickerBuilder_ == null) { - sticker_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.getDefaultInstance(); - } else { - stickerBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - if (profileBuilder_ == null) { - profile_ = org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.getDefaultInstance(); - } else { - profileBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - if (closedGroupUpdateBuilder_ == null) { - closedGroupUpdate_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.getDefaultInstance(); - } else { - closedGroupUpdateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00001000); - if (closedGroupUpdateV2Builder_ == null) { - closedGroupUpdateV2_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.getDefaultInstance(); - } else { - closedGroupUpdateV2Builder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00002000); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage result = new org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.body_ = body_; - if (attachmentsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - attachments_ = java.util.Collections.unmodifiableList(attachments_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.attachments_ = attachments_; - } else { - result.attachments_ = attachmentsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000002; - } - if (groupBuilder_ == null) { - result.group_ = group_; - } else { - result.group_ = groupBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000004; - } - result.flags_ = flags_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000008; - } - result.expireTimer_ = expireTimer_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000010; - } - result.profileKey_ = profileKey_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000020; - } - result.timestamp_ = timestamp_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000040; - } - if (quoteBuilder_ == null) { - result.quote_ = quote_; - } else { - result.quote_ = quoteBuilder_.build(); - } - if (contactBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100)) { - contact_ = java.util.Collections.unmodifiableList(contact_); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.contact_ = contact_; - } else { - result.contact_ = contactBuilder_.build(); - } - if (previewBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200)) { - preview_ = java.util.Collections.unmodifiableList(preview_); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.preview_ = preview_; - } else { - result.preview_ = previewBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000080; - } - if (stickerBuilder_ == null) { - result.sticker_ = sticker_; - } else { - result.sticker_ = stickerBuilder_.build(); - } - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000100; - } - if (profileBuilder_ == null) { - result.profile_ = profile_; - } else { - result.profile_ = profileBuilder_.build(); - } - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00000200; - } - if (closedGroupUpdateBuilder_ == null) { - result.closedGroupUpdate_ = closedGroupUpdate_; - } else { - result.closedGroupUpdate_ = closedGroupUpdateBuilder_.build(); - } - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { - to_bitField0_ |= 0x00000400; - } - if (closedGroupUpdateV2Builder_ == null) { - result.closedGroupUpdateV2_ = closedGroupUpdateV2_; - } else { - result.closedGroupUpdateV2_ = closedGroupUpdateV2Builder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance()) return this; - if (other.hasBody()) { - bitField0_ |= 0x00000001; - body_ = other.body_; - 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.hasGroup()) { - mergeGroup(other.getGroup()); - } - 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 (contactBuilder_ == null) { - if (!other.contact_.isEmpty()) { - if (contact_.isEmpty()) { - contact_ = other.contact_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureContactIsMutable(); - contact_.addAll(other.contact_); - } - onChanged(); - } - } else { - if (!other.contact_.isEmpty()) { - if (contactBuilder_.isEmpty()) { - contactBuilder_.dispose(); - contactBuilder_ = null; - contact_ = other.contact_; - bitField0_ = (bitField0_ & ~0x00000100); - contactBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getContactFieldBuilder() : null; - } else { - contactBuilder_.addAllMessages(other.contact_); - } - } - } - if (previewBuilder_ == null) { - if (!other.preview_.isEmpty()) { - if (preview_.isEmpty()) { - preview_ = other.preview_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensurePreviewIsMutable(); - preview_.addAll(other.preview_); - } - onChanged(); - } - } else { - if (!other.preview_.isEmpty()) { - if (previewBuilder_.isEmpty()) { - previewBuilder_.dispose(); - previewBuilder_ = null; - preview_ = other.preview_; - bitField0_ = (bitField0_ & ~0x00000200); - previewBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getPreviewFieldBuilder() : null; - } else { - previewBuilder_.addAllMessages(other.preview_); - } - } - } - if (other.hasSticker()) { - mergeSticker(other.getSticker()); - } - if (other.hasProfile()) { - mergeProfile(other.getProfile()); - } - if (other.hasClosedGroupUpdate()) { - mergeClosedGroupUpdate(other.getClosedGroupUpdate()); - } - if (other.hasClosedGroupUpdateV2()) { - mergeClosedGroupUpdateV2(other.getClosedGroupUpdateV2()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasClosedGroupUpdateV2()) { - if (!getClosedGroupUpdateV2().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string body = 1; - private java.lang.Object body_ = ""; - /** - * optional string body = 1; - */ - public boolean hasBody() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string body = 1; - */ - public java.lang.String getBody() { - java.lang.Object ref = body_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - body_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string body = 1; - */ - 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; - */ - public Builder setBody( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - body_ = value; - onChanged(); - return this; - } - /** - * optional string body = 1; - */ - public Builder clearBody() { - bitField0_ = (bitField0_ & ~0x00000001); - body_ = getDefaultInstance().getBody(); - onChanged(); - return this; - } - /** - * optional string body = 1; - */ - public Builder setBodyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - body_ = value; - onChanged(); - return this; - } - - // repeated .signalservice.AttachmentPointer attachments = 2; - private java.util.List attachments_ = - java.util.Collections.emptyList(); - private void ensureAttachmentsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - attachments_ = new java.util.ArrayList(attachments_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.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.service.internal.push.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.service.internal.push.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.service.internal.push.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.service.internal.push.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.service.internal.push.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.service.internal.push.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.service.internal.push.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 values) { - if (attachmentsBuilder_ == null) { - ensureAttachmentsIsMutable(); - super.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.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder getAttachmentsBuilder( - int index) { - return getAttachmentsFieldBuilder().getBuilder(index); - } - /** - * repeated .signalservice.AttachmentPointer attachments = 2; - */ - public org.session.libsignal.service.internal.push.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 - getAttachmentsOrBuilderList() { - if (attachmentsBuilder_ != null) { - return attachmentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(attachments_); - } - } - /** - * repeated .signalservice.AttachmentPointer attachments = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder addAttachmentsBuilder() { - return getAttachmentsFieldBuilder().addBuilder( - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()); - } - /** - * repeated .signalservice.AttachmentPointer attachments = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder addAttachmentsBuilder( - int index) { - return getAttachmentsFieldBuilder().addBuilder( - index, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()); - } - /** - * repeated .signalservice.AttachmentPointer attachments = 2; - */ - public java.util.List - getAttachmentsBuilderList() { - return getAttachmentsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> - getAttachmentsFieldBuilder() { - if (attachmentsBuilder_ == null) { - attachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>( - attachments_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - attachments_ = null; - } - return attachmentsBuilder_; - } - - // optional .signalservice.GroupContext group = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext group_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContextOrBuilder> groupBuilder_; - /** - * optional .signalservice.GroupContext group = 3; - */ - public boolean hasGroup() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .signalservice.GroupContext group = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext getGroup() { - if (groupBuilder_ == null) { - return group_; - } else { - return groupBuilder_.getMessage(); - } - } - /** - * optional .signalservice.GroupContext group = 3; - */ - public Builder setGroup(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext value) { - if (groupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - group_ = value; - onChanged(); - } else { - groupBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.GroupContext group = 3; - */ - public Builder setGroup( - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Builder builderForValue) { - if (groupBuilder_ == null) { - group_ = builderForValue.build(); - onChanged(); - } else { - groupBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.GroupContext group = 3; - */ - public Builder mergeGroup(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext value) { - if (groupBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - group_ != org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance()) { - group_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.newBuilder(group_).mergeFrom(value).buildPartial(); - } else { - group_ = value; - } - onChanged(); - } else { - groupBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.GroupContext group = 3; - */ - public Builder clearGroup() { - if (groupBuilder_ == null) { - group_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance(); - onChanged(); - } else { - groupBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - /** - * optional .signalservice.GroupContext group = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Builder getGroupBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getGroupFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.GroupContext group = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContextOrBuilder getGroupOrBuilder() { - if (groupBuilder_ != null) { - return groupBuilder_.getMessageOrBuilder(); - } else { - return group_; - } - } - /** - * optional .signalservice.GroupContext group = 3; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContextOrBuilder> - getGroupFieldBuilder() { - if (groupBuilder_ == null) { - groupBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContextOrBuilder>( - group_, - getParentForChildren(), - isClean()); - group_ = null; - } - return groupBuilder_; - } - - // optional uint32 flags = 4; - private int flags_ ; - /** - * optional uint32 flags = 4; - */ - public boolean hasFlags() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional uint32 flags = 4; - */ - public int getFlags() { - return flags_; - } - /** - * optional uint32 flags = 4; - */ - public Builder setFlags(int value) { - bitField0_ |= 0x00000008; - flags_ = value; - onChanged(); - return this; - } - /** - * optional uint32 flags = 4; - */ - public Builder clearFlags() { - bitField0_ = (bitField0_ & ~0x00000008); - flags_ = 0; - onChanged(); - return this; - } - - // optional uint32 expireTimer = 5; - private int expireTimer_ ; - /** - * optional uint32 expireTimer = 5; - */ - public boolean hasExpireTimer() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional uint32 expireTimer = 5; - */ - public int getExpireTimer() { - return expireTimer_; - } - /** - * optional uint32 expireTimer = 5; - */ - public Builder setExpireTimer(int value) { - bitField0_ |= 0x00000010; - expireTimer_ = value; - onChanged(); - return this; - } - /** - * optional uint32 expireTimer = 5; - */ - public Builder clearExpireTimer() { - bitField0_ = (bitField0_ & ~0x00000010); - expireTimer_ = 0; - onChanged(); - return this; - } - - // optional bytes profileKey = 6; - private com.google.protobuf.ByteString profileKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes profileKey = 6; - */ - public boolean hasProfileKey() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional bytes profileKey = 6; - */ - public com.google.protobuf.ByteString getProfileKey() { - return profileKey_; - } - /** - * optional bytes profileKey = 6; - */ - public Builder setProfileKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - profileKey_ = value; - onChanged(); - return this; - } - /** - * optional bytes profileKey = 6; - */ - public Builder clearProfileKey() { - bitField0_ = (bitField0_ & ~0x00000020); - profileKey_ = getDefaultInstance().getProfileKey(); - onChanged(); - return this; - } - - // optional uint64 timestamp = 7; - private long timestamp_ ; - /** - * optional uint64 timestamp = 7; - */ - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional uint64 timestamp = 7; - */ - public long getTimestamp() { - return timestamp_; - } - /** - * optional uint64 timestamp = 7; - */ - public Builder setTimestamp(long value) { - bitField0_ |= 0x00000040; - timestamp_ = value; - onChanged(); - return this; - } - /** - * optional uint64 timestamp = 7; - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000040); - timestamp_ = 0L; - onChanged(); - return this; - } - - // optional .signalservice.DataMessage.Quote quote = 8; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote quote_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.QuoteOrBuilder> quoteBuilder_; - /** - * optional .signalservice.DataMessage.Quote quote = 8; - */ - public boolean hasQuote() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional .signalservice.DataMessage.Quote quote = 8; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote getQuote() { - if (quoteBuilder_ == null) { - return quote_; - } else { - return quoteBuilder_.getMessage(); - } - } - /** - * optional .signalservice.DataMessage.Quote quote = 8; - */ - public Builder setQuote(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote value) { - if (quoteBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - quote_ = value; - onChanged(); - } else { - quoteBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .signalservice.DataMessage.Quote quote = 8; - */ - public Builder setQuote( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.Builder builderForValue) { - if (quoteBuilder_ == null) { - quote_ = builderForValue.build(); - onChanged(); - } else { - quoteBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .signalservice.DataMessage.Quote quote = 8; - */ - public Builder mergeQuote(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote value) { - if (quoteBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - quote_ != org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance()) { - quote_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.newBuilder(quote_).mergeFrom(value).buildPartial(); - } else { - quote_ = value; - } - onChanged(); - } else { - quoteBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .signalservice.DataMessage.Quote quote = 8; - */ - public Builder clearQuote() { - if (quoteBuilder_ == null) { - quote_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance(); - onChanged(); - } else { - quoteBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - /** - * optional .signalservice.DataMessage.Quote quote = 8; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.Builder getQuoteBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getQuoteFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.DataMessage.Quote quote = 8; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.QuoteOrBuilder getQuoteOrBuilder() { - if (quoteBuilder_ != null) { - return quoteBuilder_.getMessageOrBuilder(); - } else { - return quote_; - } - } - /** - * optional .signalservice.DataMessage.Quote quote = 8; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.QuoteOrBuilder> - getQuoteFieldBuilder() { - if (quoteBuilder_ == null) { - quoteBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Quote.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.QuoteOrBuilder>( - quote_, - getParentForChildren(), - isClean()); - quote_ = null; - } - return quoteBuilder_; - } - - // repeated .signalservice.DataMessage.Contact contact = 9; - private java.util.List contact_ = - java.util.Collections.emptyList(); - private void ensureContactIsMutable() { - if (!((bitField0_ & 0x00000100) == 0x00000100)) { - contact_ = new java.util.ArrayList(contact_); - bitField0_ |= 0x00000100; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder> contactBuilder_; - - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public java.util.List getContactList() { - if (contactBuilder_ == null) { - return java.util.Collections.unmodifiableList(contact_); - } else { - return contactBuilder_.getMessageList(); - } - } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public int getContactCount() { - if (contactBuilder_ == null) { - return contact_.size(); - } else { - return contactBuilder_.getCount(); - } - } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact getContact(int index) { - if (contactBuilder_ == null) { - return contact_.get(index); - } else { - return contactBuilder_.getMessage(index); - } - } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public Builder setContact( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact value) { - if (contactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactIsMutable(); - contact_.set(index, value); - onChanged(); - } else { - contactBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public Builder setContact( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder builderForValue) { - if (contactBuilder_ == null) { - ensureContactIsMutable(); - contact_.set(index, builderForValue.build()); - onChanged(); - } else { - contactBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public Builder addContact(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact value) { - if (contactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactIsMutable(); - contact_.add(value); - onChanged(); - } else { - contactBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public Builder addContact( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact value) { - if (contactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContactIsMutable(); - contact_.add(index, value); - onChanged(); - } else { - contactBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public Builder addContact( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder builderForValue) { - if (contactBuilder_ == null) { - ensureContactIsMutable(); - contact_.add(builderForValue.build()); - onChanged(); - } else { - contactBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public Builder addContact( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder builderForValue) { - if (contactBuilder_ == null) { - ensureContactIsMutable(); - contact_.add(index, builderForValue.build()); - onChanged(); - } else { - contactBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public Builder addAllContact( - java.lang.Iterable values) { - if (contactBuilder_ == null) { - ensureContactIsMutable(); - super.addAll(values, contact_); - onChanged(); - } else { - contactBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public Builder clearContact() { - if (contactBuilder_ == null) { - contact_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - } else { - contactBuilder_.clear(); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public Builder removeContact(int index) { - if (contactBuilder_ == null) { - ensureContactIsMutable(); - contact_.remove(index); - onChanged(); - } else { - contactBuilder_.remove(index); - } - return this; - } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder getContactBuilder( - int index) { - return getContactFieldBuilder().getBuilder(index); - } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder getContactOrBuilder( - int index) { - if (contactBuilder_ == null) { - return contact_.get(index); } else { - return contactBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public java.util.List - getContactOrBuilderList() { - if (contactBuilder_ != null) { - return contactBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(contact_); - } - } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder addContactBuilder() { - return getContactFieldBuilder().addBuilder( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.getDefaultInstance()); - } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder addContactBuilder( - int index) { - return getContactFieldBuilder().addBuilder( - index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.getDefaultInstance()); - } - /** - * repeated .signalservice.DataMessage.Contact contact = 9; - */ - public java.util.List - getContactBuilderList() { - return getContactFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder> - getContactFieldBuilder() { - if (contactBuilder_ == null) { - contactBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Contact.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder>( - contact_, - ((bitField0_ & 0x00000100) == 0x00000100), - getParentForChildren(), - isClean()); - contact_ = null; - } - return contactBuilder_; - } - - // repeated .signalservice.DataMessage.Preview preview = 10; - private java.util.List preview_ = - java.util.Collections.emptyList(); - private void ensurePreviewIsMutable() { - if (!((bitField0_ & 0x00000200) == 0x00000200)) { - preview_ = new java.util.ArrayList(preview_); - bitField0_ |= 0x00000200; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.Builder, org.session.libsignal.service.internal.push.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.service.internal.push.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.service.internal.push.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.service.internal.push.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.service.internal.push.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.service.internal.push.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.service.internal.push.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.service.internal.push.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 values) { - if (previewBuilder_ == null) { - ensurePreviewIsMutable(); - super.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_ & ~0x00000200); - 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.service.internal.push.SignalServiceProtos.DataMessage.Preview.Builder getPreviewBuilder( - int index) { - return getPreviewFieldBuilder().getBuilder(index); - } - /** - * repeated .signalservice.DataMessage.Preview preview = 10; - */ - public org.session.libsignal.service.internal.push.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 - getPreviewOrBuilderList() { - if (previewBuilder_ != null) { - return previewBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(preview_); - } - } - /** - * repeated .signalservice.DataMessage.Preview preview = 10; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.Builder addPreviewBuilder() { - return getPreviewFieldBuilder().addBuilder( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.getDefaultInstance()); - } - /** - * repeated .signalservice.DataMessage.Preview preview = 10; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.Builder addPreviewBuilder( - int index) { - return getPreviewFieldBuilder().addBuilder( - index, org.session.libsignal.service.internal.push.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.service.internal.push.SignalServiceProtos.DataMessage.Preview, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.PreviewOrBuilder> - getPreviewFieldBuilder() { - if (previewBuilder_ == null) { - previewBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.PreviewOrBuilder>( - preview_, - ((bitField0_ & 0x00000200) == 0x00000200), - getParentForChildren(), - isClean()); - preview_ = null; - } - return previewBuilder_; - } - - // optional .signalservice.DataMessage.Sticker sticker = 11; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker sticker_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.StickerOrBuilder> stickerBuilder_; - /** - * optional .signalservice.DataMessage.Sticker sticker = 11; - */ - public boolean hasSticker() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional .signalservice.DataMessage.Sticker sticker = 11; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker getSticker() { - if (stickerBuilder_ == null) { - return sticker_; - } else { - return stickerBuilder_.getMessage(); - } - } - /** - * optional .signalservice.DataMessage.Sticker sticker = 11; - */ - public Builder setSticker(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker value) { - if (stickerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sticker_ = value; - onChanged(); - } else { - stickerBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - return this; - } - /** - * optional .signalservice.DataMessage.Sticker sticker = 11; - */ - public Builder setSticker( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.Builder builderForValue) { - if (stickerBuilder_ == null) { - sticker_ = builderForValue.build(); - onChanged(); - } else { - stickerBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - return this; - } - /** - * optional .signalservice.DataMessage.Sticker sticker = 11; - */ - public Builder mergeSticker(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker value) { - if (stickerBuilder_ == null) { - if (((bitField0_ & 0x00000400) == 0x00000400) && - sticker_ != org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.getDefaultInstance()) { - sticker_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.newBuilder(sticker_).mergeFrom(value).buildPartial(); - } else { - sticker_ = value; - } - onChanged(); - } else { - stickerBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000400; - return this; - } - /** - * optional .signalservice.DataMessage.Sticker sticker = 11; - */ - public Builder clearSticker() { - if (stickerBuilder_ == null) { - sticker_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.getDefaultInstance(); - onChanged(); - } else { - stickerBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - return this; - } - /** - * optional .signalservice.DataMessage.Sticker sticker = 11; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.Builder getStickerBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getStickerFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.DataMessage.Sticker sticker = 11; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.StickerOrBuilder getStickerOrBuilder() { - if (stickerBuilder_ != null) { - return stickerBuilder_.getMessageOrBuilder(); - } else { - return sticker_; - } - } - /** - * optional .signalservice.DataMessage.Sticker sticker = 11; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.StickerOrBuilder> - getStickerFieldBuilder() { - if (stickerBuilder_ == null) { - stickerBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.StickerOrBuilder>( - sticker_, - getParentForChildren(), - isClean()); - sticker_ = null; - } - return stickerBuilder_; - } - - // optional .signalservice.LokiUserProfile profile = 101; - private org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile profile_ = org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile, org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfileOrBuilder> profileBuilder_; - /** - * optional .signalservice.LokiUserProfile profile = 101; - * - *
-             * Loki - The profile of the current user
-             * 
- */ - public boolean hasProfile() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional .signalservice.LokiUserProfile profile = 101; - * - *
-             * Loki - The profile of the current user
-             * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile getProfile() { - if (profileBuilder_ == null) { - return profile_; - } else { - return profileBuilder_.getMessage(); - } - } - /** - * optional .signalservice.LokiUserProfile profile = 101; - * - *
-             * Loki - The profile of the current user
-             * 
- */ - public Builder setProfile(org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile value) { - if (profileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - profile_ = value; - onChanged(); - } else { - profileBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - return this; - } - /** - * optional .signalservice.LokiUserProfile profile = 101; - * - *
-             * Loki - The profile of the current user
-             * 
- */ - public Builder setProfile( - org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.Builder builderForValue) { - if (profileBuilder_ == null) { - profile_ = builderForValue.build(); - onChanged(); - } else { - profileBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - return this; - } - /** - * optional .signalservice.LokiUserProfile profile = 101; - * - *
-             * Loki - The profile of the current user
-             * 
- */ - public Builder mergeProfile(org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile value) { - if (profileBuilder_ == null) { - if (((bitField0_ & 0x00000800) == 0x00000800) && - profile_ != org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.getDefaultInstance()) { - profile_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.newBuilder(profile_).mergeFrom(value).buildPartial(); - } else { - profile_ = value; - } - onChanged(); - } else { - profileBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000800; - return this; - } - /** - * optional .signalservice.LokiUserProfile profile = 101; - * - *
-             * Loki - The profile of the current user
-             * 
- */ - public Builder clearProfile() { - if (profileBuilder_ == null) { - profile_ = org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.getDefaultInstance(); - onChanged(); - } else { - profileBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - return this; - } - /** - * optional .signalservice.LokiUserProfile profile = 101; - * - *
-             * Loki - The profile of the current user
-             * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.Builder getProfileBuilder() { - bitField0_ |= 0x00000800; - onChanged(); - return getProfileFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.LokiUserProfile profile = 101; - * - *
-             * Loki - The profile of the current user
-             * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfileOrBuilder getProfileOrBuilder() { - if (profileBuilder_ != null) { - return profileBuilder_.getMessageOrBuilder(); - } else { - return profile_; - } - } - /** - * optional .signalservice.LokiUserProfile profile = 101; - * - *
-             * Loki - The profile of the current user
-             * 
- */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile, org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfileOrBuilder> - getProfileFieldBuilder() { - if (profileBuilder_ == null) { - profileBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile, org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfileOrBuilder>( - profile_, - getParentForChildren(), - isClean()); - profile_ = null; - } - return profileBuilder_; - } - - // optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; - private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate closedGroupUpdate_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateOrBuilder> closedGroupUpdateBuilder_; - /** - * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; - * - *
-             * Loki
-             * 
- */ - public boolean hasClosedGroupUpdate() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - /** - * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; - * - *
-             * Loki
-             * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate getClosedGroupUpdate() { - if (closedGroupUpdateBuilder_ == null) { - return closedGroupUpdate_; - } else { - return closedGroupUpdateBuilder_.getMessage(); - } - } - /** - * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; - * - *
-             * Loki
-             * 
- */ - public Builder setClosedGroupUpdate(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate value) { - if (closedGroupUpdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closedGroupUpdate_ = value; - onChanged(); - } else { - closedGroupUpdateBuilder_.setMessage(value); - } - bitField0_ |= 0x00001000; - return this; - } - /** - * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; - * - *
-             * Loki
-             * 
- */ - public Builder setClosedGroupUpdate( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Builder builderForValue) { - if (closedGroupUpdateBuilder_ == null) { - closedGroupUpdate_ = builderForValue.build(); - onChanged(); - } else { - closedGroupUpdateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00001000; - return this; - } - /** - * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; - * - *
-             * Loki
-             * 
- */ - public Builder mergeClosedGroupUpdate(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate value) { - if (closedGroupUpdateBuilder_ == null) { - if (((bitField0_ & 0x00001000) == 0x00001000) && - closedGroupUpdate_ != org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.getDefaultInstance()) { - closedGroupUpdate_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.newBuilder(closedGroupUpdate_).mergeFrom(value).buildPartial(); - } else { - closedGroupUpdate_ = value; - } - onChanged(); - } else { - closedGroupUpdateBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00001000; - return this; - } - /** - * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; - * - *
-             * Loki
-             * 
- */ - public Builder clearClosedGroupUpdate() { - if (closedGroupUpdateBuilder_ == null) { - closedGroupUpdate_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.getDefaultInstance(); - onChanged(); - } else { - closedGroupUpdateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00001000); - return this; - } - /** - * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; - * - *
-             * Loki
-             * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Builder getClosedGroupUpdateBuilder() { - bitField0_ |= 0x00001000; - onChanged(); - return getClosedGroupUpdateFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; - * - *
-             * Loki
-             * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateOrBuilder getClosedGroupUpdateOrBuilder() { - if (closedGroupUpdateBuilder_ != null) { - return closedGroupUpdateBuilder_.getMessageOrBuilder(); - } else { - return closedGroupUpdate_; - } - } - /** - * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; - * - *
-             * Loki
-             * 
- */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateOrBuilder> - getClosedGroupUpdateFieldBuilder() { - if (closedGroupUpdateBuilder_ == null) { - closedGroupUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateOrBuilder>( - closedGroupUpdate_, - getParentForChildren(), - isClean()); - closedGroupUpdate_ = null; - } - return closedGroupUpdateBuilder_; - } - - // optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; - private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 closedGroupUpdateV2_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2OrBuilder> closedGroupUpdateV2Builder_; - /** - * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; - */ - public boolean hasClosedGroupUpdateV2() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - /** - * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 getClosedGroupUpdateV2() { - if (closedGroupUpdateV2Builder_ == null) { - return closedGroupUpdateV2_; - } else { - return closedGroupUpdateV2Builder_.getMessage(); - } - } - /** - * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; - */ - public Builder setClosedGroupUpdateV2(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 value) { - if (closedGroupUpdateV2Builder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closedGroupUpdateV2_ = value; - onChanged(); - } else { - closedGroupUpdateV2Builder_.setMessage(value); - } - bitField0_ |= 0x00002000; - return this; - } - /** - * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; - */ - public Builder setClosedGroupUpdateV2( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Builder builderForValue) { - if (closedGroupUpdateV2Builder_ == null) { - closedGroupUpdateV2_ = builderForValue.build(); - onChanged(); - } else { - closedGroupUpdateV2Builder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00002000; - return this; - } - /** - * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; - */ - public Builder mergeClosedGroupUpdateV2(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 value) { - if (closedGroupUpdateV2Builder_ == null) { - if (((bitField0_ & 0x00002000) == 0x00002000) && - closedGroupUpdateV2_ != org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.getDefaultInstance()) { - closedGroupUpdateV2_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.newBuilder(closedGroupUpdateV2_).mergeFrom(value).buildPartial(); - } else { - closedGroupUpdateV2_ = value; - } - onChanged(); - } else { - closedGroupUpdateV2Builder_.mergeFrom(value); - } - bitField0_ |= 0x00002000; - return this; - } - /** - * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; - */ - public Builder clearClosedGroupUpdateV2() { - if (closedGroupUpdateV2Builder_ == null) { - closedGroupUpdateV2_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.getDefaultInstance(); - onChanged(); - } else { - closedGroupUpdateV2Builder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00002000); - return this; - } - /** - * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Builder getClosedGroupUpdateV2Builder() { - bitField0_ |= 0x00002000; - onChanged(); - return getClosedGroupUpdateV2FieldBuilder().getBuilder(); - } - /** - * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2OrBuilder getClosedGroupUpdateV2OrBuilder() { - if (closedGroupUpdateV2Builder_ != null) { - return closedGroupUpdateV2Builder_.getMessageOrBuilder(); - } else { - return closedGroupUpdateV2_; - } - } - /** - * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2OrBuilder> - getClosedGroupUpdateV2FieldBuilder() { - if (closedGroupUpdateV2Builder_ == null) { - closedGroupUpdateV2Builder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2OrBuilder>( - closedGroupUpdateV2_, - getParentForChildren(), - isClean()); - closedGroupUpdateV2_ = null; - } - return closedGroupUpdateV2Builder_; - } - - // @@protoc_insertion_point(builder_scope:signalservice.DataMessage) + return this; + } + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + public Builder addPreview( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview value) { + if (previewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePreviewIsMutable(); + preview_.add(index, value); + onChanged(); + } else { + previewBuilder_.addMessage(index, value); } - - static { - defaultInstance = new DataMessage(true); - defaultInstance.initFields(); + return this; + } + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + public Builder addPreview( + org.session.libsignal.service.internal.push.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.service.internal.push.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 values) { + if (previewBuilder_ == null) { + ensurePreviewIsMutable(); + super.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_ & ~0x00000200); + 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.service.internal.push.SignalServiceProtos.DataMessage.Preview.Builder getPreviewBuilder( + int index) { + return getPreviewFieldBuilder().getBuilder(index); + } + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + public org.session.libsignal.service.internal.push.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 + getPreviewOrBuilderList() { + if (previewBuilder_ != null) { + return previewBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(preview_); + } + } + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.Builder addPreviewBuilder() { + return getPreviewFieldBuilder().addBuilder( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.getDefaultInstance()); + } + /** + * repeated .signalservice.DataMessage.Preview preview = 10; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.Builder addPreviewBuilder( + int index) { + return getPreviewFieldBuilder().addBuilder( + index, org.session.libsignal.service.internal.push.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.service.internal.push.SignalServiceProtos.DataMessage.Preview, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.PreviewOrBuilder> + getPreviewFieldBuilder() { + if (previewBuilder_ == null) { + previewBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Preview.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.PreviewOrBuilder>( + preview_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + preview_ = null; + } + return previewBuilder_; + } - // @@protoc_insertion_point(class_scope:signalservice.DataMessage) + // optional .signalservice.DataMessage.Sticker sticker = 11; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker sticker_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.StickerOrBuilder> stickerBuilder_; + /** + * optional .signalservice.DataMessage.Sticker sticker = 11; + */ + public boolean hasSticker() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * optional .signalservice.DataMessage.Sticker sticker = 11; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker getSticker() { + if (stickerBuilder_ == null) { + return sticker_; + } else { + return stickerBuilder_.getMessage(); + } + } + /** + * optional .signalservice.DataMessage.Sticker sticker = 11; + */ + public Builder setSticker(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker value) { + if (stickerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sticker_ = value; + onChanged(); + } else { + stickerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + return this; + } + /** + * optional .signalservice.DataMessage.Sticker sticker = 11; + */ + public Builder setSticker( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.Builder builderForValue) { + if (stickerBuilder_ == null) { + sticker_ = builderForValue.build(); + onChanged(); + } else { + stickerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + return this; + } + /** + * optional .signalservice.DataMessage.Sticker sticker = 11; + */ + public Builder mergeSticker(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker value) { + if (stickerBuilder_ == null) { + if (((bitField0_ & 0x00000400) == 0x00000400) && + sticker_ != org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.getDefaultInstance()) { + sticker_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.newBuilder(sticker_).mergeFrom(value).buildPartial(); + } else { + sticker_ = value; + } + onChanged(); + } else { + stickerBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000400; + return this; + } + /** + * optional .signalservice.DataMessage.Sticker sticker = 11; + */ + public Builder clearSticker() { + if (stickerBuilder_ == null) { + sticker_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.getDefaultInstance(); + onChanged(); + } else { + stickerBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + return this; + } + /** + * optional .signalservice.DataMessage.Sticker sticker = 11; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.Builder getStickerBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getStickerFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.DataMessage.Sticker sticker = 11; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.StickerOrBuilder getStickerOrBuilder() { + if (stickerBuilder_ != null) { + return stickerBuilder_.getMessageOrBuilder(); + } else { + return sticker_; + } + } + /** + * optional .signalservice.DataMessage.Sticker sticker = 11; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.StickerOrBuilder> + getStickerFieldBuilder() { + if (stickerBuilder_ == null) { + stickerBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Sticker.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.StickerOrBuilder>( + sticker_, + getParentForChildren(), + isClean()); + sticker_ = null; + } + return stickerBuilder_; + } + + // optional .signalservice.LokiUserProfile profile = 101; + private org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile profile_ = org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile, org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfileOrBuilder> profileBuilder_; + /** + * optional .signalservice.LokiUserProfile profile = 101; + * + *
+       * Loki - The profile of the current user
+       * 
+ */ + public boolean hasProfile() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + /** + * optional .signalservice.LokiUserProfile profile = 101; + * + *
+       * Loki - The profile of the current user
+       * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile getProfile() { + if (profileBuilder_ == null) { + return profile_; + } else { + return profileBuilder_.getMessage(); + } + } + /** + * optional .signalservice.LokiUserProfile profile = 101; + * + *
+       * Loki - The profile of the current user
+       * 
+ */ + public Builder setProfile(org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile value) { + if (profileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + profileBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + return this; + } + /** + * optional .signalservice.LokiUserProfile profile = 101; + * + *
+       * Loki - The profile of the current user
+       * 
+ */ + public Builder setProfile( + org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.Builder builderForValue) { + if (profileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + profileBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + return this; + } + /** + * optional .signalservice.LokiUserProfile profile = 101; + * + *
+       * Loki - The profile of the current user
+       * 
+ */ + public Builder mergeProfile(org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile value) { + if (profileBuilder_ == null) { + if (((bitField0_ & 0x00000800) == 0x00000800) && + profile_ != org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.getDefaultInstance()) { + profile_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.newBuilder(profile_).mergeFrom(value).buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + profileBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000800; + return this; + } + /** + * optional .signalservice.LokiUserProfile profile = 101; + * + *
+       * Loki - The profile of the current user
+       * 
+ */ + public Builder clearProfile() { + if (profileBuilder_ == null) { + profile_ = org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.getDefaultInstance(); + onChanged(); + } else { + profileBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + return this; + } + /** + * optional .signalservice.LokiUserProfile profile = 101; + * + *
+       * Loki - The profile of the current user
+       * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.Builder getProfileBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getProfileFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.LokiUserProfile profile = 101; + * + *
+       * Loki - The profile of the current user
+       * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfileOrBuilder getProfileOrBuilder() { + if (profileBuilder_ != null) { + return profileBuilder_.getMessageOrBuilder(); + } else { + return profile_; + } + } + /** + * optional .signalservice.LokiUserProfile profile = 101; + * + *
+       * Loki - The profile of the current user
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile, org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfileOrBuilder> + getProfileFieldBuilder() { + if (profileBuilder_ == null) { + profileBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile, org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfileOrBuilder>( + profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + return profileBuilder_; + } + + // optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate closedGroupUpdate_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateOrBuilder> closedGroupUpdateBuilder_; + /** + * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + * + *
+       * Loki
+       * 
+ */ + public boolean hasClosedGroupUpdate() { + return ((bitField0_ & 0x00001000) == 0x00001000); + } + /** + * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + * + *
+       * Loki
+       * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate getClosedGroupUpdate() { + if (closedGroupUpdateBuilder_ == null) { + return closedGroupUpdate_; + } else { + return closedGroupUpdateBuilder_.getMessage(); + } + } + /** + * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + * + *
+       * Loki
+       * 
+ */ + public Builder setClosedGroupUpdate(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate value) { + if (closedGroupUpdateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closedGroupUpdate_ = value; + onChanged(); + } else { + closedGroupUpdateBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + return this; + } + /** + * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + * + *
+       * Loki
+       * 
+ */ + public Builder setClosedGroupUpdate( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Builder builderForValue) { + if (closedGroupUpdateBuilder_ == null) { + closedGroupUpdate_ = builderForValue.build(); + onChanged(); + } else { + closedGroupUpdateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + return this; + } + /** + * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + * + *
+       * Loki
+       * 
+ */ + public Builder mergeClosedGroupUpdate(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate value) { + if (closedGroupUpdateBuilder_ == null) { + if (((bitField0_ & 0x00001000) == 0x00001000) && + closedGroupUpdate_ != org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.getDefaultInstance()) { + closedGroupUpdate_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.newBuilder(closedGroupUpdate_).mergeFrom(value).buildPartial(); + } else { + closedGroupUpdate_ = value; + } + onChanged(); + } else { + closedGroupUpdateBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00001000; + return this; + } + /** + * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + * + *
+       * Loki
+       * 
+ */ + public Builder clearClosedGroupUpdate() { + if (closedGroupUpdateBuilder_ == null) { + closedGroupUpdate_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.getDefaultInstance(); + onChanged(); + } else { + closedGroupUpdateBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + return this; + } + /** + * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + * + *
+       * Loki
+       * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Builder getClosedGroupUpdateBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getClosedGroupUpdateFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + * + *
+       * Loki
+       * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateOrBuilder getClosedGroupUpdateOrBuilder() { + if (closedGroupUpdateBuilder_ != null) { + return closedGroupUpdateBuilder_.getMessageOrBuilder(); + } else { + return closedGroupUpdate_; + } + } + /** + * optional .signalservice.ClosedGroupUpdate closedGroupUpdate = 103; + * + *
+       * Loki
+       * 
+ */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateOrBuilder> + getClosedGroupUpdateFieldBuilder() { + if (closedGroupUpdateBuilder_ == null) { + closedGroupUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateOrBuilder>( + closedGroupUpdate_, + getParentForChildren(), + isClean()); + closedGroupUpdate_ = null; + } + return closedGroupUpdateBuilder_; + } + + // optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 closedGroupUpdateV2_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2OrBuilder> closedGroupUpdateV2Builder_; + /** + * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + */ + public boolean hasClosedGroupUpdateV2() { + return ((bitField0_ & 0x00002000) == 0x00002000); + } + /** + * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 getClosedGroupUpdateV2() { + if (closedGroupUpdateV2Builder_ == null) { + return closedGroupUpdateV2_; + } else { + return closedGroupUpdateV2Builder_.getMessage(); + } + } + /** + * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + */ + public Builder setClosedGroupUpdateV2(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 value) { + if (closedGroupUpdateV2Builder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + closedGroupUpdateV2_ = value; + onChanged(); + } else { + closedGroupUpdateV2Builder_.setMessage(value); + } + bitField0_ |= 0x00002000; + return this; + } + /** + * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + */ + public Builder setClosedGroupUpdateV2( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Builder builderForValue) { + if (closedGroupUpdateV2Builder_ == null) { + closedGroupUpdateV2_ = builderForValue.build(); + onChanged(); + } else { + closedGroupUpdateV2Builder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + return this; + } + /** + * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + */ + public Builder mergeClosedGroupUpdateV2(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 value) { + if (closedGroupUpdateV2Builder_ == null) { + if (((bitField0_ & 0x00002000) == 0x00002000) && + closedGroupUpdateV2_ != org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.getDefaultInstance()) { + closedGroupUpdateV2_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.newBuilder(closedGroupUpdateV2_).mergeFrom(value).buildPartial(); + } else { + closedGroupUpdateV2_ = value; + } + onChanged(); + } else { + closedGroupUpdateV2Builder_.mergeFrom(value); + } + bitField0_ |= 0x00002000; + return this; + } + /** + * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + */ + public Builder clearClosedGroupUpdateV2() { + if (closedGroupUpdateV2Builder_ == null) { + closedGroupUpdateV2_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.getDefaultInstance(); + onChanged(); + } else { + closedGroupUpdateV2Builder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + return this; + } + /** + * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Builder getClosedGroupUpdateV2Builder() { + bitField0_ |= 0x00002000; + onChanged(); + return getClosedGroupUpdateV2FieldBuilder().getBuilder(); + } + /** + * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2OrBuilder getClosedGroupUpdateV2OrBuilder() { + if (closedGroupUpdateV2Builder_ != null) { + return closedGroupUpdateV2Builder_.getMessageOrBuilder(); + } else { + return closedGroupUpdateV2_; + } + } + /** + * optional .signalservice.ClosedGroupUpdateV2 closedGroupUpdateV2 = 104; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2OrBuilder> + getClosedGroupUpdateV2FieldBuilder() { + if (closedGroupUpdateV2Builder_ == null) { + closedGroupUpdateV2Builder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2OrBuilder>( + closedGroupUpdateV2_, + getParentForChildren(), + isClean()); + closedGroupUpdateV2_ = null; + } + return closedGroupUpdateV2Builder_; + } + + // @@protoc_insertion_point(builder_scope:signalservice.DataMessage) } - public interface LokiUserProfileOrBuilder - extends com.google.protobuf.MessageOrBuilder { + static { + defaultInstance = new DataMessage(true); + defaultInstance.initFields(); + } - // optional string displayName = 1; - /** - * optional string displayName = 1; - */ - boolean hasDisplayName(); - /** - * optional string displayName = 1; - */ - java.lang.String getDisplayName(); - /** - * optional string displayName = 1; - */ - com.google.protobuf.ByteString + // @@protoc_insertion_point(class_scope:signalservice.DataMessage) + } + + public interface LokiUserProfileOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string displayName = 1; + /** + * optional string displayName = 1; + */ + boolean hasDisplayName(); + /** + * optional string displayName = 1; + */ + java.lang.String getDisplayName(); + /** + * optional string displayName = 1; + */ + com.google.protobuf.ByteString getDisplayNameBytes(); - // optional string profilePictureURL = 2; - /** - * optional string profilePictureURL = 2; - */ - boolean hasProfilePictureURL(); - /** - * optional string profilePictureURL = 2; - */ - java.lang.String getProfilePictureURL(); - /** - * optional string profilePictureURL = 2; - */ - com.google.protobuf.ByteString + // optional string profilePictureURL = 2; + /** + * optional string profilePictureURL = 2; + */ + boolean hasProfilePictureURL(); + /** + * optional string profilePictureURL = 2; + */ + java.lang.String getProfilePictureURL(); + /** + * optional string profilePictureURL = 2; + */ + com.google.protobuf.ByteString getProfilePictureURLBytes(); + } + /** + * Protobuf type {@code signalservice.LokiUserProfile} + */ + public static final class LokiUserProfile extends + com.google.protobuf.GeneratedMessage + implements LokiUserProfileOrBuilder { + // Use LokiUserProfile.newBuilder() to construct. + private LokiUserProfile(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private LokiUserProfile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final LokiUserProfile defaultInstance; + public static LokiUserProfile getDefaultInstance() { + return defaultInstance; + } + + public LokiUserProfile getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LokiUserProfile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + displayName_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + profilePictureURL_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_LokiUserProfile_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_LokiUserProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.class, org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public LokiUserProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LokiUserProfile(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string displayName = 1; + public static final int DISPLAYNAME_FIELD_NUMBER = 1; + private java.lang.Object displayName_; + /** + * optional string displayName = 1; + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string displayName = 1; + */ + 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; + } + return s; + } + } + /** + * optional string displayName = 1; + */ + 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; + } + } + + // optional string profilePictureURL = 2; + public static final int PROFILEPICTUREURL_FIELD_NUMBER = 2; + private java.lang.Object profilePictureURL_; + /** + * optional string profilePictureURL = 2; + */ + public boolean hasProfilePictureURL() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string profilePictureURL = 2; + */ + public java.lang.String getProfilePictureURL() { + java.lang.Object ref = profilePictureURL_; + 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()) { + profilePictureURL_ = s; + } + return s; + } + } + /** + * optional string profilePictureURL = 2; + */ + public com.google.protobuf.ByteString + getProfilePictureURLBytes() { + java.lang.Object ref = profilePictureURL_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + profilePictureURL_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + displayName_ = ""; + profilePictureURL_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getDisplayNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getProfilePictureURLBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getDisplayNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getProfilePictureURLBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile 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.service.internal.push.SignalServiceProtos.LokiUserProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.LokiUserProfile} */ - public static final class LokiUserProfile extends - com.google.protobuf.GeneratedMessage - implements LokiUserProfileOrBuilder { - // Use LokiUserProfile.newBuilder() to construct. - private LokiUserProfile(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private LokiUserProfile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_LokiUserProfile_descriptor; + } - private static final LokiUserProfile defaultInstance; - public static LokiUserProfile getDefaultInstance() { - return defaultInstance; - } + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_LokiUserProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.class, org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.Builder.class); + } - public LokiUserProfile getDefaultInstanceForType() { - return defaultInstance; - } + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + displayName_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + profilePictureURL_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_LokiUserProfile_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile result = new org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.displayName_ = displayName_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.profilePictureURL_ = profilePictureURL_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.getDefaultInstance()) return this; + if (other.hasDisplayName()) { + bitField0_ |= 0x00000001; + displayName_ = other.displayName_; + onChanged(); + } + if (other.hasProfilePictureURL()) { + bitField0_ |= 0x00000002; + profilePictureURL_ = other.profilePictureURL_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string displayName = 1; + private java.lang.Object displayName_ = ""; + /** + * optional string displayName = 1; + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string displayName = 1; + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string displayName = 1; + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof 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; + } + } + /** + * optional string displayName = 1; + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + displayName_ = value; + onChanged(); + return this; + } + /** + * optional string displayName = 1; + */ + public Builder clearDisplayName() { + bitField0_ = (bitField0_ & ~0x00000001); + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * optional string displayName = 1; + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + displayName_ = value; + onChanged(); + return this; + } + + // optional string profilePictureURL = 2; + private java.lang.Object profilePictureURL_ = ""; + /** + * optional string profilePictureURL = 2; + */ + public boolean hasProfilePictureURL() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string profilePictureURL = 2; + */ + public java.lang.String getProfilePictureURL() { + java.lang.Object ref = profilePictureURL_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + profilePictureURL_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string profilePictureURL = 2; + */ + public com.google.protobuf.ByteString + getProfilePictureURLBytes() { + java.lang.Object ref = profilePictureURL_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + profilePictureURL_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string profilePictureURL = 2; + */ + public Builder setProfilePictureURL( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + profilePictureURL_ = value; + onChanged(); + return this; + } + /** + * optional string profilePictureURL = 2; + */ + public Builder clearProfilePictureURL() { + bitField0_ = (bitField0_ & ~0x00000002); + profilePictureURL_ = getDefaultInstance().getProfilePictureURL(); + onChanged(); + return this; + } + /** + * optional string profilePictureURL = 2; + */ + public Builder setProfilePictureURLBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + profilePictureURL_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.LokiUserProfile) + } + + static { + defaultInstance = new LokiUserProfile(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.LokiUserProfile) + } + + public interface ClosedGroupUpdateV2OrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required .signalservice.ClosedGroupUpdateV2.Type type = 1; + /** + * required .signalservice.ClosedGroupUpdateV2.Type type = 1; + * + *
+     * @required
+     * 
+ */ + boolean hasType(); + /** + * required .signalservice.ClosedGroupUpdateV2.Type type = 1; + * + *
+     * @required
+     * 
+ */ + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type getType(); + + // optional bytes publicKey = 2; + /** + * optional bytes publicKey = 2; + */ + boolean hasPublicKey(); + /** + * optional bytes publicKey = 2; + */ + com.google.protobuf.ByteString getPublicKey(); + + // optional string name = 3; + /** + * optional string name = 3; + */ + boolean hasName(); + /** + * optional string name = 3; + */ + java.lang.String getName(); + /** + * optional string name = 3; + */ + com.google.protobuf.ByteString + getNameBytes(); + + // optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + /** + * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + */ + boolean hasEncryptionKeyPair(); + /** + * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair getEncryptionKeyPair(); + /** + * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairOrBuilder getEncryptionKeyPairOrBuilder(); + + // repeated bytes members = 5; + /** + * repeated bytes members = 5; + */ + java.util.List getMembersList(); + /** + * repeated bytes members = 5; + */ + int getMembersCount(); + /** + * repeated bytes members = 5; + */ + com.google.protobuf.ByteString getMembers(int index); + + // repeated bytes admins = 6; + /** + * repeated bytes admins = 6; + */ + java.util.List getAdminsList(); + /** + * repeated bytes admins = 6; + */ + int getAdminsCount(); + /** + * repeated bytes admins = 6; + */ + com.google.protobuf.ByteString getAdmins(int index); + + // repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + java.util.List + getWrappersList(); + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper getWrappers(int index); + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + int getWrappersCount(); + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + java.util.List + getWrappersOrBuilderList(); + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapperOrBuilder getWrappersOrBuilder( + int index); + } + /** + * Protobuf type {@code signalservice.ClosedGroupUpdateV2} + */ + public static final class ClosedGroupUpdateV2 extends + com.google.protobuf.GeneratedMessage + implements ClosedGroupUpdateV2OrBuilder { + // Use ClosedGroupUpdateV2.newBuilder() to construct. + private ClosedGroupUpdateV2(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private ClosedGroupUpdateV2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final ClosedGroupUpdateV2 defaultInstance; + public static ClosedGroupUpdateV2 getDefaultInstance() { + return defaultInstance; + } + + public ClosedGroupUpdateV2 getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - private LokiUserProfile( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - displayName_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - profilePictureURL_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); + return this.unknownFields; + } + private ClosedGroupUpdateV2( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; } + case 8: { + int rawValue = input.readEnum(); + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + type_ = value; + } + break; + } + case 18: { + bitField0_ |= 0x00000002; + publicKey_ = input.readBytes(); + break; + } + case 26: { + bitField0_ |= 0x00000004; + name_ = input.readBytes(); + break; + } + case 34: { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = encryptionKeyPair_.toBuilder(); + } + encryptionKeyPair_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(encryptionKeyPair_); + encryptionKeyPair_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + members_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + members_.add(input.readBytes()); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + admins_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + admins_.add(input.readBytes()); + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + wrappers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + wrappers_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.PARSER, extensionRegistry)); + break; + } + } } - public static final com.google.protobuf.Descriptors.Descriptor + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + members_ = java.util.Collections.unmodifiableList(members_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + admins_ = java.util.Collections.unmodifiableList(admins_); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + wrappers_ = java.util.Collections.unmodifiableList(wrappers_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_LokiUserProfile_descriptor; + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public ClosedGroupUpdateV2 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClosedGroupUpdateV2(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + /** + * Protobuf enum {@code signalservice.ClosedGroupUpdateV2.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NEW = 1; + * + *
+       * publicKey, name, encryptionKeyPair, members, admins
+       * 
+ */ + NEW(0, 1), + /** + * UPDATE = 2; + * + *
+       * name, members
+       * 
+ */ + UPDATE(1, 2), + /** + * ENCRYPTION_KEY_PAIR = 3; + * + *
+       * wrappers
+       * 
+ */ + ENCRYPTION_KEY_PAIR(2, 3), + ; + + /** + * NEW = 1; + * + *
+       * publicKey, name, encryptionKeyPair, members, admins
+       * 
+ */ + public static final int NEW_VALUE = 1; + /** + * UPDATE = 2; + * + *
+       * name, members
+       * 
+ */ + public static final int UPDATE_VALUE = 2; + /** + * ENCRYPTION_KEY_PAIR = 3; + * + *
+       * wrappers
+       * 
+ */ + public static final int ENCRYPTION_KEY_PAIR_VALUE = 3; + + + public final int getNumber() { return value; } + + public static Type valueOf(int value) { + switch (value) { + case 1: return NEW; + case 2: return UPDATE; + case 3: return ENCRYPTION_KEY_PAIR; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.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 index; + private final int value; + + private Type(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:signalservice.ClosedGroupUpdateV2.Type) + } + + public interface KeyPairOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // required bytes publicKey = 1; + /** + * required bytes publicKey = 1; + * + *
+       * @required
+       * 
+ */ + boolean hasPublicKey(); + /** + * required bytes publicKey = 1; + * + *
+       * @required
+       * 
+ */ + com.google.protobuf.ByteString getPublicKey(); + + // required bytes privateKey = 2; + /** + * required bytes privateKey = 2; + * + *
+       * @required
+       * 
+ */ + boolean hasPrivateKey(); + /** + * required bytes privateKey = 2; + * + *
+       * @required
+       * 
+ */ + com.google.protobuf.ByteString getPrivateKey(); + } + /** + * Protobuf type {@code signalservice.ClosedGroupUpdateV2.KeyPair} + */ + public static final class KeyPair extends + com.google.protobuf.GeneratedMessage + implements KeyPairOrBuilder { + // Use KeyPair.newBuilder() to construct. + private KeyPair(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private KeyPair(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final KeyPair defaultInstance; + public static KeyPair getDefaultInstance() { + return defaultInstance; + } + + public KeyPair getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KeyPair( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + publicKey_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + privateKey_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public KeyPair parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyPair(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // required bytes publicKey = 1; + public static final int PUBLICKEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString publicKey_; + /** + * required bytes publicKey = 1; + * + *
+       * @required
+       * 
+ */ + public boolean hasPublicKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required bytes publicKey = 1; + * + *
+       * @required
+       * 
+ */ + public com.google.protobuf.ByteString getPublicKey() { + return publicKey_; + } + + // required bytes privateKey = 2; + public static final int PRIVATEKEY_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString privateKey_; + /** + * required bytes privateKey = 2; + * + *
+       * @required
+       * 
+ */ + public boolean hasPrivateKey() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required bytes privateKey = 2; + * + *
+       * @required
+       * 
+ */ + public com.google.protobuf.ByteString getPrivateKey() { + return privateKey_; + } + + private void initFields() { + publicKey_ = com.google.protobuf.ByteString.EMPTY; + privateKey_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPublicKey()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasPrivateKey()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, publicKey_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, privateKey_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, publicKey_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, privateKey_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair 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.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.ClosedGroupUpdateV2.KeyPair} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_LokiUserProfile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.class, org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public LokiUserProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LokiUserProfile(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string displayName = 1; - public static final int DISPLAYNAME_FIELD_NUMBER = 1; - private java.lang.Object displayName_; - /** - * optional string displayName = 1; - */ - public boolean hasDisplayName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string displayName = 1; - */ - 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; - } - return s; - } - } - /** - * optional string displayName = 1; - */ - 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; - } - } - - // optional string profilePictureURL = 2; - public static final int PROFILEPICTUREURL_FIELD_NUMBER = 2; - private java.lang.Object profilePictureURL_; - /** - * optional string profilePictureURL = 2; - */ - public boolean hasProfilePictureURL() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string profilePictureURL = 2; - */ - public java.lang.String getProfilePictureURL() { - java.lang.Object ref = profilePictureURL_; - 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()) { - profilePictureURL_ = s; - } - return s; - } - } - /** - * optional string profilePictureURL = 2; - */ - public com.google.protobuf.ByteString - getProfilePictureURLBytes() { - java.lang.Object ref = profilePictureURL_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - profilePictureURL_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - displayName_ = ""; - profilePictureURL_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getDisplayNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getProfilePictureURLBytes()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getDisplayNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getProfilePictureURLBytes()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile 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.service.internal.push.SignalServiceProtos.LokiUserProfile parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.LokiUserProfile} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_LokiUserProfile_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_LokiUserProfile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.class, org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.Builder.class); - } + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.Builder.class); + } - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } - public Builder clear() { - super.clear(); - displayName_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - profilePictureURL_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } + public Builder clear() { + super.clear(); + publicKey_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + privateKey_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } + public Builder clone() { + return create().mergeFrom(buildPartial()); + } - public com.google.protobuf.Descriptors.Descriptor + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_LokiUserProfile_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile result = new org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.displayName_ = displayName_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.profilePictureURL_ = profilePictureURL_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile.getDefaultInstance()) return this; - if (other.hasDisplayName()) { - bitField0_ |= 0x00000001; - displayName_ = other.displayName_; - onChanged(); - } - if (other.hasProfilePictureURL()) { - bitField0_ |= 0x00000002; - profilePictureURL_ = other.profilePictureURL_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.LokiUserProfile) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string displayName = 1; - private java.lang.Object displayName_ = ""; - /** - * optional string displayName = 1; - */ - public boolean hasDisplayName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string displayName = 1; - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string displayName = 1; - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof 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; - } - } - /** - * optional string displayName = 1; - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - displayName_ = value; - onChanged(); - return this; - } - /** - * optional string displayName = 1; - */ - public Builder clearDisplayName() { - bitField0_ = (bitField0_ & ~0x00000001); - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - * optional string displayName = 1; - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - displayName_ = value; - onChanged(); - return this; - } - - // optional string profilePictureURL = 2; - private java.lang.Object profilePictureURL_ = ""; - /** - * optional string profilePictureURL = 2; - */ - public boolean hasProfilePictureURL() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string profilePictureURL = 2; - */ - public java.lang.String getProfilePictureURL() { - java.lang.Object ref = profilePictureURL_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - profilePictureURL_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string profilePictureURL = 2; - */ - public com.google.protobuf.ByteString - getProfilePictureURLBytes() { - java.lang.Object ref = profilePictureURL_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - profilePictureURL_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string profilePictureURL = 2; - */ - public Builder setProfilePictureURL( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - profilePictureURL_ = value; - onChanged(); - return this; - } - /** - * optional string profilePictureURL = 2; - */ - public Builder clearProfilePictureURL() { - bitField0_ = (bitField0_ & ~0x00000002); - profilePictureURL_ = getDefaultInstance().getProfilePictureURL(); - onChanged(); - return this; - } - /** - * optional string profilePictureURL = 2; - */ - public Builder setProfilePictureURLBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - profilePictureURL_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.LokiUserProfile) + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_descriptor; } - static { - defaultInstance = new LokiUserProfile(true); - defaultInstance.initFields(); + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.getDefaultInstance(); } - // @@protoc_insertion_point(class_scope:signalservice.LokiUserProfile) + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.publicKey_ = publicKey_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.privateKey_ = privateKey_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.getDefaultInstance()) return this; + if (other.hasPublicKey()) { + setPublicKey(other.getPublicKey()); + } + if (other.hasPrivateKey()) { + setPrivateKey(other.getPrivateKey()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasPublicKey()) { + + return false; + } + if (!hasPrivateKey()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // required bytes publicKey = 1; + private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes publicKey = 1; + * + *
+         * @required
+         * 
+ */ + public boolean hasPublicKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required bytes publicKey = 1; + * + *
+         * @required
+         * 
+ */ + public com.google.protobuf.ByteString getPublicKey() { + return publicKey_; + } + /** + * required bytes publicKey = 1; + * + *
+         * @required
+         * 
+ */ + public Builder setPublicKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + publicKey_ = value; + onChanged(); + return this; + } + /** + * required bytes publicKey = 1; + * + *
+         * @required
+         * 
+ */ + public Builder clearPublicKey() { + bitField0_ = (bitField0_ & ~0x00000001); + publicKey_ = getDefaultInstance().getPublicKey(); + onChanged(); + return this; + } + + // required bytes privateKey = 2; + private com.google.protobuf.ByteString privateKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes privateKey = 2; + * + *
+         * @required
+         * 
+ */ + public boolean hasPrivateKey() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required bytes privateKey = 2; + * + *
+         * @required
+         * 
+ */ + public com.google.protobuf.ByteString getPrivateKey() { + return privateKey_; + } + /** + * required bytes privateKey = 2; + * + *
+         * @required
+         * 
+ */ + public Builder setPrivateKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + privateKey_ = value; + onChanged(); + return this; + } + /** + * required bytes privateKey = 2; + * + *
+         * @required
+         * 
+ */ + public Builder clearPrivateKey() { + bitField0_ = (bitField0_ & ~0x00000002); + privateKey_ = getDefaultInstance().getPrivateKey(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.ClosedGroupUpdateV2.KeyPair) + } + + static { + defaultInstance = new KeyPair(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.ClosedGroupUpdateV2.KeyPair) } - public interface ClosedGroupUpdateV2OrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface KeyPairWrapperOrBuilder + extends com.google.protobuf.MessageOrBuilder { - // required .signalservice.ClosedGroupUpdateV2.Type type = 1; + // required bytes publicKey = 1; + /** + * required bytes publicKey = 1; + * + *
+       * @required
+       * 
+ */ + boolean hasPublicKey(); + /** + * required bytes publicKey = 1; + * + *
+       * @required
+       * 
+ */ + com.google.protobuf.ByteString getPublicKey(); + + // required bytes encryptedKeyPair = 2; + /** + * required bytes encryptedKeyPair = 2; + * + *
+       * @required
+       * 
+ */ + boolean hasEncryptedKeyPair(); + /** + * required bytes encryptedKeyPair = 2; + * + *
+       * @required
+       * 
+ */ + com.google.protobuf.ByteString getEncryptedKeyPair(); + } + /** + * Protobuf type {@code signalservice.ClosedGroupUpdateV2.KeyPairWrapper} + */ + public static final class KeyPairWrapper extends + com.google.protobuf.GeneratedMessage + implements KeyPairWrapperOrBuilder { + // Use KeyPairWrapper.newBuilder() to construct. + private KeyPairWrapper(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private KeyPairWrapper(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final KeyPairWrapper defaultInstance; + public static KeyPairWrapper getDefaultInstance() { + return defaultInstance; + } + + public KeyPairWrapper getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KeyPairWrapper( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + publicKey_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + encryptedKeyPair_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public KeyPairWrapper parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KeyPairWrapper(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // required bytes publicKey = 1; + public static final int PUBLICKEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString publicKey_; + /** + * required bytes publicKey = 1; + * + *
+       * @required
+       * 
+ */ + public boolean hasPublicKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required bytes publicKey = 1; + * + *
+       * @required
+       * 
+ */ + public com.google.protobuf.ByteString getPublicKey() { + return publicKey_; + } + + // required bytes encryptedKeyPair = 2; + public static final int ENCRYPTEDKEYPAIR_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString encryptedKeyPair_; + /** + * required bytes encryptedKeyPair = 2; + * + *
+       * @required
+       * 
+ */ + public boolean hasEncryptedKeyPair() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required bytes encryptedKeyPair = 2; + * + *
+       * @required
+       * 
+ */ + public com.google.protobuf.ByteString getEncryptedKeyPair() { + return encryptedKeyPair_; + } + + private void initFields() { + publicKey_ = com.google.protobuf.ByteString.EMPTY; + encryptedKeyPair_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (!hasPublicKey()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasEncryptedKeyPair()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, publicKey_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, encryptedKeyPair_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, publicKey_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, encryptedKeyPair_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper 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.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.ClosedGroupUpdateV2.KeyPairWrapper} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapperOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + publicKey_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + encryptedKeyPair_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.publicKey_ = publicKey_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.encryptedKeyPair_ = encryptedKeyPair_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.getDefaultInstance()) return this; + if (other.hasPublicKey()) { + setPublicKey(other.getPublicKey()); + } + if (other.hasEncryptedKeyPair()) { + setEncryptedKeyPair(other.getEncryptedKeyPair()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasPublicKey()) { + + return false; + } + if (!hasEncryptedKeyPair()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // required bytes publicKey = 1; + private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; /** - * required .signalservice.ClosedGroupUpdateV2.Type type = 1; + * required bytes publicKey = 1; * *
          * @required
          * 
*/ - boolean hasType(); + public boolean hasPublicKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } /** - * required .signalservice.ClosedGroupUpdateV2.Type type = 1; + * required bytes publicKey = 1; * *
          * @required
          * 
*/ - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type getType(); + public com.google.protobuf.ByteString getPublicKey() { + return publicKey_; + } + /** + * required bytes publicKey = 1; + * + *
+         * @required
+         * 
+ */ + public Builder setPublicKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + publicKey_ = value; + onChanged(); + return this; + } + /** + * required bytes publicKey = 1; + * + *
+         * @required
+         * 
+ */ + public Builder clearPublicKey() { + bitField0_ = (bitField0_ & ~0x00000001); + publicKey_ = getDefaultInstance().getPublicKey(); + onChanged(); + return this; + } - // optional bytes publicKey = 2; + // required bytes encryptedKeyPair = 2; + private com.google.protobuf.ByteString encryptedKeyPair_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes publicKey = 2; + * required bytes encryptedKeyPair = 2; + * + *
+         * @required
+         * 
*/ - boolean hasPublicKey(); + public boolean hasEncryptedKeyPair() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } /** - * optional bytes publicKey = 2; + * required bytes encryptedKeyPair = 2; + * + *
+         * @required
+         * 
*/ - com.google.protobuf.ByteString getPublicKey(); + public com.google.protobuf.ByteString getEncryptedKeyPair() { + return encryptedKeyPair_; + } + /** + * required bytes encryptedKeyPair = 2; + * + *
+         * @required
+         * 
+ */ + public Builder setEncryptedKeyPair(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + encryptedKeyPair_ = value; + onChanged(); + return this; + } + /** + * required bytes encryptedKeyPair = 2; + * + *
+         * @required
+         * 
+ */ + public Builder clearEncryptedKeyPair() { + bitField0_ = (bitField0_ & ~0x00000002); + encryptedKeyPair_ = getDefaultInstance().getEncryptedKeyPair(); + onChanged(); + return this; + } - // optional string name = 3; - /** - * optional string name = 3; - */ - boolean hasName(); - /** - * optional string name = 3; - */ - java.lang.String getName(); - /** - * optional string name = 3; - */ - com.google.protobuf.ByteString - getNameBytes(); + // @@protoc_insertion_point(builder_scope:signalservice.ClosedGroupUpdateV2.KeyPairWrapper) + } - // optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - /** - * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - */ - boolean hasEncryptionKeyPair(); - /** - * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair getEncryptionKeyPair(); - /** - * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairOrBuilder getEncryptionKeyPairOrBuilder(); + static { + defaultInstance = new KeyPairWrapper(true); + defaultInstance.initFields(); + } - // repeated bytes members = 5; - /** - * repeated bytes members = 5; - */ - java.util.List getMembersList(); - /** - * repeated bytes members = 5; - */ - int getMembersCount(); - /** - * repeated bytes members = 5; - */ - com.google.protobuf.ByteString getMembers(int index); + // @@protoc_insertion_point(class_scope:signalservice.ClosedGroupUpdateV2.KeyPairWrapper) + } - // repeated bytes admins = 6; - /** - * repeated bytes admins = 6; - */ - java.util.List getAdminsList(); - /** - * repeated bytes admins = 6; - */ - int getAdminsCount(); - /** - * repeated bytes admins = 6; - */ - com.google.protobuf.ByteString getAdmins(int index); + private int bitField0_; + // required .signalservice.ClosedGroupUpdateV2.Type type = 1; + public static final int TYPE_FIELD_NUMBER = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type type_; + /** + * required .signalservice.ClosedGroupUpdateV2.Type type = 1; + * + *
+     * @required
+     * 
+ */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required .signalservice.ClosedGroupUpdateV2.Type type = 1; + * + *
+     * @required
+     * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type getType() { + return type_; + } - // repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - java.util.List - getWrappersList(); - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper getWrappers(int index); - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - int getWrappersCount(); - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - java.util.List - getWrappersOrBuilderList(); - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapperOrBuilder getWrappersOrBuilder( - int index); + // optional bytes publicKey = 2; + public static final int PUBLICKEY_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString publicKey_; + /** + * optional bytes publicKey = 2; + */ + public boolean hasPublicKey() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bytes publicKey = 2; + */ + public com.google.protobuf.ByteString getPublicKey() { + return publicKey_; + } + + // optional string name = 3; + public static final int NAME_FIELD_NUMBER = 3; + private java.lang.Object name_; + /** + * optional string name = 3; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string name = 3; + */ + 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; + */ + 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; + } + } + + // optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + public static final int ENCRYPTIONKEYPAIR_FIELD_NUMBER = 4; + private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair encryptionKeyPair_; + /** + * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + */ + public boolean hasEncryptionKeyPair() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair getEncryptionKeyPair() { + return encryptionKeyPair_; + } + /** + * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairOrBuilder getEncryptionKeyPairOrBuilder() { + return encryptionKeyPair_; + } + + // repeated bytes members = 5; + public static final int MEMBERS_FIELD_NUMBER = 5; + private java.util.List members_; + /** + * repeated bytes members = 5; + */ + public java.util.List + getMembersList() { + return members_; + } + /** + * repeated bytes members = 5; + */ + public int getMembersCount() { + return members_.size(); + } + /** + * repeated bytes members = 5; + */ + public com.google.protobuf.ByteString getMembers(int index) { + return members_.get(index); + } + + // repeated bytes admins = 6; + public static final int ADMINS_FIELD_NUMBER = 6; + private java.util.List admins_; + /** + * repeated bytes admins = 6; + */ + public java.util.List + getAdminsList() { + return admins_; + } + /** + * repeated bytes admins = 6; + */ + public int getAdminsCount() { + return admins_.size(); + } + /** + * repeated bytes admins = 6; + */ + public com.google.protobuf.ByteString getAdmins(int index) { + return admins_.get(index); + } + + // repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + public static final int WRAPPERS_FIELD_NUMBER = 7; + private java.util.List wrappers_; + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public java.util.List getWrappersList() { + return wrappers_; + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public java.util.List + getWrappersOrBuilderList() { + return wrappers_; + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public int getWrappersCount() { + return wrappers_.size(); + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper getWrappers(int index) { + return wrappers_.get(index); + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapperOrBuilder getWrappersOrBuilder( + int index) { + return wrappers_.get(index); + } + + private void initFields() { + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type.NEW; + publicKey_ = com.google.protobuf.ByteString.EMPTY; + name_ = ""; + encryptionKeyPair_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.getDefaultInstance(); + members_ = java.util.Collections.emptyList(); + admins_ = java.util.Collections.emptyList(); + wrappers_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + 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; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, type_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, publicKey_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getNameBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(4, encryptionKeyPair_); + } + 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)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_.getNumber()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, publicKey_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getNameBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, encryptionKeyPair_); + } + { + 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)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 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.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.ClosedGroupUpdateV2} */ - public static final class ClosedGroupUpdateV2 extends - com.google.protobuf.GeneratedMessage - implements ClosedGroupUpdateV2OrBuilder { - // Use ClosedGroupUpdateV2.newBuilder() to construct. - private ClosedGroupUpdateV2(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ClosedGroupUpdateV2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2OrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_descriptor; + } - private static final ClosedGroupUpdateV2 defaultInstance; - public static ClosedGroupUpdateV2 getDefaultInstance() { - return defaultInstance; - } + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Builder.class); + } - public ClosedGroupUpdateV2 getDefaultInstanceForType() { - return defaultInstance; - } + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getEncryptionKeyPairFieldBuilder(); + getWrappersFieldBuilder(); } - private ClosedGroupUpdateV2( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - type_ = value; - } - break; - } - case 18: { - bitField0_ |= 0x00000002; - publicKey_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - name_ = input.readBytes(); - break; - } - case 34: { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = encryptionKeyPair_.toBuilder(); - } - encryptionKeyPair_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(encryptionKeyPair_); - encryptionKeyPair_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - members_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - members_.add(input.readBytes()); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - admins_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - admins_.add(input.readBytes()); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - wrappers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - wrappers_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - members_ = java.util.Collections.unmodifiableList(members_); - } - if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - admins_ = java.util.Collections.unmodifiableList(admins_); - } - if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - wrappers_ = java.util.Collections.unmodifiableList(wrappers_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type.NEW; + bitField0_ = (bitField0_ & ~0x00000001); + publicKey_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + if (encryptionKeyPairBuilder_ == null) { + encryptionKeyPair_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.getDefaultInstance(); + } else { + encryptionKeyPairBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + admins_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + if (wrappersBuilder_ == null) { + wrappers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + wrappersBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.publicKey_ = publicKey_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + if (encryptionKeyPairBuilder_ == null) { + result.encryptionKeyPair_ = encryptionKeyPair_; + } else { + result.encryptionKeyPair_ = encryptionKeyPairBuilder_.build(); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + members_ = java.util.Collections.unmodifiableList(members_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.members_ = members_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + admins_ = java.util.Collections.unmodifiableList(admins_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.admins_ = admins_; + if (wrappersBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + wrappers_ = java.util.Collections.unmodifiableList(wrappers_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.wrappers_ = wrappers_; + } else { + result.wrappers_ = wrappersBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.getDefaultInstance()) return this; + if (other.hasType()) { + setType(other.getType()); + } + if (other.hasPublicKey()) { + setPublicKey(other.getPublicKey()); + } + if (other.hasName()) { + bitField0_ |= 0x00000004; + name_ = other.name_; + onChanged(); + } + if (other.hasEncryptionKeyPair()) { + mergeEncryptionKeyPair(other.getEncryptionKeyPair()); + } + if (!other.members_.isEmpty()) { + if (members_.isEmpty()) { + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureMembersIsMutable(); + members_.addAll(other.members_); + } + onChanged(); + } + if (!other.admins_.isEmpty()) { + if (admins_.isEmpty()) { + admins_ = other.admins_; + bitField0_ = (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_); + } + } } - public static final com.google.protobuf.Descriptors.Descriptor + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + 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; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // required .signalservice.ClosedGroupUpdateV2.Type type = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type.NEW; + /** + * required .signalservice.ClosedGroupUpdateV2.Type type = 1; + * + *
+       * @required
+       * 
+ */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required .signalservice.ClosedGroupUpdateV2.Type type = 1; + * + *
+       * @required
+       * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type getType() { + return type_; + } + /** + * required .signalservice.ClosedGroupUpdateV2.Type type = 1; + * + *
+       * @required
+       * 
+ */ + public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + /** + * required .signalservice.ClosedGroupUpdateV2.Type type = 1; + * + *
+       * @required
+       * 
+ */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type.NEW; + onChanged(); + return this; + } + + // optional bytes publicKey = 2; + private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes publicKey = 2; + */ + public boolean hasPublicKey() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bytes publicKey = 2; + */ + public com.google.protobuf.ByteString getPublicKey() { + return publicKey_; + } + /** + * optional bytes publicKey = 2; + */ + public Builder setPublicKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + publicKey_ = value; + onChanged(); + return this; + } + /** + * optional bytes publicKey = 2; + */ + public Builder clearPublicKey() { + bitField0_ = (bitField0_ & ~0x00000002); + publicKey_ = getDefaultInstance().getPublicKey(); + onChanged(); + return this; + } + + // optional string name = 3; + private java.lang.Object name_ = ""; + /** + * optional string name = 3; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string name = 3; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string name = 3; + */ + 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; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + name_ = value; + onChanged(); + return this; + } + /** + * optional string name = 3; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000004); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * optional string name = 3; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + name_ = value; + onChanged(); + return this; + } + + // optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair encryptionKeyPair_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairOrBuilder> encryptionKeyPairBuilder_; + /** + * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + */ + public boolean hasEncryptionKeyPair() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair getEncryptionKeyPair() { + if (encryptionKeyPairBuilder_ == null) { + return encryptionKeyPair_; + } else { + return encryptionKeyPairBuilder_.getMessage(); + } + } + /** + * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + */ + public Builder setEncryptionKeyPair(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair value) { + if (encryptionKeyPairBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionKeyPair_ = value; + onChanged(); + } else { + encryptionKeyPairBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + */ + public Builder setEncryptionKeyPair( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.Builder builderForValue) { + if (encryptionKeyPairBuilder_ == null) { + encryptionKeyPair_ = builderForValue.build(); + onChanged(); + } else { + encryptionKeyPairBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + */ + public Builder mergeEncryptionKeyPair(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair value) { + if (encryptionKeyPairBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + encryptionKeyPair_ != org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.getDefaultInstance()) { + encryptionKeyPair_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.newBuilder(encryptionKeyPair_).mergeFrom(value).buildPartial(); + } else { + encryptionKeyPair_ = value; + } + onChanged(); + } else { + encryptionKeyPairBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + */ + public Builder clearEncryptionKeyPair() { + if (encryptionKeyPairBuilder_ == null) { + encryptionKeyPair_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.getDefaultInstance(); + onChanged(); + } else { + encryptionKeyPairBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + /** + * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.Builder getEncryptionKeyPairBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getEncryptionKeyPairFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairOrBuilder getEncryptionKeyPairOrBuilder() { + if (encryptionKeyPairBuilder_ != null) { + return encryptionKeyPairBuilder_.getMessageOrBuilder(); + } else { + return encryptionKeyPair_; + } + } + /** + * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairOrBuilder> + getEncryptionKeyPairFieldBuilder() { + if (encryptionKeyPairBuilder_ == null) { + encryptionKeyPairBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairOrBuilder>( + encryptionKeyPair_, + getParentForChildren(), + isClean()); + encryptionKeyPair_ = null; + } + return encryptionKeyPairBuilder_; + } + + // repeated bytes members = 5; + private java.util.List members_ = java.util.Collections.emptyList(); + private void ensureMembersIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + members_ = new java.util.ArrayList(members_); + bitField0_ |= 0x00000010; + } + } + /** + * repeated bytes members = 5; + */ + public java.util.List + getMembersList() { + return java.util.Collections.unmodifiableList(members_); + } + /** + * repeated bytes members = 5; + */ + public int getMembersCount() { + return members_.size(); + } + /** + * repeated bytes members = 5; + */ + public com.google.protobuf.ByteString getMembers(int index) { + return members_.get(index); + } + /** + * repeated bytes members = 5; + */ + public Builder setMembers( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.set(index, value); + onChanged(); + return this; + } + /** + * repeated bytes members = 5; + */ + public Builder addMembers(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(value); + onChanged(); + return this; + } + /** + * repeated bytes members = 5; + */ + public Builder addAllMembers( + java.lang.Iterable values) { + ensureMembersIsMutable(); + super.addAll(values, members_); + onChanged(); + return this; + } + /** + * repeated bytes members = 5; + */ + public Builder clearMembers() { + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + // repeated bytes admins = 6; + private java.util.List admins_ = java.util.Collections.emptyList(); + private void ensureAdminsIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + admins_ = new java.util.ArrayList(admins_); + bitField0_ |= 0x00000020; + } + } + /** + * repeated bytes admins = 6; + */ + public java.util.List + getAdminsList() { + return java.util.Collections.unmodifiableList(admins_); + } + /** + * repeated bytes admins = 6; + */ + public int getAdminsCount() { + return admins_.size(); + } + /** + * repeated bytes admins = 6; + */ + public com.google.protobuf.ByteString getAdmins(int index) { + return admins_.get(index); + } + /** + * repeated bytes admins = 6; + */ + public Builder setAdmins( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdminsIsMutable(); + admins_.set(index, value); + onChanged(); + return this; + } + /** + * repeated bytes admins = 6; + */ + public Builder addAdmins(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdminsIsMutable(); + admins_.add(value); + onChanged(); + return this; + } + /** + * repeated bytes admins = 6; + */ + public Builder addAllAdmins( + java.lang.Iterable values) { + ensureAdminsIsMutable(); + super.addAll(values, admins_); + onChanged(); + return this; + } + /** + * repeated bytes admins = 6; + */ + public Builder clearAdmins() { + admins_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + // repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + private java.util.List wrappers_ = + java.util.Collections.emptyList(); + private void ensureWrappersIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + wrappers_ = new java.util.ArrayList(wrappers_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapperOrBuilder> wrappersBuilder_; + + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public java.util.List getWrappersList() { + if (wrappersBuilder_ == null) { + return java.util.Collections.unmodifiableList(wrappers_); + } else { + return wrappersBuilder_.getMessageList(); + } + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public int getWrappersCount() { + if (wrappersBuilder_ == null) { + return wrappers_.size(); + } else { + return wrappersBuilder_.getCount(); + } + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper getWrappers(int index) { + if (wrappersBuilder_ == null) { + return wrappers_.get(index); + } else { + return wrappersBuilder_.getMessage(index); + } + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public Builder setWrappers( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.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.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public Builder setWrappers( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder builderForValue) { + if (wrappersBuilder_ == null) { + ensureWrappersIsMutable(); + wrappers_.set(index, builderForValue.build()); + onChanged(); + } else { + wrappersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public Builder addWrappers(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper value) { + if (wrappersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWrappersIsMutable(); + wrappers_.add(value); + onChanged(); + } else { + wrappersBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public Builder addWrappers( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.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.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public Builder addWrappers( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder builderForValue) { + if (wrappersBuilder_ == null) { + ensureWrappersIsMutable(); + wrappers_.add(builderForValue.build()); + onChanged(); + } else { + wrappersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public Builder addWrappers( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder builderForValue) { + if (wrappersBuilder_ == null) { + ensureWrappersIsMutable(); + wrappers_.add(index, builderForValue.build()); + onChanged(); + } else { + wrappersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public Builder addAllWrappers( + java.lang.Iterable values) { + if (wrappersBuilder_ == null) { + ensureWrappersIsMutable(); + super.addAll(values, wrappers_); + onChanged(); + } else { + wrappersBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.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.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public Builder removeWrappers(int index) { + if (wrappersBuilder_ == null) { + ensureWrappersIsMutable(); + wrappers_.remove(index); + onChanged(); + } else { + wrappersBuilder_.remove(index); + } + return this; + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder getWrappersBuilder( + int index) { + return getWrappersFieldBuilder().getBuilder(index); + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapperOrBuilder getWrappersOrBuilder( + int index) { + if (wrappersBuilder_ == null) { + return wrappers_.get(index); } else { + return wrappersBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public java.util.List + getWrappersOrBuilderList() { + if (wrappersBuilder_ != null) { + return wrappersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(wrappers_); + } + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder addWrappersBuilder() { + return getWrappersFieldBuilder().addBuilder( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.getDefaultInstance()); + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder addWrappersBuilder( + int index) { + return getWrappersFieldBuilder().addBuilder( + index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.getDefaultInstance()); + } + /** + * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; + */ + public java.util.List + getWrappersBuilderList() { + return getWrappersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapperOrBuilder> + getWrappersFieldBuilder() { + if (wrappersBuilder_ == null) { + wrappersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapperOrBuilder>( + wrappers_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + wrappers_ = null; + } + return wrappersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:signalservice.ClosedGroupUpdateV2) + } + + static { + defaultInstance = new ClosedGroupUpdateV2(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.ClosedGroupUpdateV2) + } + + public interface ClosedGroupUpdateOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string name = 1; + /** + * optional string name = 1; + */ + boolean hasName(); + /** + * optional string name = 1; + */ + java.lang.String getName(); + /** + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + // optional bytes groupPublicKey = 2; + /** + * optional bytes groupPublicKey = 2; + * + *
+     * @required
+     * 
+ */ + boolean hasGroupPublicKey(); + /** + * optional bytes groupPublicKey = 2; + * + *
+     * @required
+     * 
+ */ + com.google.protobuf.ByteString getGroupPublicKey(); + + // optional bytes groupPrivateKey = 3; + /** + * optional bytes groupPrivateKey = 3; + */ + boolean hasGroupPrivateKey(); + /** + * optional bytes groupPrivateKey = 3; + */ + com.google.protobuf.ByteString getGroupPrivateKey(); + + // repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + java.util.List + getSenderKeysList(); + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey getSenderKeys(int index); + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + int getSenderKeysCount(); + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + java.util.List + getSenderKeysOrBuilderList(); + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKeyOrBuilder getSenderKeysOrBuilder( + int index); + + // repeated bytes members = 5; + /** + * repeated bytes members = 5; + */ + java.util.List getMembersList(); + /** + * repeated bytes members = 5; + */ + int getMembersCount(); + /** + * repeated bytes members = 5; + */ + com.google.protobuf.ByteString getMembers(int index); + + // repeated bytes admins = 6; + /** + * repeated bytes admins = 6; + */ + java.util.List getAdminsList(); + /** + * repeated bytes admins = 6; + */ + int getAdminsCount(); + /** + * repeated bytes admins = 6; + */ + com.google.protobuf.ByteString getAdmins(int index); + + // optional .signalservice.ClosedGroupUpdate.Type type = 7; + /** + * optional .signalservice.ClosedGroupUpdate.Type type = 7; + * + *
+     * @required
+     * 
+ */ + boolean hasType(); + /** + * optional .signalservice.ClosedGroupUpdate.Type type = 7; + * + *
+     * @required
+     * 
+ */ + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type getType(); + } + /** + * Protobuf type {@code signalservice.ClosedGroupUpdate} + */ + public static final class ClosedGroupUpdate extends + com.google.protobuf.GeneratedMessage + implements ClosedGroupUpdateOrBuilder { + // Use ClosedGroupUpdate.newBuilder() to construct. + private ClosedGroupUpdate(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private ClosedGroupUpdate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final ClosedGroupUpdate defaultInstance; + public static ClosedGroupUpdate getDefaultInstance() { + return defaultInstance; + } + + public ClosedGroupUpdate getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ClosedGroupUpdate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + name_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + groupPublicKey_ = input.readBytes(); + break; + } + case 26: { + bitField0_ |= 0x00000004; + groupPrivateKey_ = input.readBytes(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + senderKeys_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + senderKeys_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.PARSER, extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + members_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + members_.add(input.readBytes()); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + admins_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + admins_.add(input.readBytes()); + break; + } + case 56: { + int rawValue = input.readEnum(); + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(7, rawValue); + } else { + bitField0_ |= 0x00000008; + type_ = value; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + senderKeys_ = java.util.Collections.unmodifiableList(senderKeys_); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + members_ = java.util.Collections.unmodifiableList(members_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + admins_ = java.util.Collections.unmodifiableList(admins_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_descriptor; + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public ClosedGroupUpdate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClosedGroupUpdate(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + /** + * Protobuf enum {@code signalservice.ClosedGroupUpdate.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NEW = 0; + * + *
+       * groupPublicKey, name, groupPrivateKey, senderKeys, members, admins
+       * 
+ */ + NEW(0, 0), + /** + * INFO = 1; + * + *
+       * groupPublicKey, name, senderKeys, members, admins
+       * 
+ */ + INFO(1, 1), + /** + * SENDER_KEY_REQUEST = 2; + * + *
+       * groupPublicKey
+       * 
+ */ + SENDER_KEY_REQUEST(2, 2), + /** + * SENDER_KEY = 3; + * + *
+       * groupPublicKey, senderKeys
+       * 
+ */ + SENDER_KEY(3, 3), + ; + + /** + * NEW = 0; + * + *
+       * groupPublicKey, name, groupPrivateKey, senderKeys, members, admins
+       * 
+ */ + public static final int NEW_VALUE = 0; + /** + * INFO = 1; + * + *
+       * groupPublicKey, name, senderKeys, members, admins
+       * 
+ */ + public static final int INFO_VALUE = 1; + /** + * SENDER_KEY_REQUEST = 2; + * + *
+       * groupPublicKey
+       * 
+ */ + public static final int SENDER_KEY_REQUEST_VALUE = 2; + /** + * SENDER_KEY = 3; + * + *
+       * groupPublicKey, senderKeys
+       * 
+ */ + public static final int SENDER_KEY_VALUE = 3; + + + public final int getNumber() { return value; } + + public static Type valueOf(int value) { + switch (value) { + case 0: return NEW; + case 1: return INFO; + case 2: return SENDER_KEY_REQUEST; + case 3: return SENDER_KEY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.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 index; + private final int value; + + private Type(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:signalservice.ClosedGroupUpdate.Type) + } + + public interface SenderKeyOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional bytes chainKey = 1; + /** + * optional bytes chainKey = 1; + * + *
+       * @required
+       * 
+ */ + boolean hasChainKey(); + /** + * optional bytes chainKey = 1; + * + *
+       * @required
+       * 
+ */ + com.google.protobuf.ByteString getChainKey(); + + // optional uint32 keyIndex = 2; + /** + * optional uint32 keyIndex = 2; + * + *
+       * @required
+       * 
+ */ + boolean hasKeyIndex(); + /** + * optional uint32 keyIndex = 2; + * + *
+       * @required
+       * 
+ */ + int getKeyIndex(); + + // optional bytes publicKey = 3; + /** + * optional bytes publicKey = 3; + * + *
+       * @required
+       * 
+ */ + boolean hasPublicKey(); + /** + * optional bytes publicKey = 3; + * + *
+       * @required
+       * 
+ */ + com.google.protobuf.ByteString getPublicKey(); + } + /** + * Protobuf type {@code signalservice.ClosedGroupUpdate.SenderKey} + */ + public static final class SenderKey extends + com.google.protobuf.GeneratedMessage + implements SenderKeyOrBuilder { + // Use SenderKey.newBuilder() to construct. + private SenderKey(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private SenderKey(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final SenderKey defaultInstance; + public static SenderKey getDefaultInstance() { + return defaultInstance; + } + + public SenderKey getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SenderKey( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + chainKey_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + keyIndex_ = input.readUInt32(); + break; + } + case 26: { + bitField0_ |= 0x00000004; + publicKey_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_SenderKey_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_SenderKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public SenderKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SenderKey(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional bytes chainKey = 1; + public static final int CHAINKEY_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString chainKey_; + /** + * optional bytes chainKey = 1; + * + *
+       * @required
+       * 
+ */ + public boolean hasChainKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional bytes chainKey = 1; + * + *
+       * @required
+       * 
+ */ + public com.google.protobuf.ByteString getChainKey() { + return chainKey_; + } + + // optional uint32 keyIndex = 2; + public static final int KEYINDEX_FIELD_NUMBER = 2; + private int keyIndex_; + /** + * optional uint32 keyIndex = 2; + * + *
+       * @required
+       * 
+ */ + public boolean hasKeyIndex() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional uint32 keyIndex = 2; + * + *
+       * @required
+       * 
+ */ + public int getKeyIndex() { + return keyIndex_; + } + + // optional bytes publicKey = 3; + public static final int PUBLICKEY_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString publicKey_; + /** + * optional bytes publicKey = 3; + * + *
+       * @required
+       * 
+ */ + public boolean hasPublicKey() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bytes publicKey = 3; + * + *
+       * @required
+       * 
+ */ + public com.google.protobuf.ByteString getPublicKey() { + return publicKey_; + } + + private void initFields() { + chainKey_ = com.google.protobuf.ByteString.EMPTY; + keyIndex_ = 0; + publicKey_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, chainKey_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, keyIndex_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, publicKey_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, chainKey_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, keyIndex_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, publicKey_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey 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.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.ClosedGroupUpdate.SenderKey} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_SenderKey_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Builder.class); + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_SenderKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ClosedGroupUpdateV2 parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClosedGroupUpdateV2(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - /** - * Protobuf enum {@code signalservice.ClosedGroupUpdateV2.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * NEW = 1; - * - *
-             * publicKey, name, encryptionKeyPair, members, admins
-             * 
- */ - NEW(0, 1), - /** - * UPDATE = 2; - * - *
-             * name, members
-             * 
- */ - UPDATE(1, 2), - /** - * ENCRYPTION_KEY_PAIR = 3; - * - *
-             * wrappers
-             * 
- */ - ENCRYPTION_KEY_PAIR(2, 3), - ; + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } - /** - * NEW = 1; - * - *
-             * publicKey, name, encryptionKeyPair, members, admins
-             * 
- */ - public static final int NEW_VALUE = 1; - /** - * UPDATE = 2; - * - *
-             * name, members
-             * 
- */ - public static final int UPDATE_VALUE = 2; - /** - * ENCRYPTION_KEY_PAIR = 3; - * - *
-             * wrappers
-             * 
- */ - public static final int ENCRYPTION_KEY_PAIR_VALUE = 3; + public Builder clear() { + super.clear(); + chainKey_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + keyIndex_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + publicKey_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + public Builder clone() { + return create().mergeFrom(buildPartial()); + } - public final int getNumber() { return value; } - - public static Type valueOf(int value) { - switch (value) { - case 1: return NEW; - case 2: return UPDATE; - case 3: return ENCRYPTION_KEY_PAIR; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.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 index; - private final int value; - - private Type(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:signalservice.ClosedGroupUpdateV2.Type) + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_SenderKey_descriptor; } - public interface KeyPairOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required bytes publicKey = 1; - /** - * required bytes publicKey = 1; - * - *
-             * @required
-             * 
- */ - boolean hasPublicKey(); - /** - * required bytes publicKey = 1; - * - *
-             * @required
-             * 
- */ - com.google.protobuf.ByteString getPublicKey(); - - // required bytes privateKey = 2; - /** - * required bytes privateKey = 2; - * - *
-             * @required
-             * 
- */ - boolean hasPrivateKey(); - /** - * required bytes privateKey = 2; - * - *
-             * @required
-             * 
- */ - com.google.protobuf.ByteString getPrivateKey(); - } - /** - * Protobuf type {@code signalservice.ClosedGroupUpdateV2.KeyPair} - */ - public static final class KeyPair extends - com.google.protobuf.GeneratedMessage - implements KeyPairOrBuilder { - // Use KeyPair.newBuilder() to construct. - private KeyPair(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private KeyPair(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final KeyPair defaultInstance; - public static KeyPair getDefaultInstance() { - return defaultInstance; - } - - public KeyPair getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private KeyPair( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - publicKey_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - privateKey_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public KeyPair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyPair(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required bytes publicKey = 1; - public static final int PUBLICKEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString publicKey_; - /** - * required bytes publicKey = 1; - * - *
-             * @required
-             * 
- */ - public boolean hasPublicKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bytes publicKey = 1; - * - *
-             * @required
-             * 
- */ - public com.google.protobuf.ByteString getPublicKey() { - return publicKey_; - } - - // required bytes privateKey = 2; - public static final int PRIVATEKEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString privateKey_; - /** - * required bytes privateKey = 2; - * - *
-             * @required
-             * 
- */ - public boolean hasPrivateKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required bytes privateKey = 2; - * - *
-             * @required
-             * 
- */ - public com.google.protobuf.ByteString getPrivateKey() { - return privateKey_; - } - - private void initFields() { - publicKey_ = com.google.protobuf.ByteString.EMPTY; - privateKey_ = com.google.protobuf.ByteString.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasPublicKey()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPrivateKey()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, publicKey_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, privateKey_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, publicKey_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, privateKey_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair 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.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.ClosedGroupUpdateV2.KeyPair} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - publicKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - privateKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.publicKey_ = publicKey_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.privateKey_ = privateKey_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.getDefaultInstance()) return this; - if (other.hasPublicKey()) { - setPublicKey(other.getPublicKey()); - } - if (other.hasPrivateKey()) { - setPrivateKey(other.getPrivateKey()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasPublicKey()) { - - return false; - } - if (!hasPrivateKey()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required bytes publicKey = 1; - private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes publicKey = 1; - * - *
-                 * @required
-                 * 
- */ - public boolean hasPublicKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bytes publicKey = 1; - * - *
-                 * @required
-                 * 
- */ - public com.google.protobuf.ByteString getPublicKey() { - return publicKey_; - } - /** - * required bytes publicKey = 1; - * - *
-                 * @required
-                 * 
- */ - public Builder setPublicKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - publicKey_ = value; - onChanged(); - return this; - } - /** - * required bytes publicKey = 1; - * - *
-                 * @required
-                 * 
- */ - public Builder clearPublicKey() { - bitField0_ = (bitField0_ & ~0x00000001); - publicKey_ = getDefaultInstance().getPublicKey(); - onChanged(); - return this; - } - - // required bytes privateKey = 2; - private com.google.protobuf.ByteString privateKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes privateKey = 2; - * - *
-                 * @required
-                 * 
- */ - public boolean hasPrivateKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required bytes privateKey = 2; - * - *
-                 * @required
-                 * 
- */ - public com.google.protobuf.ByteString getPrivateKey() { - return privateKey_; - } - /** - * required bytes privateKey = 2; - * - *
-                 * @required
-                 * 
- */ - public Builder setPrivateKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - privateKey_ = value; - onChanged(); - return this; - } - /** - * required bytes privateKey = 2; - * - *
-                 * @required
-                 * 
- */ - public Builder clearPrivateKey() { - bitField0_ = (bitField0_ & ~0x00000002); - privateKey_ = getDefaultInstance().getPrivateKey(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.ClosedGroupUpdateV2.KeyPair) - } - - static { - defaultInstance = new KeyPair(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.ClosedGroupUpdateV2.KeyPair) + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.getDefaultInstance(); } - public interface KeyPairWrapperOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required bytes publicKey = 1; - /** - * required bytes publicKey = 1; - * - *
-             * @required
-             * 
- */ - boolean hasPublicKey(); - /** - * required bytes publicKey = 1; - * - *
-             * @required
-             * 
- */ - com.google.protobuf.ByteString getPublicKey(); - - // required bytes encryptedKeyPair = 2; - /** - * required bytes encryptedKeyPair = 2; - * - *
-             * @required
-             * 
- */ - boolean hasEncryptedKeyPair(); - /** - * required bytes encryptedKeyPair = 2; - * - *
-             * @required
-             * 
- */ - com.google.protobuf.ByteString getEncryptedKeyPair(); - } - /** - * Protobuf type {@code signalservice.ClosedGroupUpdateV2.KeyPairWrapper} - */ - public static final class KeyPairWrapper extends - com.google.protobuf.GeneratedMessage - implements KeyPairWrapperOrBuilder { - // Use KeyPairWrapper.newBuilder() to construct. - private KeyPairWrapper(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private KeyPairWrapper(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final KeyPairWrapper defaultInstance; - public static KeyPairWrapper getDefaultInstance() { - return defaultInstance; - } - - public KeyPairWrapper getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private KeyPairWrapper( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - publicKey_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - encryptedKeyPair_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public KeyPairWrapper parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyPairWrapper(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required bytes publicKey = 1; - public static final int PUBLICKEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString publicKey_; - /** - * required bytes publicKey = 1; - * - *
-             * @required
-             * 
- */ - public boolean hasPublicKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bytes publicKey = 1; - * - *
-             * @required
-             * 
- */ - public com.google.protobuf.ByteString getPublicKey() { - return publicKey_; - } - - // required bytes encryptedKeyPair = 2; - public static final int ENCRYPTEDKEYPAIR_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString encryptedKeyPair_; - /** - * required bytes encryptedKeyPair = 2; - * - *
-             * @required
-             * 
- */ - public boolean hasEncryptedKeyPair() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required bytes encryptedKeyPair = 2; - * - *
-             * @required
-             * 
- */ - public com.google.protobuf.ByteString getEncryptedKeyPair() { - return encryptedKeyPair_; - } - - private void initFields() { - publicKey_ = com.google.protobuf.ByteString.EMPTY; - encryptedKeyPair_ = com.google.protobuf.ByteString.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasPublicKey()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasEncryptedKeyPair()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, publicKey_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, encryptedKeyPair_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, publicKey_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, encryptedKeyPair_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper 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.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.ClosedGroupUpdateV2.KeyPairWrapper} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapperOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - publicKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - encryptedKeyPair_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.publicKey_ = publicKey_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.encryptedKeyPair_ = encryptedKeyPair_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.getDefaultInstance()) return this; - if (other.hasPublicKey()) { - setPublicKey(other.getPublicKey()); - } - if (other.hasEncryptedKeyPair()) { - setEncryptedKeyPair(other.getEncryptedKeyPair()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasPublicKey()) { - - return false; - } - if (!hasEncryptedKeyPair()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required bytes publicKey = 1; - private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes publicKey = 1; - * - *
-                 * @required
-                 * 
- */ - public boolean hasPublicKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bytes publicKey = 1; - * - *
-                 * @required
-                 * 
- */ - public com.google.protobuf.ByteString getPublicKey() { - return publicKey_; - } - /** - * required bytes publicKey = 1; - * - *
-                 * @required
-                 * 
- */ - public Builder setPublicKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - publicKey_ = value; - onChanged(); - return this; - } - /** - * required bytes publicKey = 1; - * - *
-                 * @required
-                 * 
- */ - public Builder clearPublicKey() { - bitField0_ = (bitField0_ & ~0x00000001); - publicKey_ = getDefaultInstance().getPublicKey(); - onChanged(); - return this; - } - - // required bytes encryptedKeyPair = 2; - private com.google.protobuf.ByteString encryptedKeyPair_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes encryptedKeyPair = 2; - * - *
-                 * @required
-                 * 
- */ - public boolean hasEncryptedKeyPair() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required bytes encryptedKeyPair = 2; - * - *
-                 * @required
-                 * 
- */ - public com.google.protobuf.ByteString getEncryptedKeyPair() { - return encryptedKeyPair_; - } - /** - * required bytes encryptedKeyPair = 2; - * - *
-                 * @required
-                 * 
- */ - public Builder setEncryptedKeyPair(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - encryptedKeyPair_ = value; - onChanged(); - return this; - } - /** - * required bytes encryptedKeyPair = 2; - * - *
-                 * @required
-                 * 
- */ - public Builder clearEncryptedKeyPair() { - bitField0_ = (bitField0_ & ~0x00000002); - encryptedKeyPair_ = getDefaultInstance().getEncryptedKeyPair(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.ClosedGroupUpdateV2.KeyPairWrapper) - } - - static { - defaultInstance = new KeyPairWrapper(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.ClosedGroupUpdateV2.KeyPairWrapper) + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.chainKey_ = chainKey_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.keyIndex_ = keyIndex_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.publicKey_ = publicKey_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.getDefaultInstance()) return this; + if (other.hasChainKey()) { + setChainKey(other.getChainKey()); + } + if (other.hasKeyIndex()) { + setKeyIndex(other.getKeyIndex()); + } + if (other.hasPublicKey()) { + setPublicKey(other.getPublicKey()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } private int bitField0_; - // required .signalservice.ClosedGroupUpdateV2.Type type = 1; - public static final int TYPE_FIELD_NUMBER = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type type_; + + // optional bytes chainKey = 1; + private com.google.protobuf.ByteString chainKey_ = com.google.protobuf.ByteString.EMPTY; /** - * required .signalservice.ClosedGroupUpdateV2.Type type = 1; + * optional bytes chainKey = 1; * *
          * @required
          * 
*/ - public boolean hasType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + public boolean hasChainKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * required .signalservice.ClosedGroupUpdateV2.Type type = 1; + * optional bytes chainKey = 1; * *
          * @required
          * 
*/ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type getType() { - return type_; + public com.google.protobuf.ByteString getChainKey() { + return chainKey_; + } + /** + * optional bytes chainKey = 1; + * + *
+         * @required
+         * 
+ */ + public Builder setChainKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + chainKey_ = value; + onChanged(); + return this; + } + /** + * optional bytes chainKey = 1; + * + *
+         * @required
+         * 
+ */ + public Builder clearChainKey() { + bitField0_ = (bitField0_ & ~0x00000001); + chainKey_ = getDefaultInstance().getChainKey(); + onChanged(); + return this; } - // optional bytes publicKey = 2; - public static final int PUBLICKEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString publicKey_; + // optional uint32 keyIndex = 2; + private int keyIndex_ ; /** - * optional bytes publicKey = 2; + * optional uint32 keyIndex = 2; + * + *
+         * @required
+         * 
+ */ + public boolean hasKeyIndex() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional uint32 keyIndex = 2; + * + *
+         * @required
+         * 
+ */ + public int getKeyIndex() { + return keyIndex_; + } + /** + * optional uint32 keyIndex = 2; + * + *
+         * @required
+         * 
+ */ + public Builder setKeyIndex(int value) { + bitField0_ |= 0x00000002; + keyIndex_ = value; + onChanged(); + return this; + } + /** + * optional uint32 keyIndex = 2; + * + *
+         * @required
+         * 
+ */ + public Builder clearKeyIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + keyIndex_ = 0; + onChanged(); + return this; + } + + // optional bytes publicKey = 3; + private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes publicKey = 3; + * + *
+         * @required
+         * 
*/ public boolean hasPublicKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000004) == 0x00000004); } /** - * optional bytes publicKey = 2; + * optional bytes publicKey = 3; + * + *
+         * @required
+         * 
*/ public com.google.protobuf.ByteString getPublicKey() { - return publicKey_; - } - - // optional string name = 3; - public static final int NAME_FIELD_NUMBER = 3; - private java.lang.Object name_; - /** - * optional string name = 3; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return publicKey_; } /** - * optional string name = 3; + * optional bytes publicKey = 3; + * + *
+         * @required
+         * 
*/ - 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; - } + public Builder setPublicKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + publicKey_ = value; + onChanged(); + return this; } /** - * optional string name = 3; + * optional bytes publicKey = 3; + * + *
+         * @required
+         * 
*/ - 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 Builder clearPublicKey() { + bitField0_ = (bitField0_ & ~0x00000004); + publicKey_ = getDefaultInstance().getPublicKey(); + onChanged(); + return this; } - // optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - public static final int ENCRYPTIONKEYPAIR_FIELD_NUMBER = 4; - private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair encryptionKeyPair_; - /** - * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - */ - public boolean hasEncryptionKeyPair() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair getEncryptionKeyPair() { - return encryptionKeyPair_; - } - /** - * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairOrBuilder getEncryptionKeyPairOrBuilder() { - return encryptionKeyPair_; - } + // @@protoc_insertion_point(builder_scope:signalservice.ClosedGroupUpdate.SenderKey) + } - // repeated bytes members = 5; - public static final int MEMBERS_FIELD_NUMBER = 5; - private java.util.List members_; - /** - * repeated bytes members = 5; - */ - public java.util.List - getMembersList() { - return members_; - } - /** - * repeated bytes members = 5; - */ - public int getMembersCount() { - return members_.size(); - } - /** - * repeated bytes members = 5; - */ - public com.google.protobuf.ByteString getMembers(int index) { - return members_.get(index); - } + static { + defaultInstance = new SenderKey(true); + defaultInstance.initFields(); + } - // repeated bytes admins = 6; - public static final int ADMINS_FIELD_NUMBER = 6; - private java.util.List admins_; - /** - * repeated bytes admins = 6; - */ - public java.util.List - getAdminsList() { - return admins_; - } - /** - * repeated bytes admins = 6; - */ - public int getAdminsCount() { - return admins_.size(); - } - /** - * repeated bytes admins = 6; - */ - public com.google.protobuf.ByteString getAdmins(int index) { - return admins_.get(index); - } - - // repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - public static final int WRAPPERS_FIELD_NUMBER = 7; - private java.util.List wrappers_; - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public java.util.List getWrappersList() { - return wrappers_; - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public java.util.List - getWrappersOrBuilderList() { - return wrappers_; - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public int getWrappersCount() { - return wrappers_.size(); - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper getWrappers(int index) { - return wrappers_.get(index); - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapperOrBuilder getWrappersOrBuilder( - int index) { - return wrappers_.get(index); - } - - private void initFields() { - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type.NEW; - publicKey_ = com.google.protobuf.ByteString.EMPTY; - name_ = ""; - encryptionKeyPair_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.getDefaultInstance(); - members_ = java.util.Collections.emptyList(); - admins_ = java.util.Collections.emptyList(); - wrappers_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - 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; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, type_.getNumber()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, publicKey_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getNameBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, encryptionKeyPair_); - } - 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)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_.getNumber()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, publicKey_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getNameBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, encryptionKeyPair_); - } - { - 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)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 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.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.ClosedGroupUpdateV2} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2OrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.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(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type.NEW; - bitField0_ = (bitField0_ & ~0x00000001); - publicKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - if (encryptionKeyPairBuilder_ == null) { - encryptionKeyPair_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.getDefaultInstance(); - } else { - encryptionKeyPairBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - members_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - admins_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - if (wrappersBuilder_ == null) { - wrappers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - wrappersBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdateV2_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.type_ = type_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.publicKey_ = publicKey_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - if (encryptionKeyPairBuilder_ == null) { - result.encryptionKeyPair_ = encryptionKeyPair_; - } else { - result.encryptionKeyPair_ = encryptionKeyPairBuilder_.build(); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - members_ = java.util.Collections.unmodifiableList(members_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.members_ = members_; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - admins_ = java.util.Collections.unmodifiableList(admins_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.admins_ = admins_; - if (wrappersBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040)) { - wrappers_ = java.util.Collections.unmodifiableList(wrappers_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.wrappers_ = wrappers_; - } else { - result.wrappers_ = wrappersBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.getDefaultInstance()) return this; - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasPublicKey()) { - setPublicKey(other.getPublicKey()); - } - if (other.hasName()) { - bitField0_ |= 0x00000004; - name_ = other.name_; - onChanged(); - } - if (other.hasEncryptionKeyPair()) { - mergeEncryptionKeyPair(other.getEncryptionKeyPair()); - } - if (!other.members_.isEmpty()) { - if (members_.isEmpty()) { - members_ = other.members_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureMembersIsMutable(); - members_.addAll(other.members_); - } - onChanged(); - } - if (!other.admins_.isEmpty()) { - if (admins_.isEmpty()) { - admins_ = other.admins_; - bitField0_ = (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_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - 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; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2 parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required .signalservice.ClosedGroupUpdateV2.Type type = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type.NEW; - /** - * required .signalservice.ClosedGroupUpdateV2.Type type = 1; - * - *
-             * @required
-             * 
- */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required .signalservice.ClosedGroupUpdateV2.Type type = 1; - * - *
-             * @required
-             * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type getType() { - return type_; - } - /** - * required .signalservice.ClosedGroupUpdateV2.Type type = 1; - * - *
-             * @required
-             * 
- */ - public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - type_ = value; - onChanged(); - return this; - } - /** - * required .signalservice.ClosedGroupUpdateV2.Type type = 1; - * - *
-             * @required
-             * 
- */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.Type.NEW; - onChanged(); - return this; - } - - // optional bytes publicKey = 2; - private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes publicKey = 2; - */ - public boolean hasPublicKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bytes publicKey = 2; - */ - public com.google.protobuf.ByteString getPublicKey() { - return publicKey_; - } - /** - * optional bytes publicKey = 2; - */ - public Builder setPublicKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - publicKey_ = value; - onChanged(); - return this; - } - /** - * optional bytes publicKey = 2; - */ - public Builder clearPublicKey() { - bitField0_ = (bitField0_ & ~0x00000002); - publicKey_ = getDefaultInstance().getPublicKey(); - onChanged(); - return this; - } - - // optional string name = 3; - private java.lang.Object name_ = ""; - /** - * optional string name = 3; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string name = 3; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 3; - */ - 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; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 3; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000004); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 3; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - name_ = value; - onChanged(); - return this; - } - - // optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair encryptionKeyPair_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairOrBuilder> encryptionKeyPairBuilder_; - /** - * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - */ - public boolean hasEncryptionKeyPair() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair getEncryptionKeyPair() { - if (encryptionKeyPairBuilder_ == null) { - return encryptionKeyPair_; - } else { - return encryptionKeyPairBuilder_.getMessage(); - } - } - /** - * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - */ - public Builder setEncryptionKeyPair(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair value) { - if (encryptionKeyPairBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - encryptionKeyPair_ = value; - onChanged(); - } else { - encryptionKeyPairBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - */ - public Builder setEncryptionKeyPair( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.Builder builderForValue) { - if (encryptionKeyPairBuilder_ == null) { - encryptionKeyPair_ = builderForValue.build(); - onChanged(); - } else { - encryptionKeyPairBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - */ - public Builder mergeEncryptionKeyPair(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair value) { - if (encryptionKeyPairBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - encryptionKeyPair_ != org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.getDefaultInstance()) { - encryptionKeyPair_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.newBuilder(encryptionKeyPair_).mergeFrom(value).buildPartial(); - } else { - encryptionKeyPair_ = value; - } - onChanged(); - } else { - encryptionKeyPairBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - */ - public Builder clearEncryptionKeyPair() { - if (encryptionKeyPairBuilder_ == null) { - encryptionKeyPair_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.getDefaultInstance(); - onChanged(); - } else { - encryptionKeyPairBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - /** - * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.Builder getEncryptionKeyPairBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getEncryptionKeyPairFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairOrBuilder getEncryptionKeyPairOrBuilder() { - if (encryptionKeyPairBuilder_ != null) { - return encryptionKeyPairBuilder_.getMessageOrBuilder(); - } else { - return encryptionKeyPair_; - } - } - /** - * optional .signalservice.ClosedGroupUpdateV2.KeyPair encryptionKeyPair = 4; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairOrBuilder> - getEncryptionKeyPairFieldBuilder() { - if (encryptionKeyPairBuilder_ == null) { - encryptionKeyPairBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPair.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairOrBuilder>( - encryptionKeyPair_, - getParentForChildren(), - isClean()); - encryptionKeyPair_ = null; - } - return encryptionKeyPairBuilder_; - } - - // repeated bytes members = 5; - private java.util.List members_ = java.util.Collections.emptyList(); - private void ensureMembersIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - members_ = new java.util.ArrayList(members_); - bitField0_ |= 0x00000010; - } - } - /** - * repeated bytes members = 5; - */ - public java.util.List - getMembersList() { - return java.util.Collections.unmodifiableList(members_); - } - /** - * repeated bytes members = 5; - */ - public int getMembersCount() { - return members_.size(); - } - /** - * repeated bytes members = 5; - */ - public com.google.protobuf.ByteString getMembers(int index) { - return members_.get(index); - } - /** - * repeated bytes members = 5; - */ - public Builder setMembers( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMembersIsMutable(); - members_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes members = 5; - */ - public Builder addMembers(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMembersIsMutable(); - members_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes members = 5; - */ - public Builder addAllMembers( - java.lang.Iterable values) { - ensureMembersIsMutable(); - super.addAll(values, members_); - onChanged(); - return this; - } - /** - * repeated bytes members = 5; - */ - public Builder clearMembers() { - members_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - // repeated bytes admins = 6; - private java.util.List admins_ = java.util.Collections.emptyList(); - private void ensureAdminsIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { - admins_ = new java.util.ArrayList(admins_); - bitField0_ |= 0x00000020; - } - } - /** - * repeated bytes admins = 6; - */ - public java.util.List - getAdminsList() { - return java.util.Collections.unmodifiableList(admins_); - } - /** - * repeated bytes admins = 6; - */ - public int getAdminsCount() { - return admins_.size(); - } - /** - * repeated bytes admins = 6; - */ - public com.google.protobuf.ByteString getAdmins(int index) { - return admins_.get(index); - } - /** - * repeated bytes admins = 6; - */ - public Builder setAdmins( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdminsIsMutable(); - admins_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes admins = 6; - */ - public Builder addAdmins(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdminsIsMutable(); - admins_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes admins = 6; - */ - public Builder addAllAdmins( - java.lang.Iterable values) { - ensureAdminsIsMutable(); - super.addAll(values, admins_); - onChanged(); - return this; - } - /** - * repeated bytes admins = 6; - */ - public Builder clearAdmins() { - admins_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - // repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - private java.util.List wrappers_ = - java.util.Collections.emptyList(); - private void ensureWrappersIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { - wrappers_ = new java.util.ArrayList(wrappers_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapperOrBuilder> wrappersBuilder_; - - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public java.util.List getWrappersList() { - if (wrappersBuilder_ == null) { - return java.util.Collections.unmodifiableList(wrappers_); - } else { - return wrappersBuilder_.getMessageList(); - } - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public int getWrappersCount() { - if (wrappersBuilder_ == null) { - return wrappers_.size(); - } else { - return wrappersBuilder_.getCount(); - } - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper getWrappers(int index) { - if (wrappersBuilder_ == null) { - return wrappers_.get(index); - } else { - return wrappersBuilder_.getMessage(index); - } - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public Builder setWrappers( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.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.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public Builder setWrappers( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder builderForValue) { - if (wrappersBuilder_ == null) { - ensureWrappersIsMutable(); - wrappers_.set(index, builderForValue.build()); - onChanged(); - } else { - wrappersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public Builder addWrappers(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper value) { - if (wrappersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWrappersIsMutable(); - wrappers_.add(value); - onChanged(); - } else { - wrappersBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public Builder addWrappers( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.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.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public Builder addWrappers( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder builderForValue) { - if (wrappersBuilder_ == null) { - ensureWrappersIsMutable(); - wrappers_.add(builderForValue.build()); - onChanged(); - } else { - wrappersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public Builder addWrappers( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder builderForValue) { - if (wrappersBuilder_ == null) { - ensureWrappersIsMutable(); - wrappers_.add(index, builderForValue.build()); - onChanged(); - } else { - wrappersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public Builder addAllWrappers( - java.lang.Iterable values) { - if (wrappersBuilder_ == null) { - ensureWrappersIsMutable(); - super.addAll(values, wrappers_); - onChanged(); - } else { - wrappersBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.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.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public Builder removeWrappers(int index) { - if (wrappersBuilder_ == null) { - ensureWrappersIsMutable(); - wrappers_.remove(index); - onChanged(); - } else { - wrappersBuilder_.remove(index); - } - return this; - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder getWrappersBuilder( - int index) { - return getWrappersFieldBuilder().getBuilder(index); - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapperOrBuilder getWrappersOrBuilder( - int index) { - if (wrappersBuilder_ == null) { - return wrappers_.get(index); } else { - return wrappersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public java.util.List - getWrappersOrBuilderList() { - if (wrappersBuilder_ != null) { - return wrappersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(wrappers_); - } - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder addWrappersBuilder() { - return getWrappersFieldBuilder().addBuilder( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.getDefaultInstance()); - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder addWrappersBuilder( - int index) { - return getWrappersFieldBuilder().addBuilder( - index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.getDefaultInstance()); - } - /** - * repeated .signalservice.ClosedGroupUpdateV2.KeyPairWrapper wrappers = 7; - */ - public java.util.List - getWrappersBuilderList() { - return getWrappersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapperOrBuilder> - getWrappersFieldBuilder() { - if (wrappersBuilder_ == null) { - wrappersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapper.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateV2.KeyPairWrapperOrBuilder>( - wrappers_, - ((bitField0_ & 0x00000040) == 0x00000040), - getParentForChildren(), - isClean()); - wrappers_ = null; - } - return wrappersBuilder_; - } - - // @@protoc_insertion_point(builder_scope:signalservice.ClosedGroupUpdateV2) - } - - static { - defaultInstance = new ClosedGroupUpdateV2(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.ClosedGroupUpdateV2) + // @@protoc_insertion_point(class_scope:signalservice.ClosedGroupUpdate.SenderKey) } - public interface ClosedGroupUpdateOrBuilder - extends com.google.protobuf.MessageOrBuilder { + private int bitField0_; + // optional string name = 1; + public static final int NAME_FIELD_NUMBER = 1; + private java.lang.Object name_; + /** + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string name = 1; + */ + 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 = 1; + */ + 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; + } + } - // optional string name = 1; - /** - * optional string name = 1; - */ - boolean hasName(); - /** - * optional string name = 1; - */ - java.lang.String getName(); - /** - * optional string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); + // optional bytes groupPublicKey = 2; + public static final int GROUPPUBLICKEY_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString groupPublicKey_; + /** + * optional bytes groupPublicKey = 2; + * + *
+     * @required
+     * 
+ */ + public boolean hasGroupPublicKey() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bytes groupPublicKey = 2; + * + *
+     * @required
+     * 
+ */ + public com.google.protobuf.ByteString getGroupPublicKey() { + return groupPublicKey_; + } - // optional bytes groupPublicKey = 2; - /** - * optional bytes groupPublicKey = 2; - * - *
-         * @required
-         * 
- */ - boolean hasGroupPublicKey(); - /** - * optional bytes groupPublicKey = 2; - * - *
-         * @required
-         * 
- */ - com.google.protobuf.ByteString getGroupPublicKey(); + // optional bytes groupPrivateKey = 3; + public static final int GROUPPRIVATEKEY_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString groupPrivateKey_; + /** + * optional bytes groupPrivateKey = 3; + */ + public boolean hasGroupPrivateKey() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bytes groupPrivateKey = 3; + */ + public com.google.protobuf.ByteString getGroupPrivateKey() { + return groupPrivateKey_; + } - // optional bytes groupPrivateKey = 3; - /** - * optional bytes groupPrivateKey = 3; - */ - boolean hasGroupPrivateKey(); - /** - * optional bytes groupPrivateKey = 3; - */ - com.google.protobuf.ByteString getGroupPrivateKey(); + // repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + public static final int SENDERKEYS_FIELD_NUMBER = 4; + private java.util.List senderKeys_; + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public java.util.List getSenderKeysList() { + return senderKeys_; + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public java.util.List + getSenderKeysOrBuilderList() { + return senderKeys_; + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public int getSenderKeysCount() { + return senderKeys_.size(); + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey getSenderKeys(int index) { + return senderKeys_.get(index); + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKeyOrBuilder getSenderKeysOrBuilder( + int index) { + return senderKeys_.get(index); + } - // repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - java.util.List - getSenderKeysList(); - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey getSenderKeys(int index); - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - int getSenderKeysCount(); - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - java.util.List - getSenderKeysOrBuilderList(); - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKeyOrBuilder getSenderKeysOrBuilder( - int index); + // repeated bytes members = 5; + public static final int MEMBERS_FIELD_NUMBER = 5; + private java.util.List members_; + /** + * repeated bytes members = 5; + */ + public java.util.List + getMembersList() { + return members_; + } + /** + * repeated bytes members = 5; + */ + public int getMembersCount() { + return members_.size(); + } + /** + * repeated bytes members = 5; + */ + public com.google.protobuf.ByteString getMembers(int index) { + return members_.get(index); + } - // repeated bytes members = 5; - /** - * repeated bytes members = 5; - */ - java.util.List getMembersList(); - /** - * repeated bytes members = 5; - */ - int getMembersCount(); - /** - * repeated bytes members = 5; - */ - com.google.protobuf.ByteString getMembers(int index); + // repeated bytes admins = 6; + public static final int ADMINS_FIELD_NUMBER = 6; + private java.util.List admins_; + /** + * repeated bytes admins = 6; + */ + public java.util.List + getAdminsList() { + return admins_; + } + /** + * repeated bytes admins = 6; + */ + public int getAdminsCount() { + return admins_.size(); + } + /** + * repeated bytes admins = 6; + */ + public com.google.protobuf.ByteString getAdmins(int index) { + return admins_.get(index); + } - // repeated bytes admins = 6; - /** - * repeated bytes admins = 6; - */ - java.util.List getAdminsList(); - /** - * repeated bytes admins = 6; - */ - int getAdminsCount(); - /** - * repeated bytes admins = 6; - */ - com.google.protobuf.ByteString getAdmins(int index); + // optional .signalservice.ClosedGroupUpdate.Type type = 7; + public static final int TYPE_FIELD_NUMBER = 7; + private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type type_; + /** + * optional .signalservice.ClosedGroupUpdate.Type type = 7; + * + *
+     * @required
+     * 
+ */ + public boolean hasType() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .signalservice.ClosedGroupUpdate.Type type = 7; + * + *
+     * @required
+     * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type getType() { + return type_; + } - // optional .signalservice.ClosedGroupUpdate.Type type = 7; - /** - * optional .signalservice.ClosedGroupUpdate.Type type = 7; - * - *
-         * @required
-         * 
- */ - boolean hasType(); - /** - * optional .signalservice.ClosedGroupUpdate.Type type = 7; - * - *
-         * @required
-         * 
- */ - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type getType(); + private void initFields() { + name_ = ""; + groupPublicKey_ = com.google.protobuf.ByteString.EMPTY; + groupPrivateKey_ = com.google.protobuf.ByteString.EMPTY; + senderKeys_ = java.util.Collections.emptyList(); + members_ = java.util.Collections.emptyList(); + admins_ = java.util.Collections.emptyList(); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type.NEW; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, groupPublicKey_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, groupPrivateKey_); + } + for (int i = 0; i < senderKeys_.size(); i++) { + output.writeMessage(4, senderKeys_.get(i)); + } + 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)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeEnum(7, type_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getNameBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, groupPublicKey_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, groupPrivateKey_); + } + for (int i = 0; i < senderKeys_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, senderKeys_.get(i)); + } + { + 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) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, type_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate 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.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.ClosedGroupUpdate} */ - public static final class ClosedGroupUpdate extends - com.google.protobuf.GeneratedMessage - implements ClosedGroupUpdateOrBuilder { - // Use ClosedGroupUpdate.newBuilder() to construct. - private ClosedGroupUpdate(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getSenderKeysFieldBuilder(); } - private ClosedGroupUpdate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + } + private static Builder create() { + return new Builder(); + } - private static final ClosedGroupUpdate defaultInstance; - public static ClosedGroupUpdate getDefaultInstance() { - return defaultInstance; + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + groupPublicKey_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + groupPrivateKey_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + if (senderKeysBuilder_ == null) { + senderKeys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + senderKeysBuilder_.clear(); } + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + admins_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type.NEW; + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } - public ClosedGroupUpdate getDefaultInstanceForType() { - return defaultInstance; + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - private ClosedGroupUpdate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - name_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - groupPublicKey_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - groupPrivateKey_ = input.readBytes(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - senderKeys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - senderKeys_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.PARSER, extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - members_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - members_.add(input.readBytes()); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - admins_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - admins_.add(input.readBytes()); - break; - } - case 56: { - int rawValue = input.readEnum(); - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(7, rawValue); - } else { - bitField0_ |= 0x00000008; - type_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - senderKeys_ = java.util.Collections.unmodifiableList(senderKeys_); - } - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - members_ = java.util.Collections.unmodifiableList(members_); - } - if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - admins_ = java.util.Collections.unmodifiableList(admins_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_descriptor; + result.groupPublicKey_ = groupPublicKey_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Builder.class); + result.groupPrivateKey_ = groupPrivateKey_; + if (senderKeysBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + senderKeys_ = java.util.Collections.unmodifiableList(senderKeys_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.senderKeys_ = senderKeys_; + } else { + result.senderKeys_ = senderKeysBuilder_.build(); } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ClosedGroupUpdate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClosedGroupUpdate(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + members_ = java.util.Collections.unmodifiableList(members_); + bitField0_ = (bitField0_ & ~0x00000010); } - - /** - * Protobuf enum {@code signalservice.ClosedGroupUpdate.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * NEW = 0; - * - *
-             * groupPublicKey, name, groupPrivateKey, senderKeys, members, admins
-             * 
- */ - NEW(0, 0), - /** - * INFO = 1; - * - *
-             * groupPublicKey, name, senderKeys, members, admins
-             * 
- */ - INFO(1, 1), - /** - * SENDER_KEY_REQUEST = 2; - * - *
-             * groupPublicKey
-             * 
- */ - SENDER_KEY_REQUEST(2, 2), - /** - * SENDER_KEY = 3; - * - *
-             * groupPublicKey, senderKeys
-             * 
- */ - SENDER_KEY(3, 3), - ; - - /** - * NEW = 0; - * - *
-             * groupPublicKey, name, groupPrivateKey, senderKeys, members, admins
-             * 
- */ - public static final int NEW_VALUE = 0; - /** - * INFO = 1; - * - *
-             * groupPublicKey, name, senderKeys, members, admins
-             * 
- */ - public static final int INFO_VALUE = 1; - /** - * SENDER_KEY_REQUEST = 2; - * - *
-             * groupPublicKey
-             * 
- */ - public static final int SENDER_KEY_REQUEST_VALUE = 2; - /** - * SENDER_KEY = 3; - * - *
-             * groupPublicKey, senderKeys
-             * 
- */ - public static final int SENDER_KEY_VALUE = 3; - - - public final int getNumber() { return value; } - - public static Type valueOf(int value) { - switch (value) { - case 0: return NEW; - case 1: return INFO; - case 2: return SENDER_KEY_REQUEST; - case 3: return SENDER_KEY; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.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 index; - private final int value; - - private Type(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:signalservice.ClosedGroupUpdate.Type) + result.members_ = members_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + admins_ = java.util.Collections.unmodifiableList(admins_); + bitField0_ = (bitField0_ & ~0x00000020); } - - public interface SenderKeyOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional bytes chainKey = 1; - /** - * optional bytes chainKey = 1; - * - *
-             * @required
-             * 
- */ - boolean hasChainKey(); - /** - * optional bytes chainKey = 1; - * - *
-             * @required
-             * 
- */ - com.google.protobuf.ByteString getChainKey(); - - // optional uint32 keyIndex = 2; - /** - * optional uint32 keyIndex = 2; - * - *
-             * @required
-             * 
- */ - boolean hasKeyIndex(); - /** - * optional uint32 keyIndex = 2; - * - *
-             * @required
-             * 
- */ - int getKeyIndex(); - - // optional bytes publicKey = 3; - /** - * optional bytes publicKey = 3; - * - *
-             * @required
-             * 
- */ - boolean hasPublicKey(); - /** - * optional bytes publicKey = 3; - * - *
-             * @required
-             * 
- */ - com.google.protobuf.ByteString getPublicKey(); + result.admins_ = admins_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000008; } - /** - * Protobuf type {@code signalservice.ClosedGroupUpdate.SenderKey} - */ - public static final class SenderKey extends - com.google.protobuf.GeneratedMessage - implements SenderKeyOrBuilder { - // Use SenderKey.newBuilder() to construct. - private SenderKey(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private SenderKey(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + result.type_ = type_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } - private static final SenderKey defaultInstance; - public static SenderKey getDefaultInstance() { - return defaultInstance; - } - - public SenderKey getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SenderKey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - chainKey_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - keyIndex_ = input.readUInt32(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - publicKey_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_SenderKey_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_SenderKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SenderKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SenderKey(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional bytes chainKey = 1; - public static final int CHAINKEY_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString chainKey_; - /** - * optional bytes chainKey = 1; - * - *
-             * @required
-             * 
- */ - public boolean hasChainKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bytes chainKey = 1; - * - *
-             * @required
-             * 
- */ - public com.google.protobuf.ByteString getChainKey() { - return chainKey_; - } - - // optional uint32 keyIndex = 2; - public static final int KEYINDEX_FIELD_NUMBER = 2; - private int keyIndex_; - /** - * optional uint32 keyIndex = 2; - * - *
-             * @required
-             * 
- */ - public boolean hasKeyIndex() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional uint32 keyIndex = 2; - * - *
-             * @required
-             * 
- */ - public int getKeyIndex() { - return keyIndex_; - } - - // optional bytes publicKey = 3; - public static final int PUBLICKEY_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString publicKey_; - /** - * optional bytes publicKey = 3; - * - *
-             * @required
-             * 
- */ - public boolean hasPublicKey() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bytes publicKey = 3; - * - *
-             * @required
-             * 
- */ - public com.google.protobuf.ByteString getPublicKey() { - return publicKey_; - } - - private void initFields() { - chainKey_ = com.google.protobuf.ByteString.EMPTY; - keyIndex_ = 0; - publicKey_ = com.google.protobuf.ByteString.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, chainKey_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeUInt32(2, keyIndex_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, publicKey_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, chainKey_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, keyIndex_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, publicKey_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey 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.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.ClosedGroupUpdate.SenderKey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_SenderKey_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_SenderKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - chainKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - keyIndex_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - publicKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_SenderKey_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.chainKey_ = chainKey_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.keyIndex_ = keyIndex_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.publicKey_ = publicKey_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.getDefaultInstance()) return this; - if (other.hasChainKey()) { - setChainKey(other.getChainKey()); - } - if (other.hasKeyIndex()) { - setKeyIndex(other.getKeyIndex()); - } - if (other.hasPublicKey()) { - setPublicKey(other.getPublicKey()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional bytes chainKey = 1; - private com.google.protobuf.ByteString chainKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes chainKey = 1; - * - *
-                 * @required
-                 * 
- */ - public boolean hasChainKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bytes chainKey = 1; - * - *
-                 * @required
-                 * 
- */ - public com.google.protobuf.ByteString getChainKey() { - return chainKey_; - } - /** - * optional bytes chainKey = 1; - * - *
-                 * @required
-                 * 
- */ - public Builder setChainKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - chainKey_ = value; - onChanged(); - return this; - } - /** - * optional bytes chainKey = 1; - * - *
-                 * @required
-                 * 
- */ - public Builder clearChainKey() { - bitField0_ = (bitField0_ & ~0x00000001); - chainKey_ = getDefaultInstance().getChainKey(); - onChanged(); - return this; - } - - // optional uint32 keyIndex = 2; - private int keyIndex_ ; - /** - * optional uint32 keyIndex = 2; - * - *
-                 * @required
-                 * 
- */ - public boolean hasKeyIndex() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional uint32 keyIndex = 2; - * - *
-                 * @required
-                 * 
- */ - public int getKeyIndex() { - return keyIndex_; - } - /** - * optional uint32 keyIndex = 2; - * - *
-                 * @required
-                 * 
- */ - public Builder setKeyIndex(int value) { - bitField0_ |= 0x00000002; - keyIndex_ = value; - onChanged(); - return this; - } - /** - * optional uint32 keyIndex = 2; - * - *
-                 * @required
-                 * 
- */ - public Builder clearKeyIndex() { - bitField0_ = (bitField0_ & ~0x00000002); - keyIndex_ = 0; - onChanged(); - return this; - } - - // optional bytes publicKey = 3; - private com.google.protobuf.ByteString publicKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes publicKey = 3; - * - *
-                 * @required
-                 * 
- */ - public boolean hasPublicKey() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bytes publicKey = 3; - * - *
-                 * @required
-                 * 
- */ - public com.google.protobuf.ByteString getPublicKey() { - return publicKey_; - } - /** - * optional bytes publicKey = 3; - * - *
-                 * @required
-                 * 
- */ - public Builder setPublicKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - publicKey_ = value; - onChanged(); - return this; - } - /** - * optional bytes publicKey = 3; - * - *
-                 * @required
-                 * 
- */ - public Builder clearPublicKey() { - bitField0_ = (bitField0_ & ~0x00000004); - publicKey_ = getDefaultInstance().getPublicKey(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.ClosedGroupUpdate.SenderKey) - } - - static { - defaultInstance = new SenderKey(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.ClosedGroupUpdate.SenderKey) + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate)other); + } else { + super.mergeFrom(other); + return this; } + } - private int bitField0_; - // optional string name = 1; - public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; - /** - * optional string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); } - /** - * optional string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; + if (other.hasGroupPublicKey()) { + setGroupPublicKey(other.getGroupPublicKey()); + } + if (other.hasGroupPrivateKey()) { + setGroupPrivateKey(other.getGroupPrivateKey()); + } + if (senderKeysBuilder_ == null) { + if (!other.senderKeys_.isEmpty()) { + if (senderKeys_.isEmpty()) { + senderKeys_ = other.senderKeys_; + bitField0_ = (bitField0_ & ~0x00000008); } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; + ensureSenderKeysIsMutable(); + senderKeys_.addAll(other.senderKeys_); } - } - /** - * optional string name = 1; - */ - 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; + onChanged(); + } + } else { + if (!other.senderKeys_.isEmpty()) { + if (senderKeysBuilder_.isEmpty()) { + senderKeysBuilder_.dispose(); + senderKeysBuilder_ = null; + senderKeys_ = other.senderKeys_; + bitField0_ = (bitField0_ & ~0x00000008); + senderKeysBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getSenderKeysFieldBuilder() : null; } else { - return (com.google.protobuf.ByteString) ref; + senderKeysBuilder_.addAllMessages(other.senderKeys_); } + } } - - // optional bytes groupPublicKey = 2; - public static final int GROUPPUBLICKEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString groupPublicKey_; - /** - * optional bytes groupPublicKey = 2; - * - *
-         * @required
-         * 
- */ - public boolean hasGroupPublicKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); + if (!other.members_.isEmpty()) { + if (members_.isEmpty()) { + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureMembersIsMutable(); + members_.addAll(other.members_); + } + onChanged(); } - /** - * optional bytes groupPublicKey = 2; - * - *
-         * @required
-         * 
- */ - public com.google.protobuf.ByteString getGroupPublicKey() { - return groupPublicKey_; + if (!other.admins_.isEmpty()) { + if (admins_.isEmpty()) { + admins_ = other.admins_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureAdminsIsMutable(); + admins_.addAll(other.admins_); + } + onChanged(); } - - // optional bytes groupPrivateKey = 3; - public static final int GROUPPRIVATEKEY_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString groupPrivateKey_; - /** - * optional bytes groupPrivateKey = 3; - */ - public boolean hasGroupPrivateKey() { - return ((bitField0_ & 0x00000004) == 0x00000004); + if (other.hasType()) { + setType(other.getType()); } - /** - * optional bytes groupPrivateKey = 3; - */ - public com.google.protobuf.ByteString getGroupPrivateKey() { - return groupPrivateKey_; + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } + return this; + } + private int bitField0_; - // repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - public static final int SENDERKEYS_FIELD_NUMBER = 4; - private java.util.List senderKeys_; - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public java.util.List getSenderKeysList() { - return senderKeys_; + // optional string name = 1; + private java.lang.Object name_ = ""; + /** + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public java.util.List - getSenderKeysOrBuilderList() { - return senderKeys_; + } + /** + * optional string name = 1; + */ + 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; } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public int getSenderKeysCount() { - return senderKeys_.size(); + } + /** + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + * optional string name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + + // optional bytes groupPublicKey = 2; + private com.google.protobuf.ByteString groupPublicKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes groupPublicKey = 2; + * + *
+       * @required
+       * 
+ */ + public boolean hasGroupPublicKey() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bytes groupPublicKey = 2; + * + *
+       * @required
+       * 
+ */ + public com.google.protobuf.ByteString getGroupPublicKey() { + return groupPublicKey_; + } + /** + * optional bytes groupPublicKey = 2; + * + *
+       * @required
+       * 
+ */ + public Builder setGroupPublicKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + groupPublicKey_ = value; + onChanged(); + return this; + } + /** + * optional bytes groupPublicKey = 2; + * + *
+       * @required
+       * 
+ */ + public Builder clearGroupPublicKey() { + bitField0_ = (bitField0_ & ~0x00000002); + groupPublicKey_ = getDefaultInstance().getGroupPublicKey(); + onChanged(); + return this; + } + + // optional bytes groupPrivateKey = 3; + private com.google.protobuf.ByteString groupPrivateKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes groupPrivateKey = 3; + */ + public boolean hasGroupPrivateKey() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bytes groupPrivateKey = 3; + */ + public com.google.protobuf.ByteString getGroupPrivateKey() { + return groupPrivateKey_; + } + /** + * optional bytes groupPrivateKey = 3; + */ + public Builder setGroupPrivateKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + groupPrivateKey_ = value; + onChanged(); + return this; + } + /** + * optional bytes groupPrivateKey = 3; + */ + public Builder clearGroupPrivateKey() { + bitField0_ = (bitField0_ & ~0x00000004); + groupPrivateKey_ = getDefaultInstance().getGroupPrivateKey(); + onChanged(); + return this; + } + + // repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + private java.util.List senderKeys_ = + java.util.Collections.emptyList(); + private void ensureSenderKeysIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + senderKeys_ = new java.util.ArrayList(senderKeys_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKeyOrBuilder> senderKeysBuilder_; + + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public java.util.List getSenderKeysList() { + if (senderKeysBuilder_ == null) { + return java.util.Collections.unmodifiableList(senderKeys_); + } else { + return senderKeysBuilder_.getMessageList(); } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey getSenderKeys(int index) { - return senderKeys_.get(index); + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public int getSenderKeysCount() { + if (senderKeysBuilder_ == null) { + return senderKeys_.size(); + } else { + return senderKeysBuilder_.getCount(); } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKeyOrBuilder getSenderKeysOrBuilder( - int index) { - return senderKeys_.get(index); + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey getSenderKeys(int index) { + if (senderKeysBuilder_ == null) { + return senderKeys_.get(index); + } else { + return senderKeysBuilder_.getMessage(index); } - - // repeated bytes members = 5; - public static final int MEMBERS_FIELD_NUMBER = 5; - private java.util.List members_; - /** - * repeated bytes members = 5; - */ - public java.util.List - getMembersList() { - return members_; + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public Builder setSenderKeys( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey value) { + if (senderKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSenderKeysIsMutable(); + senderKeys_.set(index, value); + onChanged(); + } else { + senderKeysBuilder_.setMessage(index, value); } - /** - * repeated bytes members = 5; - */ - public int getMembersCount() { - return members_.size(); + return this; + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public Builder setSenderKeys( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder builderForValue) { + if (senderKeysBuilder_ == null) { + ensureSenderKeysIsMutable(); + senderKeys_.set(index, builderForValue.build()); + onChanged(); + } else { + senderKeysBuilder_.setMessage(index, builderForValue.build()); } - /** - * repeated bytes members = 5; - */ - public com.google.protobuf.ByteString getMembers(int index) { - return members_.get(index); + return this; + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public Builder addSenderKeys(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey value) { + if (senderKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSenderKeysIsMutable(); + senderKeys_.add(value); + onChanged(); + } else { + senderKeysBuilder_.addMessage(value); } - - // repeated bytes admins = 6; - public static final int ADMINS_FIELD_NUMBER = 6; - private java.util.List admins_; - /** - * repeated bytes admins = 6; - */ - public java.util.List - getAdminsList() { - return admins_; + return this; + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public Builder addSenderKeys( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey value) { + if (senderKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSenderKeysIsMutable(); + senderKeys_.add(index, value); + onChanged(); + } else { + senderKeysBuilder_.addMessage(index, value); } - /** - * repeated bytes admins = 6; - */ - public int getAdminsCount() { - return admins_.size(); + return this; + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public Builder addSenderKeys( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder builderForValue) { + if (senderKeysBuilder_ == null) { + ensureSenderKeysIsMutable(); + senderKeys_.add(builderForValue.build()); + onChanged(); + } else { + senderKeysBuilder_.addMessage(builderForValue.build()); } - /** - * repeated bytes admins = 6; - */ - public com.google.protobuf.ByteString getAdmins(int index) { - return admins_.get(index); + return this; + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public Builder addSenderKeys( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder builderForValue) { + if (senderKeysBuilder_ == null) { + ensureSenderKeysIsMutable(); + senderKeys_.add(index, builderForValue.build()); + onChanged(); + } else { + senderKeysBuilder_.addMessage(index, builderForValue.build()); } - - // optional .signalservice.ClosedGroupUpdate.Type type = 7; - public static final int TYPE_FIELD_NUMBER = 7; - private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type type_; - /** - * optional .signalservice.ClosedGroupUpdate.Type type = 7; - * - *
-         * @required
-         * 
- */ - public boolean hasType() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return this; + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public Builder addAllSenderKeys( + java.lang.Iterable values) { + if (senderKeysBuilder_ == null) { + ensureSenderKeysIsMutable(); + super.addAll(values, senderKeys_); + onChanged(); + } else { + senderKeysBuilder_.addAllMessages(values); } - /** - * optional .signalservice.ClosedGroupUpdate.Type type = 7; - * - *
-         * @required
-         * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type getType() { - return type_; + return this; + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public Builder clearSenderKeys() { + if (senderKeysBuilder_ == null) { + senderKeys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + senderKeysBuilder_.clear(); } - - private void initFields() { - name_ = ""; - groupPublicKey_ = com.google.protobuf.ByteString.EMPTY; - groupPrivateKey_ = com.google.protobuf.ByteString.EMPTY; - senderKeys_ = java.util.Collections.emptyList(); - members_ = java.util.Collections.emptyList(); - admins_ = java.util.Collections.emptyList(); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type.NEW; + return this; + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public Builder removeSenderKeys(int index) { + if (senderKeysBuilder_ == null) { + ensureSenderKeysIsMutable(); + senderKeys_.remove(index); + onChanged(); + } else { + senderKeysBuilder_.remove(index); } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; + return this; + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder getSenderKeysBuilder( + int index) { + return getSenderKeysFieldBuilder().getBuilder(index); + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKeyOrBuilder getSenderKeysOrBuilder( + int index) { + if (senderKeysBuilder_ == null) { + return senderKeys_.get(index); } else { + return senderKeysBuilder_.getMessageOrBuilder(index); } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, groupPublicKey_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, groupPrivateKey_); - } - for (int i = 0; i < senderKeys_.size(); i++) { - output.writeMessage(4, senderKeys_.get(i)); - } - 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)); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeEnum(7, type_.getNumber()); - } - getUnknownFields().writeTo(output); + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public java.util.List + getSenderKeysOrBuilderList() { + if (senderKeysBuilder_ != null) { + return senderKeysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(senderKeys_); } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, groupPublicKey_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, groupPrivateKey_); - } - for (int i = 0; i < senderKeys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, senderKeys_.get(i)); - } - { - 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) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, type_.getNumber()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder addSenderKeysBuilder() { + return getSenderKeysFieldBuilder().addBuilder( + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.getDefaultInstance()); + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder addSenderKeysBuilder( + int index) { + return getSenderKeysFieldBuilder().addBuilder( + index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.getDefaultInstance()); + } + /** + * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; + */ + public java.util.List + getSenderKeysBuilderList() { + return getSenderKeysFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKeyOrBuilder> + getSenderKeysFieldBuilder() { + if (senderKeysBuilder_ == null) { + senderKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKeyOrBuilder>( + senderKeys_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + senderKeys_ = null; } + return senderKeysBuilder_; + } - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); + // repeated bytes members = 5; + private java.util.List members_ = java.util.Collections.emptyList(); + private void ensureMembersIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + members_ = new java.util.ArrayList(members_); + bitField0_ |= 0x00000010; + } + } + /** + * repeated bytes members = 5; + */ + public java.util.List + getMembersList() { + return java.util.Collections.unmodifiableList(members_); + } + /** + * repeated bytes members = 5; + */ + public int getMembersCount() { + return members_.size(); + } + /** + * repeated bytes members = 5; + */ + public com.google.protobuf.ByteString getMembers(int index) { + return members_.get(index); + } + /** + * repeated bytes members = 5; + */ + public Builder setMembers( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.set(index, value); + onChanged(); + return this; + } + /** + * repeated bytes members = 5; + */ + public Builder addMembers(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(value); + onChanged(); + return this; + } + /** + * repeated bytes members = 5; + */ + public Builder addAllMembers( + java.lang.Iterable values) { + ensureMembersIsMutable(); + super.addAll(values, members_); + onChanged(); + return this; + } + /** + * repeated bytes members = 5; + */ + public Builder clearMembers() { + members_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + // repeated bytes admins = 6; + private java.util.List admins_ = java.util.Collections.emptyList(); + private void ensureAdminsIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + admins_ = new java.util.ArrayList(admins_); + bitField0_ |= 0x00000020; + } + } + /** + * repeated bytes admins = 6; + */ + public java.util.List + getAdminsList() { + return java.util.Collections.unmodifiableList(admins_); + } + /** + * repeated bytes admins = 6; + */ + public int getAdminsCount() { + return admins_.size(); + } + /** + * repeated bytes admins = 6; + */ + public com.google.protobuf.ByteString getAdmins(int index) { + return admins_.get(index); + } + /** + * repeated bytes admins = 6; + */ + public Builder setAdmins( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdminsIsMutable(); + admins_.set(index, value); + onChanged(); + return this; + } + /** + * repeated bytes admins = 6; + */ + public Builder addAdmins(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdminsIsMutable(); + admins_.add(value); + onChanged(); + return this; + } + /** + * repeated bytes admins = 6; + */ + public Builder addAllAdmins( + java.lang.Iterable values) { + ensureAdminsIsMutable(); + super.addAll(values, admins_); + onChanged(); + return this; + } + /** + * repeated bytes admins = 6; + */ + public Builder clearAdmins() { + admins_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + // optional .signalservice.ClosedGroupUpdate.Type type = 7; + private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type.NEW; + /** + * optional .signalservice.ClosedGroupUpdate.Type type = 7; + * + *
+       * @required
+       * 
+ */ + public boolean hasType() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional .signalservice.ClosedGroupUpdate.Type type = 7; + * + *
+       * @required
+       * 
+ */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type getType() { + return type_; + } + /** + * optional .signalservice.ClosedGroupUpdate.Type type = 7; + * + *
+       * @required
+       * 
+ */ + public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000040; + type_ = value; + onChanged(); + return this; + } + /** + * optional .signalservice.ClosedGroupUpdate.Type type = 7; + * + *
+       * @required
+       * 
+ */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000040); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type.NEW; + onChanged(); + return this; + } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate 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.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.ClosedGroupUpdate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getSenderKeysFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - groupPublicKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - groupPrivateKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (senderKeysBuilder_ == null) { - senderKeys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - senderKeysBuilder_.clear(); - } - members_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - admins_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type.NEW; - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ClosedGroupUpdate_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.groupPublicKey_ = groupPublicKey_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.groupPrivateKey_ = groupPrivateKey_; - if (senderKeysBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008)) { - senderKeys_ = java.util.Collections.unmodifiableList(senderKeys_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.senderKeys_ = senderKeys_; - } else { - result.senderKeys_ = senderKeysBuilder_.build(); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - members_ = java.util.Collections.unmodifiableList(members_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.members_ = members_; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - admins_ = java.util.Collections.unmodifiableList(admins_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.admins_ = admins_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000008; - } - result.type_ = type_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (other.hasGroupPublicKey()) { - setGroupPublicKey(other.getGroupPublicKey()); - } - if (other.hasGroupPrivateKey()) { - setGroupPrivateKey(other.getGroupPrivateKey()); - } - if (senderKeysBuilder_ == null) { - if (!other.senderKeys_.isEmpty()) { - if (senderKeys_.isEmpty()) { - senderKeys_ = other.senderKeys_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureSenderKeysIsMutable(); - senderKeys_.addAll(other.senderKeys_); - } - onChanged(); - } - } else { - if (!other.senderKeys_.isEmpty()) { - if (senderKeysBuilder_.isEmpty()) { - senderKeysBuilder_.dispose(); - senderKeysBuilder_ = null; - senderKeys_ = other.senderKeys_; - bitField0_ = (bitField0_ & ~0x00000008); - senderKeysBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getSenderKeysFieldBuilder() : null; - } else { - senderKeysBuilder_.addAllMessages(other.senderKeys_); - } - } - } - if (!other.members_.isEmpty()) { - if (members_.isEmpty()) { - members_ = other.members_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureMembersIsMutable(); - members_.addAll(other.members_); - } - onChanged(); - } - if (!other.admins_.isEmpty()) { - if (admins_.isEmpty()) { - admins_ = other.admins_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureAdminsIsMutable(); - admins_.addAll(other.admins_); - } - onChanged(); - } - if (other.hasType()) { - setType(other.getType()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string name = 1; - private java.lang.Object name_ = ""; - /** - * optional string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 1; - */ - 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 = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - // optional bytes groupPublicKey = 2; - private com.google.protobuf.ByteString groupPublicKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes groupPublicKey = 2; - * - *
-             * @required
-             * 
- */ - public boolean hasGroupPublicKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bytes groupPublicKey = 2; - * - *
-             * @required
-             * 
- */ - public com.google.protobuf.ByteString getGroupPublicKey() { - return groupPublicKey_; - } - /** - * optional bytes groupPublicKey = 2; - * - *
-             * @required
-             * 
- */ - public Builder setGroupPublicKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - groupPublicKey_ = value; - onChanged(); - return this; - } - /** - * optional bytes groupPublicKey = 2; - * - *
-             * @required
-             * 
- */ - public Builder clearGroupPublicKey() { - bitField0_ = (bitField0_ & ~0x00000002); - groupPublicKey_ = getDefaultInstance().getGroupPublicKey(); - onChanged(); - return this; - } - - // optional bytes groupPrivateKey = 3; - private com.google.protobuf.ByteString groupPrivateKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes groupPrivateKey = 3; - */ - public boolean hasGroupPrivateKey() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bytes groupPrivateKey = 3; - */ - public com.google.protobuf.ByteString getGroupPrivateKey() { - return groupPrivateKey_; - } - /** - * optional bytes groupPrivateKey = 3; - */ - public Builder setGroupPrivateKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - groupPrivateKey_ = value; - onChanged(); - return this; - } - /** - * optional bytes groupPrivateKey = 3; - */ - public Builder clearGroupPrivateKey() { - bitField0_ = (bitField0_ & ~0x00000004); - groupPrivateKey_ = getDefaultInstance().getGroupPrivateKey(); - onChanged(); - return this; - } - - // repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - private java.util.List senderKeys_ = - java.util.Collections.emptyList(); - private void ensureSenderKeysIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - senderKeys_ = new java.util.ArrayList(senderKeys_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKeyOrBuilder> senderKeysBuilder_; - - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public java.util.List getSenderKeysList() { - if (senderKeysBuilder_ == null) { - return java.util.Collections.unmodifiableList(senderKeys_); - } else { - return senderKeysBuilder_.getMessageList(); - } - } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public int getSenderKeysCount() { - if (senderKeysBuilder_ == null) { - return senderKeys_.size(); - } else { - return senderKeysBuilder_.getCount(); - } - } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey getSenderKeys(int index) { - if (senderKeysBuilder_ == null) { - return senderKeys_.get(index); - } else { - return senderKeysBuilder_.getMessage(index); - } - } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public Builder setSenderKeys( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey value) { - if (senderKeysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSenderKeysIsMutable(); - senderKeys_.set(index, value); - onChanged(); - } else { - senderKeysBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public Builder setSenderKeys( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder builderForValue) { - if (senderKeysBuilder_ == null) { - ensureSenderKeysIsMutable(); - senderKeys_.set(index, builderForValue.build()); - onChanged(); - } else { - senderKeysBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public Builder addSenderKeys(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey value) { - if (senderKeysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSenderKeysIsMutable(); - senderKeys_.add(value); - onChanged(); - } else { - senderKeysBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public Builder addSenderKeys( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey value) { - if (senderKeysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSenderKeysIsMutable(); - senderKeys_.add(index, value); - onChanged(); - } else { - senderKeysBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public Builder addSenderKeys( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder builderForValue) { - if (senderKeysBuilder_ == null) { - ensureSenderKeysIsMutable(); - senderKeys_.add(builderForValue.build()); - onChanged(); - } else { - senderKeysBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public Builder addSenderKeys( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder builderForValue) { - if (senderKeysBuilder_ == null) { - ensureSenderKeysIsMutable(); - senderKeys_.add(index, builderForValue.build()); - onChanged(); - } else { - senderKeysBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public Builder addAllSenderKeys( - java.lang.Iterable values) { - if (senderKeysBuilder_ == null) { - ensureSenderKeysIsMutable(); - super.addAll(values, senderKeys_); - onChanged(); - } else { - senderKeysBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public Builder clearSenderKeys() { - if (senderKeysBuilder_ == null) { - senderKeys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - senderKeysBuilder_.clear(); - } - return this; - } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public Builder removeSenderKeys(int index) { - if (senderKeysBuilder_ == null) { - ensureSenderKeysIsMutable(); - senderKeys_.remove(index); - onChanged(); - } else { - senderKeysBuilder_.remove(index); - } - return this; - } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder getSenderKeysBuilder( - int index) { - return getSenderKeysFieldBuilder().getBuilder(index); - } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKeyOrBuilder getSenderKeysOrBuilder( - int index) { - if (senderKeysBuilder_ == null) { - return senderKeys_.get(index); } else { - return senderKeysBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public java.util.List - getSenderKeysOrBuilderList() { - if (senderKeysBuilder_ != null) { - return senderKeysBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(senderKeys_); - } - } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder addSenderKeysBuilder() { - return getSenderKeysFieldBuilder().addBuilder( - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.getDefaultInstance()); - } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder addSenderKeysBuilder( - int index) { - return getSenderKeysFieldBuilder().addBuilder( - index, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.getDefaultInstance()); - } - /** - * repeated .signalservice.ClosedGroupUpdate.SenderKey senderKeys = 4; - */ - public java.util.List - getSenderKeysBuilderList() { - return getSenderKeysFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKeyOrBuilder> - getSenderKeysFieldBuilder() { - if (senderKeysBuilder_ == null) { - senderKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKey.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.SenderKeyOrBuilder>( - senderKeys_, - ((bitField0_ & 0x00000008) == 0x00000008), - getParentForChildren(), - isClean()); - senderKeys_ = null; - } - return senderKeysBuilder_; - } - - // repeated bytes members = 5; - private java.util.List members_ = java.util.Collections.emptyList(); - private void ensureMembersIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - members_ = new java.util.ArrayList(members_); - bitField0_ |= 0x00000010; - } - } - /** - * repeated bytes members = 5; - */ - public java.util.List - getMembersList() { - return java.util.Collections.unmodifiableList(members_); - } - /** - * repeated bytes members = 5; - */ - public int getMembersCount() { - return members_.size(); - } - /** - * repeated bytes members = 5; - */ - public com.google.protobuf.ByteString getMembers(int index) { - return members_.get(index); - } - /** - * repeated bytes members = 5; - */ - public Builder setMembers( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMembersIsMutable(); - members_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes members = 5; - */ - public Builder addMembers(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMembersIsMutable(); - members_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes members = 5; - */ - public Builder addAllMembers( - java.lang.Iterable values) { - ensureMembersIsMutable(); - super.addAll(values, members_); - onChanged(); - return this; - } - /** - * repeated bytes members = 5; - */ - public Builder clearMembers() { - members_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - // repeated bytes admins = 6; - private java.util.List admins_ = java.util.Collections.emptyList(); - private void ensureAdminsIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { - admins_ = new java.util.ArrayList(admins_); - bitField0_ |= 0x00000020; - } - } - /** - * repeated bytes admins = 6; - */ - public java.util.List - getAdminsList() { - return java.util.Collections.unmodifiableList(admins_); - } - /** - * repeated bytes admins = 6; - */ - public int getAdminsCount() { - return admins_.size(); - } - /** - * repeated bytes admins = 6; - */ - public com.google.protobuf.ByteString getAdmins(int index) { - return admins_.get(index); - } - /** - * repeated bytes admins = 6; - */ - public Builder setAdmins( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdminsIsMutable(); - admins_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes admins = 6; - */ - public Builder addAdmins(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdminsIsMutable(); - admins_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes admins = 6; - */ - public Builder addAllAdmins( - java.lang.Iterable values) { - ensureAdminsIsMutable(); - super.addAll(values, admins_); - onChanged(); - return this; - } - /** - * repeated bytes admins = 6; - */ - public Builder clearAdmins() { - admins_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - // optional .signalservice.ClosedGroupUpdate.Type type = 7; - private org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type.NEW; - /** - * optional .signalservice.ClosedGroupUpdate.Type type = 7; - * - *
-             * @required
-             * 
- */ - public boolean hasType() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional .signalservice.ClosedGroupUpdate.Type type = 7; - * - *
-             * @required
-             * 
- */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type getType() { - return type_; - } - /** - * optional .signalservice.ClosedGroupUpdate.Type type = 7; - * - *
-             * @required
-             * 
- */ - public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - type_ = value; - onChanged(); - return this; - } - /** - * optional .signalservice.ClosedGroupUpdate.Type type = 7; - * - *
-             * @required
-             * 
- */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000040); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ClosedGroupUpdate.Type.NEW; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.ClosedGroupUpdate) - } - - static { - defaultInstance = new ClosedGroupUpdate(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.ClosedGroupUpdate) + // @@protoc_insertion_point(builder_scope:signalservice.ClosedGroupUpdate) } - public interface NullMessageOrBuilder - extends com.google.protobuf.MessageOrBuilder { + static { + defaultInstance = new ClosedGroupUpdate(true); + defaultInstance.initFields(); + } - // optional bytes padding = 1; - /** - * optional bytes padding = 1; - */ - boolean hasPadding(); - /** - * optional bytes padding = 1; - */ - com.google.protobuf.ByteString getPadding(); + // @@protoc_insertion_point(class_scope:signalservice.ClosedGroupUpdate) + } + + public interface NullMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional bytes padding = 1; + /** + * optional bytes padding = 1; + */ + boolean hasPadding(); + /** + * optional bytes padding = 1; + */ + com.google.protobuf.ByteString getPadding(); + } + /** + * Protobuf type {@code signalservice.NullMessage} + */ + public static final class NullMessage extends + com.google.protobuf.GeneratedMessage + implements NullMessageOrBuilder { + // Use NullMessage.newBuilder() to construct. + private NullMessage(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private NullMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final NullMessage defaultInstance; + public static NullMessage getDefaultInstance() { + return defaultInstance; + } + + public NullMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NullMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + padding_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_NullMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_NullMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public NullMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NullMessage(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional bytes padding = 1; + public static final int PADDING_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString padding_; + /** + * optional bytes padding = 1; + */ + public boolean hasPadding() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional bytes padding = 1; + */ + public com.google.protobuf.ByteString getPadding() { + return padding_; + } + + private void initFields() { + padding_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, padding_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, padding_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage 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.service.internal.push.SignalServiceProtos.NullMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.NullMessage} */ - public static final class NullMessage extends - com.google.protobuf.GeneratedMessage - implements NullMessageOrBuilder { - // Use NullMessage.newBuilder() to construct. - private NullMessage(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_NullMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_NullMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } - private NullMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + } + private static Builder create() { + return new Builder(); + } - private static final NullMessage defaultInstance; - public static NullMessage getDefaultInstance() { - return defaultInstance; + public Builder clear() { + super.clear(); + padding_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_NullMessage_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - public NullMessage getDefaultInstanceForType() { - return defaultInstance; + public org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage result = new org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } + result.padding_ = padding_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage)other); + } else { + super.mergeFrom(other); + return this; } - private NullMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - padding_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance()) return this; + if (other.hasPadding()) { + setPadding(other.getPadding()); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_NullMessage_descriptor; + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } + return this; + } + private int bitField0_; - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_NullMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.Builder.class); - } + // optional bytes padding = 1; + private com.google.protobuf.ByteString padding_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes padding = 1; + */ + public boolean hasPadding() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional bytes padding = 1; + */ + public com.google.protobuf.ByteString getPadding() { + return padding_; + } + /** + * optional bytes padding = 1; + */ + public Builder setPadding(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + padding_ = value; + onChanged(); + return this; + } + /** + * optional bytes padding = 1; + */ + public Builder clearPadding() { + bitField0_ = (bitField0_ & ~0x00000001); + padding_ = getDefaultInstance().getPadding(); + onChanged(); + return this; + } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public NullMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NullMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional bytes padding = 1; - public static final int PADDING_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString padding_; - /** - * optional bytes padding = 1; - */ - public boolean hasPadding() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bytes padding = 1; - */ - public com.google.protobuf.ByteString getPadding() { - return padding_; - } - - private void initFields() { - padding_ = com.google.protobuf.ByteString.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, padding_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, padding_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage 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.service.internal.push.SignalServiceProtos.NullMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.NullMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_NullMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_NullMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - padding_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_NullMessage_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage result = new org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.padding_ = padding_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance()) return this; - if (other.hasPadding()) { - setPadding(other.getPadding()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.NullMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional bytes padding = 1; - private com.google.protobuf.ByteString padding_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes padding = 1; - */ - public boolean hasPadding() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bytes padding = 1; - */ - public com.google.protobuf.ByteString getPadding() { - return padding_; - } - /** - * optional bytes padding = 1; - */ - public Builder setPadding(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - padding_ = value; - onChanged(); - return this; - } - /** - * optional bytes padding = 1; - */ - public Builder clearPadding() { - bitField0_ = (bitField0_ & ~0x00000001); - padding_ = getDefaultInstance().getPadding(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.NullMessage) - } - - static { - defaultInstance = new NullMessage(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.NullMessage) + // @@protoc_insertion_point(builder_scope:signalservice.NullMessage) } - public interface ReceiptMessageOrBuilder - extends com.google.protobuf.MessageOrBuilder { + static { + defaultInstance = new NullMessage(true); + defaultInstance.initFields(); + } - // optional .signalservice.ReceiptMessage.Type type = 1; - /** - * optional .signalservice.ReceiptMessage.Type type = 1; - */ - boolean hasType(); - /** - * optional .signalservice.ReceiptMessage.Type type = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type getType(); + // @@protoc_insertion_point(class_scope:signalservice.NullMessage) + } - // repeated uint64 timestamp = 2; - /** - * repeated uint64 timestamp = 2; - */ - java.util.List getTimestampList(); - /** - * repeated uint64 timestamp = 2; - */ - int getTimestampCount(); - /** - * repeated uint64 timestamp = 2; - */ - long getTimestamp(int index); + public interface ReceiptMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional .signalservice.ReceiptMessage.Type type = 1; + /** + * optional .signalservice.ReceiptMessage.Type type = 1; + */ + boolean hasType(); + /** + * optional .signalservice.ReceiptMessage.Type type = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type getType(); + + // repeated uint64 timestamp = 2; + /** + * repeated uint64 timestamp = 2; + */ + java.util.List getTimestampList(); + /** + * repeated uint64 timestamp = 2; + */ + int getTimestampCount(); + /** + * repeated uint64 timestamp = 2; + */ + long getTimestamp(int index); + } + /** + * Protobuf type {@code signalservice.ReceiptMessage} + */ + public static final class ReceiptMessage extends + com.google.protobuf.GeneratedMessage + implements ReceiptMessageOrBuilder { + // Use ReceiptMessage.newBuilder() to construct. + private ReceiptMessage(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private ReceiptMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final ReceiptMessage defaultInstance; + public static ReceiptMessage getDefaultInstance() { + return defaultInstance; + } + + public ReceiptMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ReceiptMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + type_ = value; + } + break; + } + case 16: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + timestamp_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + timestamp_.add(input.readUInt64()); + break; + } + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { + timestamp_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { + timestamp_.add(input.readUInt64()); + } + input.popLimit(limit); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + timestamp_ = java.util.Collections.unmodifiableList(timestamp_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ReceiptMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ReceiptMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public ReceiptMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReceiptMessage(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + /** + * Protobuf enum {@code signalservice.ReceiptMessage.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DELIVERY = 0; + */ + DELIVERY(0, 0), + /** + * READ = 1; + */ + READ(1, 1), + ; + + /** + * DELIVERY = 0; + */ + public static final int DELIVERY_VALUE = 0; + /** + * READ = 1; + */ + public static final int READ_VALUE = 1; + + + public final int getNumber() { return value; } + + public static Type valueOf(int value) { + switch (value) { + case 0: return DELIVERY; + case 1: return READ; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.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 index; + private final int value; + + private Type(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:signalservice.ReceiptMessage.Type) + } + + private int bitField0_; + // optional .signalservice.ReceiptMessage.Type type = 1; + public static final int TYPE_FIELD_NUMBER = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type type_; + /** + * optional .signalservice.ReceiptMessage.Type type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.ReceiptMessage.Type type = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type getType() { + return type_; + } + + // repeated uint64 timestamp = 2; + public static final int TIMESTAMP_FIELD_NUMBER = 2; + private java.util.List timestamp_; + /** + * repeated uint64 timestamp = 2; + */ + public java.util.List + getTimestampList() { + return timestamp_; + } + /** + * repeated uint64 timestamp = 2; + */ + public int getTimestampCount() { + return timestamp_.size(); + } + /** + * repeated uint64 timestamp = 2; + */ + public long getTimestamp(int index) { + return timestamp_.get(index); + } + + private void initFields() { + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type.DELIVERY; + timestamp_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, type_.getNumber()); + } + for (int i = 0; i < timestamp_.size(); i++) { + output.writeUInt64(2, timestamp_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_.getNumber()); + } + { + int dataSize = 0; + for (int i = 0; i < timestamp_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeUInt64SizeNoTag(timestamp_.get(i)); + } + size += dataSize; + size += 1 * getTimestampList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage 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.service.internal.push.SignalServiceProtos.ReceiptMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.ReceiptMessage} */ - public static final class ReceiptMessage extends - com.google.protobuf.GeneratedMessage - implements ReceiptMessageOrBuilder { - // Use ReceiptMessage.newBuilder() to construct. - private ReceiptMessage(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ReceiptMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ReceiptMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } - private ReceiptMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + } + private static Builder create() { + return new Builder(); + } - private static final ReceiptMessage defaultInstance; - public static ReceiptMessage getDefaultInstance() { - return defaultInstance; + public Builder clear() { + super.clear(); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type.DELIVERY; + bitField0_ = (bitField0_ & ~0x00000001); + timestamp_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ReceiptMessage_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - public ReceiptMessage getDefaultInstanceForType() { - return defaultInstance; + public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + result.type_ = type_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + timestamp_ = java.util.Collections.unmodifiableList(timestamp_); + bitField0_ = (bitField0_ & ~0x00000002); } - private ReceiptMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - type_ = value; - } - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - timestamp_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - timestamp_.add(input.readUInt64()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { - timestamp_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - timestamp_.add(input.readUInt64()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - timestamp_ = java.util.Collections.unmodifiableList(timestamp_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + result.timestamp_ = timestamp_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage)other); + } else { + super.mergeFrom(other); + return this; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ReceiptMessage_descriptor; + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance()) return this; + if (other.hasType()) { + setType(other.getType()); } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ReceiptMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Builder.class); + if (!other.timestamp_.isEmpty()) { + if (timestamp_.isEmpty()) { + timestamp_ = other.timestamp_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTimestampIsMutable(); + timestamp_.addAll(other.timestamp_); + } + onChanged(); } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ReceiptMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceiptMessage(input, extensionRegistry); - } - }; + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } + return this; + } + private int bitField0_; - /** - * Protobuf enum {@code signalservice.ReceiptMessage.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * DELIVERY = 0; - */ - DELIVERY(0, 0), - /** - * READ = 1; - */ - READ(1, 1), - ; - - /** - * DELIVERY = 0; - */ - public static final int DELIVERY_VALUE = 0; - /** - * READ = 1; - */ - public static final int READ_VALUE = 1; - - - public final int getNumber() { return value; } - - public static Type valueOf(int value) { - switch (value) { - case 0: return DELIVERY; - case 1: return READ; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.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 index; - private final int value; - - private Type(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:signalservice.ReceiptMessage.Type) + // optional .signalservice.ReceiptMessage.Type type = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type.DELIVERY; + /** + * optional .signalservice.ReceiptMessage.Type type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.ReceiptMessage.Type type = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type getType() { + return type_; + } + /** + * optional .signalservice.ReceiptMessage.Type type = 1; + */ + public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + /** + * optional .signalservice.ReceiptMessage.Type type = 1; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type.DELIVERY; + onChanged(); + return this; + } - private int bitField0_; - // optional .signalservice.ReceiptMessage.Type type = 1; - public static final int TYPE_FIELD_NUMBER = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type type_; - /** - * optional .signalservice.ReceiptMessage.Type type = 1; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.ReceiptMessage.Type type = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type getType() { - return type_; - } + // repeated uint64 timestamp = 2; + private java.util.List timestamp_ = java.util.Collections.emptyList(); + private void ensureTimestampIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + timestamp_ = new java.util.ArrayList(timestamp_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated uint64 timestamp = 2; + */ + public java.util.List + getTimestampList() { + return java.util.Collections.unmodifiableList(timestamp_); + } + /** + * repeated uint64 timestamp = 2; + */ + public int getTimestampCount() { + return timestamp_.size(); + } + /** + * repeated uint64 timestamp = 2; + */ + public long getTimestamp(int index) { + return timestamp_.get(index); + } + /** + * repeated uint64 timestamp = 2; + */ + public Builder setTimestamp( + int index, long value) { + ensureTimestampIsMutable(); + timestamp_.set(index, value); + onChanged(); + return this; + } + /** + * repeated uint64 timestamp = 2; + */ + public Builder addTimestamp(long value) { + ensureTimestampIsMutable(); + timestamp_.add(value); + onChanged(); + return this; + } + /** + * repeated uint64 timestamp = 2; + */ + public Builder addAllTimestamp( + java.lang.Iterable values) { + ensureTimestampIsMutable(); + super.addAll(values, timestamp_); + onChanged(); + return this; + } + /** + * repeated uint64 timestamp = 2; + */ + public Builder clearTimestamp() { + timestamp_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } - // repeated uint64 timestamp = 2; - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private java.util.List timestamp_; - /** - * repeated uint64 timestamp = 2; - */ - public java.util.List - getTimestampList() { - return timestamp_; - } - /** - * repeated uint64 timestamp = 2; - */ - public int getTimestampCount() { - return timestamp_.size(); - } - /** - * repeated uint64 timestamp = 2; - */ - public long getTimestamp(int index) { - return timestamp_.get(index); - } - - private void initFields() { - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type.DELIVERY; - timestamp_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, type_.getNumber()); - } - for (int i = 0; i < timestamp_.size(); i++) { - output.writeUInt64(2, timestamp_.get(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_.getNumber()); - } - { - int dataSize = 0; - for (int i = 0; i < timestamp_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeUInt64SizeNoTag(timestamp_.get(i)); - } - size += dataSize; - size += 1 * getTimestampList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage 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.service.internal.push.SignalServiceProtos.ReceiptMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.ReceiptMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ReceiptMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ReceiptMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type.DELIVERY; - bitField0_ = (bitField0_ & ~0x00000001); - timestamp_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ReceiptMessage_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.type_ = type_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - timestamp_ = java.util.Collections.unmodifiableList(timestamp_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.timestamp_ = timestamp_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance()) return this; - if (other.hasType()) { - setType(other.getType()); - } - if (!other.timestamp_.isEmpty()) { - if (timestamp_.isEmpty()) { - timestamp_ = other.timestamp_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureTimestampIsMutable(); - timestamp_.addAll(other.timestamp_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional .signalservice.ReceiptMessage.Type type = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type.DELIVERY; - /** - * optional .signalservice.ReceiptMessage.Type type = 1; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.ReceiptMessage.Type type = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type getType() { - return type_; - } - /** - * optional .signalservice.ReceiptMessage.Type type = 1; - */ - public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - type_ = value; - onChanged(); - return this; - } - /** - * optional .signalservice.ReceiptMessage.Type type = 1; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ReceiptMessage.Type.DELIVERY; - onChanged(); - return this; - } - - // repeated uint64 timestamp = 2; - private java.util.List timestamp_ = java.util.Collections.emptyList(); - private void ensureTimestampIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - timestamp_ = new java.util.ArrayList(timestamp_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated uint64 timestamp = 2; - */ - public java.util.List - getTimestampList() { - return java.util.Collections.unmodifiableList(timestamp_); - } - /** - * repeated uint64 timestamp = 2; - */ - public int getTimestampCount() { - return timestamp_.size(); - } - /** - * repeated uint64 timestamp = 2; - */ - public long getTimestamp(int index) { - return timestamp_.get(index); - } - /** - * repeated uint64 timestamp = 2; - */ - public Builder setTimestamp( - int index, long value) { - ensureTimestampIsMutable(); - timestamp_.set(index, value); - onChanged(); - return this; - } - /** - * repeated uint64 timestamp = 2; - */ - public Builder addTimestamp(long value) { - ensureTimestampIsMutable(); - timestamp_.add(value); - onChanged(); - return this; - } - /** - * repeated uint64 timestamp = 2; - */ - public Builder addAllTimestamp( - java.lang.Iterable values) { - ensureTimestampIsMutable(); - super.addAll(values, timestamp_); - onChanged(); - return this; - } - /** - * repeated uint64 timestamp = 2; - */ - public Builder clearTimestamp() { - timestamp_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.ReceiptMessage) - } - - static { - defaultInstance = new ReceiptMessage(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.ReceiptMessage) + // @@protoc_insertion_point(builder_scope:signalservice.ReceiptMessage) } - public interface TypingMessageOrBuilder - extends com.google.protobuf.MessageOrBuilder { + static { + defaultInstance = new ReceiptMessage(true); + defaultInstance.initFields(); + } - // optional uint64 timestamp = 1; - /** - * optional uint64 timestamp = 1; - */ - boolean hasTimestamp(); - /** - * optional uint64 timestamp = 1; - */ - long getTimestamp(); + // @@protoc_insertion_point(class_scope:signalservice.ReceiptMessage) + } - // optional .signalservice.TypingMessage.Action action = 2; - /** - * optional .signalservice.TypingMessage.Action action = 2; - */ - boolean hasAction(); - /** - * optional .signalservice.TypingMessage.Action action = 2; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action getAction(); + public interface TypingMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { - // optional bytes groupId = 3; - /** - * optional bytes groupId = 3; - */ - boolean hasGroupId(); - /** - * optional bytes groupId = 3; - */ - com.google.protobuf.ByteString getGroupId(); + // optional uint64 timestamp = 1; + /** + * optional uint64 timestamp = 1; + */ + boolean hasTimestamp(); + /** + * optional uint64 timestamp = 1; + */ + long getTimestamp(); + + // optional .signalservice.TypingMessage.Action action = 2; + /** + * optional .signalservice.TypingMessage.Action action = 2; + */ + boolean hasAction(); + /** + * optional .signalservice.TypingMessage.Action action = 2; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action getAction(); + + // optional bytes groupId = 3; + /** + * optional bytes groupId = 3; + */ + boolean hasGroupId(); + /** + * optional bytes groupId = 3; + */ + com.google.protobuf.ByteString getGroupId(); + } + /** + * Protobuf type {@code signalservice.TypingMessage} + */ + public static final class TypingMessage extends + com.google.protobuf.GeneratedMessage + implements TypingMessageOrBuilder { + // Use TypingMessage.newBuilder() to construct. + private TypingMessage(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private TypingMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final TypingMessage defaultInstance; + public static TypingMessage getDefaultInstance() { + return defaultInstance; + } + + public TypingMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TypingMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + timestamp_ = input.readUInt64(); + break; + } + case 16: { + int rawValue = input.readEnum(); + org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action value = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + action_ = value; + } + break; + } + case 26: { + bitField0_ |= 0x00000004; + groupId_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_TypingMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_TypingMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public TypingMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TypingMessage(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + /** + * Protobuf enum {@code signalservice.TypingMessage.Action} + */ + public enum Action + implements com.google.protobuf.ProtocolMessageEnum { + /** + * STARTED = 0; + */ + STARTED(0, 0), + /** + * STOPPED = 1; + */ + STOPPED(1, 1), + ; + + /** + * STARTED = 0; + */ + public static final int STARTED_VALUE = 0; + /** + * STOPPED = 1; + */ + public static final int STOPPED_VALUE = 1; + + + public final int getNumber() { return value; } + + public static Action valueOf(int value) { + switch (value) { + case 0: return STARTED; + case 1: return STOPPED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.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 index; + private final int value; + + private Action(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:signalservice.TypingMessage.Action) + } + + private int bitField0_; + // optional uint64 timestamp = 1; + public static final int TIMESTAMP_FIELD_NUMBER = 1; + private long timestamp_; + /** + * optional uint64 timestamp = 1; + */ + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional uint64 timestamp = 1; + */ + public long getTimestamp() { + return timestamp_; + } + + // optional .signalservice.TypingMessage.Action action = 2; + public static final int ACTION_FIELD_NUMBER = 2; + private org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action action_; + /** + * optional .signalservice.TypingMessage.Action action = 2; + */ + public boolean hasAction() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .signalservice.TypingMessage.Action action = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action getAction() { + return action_; + } + + // optional bytes groupId = 3; + public static final int GROUPID_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString groupId_; + /** + * optional bytes groupId = 3; + */ + public boolean hasGroupId() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bytes groupId = 3; + */ + public com.google.protobuf.ByteString getGroupId() { + return groupId_; + } + + private void initFields() { + timestamp_ = 0L; + action_ = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action.STARTED; + groupId_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt64(1, timestamp_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, action_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, groupId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, timestamp_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, action_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, groupId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage 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.service.internal.push.SignalServiceProtos.TypingMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.TypingMessage} */ - public static final class TypingMessage extends - com.google.protobuf.GeneratedMessage - implements TypingMessageOrBuilder { - // Use TypingMessage.newBuilder() to construct. - private TypingMessage(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_TypingMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_TypingMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } - private TypingMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + } + private static Builder create() { + return new Builder(); + } - private static final TypingMessage defaultInstance; - public static TypingMessage getDefaultInstance() { - return defaultInstance; + public Builder clear() { + super.clear(); + timestamp_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + action_ = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action.STARTED; + bitField0_ = (bitField0_ & ~0x00000002); + groupId_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_TypingMessage_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - public TypingMessage getDefaultInstanceForType() { - return defaultInstance; + public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage result = new org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + result.timestamp_ = timestamp_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - private TypingMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - timestamp_ = input.readUInt64(); - break; - } - case 16: { - int rawValue = input.readEnum(); - org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action value = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - action_ = value; - } - break; - } - case 26: { - bitField0_ |= 0x00000004; - groupId_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + result.action_ = action_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_TypingMessage_descriptor; + result.groupId_ = groupId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage)other); + } else { + super.mergeFrom(other); + return this; } + } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_TypingMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Builder.class); + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance()) return this; + if (other.hasTimestamp()) { + setTimestamp(other.getTimestamp()); } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TypingMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TypingMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + if (other.hasAction()) { + setAction(other.getAction()); } - - /** - * Protobuf enum {@code signalservice.TypingMessage.Action} - */ - public enum Action - implements com.google.protobuf.ProtocolMessageEnum { - /** - * STARTED = 0; - */ - STARTED(0, 0), - /** - * STOPPED = 1; - */ - STOPPED(1, 1), - ; - - /** - * STARTED = 0; - */ - public static final int STARTED_VALUE = 0; - /** - * STOPPED = 1; - */ - public static final int STOPPED_VALUE = 1; - - - public final int getNumber() { return value; } - - public static Action valueOf(int value) { - switch (value) { - case 0: return STARTED; - case 1: return STOPPED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Action findValueByNumber(int number) { - return Action.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.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 index; - private final int value; - - private Action(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:signalservice.TypingMessage.Action) + if (other.hasGroupId()) { + setGroupId(other.getGroupId()); } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } - private int bitField0_; - // optional uint64 timestamp = 1; - public static final int TIMESTAMP_FIELD_NUMBER = 1; - private long timestamp_; - /** - * optional uint64 timestamp = 1; - */ - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000001) == 0x00000001); + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } - /** - * optional uint64 timestamp = 1; - */ - public long getTimestamp() { - return timestamp_; + return this; + } + private int bitField0_; + + // optional uint64 timestamp = 1; + private long timestamp_ ; + /** + * optional uint64 timestamp = 1; + */ + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional uint64 timestamp = 1; + */ + public long getTimestamp() { + return timestamp_; + } + /** + * optional uint64 timestamp = 1; + */ + public Builder setTimestamp(long value) { + bitField0_ |= 0x00000001; + timestamp_ = value; + onChanged(); + return this; + } + /** + * optional uint64 timestamp = 1; + */ + public Builder clearTimestamp() { + bitField0_ = (bitField0_ & ~0x00000001); + timestamp_ = 0L; + onChanged(); + return this; + } + + // optional .signalservice.TypingMessage.Action action = 2; + private org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action action_ = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action.STARTED; + /** + * optional .signalservice.TypingMessage.Action action = 2; + */ + public boolean hasAction() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .signalservice.TypingMessage.Action action = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action getAction() { + return action_; + } + /** + * optional .signalservice.TypingMessage.Action action = 2; + */ + public Builder setAction(org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000002; + action_ = value; + onChanged(); + return this; + } + /** + * optional .signalservice.TypingMessage.Action action = 2; + */ + public Builder clearAction() { + bitField0_ = (bitField0_ & ~0x00000002); + action_ = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action.STARTED; + onChanged(); + return this; + } - // optional .signalservice.TypingMessage.Action action = 2; - public static final int ACTION_FIELD_NUMBER = 2; - private org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action action_; - /** - * optional .signalservice.TypingMessage.Action action = 2; - */ - public boolean hasAction() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .signalservice.TypingMessage.Action action = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action getAction() { - return action_; - } + // optional bytes groupId = 3; + private com.google.protobuf.ByteString groupId_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes groupId = 3; + */ + public boolean hasGroupId() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bytes groupId = 3; + */ + public com.google.protobuf.ByteString getGroupId() { + return groupId_; + } + /** + * optional bytes groupId = 3; + */ + public Builder setGroupId(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + groupId_ = value; + onChanged(); + return this; + } + /** + * optional bytes groupId = 3; + */ + public Builder clearGroupId() { + bitField0_ = (bitField0_ & ~0x00000004); + groupId_ = getDefaultInstance().getGroupId(); + onChanged(); + return this; + } - // optional bytes groupId = 3; - public static final int GROUPID_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString groupId_; - /** - * optional bytes groupId = 3; - */ - public boolean hasGroupId() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bytes groupId = 3; - */ - public com.google.protobuf.ByteString getGroupId() { - return groupId_; - } - - private void initFields() { - timestamp_ = 0L; - action_ = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action.STARTED; - groupId_ = com.google.protobuf.ByteString.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeUInt64(1, timestamp_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, action_.getNumber()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, groupId_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, timestamp_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, action_.getNumber()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, groupId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage 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.service.internal.push.SignalServiceProtos.TypingMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.TypingMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_TypingMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_TypingMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - timestamp_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - action_ = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action.STARTED; - bitField0_ = (bitField0_ & ~0x00000002); - groupId_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_TypingMessage_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage result = new org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.timestamp_ = timestamp_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.action_ = action_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.groupId_ = groupId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance()) return this; - if (other.hasTimestamp()) { - setTimestamp(other.getTimestamp()); - } - if (other.hasAction()) { - setAction(other.getAction()); - } - if (other.hasGroupId()) { - setGroupId(other.getGroupId()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional uint64 timestamp = 1; - private long timestamp_ ; - /** - * optional uint64 timestamp = 1; - */ - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional uint64 timestamp = 1; - */ - public long getTimestamp() { - return timestamp_; - } - /** - * optional uint64 timestamp = 1; - */ - public Builder setTimestamp(long value) { - bitField0_ |= 0x00000001; - timestamp_ = value; - onChanged(); - return this; - } - /** - * optional uint64 timestamp = 1; - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000001); - timestamp_ = 0L; - onChanged(); - return this; - } - - // optional .signalservice.TypingMessage.Action action = 2; - private org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action action_ = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action.STARTED; - /** - * optional .signalservice.TypingMessage.Action action = 2; - */ - public boolean hasAction() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .signalservice.TypingMessage.Action action = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action getAction() { - return action_; - } - /** - * optional .signalservice.TypingMessage.Action action = 2; - */ - public Builder setAction(org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - action_ = value; - onChanged(); - return this; - } - /** - * optional .signalservice.TypingMessage.Action action = 2; - */ - public Builder clearAction() { - bitField0_ = (bitField0_ & ~0x00000002); - action_ = org.session.libsignal.service.internal.push.SignalServiceProtos.TypingMessage.Action.STARTED; - onChanged(); - return this; - } - - // optional bytes groupId = 3; - private com.google.protobuf.ByteString groupId_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes groupId = 3; - */ - public boolean hasGroupId() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bytes groupId = 3; - */ - public com.google.protobuf.ByteString getGroupId() { - return groupId_; - } - /** - * optional bytes groupId = 3; - */ - public Builder setGroupId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - groupId_ = value; - onChanged(); - return this; - } - /** - * optional bytes groupId = 3; - */ - public Builder clearGroupId() { - bitField0_ = (bitField0_ & ~0x00000004); - groupId_ = getDefaultInstance().getGroupId(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.TypingMessage) - } - - static { - defaultInstance = new TypingMessage(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.TypingMessage) + // @@protoc_insertion_point(builder_scope:signalservice.TypingMessage) } - public interface VerifiedOrBuilder - extends com.google.protobuf.MessageOrBuilder { + static { + defaultInstance = new TypingMessage(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.TypingMessage) + } + + public interface VerifiedOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string destination = 1; + /** + * optional string destination = 1; + */ + boolean hasDestination(); + /** + * optional string destination = 1; + */ + java.lang.String getDestination(); + /** + * optional string destination = 1; + */ + com.google.protobuf.ByteString + getDestinationBytes(); + + // optional bytes identityKey = 2; + /** + * optional bytes identityKey = 2; + */ + boolean hasIdentityKey(); + /** + * optional bytes identityKey = 2; + */ + com.google.protobuf.ByteString getIdentityKey(); + + // optional .signalservice.Verified.State state = 3; + /** + * optional .signalservice.Verified.State state = 3; + */ + boolean hasState(); + /** + * optional .signalservice.Verified.State state = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State getState(); + + // optional bytes nullMessage = 4; + /** + * optional bytes nullMessage = 4; + */ + boolean hasNullMessage(); + /** + * optional bytes nullMessage = 4; + */ + com.google.protobuf.ByteString getNullMessage(); + } + /** + * Protobuf type {@code signalservice.Verified} + */ + public static final class Verified extends + com.google.protobuf.GeneratedMessage + implements VerifiedOrBuilder { + // Use Verified.newBuilder() to construct. + private Verified(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Verified(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Verified defaultInstance; + public static Verified getDefaultInstance() { + return defaultInstance; + } + + public Verified getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Verified( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + destination_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + identityKey_ = input.readBytes(); + break; + } + case 24: { + int rawValue = input.readEnum(); + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State value = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(3, rawValue); + } else { + bitField0_ |= 0x00000004; + state_ = value; + } + break; + } + case 34: { + bitField0_ |= 0x00000008; + nullMessage_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Verified_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Verified_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.class, org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Verified parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Verified(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + /** + * Protobuf enum {@code signalservice.Verified.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DEFAULT = 0; + */ + DEFAULT(0, 0), + /** + * VERIFIED = 1; + */ + VERIFIED(1, 1), + /** + * UNVERIFIED = 2; + */ + UNVERIFIED(2, 2), + ; + + /** + * DEFAULT = 0; + */ + public static final int DEFAULT_VALUE = 0; + /** + * VERIFIED = 1; + */ + public static final int VERIFIED_VALUE = 1; + /** + * UNVERIFIED = 2; + */ + public static final int UNVERIFIED_VALUE = 2; + + + public final int getNumber() { return value; } + + public static State valueOf(int value) { + switch (value) { + case 0: return DEFAULT; + case 1: return VERIFIED; + case 2: return UNVERIFIED; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int index; + private final int value; + + private State(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:signalservice.Verified.State) + } + + private int bitField0_; + // optional string destination = 1; + public static final int DESTINATION_FIELD_NUMBER = 1; + private java.lang.Object destination_; + /** + * optional string destination = 1; + */ + public boolean hasDestination() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string destination = 1; + */ + public java.lang.String getDestination() { + java.lang.Object ref = destination_; + 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()) { + destination_ = s; + } + return s; + } + } + /** + * optional string destination = 1; + */ + public com.google.protobuf.ByteString + getDestinationBytes() { + java.lang.Object ref = destination_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destination_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional bytes identityKey = 2; + public static final int IDENTITYKEY_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString identityKey_; + /** + * optional bytes identityKey = 2; + */ + public boolean hasIdentityKey() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bytes identityKey = 2; + */ + public com.google.protobuf.ByteString getIdentityKey() { + return identityKey_; + } + + // optional .signalservice.Verified.State state = 3; + public static final int STATE_FIELD_NUMBER = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State state_; + /** + * optional .signalservice.Verified.State state = 3; + */ + public boolean hasState() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.Verified.State state = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State getState() { + return state_; + } + + // optional bytes nullMessage = 4; + public static final int NULLMESSAGE_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString nullMessage_; + /** + * optional bytes nullMessage = 4; + */ + public boolean hasNullMessage() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional bytes nullMessage = 4; + */ + public com.google.protobuf.ByteString getNullMessage() { + return nullMessage_; + } + + private void initFields() { + destination_ = ""; + identityKey_ = com.google.protobuf.ByteString.EMPTY; + state_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State.DEFAULT; + nullMessage_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getDestinationBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, identityKey_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, state_.getNumber()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(4, nullMessage_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getDestinationBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, identityKey_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_.getNumber()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, nullMessage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified 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.service.internal.push.SignalServiceProtos.Verified parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.Verified} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Verified_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Verified_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.class, org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + destination_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + identityKey_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + state_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State.DEFAULT; + bitField0_ = (bitField0_ & ~0x00000004); + nullMessage_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Verified_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified result = new org.session.libsignal.service.internal.push.SignalServiceProtos.Verified(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.destination_ = destination_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.identityKey_ = identityKey_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.state_ = state_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.nullMessage_ = nullMessage_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.Verified) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.Verified)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance()) return this; + if (other.hasDestination()) { + bitField0_ |= 0x00000001; + destination_ = other.destination_; + onChanged(); + } + if (other.hasIdentityKey()) { + setIdentityKey(other.getIdentityKey()); + } + if (other.hasState()) { + setState(other.getState()); + } + if (other.hasNullMessage()) { + setNullMessage(other.getNullMessage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.Verified) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string destination = 1; + private java.lang.Object destination_ = ""; + /** + * optional string destination = 1; + */ + public boolean hasDestination() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string destination = 1; + */ + public java.lang.String getDestination() { + java.lang.Object ref = destination_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + destination_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string destination = 1; + */ + public com.google.protobuf.ByteString + getDestinationBytes() { + java.lang.Object ref = destination_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destination_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string destination = 1; + */ + public Builder setDestination( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + destination_ = value; + onChanged(); + return this; + } + /** + * optional string destination = 1; + */ + public Builder clearDestination() { + bitField0_ = (bitField0_ & ~0x00000001); + destination_ = getDefaultInstance().getDestination(); + onChanged(); + return this; + } + /** + * optional string destination = 1; + */ + public Builder setDestinationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + destination_ = value; + onChanged(); + return this; + } + + // optional bytes identityKey = 2; + private com.google.protobuf.ByteString identityKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes identityKey = 2; + */ + public boolean hasIdentityKey() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bytes identityKey = 2; + */ + public com.google.protobuf.ByteString getIdentityKey() { + return identityKey_; + } + /** + * optional bytes identityKey = 2; + */ + public Builder setIdentityKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + identityKey_ = value; + onChanged(); + return this; + } + /** + * optional bytes identityKey = 2; + */ + public Builder clearIdentityKey() { + bitField0_ = (bitField0_ & ~0x00000002); + identityKey_ = getDefaultInstance().getIdentityKey(); + onChanged(); + return this; + } + + // optional .signalservice.Verified.State state = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State state_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State.DEFAULT; + /** + * optional .signalservice.Verified.State state = 3; + */ + public boolean hasState() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.Verified.State state = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State getState() { + return state_; + } + /** + * optional .signalservice.Verified.State state = 3; + */ + public Builder setState(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value; + onChanged(); + return this; + } + /** + * optional .signalservice.Verified.State state = 3; + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State.DEFAULT; + onChanged(); + return this; + } + + // optional bytes nullMessage = 4; + private com.google.protobuf.ByteString nullMessage_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes nullMessage = 4; + */ + public boolean hasNullMessage() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional bytes nullMessage = 4; + */ + public com.google.protobuf.ByteString getNullMessage() { + return nullMessage_; + } + /** + * optional bytes nullMessage = 4; + */ + public Builder setNullMessage(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + nullMessage_ = value; + onChanged(); + return this; + } + /** + * optional bytes nullMessage = 4; + */ + public Builder clearNullMessage() { + bitField0_ = (bitField0_ & ~0x00000008); + nullMessage_ = getDefaultInstance().getNullMessage(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.Verified) + } + + static { + defaultInstance = new Verified(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.Verified) + } + + public interface SyncMessageOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional .signalservice.SyncMessage.Sent sent = 1; + /** + * optional .signalservice.SyncMessage.Sent sent = 1; + */ + boolean hasSent(); + /** + * optional .signalservice.SyncMessage.Sent sent = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent getSent(); + /** + * optional .signalservice.SyncMessage.Sent sent = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder getSentOrBuilder(); + + // optional .signalservice.SyncMessage.Contacts contacts = 2; + /** + * optional .signalservice.SyncMessage.Contacts contacts = 2; + */ + boolean hasContacts(); + /** + * optional .signalservice.SyncMessage.Contacts contacts = 2; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts getContacts(); + /** + * optional .signalservice.SyncMessage.Contacts contacts = 2; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder getContactsOrBuilder(); + + // optional .signalservice.SyncMessage.Groups groups = 3; + /** + * optional .signalservice.SyncMessage.Groups groups = 3; + */ + boolean hasGroups(); + /** + * optional .signalservice.SyncMessage.Groups groups = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups getGroups(); + /** + * optional .signalservice.SyncMessage.Groups groups = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder getGroupsOrBuilder(); + + // optional .signalservice.SyncMessage.Request request = 4; + /** + * optional .signalservice.SyncMessage.Request request = 4; + */ + boolean hasRequest(); + /** + * optional .signalservice.SyncMessage.Request request = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request getRequest(); + /** + * optional .signalservice.SyncMessage.Request request = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.RequestOrBuilder getRequestOrBuilder(); + + // repeated .signalservice.SyncMessage.Read read = 5; + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + java.util.List + getReadList(); + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read getRead(int index); + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + int getReadCount(); + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + java.util.List + getReadOrBuilderList(); + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder getReadOrBuilder( + int index); + + // optional .signalservice.SyncMessage.Blocked blocked = 6; + /** + * optional .signalservice.SyncMessage.Blocked blocked = 6; + */ + boolean hasBlocked(); + /** + * optional .signalservice.SyncMessage.Blocked blocked = 6; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked getBlocked(); + /** + * optional .signalservice.SyncMessage.Blocked blocked = 6; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder getBlockedOrBuilder(); + + // optional .signalservice.Verified verified = 7; + /** + * optional .signalservice.Verified verified = 7; + */ + boolean hasVerified(); + /** + * optional .signalservice.Verified verified = 7; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified getVerified(); + /** + * optional .signalservice.Verified verified = 7; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder getVerifiedOrBuilder(); + + // optional .signalservice.SyncMessage.Configuration configuration = 9; + /** + * optional .signalservice.SyncMessage.Configuration configuration = 9; + */ + boolean hasConfiguration(); + /** + * optional .signalservice.SyncMessage.Configuration configuration = 9; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration getConfiguration(); + /** + * optional .signalservice.SyncMessage.Configuration configuration = 9; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ConfigurationOrBuilder getConfigurationOrBuilder(); + + // optional bytes padding = 8; + /** + * optional bytes padding = 8; + */ + boolean hasPadding(); + /** + * optional bytes padding = 8; + */ + com.google.protobuf.ByteString getPadding(); + + // repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + java.util.List + getStickerPackOperationList(); + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation getStickerPackOperation(int index); + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + int getStickerPackOperationCount(); + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + java.util.List + getStickerPackOperationOrBuilderList(); + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperationOrBuilder getStickerPackOperationOrBuilder( + int index); + + // repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + java.util.List + getOpenGroupsList(); + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails getOpenGroups(int index); + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + int getOpenGroupsCount(); + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + java.util.List + getOpenGroupsOrBuilderList(); + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetailsOrBuilder getOpenGroupsOrBuilder( + int index); + } + /** + * Protobuf type {@code signalservice.SyncMessage} + */ + public static final class SyncMessage extends + com.google.protobuf.GeneratedMessage + implements SyncMessageOrBuilder { + // Use SyncMessage.newBuilder() to construct. + private SyncMessage(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private SyncMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final SyncMessage defaultInstance; + public static SyncMessage getDefaultInstance() { + return defaultInstance; + } + + public SyncMessage getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SyncMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = sent_.toBuilder(); + } + sent_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sent_); + sent_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = contacts_.toBuilder(); + } + contacts_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(contacts_); + contacts_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = groups_.toBuilder(); + } + groups_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(groups_); + groups_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 34: { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + read_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + read_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.PARSER, extensionRegistry)); + break; + } + case 50: { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder subBuilder = null; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subBuilder = blocked_.toBuilder(); + } + blocked_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(blocked_); + blocked_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000010; + break; + } + case 58: { + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder subBuilder = null; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + subBuilder = verified_.toBuilder(); + } + verified_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(verified_); + verified_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000020; + break; + } + case 66: { + bitField0_ |= 0x00000080; + padding_ = input.readBytes(); + break; + } + case 74: { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder subBuilder = null; + if (((bitField0_ & 0x00000040) == 0x00000040)) { + subBuilder = configuration_.toBuilder(); + } + configuration_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(configuration_); + configuration_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000040; + break; + } + case 82: { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + stickerPackOperation_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + stickerPackOperation_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.PARSER, extensionRegistry)); + break; + } + case 802: { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + openGroups_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + openGroups_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + read_ = java.util.Collections.unmodifiableList(read_); + } + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + stickerPackOperation_ = java.util.Collections.unmodifiableList(stickerPackOperation_); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + openGroups_ = java.util.Collections.unmodifiableList(openGroups_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public SyncMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SyncMessage(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public interface SentOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string destination = 1; + /** + * optional string destination = 1; + */ + boolean hasDestination(); + /** + * optional string destination = 1; + */ + java.lang.String getDestination(); + /** + * optional string destination = 1; + */ + com.google.protobuf.ByteString + getDestinationBytes(); + + // optional uint64 timestamp = 2; + /** + * optional uint64 timestamp = 2; + */ + boolean hasTimestamp(); + /** + * optional uint64 timestamp = 2; + */ + long getTimestamp(); + + // optional .signalservice.DataMessage message = 3; + /** + * optional .signalservice.DataMessage message = 3; + */ + boolean hasMessage(); + /** + * optional .signalservice.DataMessage message = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage getMessage(); + /** + * optional .signalservice.DataMessage message = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder getMessageOrBuilder(); + + // optional uint64 expirationStartTimestamp = 4; + /** + * optional uint64 expirationStartTimestamp = 4; + */ + boolean hasExpirationStartTimestamp(); + /** + * optional uint64 expirationStartTimestamp = 4; + */ + long getExpirationStartTimestamp(); + + // repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + java.util.List + getUnidentifiedStatusList(); + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus getUnidentifiedStatus(int index); + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + int getUnidentifiedStatusCount(); + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + java.util.List + getUnidentifiedStatusOrBuilderList(); + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder getUnidentifiedStatusOrBuilder( + int index); + } + /** + * Protobuf type {@code signalservice.SyncMessage.Sent} + */ + public static final class Sent extends + com.google.protobuf.GeneratedMessage + implements SentOrBuilder { + // Use Sent.newBuilder() to construct. + private Sent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Sent(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Sent defaultInstance; + public static Sent getDefaultInstance() { + return defaultInstance; + } + + public Sent getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Sent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + destination_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + timestamp_ = input.readUInt64(); + break; + } + case 26: { + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = message_.toBuilder(); + } + message_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(message_); + message_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 32: { + bitField0_ |= 0x00000008; + expirationStartTimestamp_ = input.readUInt64(); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + unidentifiedStatus_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + unidentifiedStatus_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + unidentifiedStatus_ = java.util.Collections.unmodifiableList(unidentifiedStatus_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Sent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Sent(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public interface UnidentifiedDeliveryStatusOrBuilder + extends com.google.protobuf.MessageOrBuilder { // optional string destination = 1; /** @@ -31148,243 +32579,116 @@ public final class SignalServiceProtos { * optional string destination = 1; */ com.google.protobuf.ByteString - getDestinationBytes(); + getDestinationBytes(); - // optional bytes identityKey = 2; + // optional bool unidentified = 2; /** - * optional bytes identityKey = 2; + * optional bool unidentified = 2; */ - boolean hasIdentityKey(); + boolean hasUnidentified(); /** - * optional bytes identityKey = 2; + * optional bool unidentified = 2; */ - com.google.protobuf.ByteString getIdentityKey(); - - // optional .signalservice.Verified.State state = 3; - /** - * optional .signalservice.Verified.State state = 3; - */ - boolean hasState(); - /** - * optional .signalservice.Verified.State state = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State getState(); - - // optional bytes nullMessage = 4; - /** - * optional bytes nullMessage = 4; - */ - boolean hasNullMessage(); - /** - * optional bytes nullMessage = 4; - */ - com.google.protobuf.ByteString getNullMessage(); - } - /** - * Protobuf type {@code signalservice.Verified} - */ - public static final class Verified extends - com.google.protobuf.GeneratedMessage - implements VerifiedOrBuilder { - // Use Verified.newBuilder() to construct. - private Verified(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + boolean getUnidentified(); + } + /** + * Protobuf type {@code signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus} + */ + public static final class UnidentifiedDeliveryStatus extends + com.google.protobuf.GeneratedMessage + implements UnidentifiedDeliveryStatusOrBuilder { + // Use UnidentifiedDeliveryStatus.newBuilder() to construct. + private UnidentifiedDeliveryStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); } - private Verified(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + private UnidentifiedDeliveryStatus(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - private static final Verified defaultInstance; - public static Verified getDefaultInstance() { - return defaultInstance; + private static final UnidentifiedDeliveryStatus defaultInstance; + public static UnidentifiedDeliveryStatus getDefaultInstance() { + return defaultInstance; } - public Verified getDefaultInstanceForType() { - return defaultInstance; + public UnidentifiedDeliveryStatus getDefaultInstanceForType() { + return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + getUnknownFields() { + return this.unknownFields; } - private Verified( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - destination_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - identityKey_ = input.readBytes(); - break; - } - case 24: { - int rawValue = input.readEnum(); - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State value = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - state_ = value; - } - break; - } - case 34: { - bitField0_ |= 0x00000008; - nullMessage_ = input.readBytes(); - break; - } - } + private UnidentifiedDeliveryStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); + case 10: { + bitField0_ |= 0x00000001; + destination_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + unidentified_ = input.readBool(); + break; + } + } } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } } public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Verified_descriptor; + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Verified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.class, org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder.class); + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder.class); } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Verified parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Verified(input, extensionRegistry); - } - }; + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public UnidentifiedDeliveryStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UnidentifiedDeliveryStatus(input, extensionRegistry); + } + }; @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - /** - * Protobuf enum {@code signalservice.Verified.State} - */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { - /** - * DEFAULT = 0; - */ - DEFAULT(0, 0), - /** - * VERIFIED = 1; - */ - VERIFIED(1, 1), - /** - * UNVERIFIED = 2; - */ - UNVERIFIED(2, 2), - ; - - /** - * DEFAULT = 0; - */ - public static final int DEFAULT_VALUE = 0; - /** - * VERIFIED = 1; - */ - public static final int VERIFIED_VALUE = 1; - /** - * UNVERIFIED = 2; - */ - public static final int UNVERIFIED_VALUE = 2; - - - public final int getNumber() { return value; } - - public static State valueOf(int value) { - switch (value) { - case 0: return DEFAULT; - case 1: return VERIFIED; - case 2: return UNVERIFIED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDescriptor().getEnumTypes().get(0); - } - - private static final State[] VALUES = values(); - - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private State(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:signalservice.Verified.State) + public com.google.protobuf.Parser getParserForType() { + return PARSER; } private int bitField0_; @@ -31395,18435 +32699,17131 @@ public final class SignalServiceProtos { * optional string destination = 1; */ public boolean hasDestination() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string destination = 1; */ public java.lang.String getDestination() { - java.lang.Object ref = destination_; - 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()) { - destination_ = s; - } - return s; + java.lang.Object ref = destination_; + 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()) { + destination_ = s; } + return s; + } } /** * optional string destination = 1; */ public com.google.protobuf.ByteString - getDestinationBytes() { - java.lang.Object ref = destination_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destination_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + getDestinationBytes() { + java.lang.Object ref = destination_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destination_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - // optional bytes identityKey = 2; - public static final int IDENTITYKEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString identityKey_; + // optional bool unidentified = 2; + public static final int UNIDENTIFIED_FIELD_NUMBER = 2; + private boolean unidentified_; /** - * optional bytes identityKey = 2; + * optional bool unidentified = 2; */ - public boolean hasIdentityKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public boolean hasUnidentified() { + return ((bitField0_ & 0x00000002) == 0x00000002); } /** - * optional bytes identityKey = 2; + * optional bool unidentified = 2; */ - public com.google.protobuf.ByteString getIdentityKey() { - return identityKey_; - } - - // optional .signalservice.Verified.State state = 3; - public static final int STATE_FIELD_NUMBER = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State state_; - /** - * optional .signalservice.Verified.State state = 3; - */ - public boolean hasState() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .signalservice.Verified.State state = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State getState() { - return state_; - } - - // optional bytes nullMessage = 4; - public static final int NULLMESSAGE_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString nullMessage_; - /** - * optional bytes nullMessage = 4; - */ - public boolean hasNullMessage() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bytes nullMessage = 4; - */ - public com.google.protobuf.ByteString getNullMessage() { - return nullMessage_; + public boolean getUnidentified() { + return unidentified_; } private void initFields() { - destination_ = ""; - identityKey_ = com.google.protobuf.ByteString.EMPTY; - state_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State.DEFAULT; - nullMessage_ = com.google.protobuf.ByteString.EMPTY; + destination_ = ""; + unidentified_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; - memoizedIsInitialized = 1; - return true; + memoizedIsInitialized = 1; + return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getDestinationBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, identityKey_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, state_.getNumber()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, nullMessage_); - } - getUnknownFields().writeTo(output); + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getDestinationBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBool(2, unidentified_); + } + getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; + int size = memoizedSerializedSize; + if (size != -1) return size; - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getDestinationBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, identityKey_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_.getNumber()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, nullMessage_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getDestinationBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, unidentified_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); + throws java.io.ObjectStreamException { + return super.writeReplace(); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified 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.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus 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.service.internal.push.SignalServiceProtos.Verified parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified prototype) { - return newBuilder().mergeFrom(prototype); + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus prototype) { + return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** - * Protobuf type {@code signalservice.Verified} + * Protobuf type {@code signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus} */ public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Verified_descriptor; - } + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_descriptor; + } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Verified_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.class, org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder.class); - } + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder.class); + } - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } + } + private static Builder create() { + return new Builder(); + } - public Builder clear() { - super.clear(); - destination_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - identityKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - state_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State.DEFAULT; - bitField0_ = (bitField0_ & ~0x00000004); - nullMessage_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } + public Builder clear() { + super.clear(); + destination_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + unidentified_ = false; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } + public Builder clone() { + return create().mergeFrom(buildPartial()); + } - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_Verified_descriptor; - } + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_descriptor; + } - public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); - } + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.getDefaultInstance(); + } - public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified result = new org.session.libsignal.service.internal.push.SignalServiceProtos.Verified(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.destination_ = destination_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.identityKey_ = identityKey_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.state_ = state_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.nullMessage_ = nullMessage_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } + result.destination_ = destination_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.unidentified_ = unidentified_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.Verified) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.Verified)other); - } else { - super.mergeFrom(other); - return this; - } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus)other); + } else { + super.mergeFrom(other); + return this; } + } - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance()) return this; - if (other.hasDestination()) { - bitField0_ |= 0x00000001; - destination_ = other.destination_; - onChanged(); - } - if (other.hasIdentityKey()) { - setIdentityKey(other.getIdentityKey()); - } - if (other.hasState()) { - setState(other.getState()); - } - if (other.hasNullMessage()) { - setNullMessage(other.getNullMessage()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.getDefaultInstance()) return this; + if (other.hasDestination()) { + bitField0_ |= 0x00000001; + destination_ = other.destination_; + onChanged(); } + if (other.hasUnidentified()) { + setUnidentified(other.getUnidentified()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } - public final boolean isInitialized() { - return true; - } + public final boolean isInitialized() { + return true; + } - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.Verified) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } - private int bitField0_; + return this; + } + private int bitField0_; - // optional string destination = 1; - private java.lang.Object destination_ = ""; - /** - * optional string destination = 1; - */ - public boolean hasDestination() { - return ((bitField0_ & 0x00000001) == 0x00000001); + // optional string destination = 1; + private java.lang.Object destination_ = ""; + /** + * optional string destination = 1; + */ + public boolean hasDestination() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string destination = 1; + */ + public java.lang.String getDestination() { + java.lang.Object ref = destination_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + destination_ = s; + return s; + } else { + return (java.lang.String) ref; } - /** - * optional string destination = 1; - */ - public java.lang.String getDestination() { - java.lang.Object ref = destination_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - destination_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string destination = 1; - */ - public com.google.protobuf.ByteString - getDestinationBytes() { - java.lang.Object ref = destination_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destination_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string destination = 1; - */ - public Builder setDestination( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - destination_ = value; - onChanged(); - return this; - } - /** - * optional string destination = 1; - */ - public Builder clearDestination() { - bitField0_ = (bitField0_ & ~0x00000001); - destination_ = getDefaultInstance().getDestination(); - onChanged(); - return this; - } - /** - * optional string destination = 1; - */ - public Builder setDestinationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - destination_ = value; - onChanged(); - return this; + } + /** + * optional string destination = 1; + */ + public com.google.protobuf.ByteString + getDestinationBytes() { + java.lang.Object ref = destination_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destination_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } + /** + * optional string destination = 1; + */ + public Builder setDestination( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + destination_ = value; + onChanged(); + return this; + } + /** + * optional string destination = 1; + */ + public Builder clearDestination() { + bitField0_ = (bitField0_ & ~0x00000001); + destination_ = getDefaultInstance().getDestination(); + onChanged(); + return this; + } + /** + * optional string destination = 1; + */ + public Builder setDestinationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + destination_ = value; + onChanged(); + return this; + } - // optional bytes identityKey = 2; - private com.google.protobuf.ByteString identityKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes identityKey = 2; - */ - public boolean hasIdentityKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bytes identityKey = 2; - */ - public com.google.protobuf.ByteString getIdentityKey() { - return identityKey_; - } - /** - * optional bytes identityKey = 2; - */ - public Builder setIdentityKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - identityKey_ = value; - onChanged(); - return this; - } - /** - * optional bytes identityKey = 2; - */ - public Builder clearIdentityKey() { - bitField0_ = (bitField0_ & ~0x00000002); - identityKey_ = getDefaultInstance().getIdentityKey(); - onChanged(); - return this; - } + // optional bool unidentified = 2; + private boolean unidentified_ ; + /** + * optional bool unidentified = 2; + */ + public boolean hasUnidentified() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bool unidentified = 2; + */ + public boolean getUnidentified() { + return unidentified_; + } + /** + * optional bool unidentified = 2; + */ + public Builder setUnidentified(boolean value) { + bitField0_ |= 0x00000002; + unidentified_ = value; + onChanged(); + return this; + } + /** + * optional bool unidentified = 2; + */ + public Builder clearUnidentified() { + bitField0_ = (bitField0_ & ~0x00000002); + unidentified_ = false; + onChanged(); + return this; + } - // optional .signalservice.Verified.State state = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State state_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State.DEFAULT; - /** - * optional .signalservice.Verified.State state = 3; - */ - public boolean hasState() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .signalservice.Verified.State state = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State getState() { - return state_; - } - /** - * optional .signalservice.Verified.State state = 3; - */ - public Builder setState(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - state_ = value; - onChanged(); - return this; - } - /** - * optional .signalservice.Verified.State state = 3; - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000004); - state_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.State.DEFAULT; - onChanged(); - return this; - } - - // optional bytes nullMessage = 4; - private com.google.protobuf.ByteString nullMessage_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes nullMessage = 4; - */ - public boolean hasNullMessage() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bytes nullMessage = 4; - */ - public com.google.protobuf.ByteString getNullMessage() { - return nullMessage_; - } - /** - * optional bytes nullMessage = 4; - */ - public Builder setNullMessage(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - nullMessage_ = value; - onChanged(); - return this; - } - /** - * optional bytes nullMessage = 4; - */ - public Builder clearNullMessage() { - bitField0_ = (bitField0_ & ~0x00000008); - nullMessage_ = getDefaultInstance().getNullMessage(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.Verified) + // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus) } static { - defaultInstance = new Verified(true); - defaultInstance.initFields(); + defaultInstance = new UnidentifiedDeliveryStatus(true); + defaultInstance.initFields(); } - // @@protoc_insertion_point(class_scope:signalservice.Verified) + // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus) + } + + private int bitField0_; + // optional string destination = 1; + public static final int DESTINATION_FIELD_NUMBER = 1; + private java.lang.Object destination_; + /** + * optional string destination = 1; + */ + public boolean hasDestination() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string destination = 1; + */ + public java.lang.String getDestination() { + java.lang.Object ref = destination_; + 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()) { + destination_ = s; + } + return s; + } + } + /** + * optional string destination = 1; + */ + public com.google.protobuf.ByteString + getDestinationBytes() { + java.lang.Object ref = destination_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destination_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional uint64 timestamp = 2; + public static final int TIMESTAMP_FIELD_NUMBER = 2; + private long timestamp_; + /** + * optional uint64 timestamp = 2; + */ + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional uint64 timestamp = 2; + */ + public long getTimestamp() { + return timestamp_; + } + + // optional .signalservice.DataMessage message = 3; + public static final int MESSAGE_FIELD_NUMBER = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage message_; + /** + * optional .signalservice.DataMessage message = 3; + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.DataMessage message = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage getMessage() { + return message_; + } + /** + * optional .signalservice.DataMessage message = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder getMessageOrBuilder() { + return message_; + } + + // optional uint64 expirationStartTimestamp = 4; + public static final int EXPIRATIONSTARTTIMESTAMP_FIELD_NUMBER = 4; + private long expirationStartTimestamp_; + /** + * optional uint64 expirationStartTimestamp = 4; + */ + public boolean hasExpirationStartTimestamp() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional uint64 expirationStartTimestamp = 4; + */ + public long getExpirationStartTimestamp() { + return expirationStartTimestamp_; + } + + // repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + public static final int UNIDENTIFIEDSTATUS_FIELD_NUMBER = 5; + private java.util.List unidentifiedStatus_; + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public java.util.List getUnidentifiedStatusList() { + return unidentifiedStatus_; + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public java.util.List + getUnidentifiedStatusOrBuilderList() { + return unidentifiedStatus_; + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public int getUnidentifiedStatusCount() { + return unidentifiedStatus_.size(); + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus getUnidentifiedStatus(int index) { + return unidentifiedStatus_.get(index); + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder getUnidentifiedStatusOrBuilder( + int index) { + return unidentifiedStatus_.get(index); + } + + private void initFields() { + destination_ = ""; + timestamp_ = 0L; + message_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); + expirationStartTimestamp_ = 0L; + unidentifiedStatus_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (hasMessage()) { + if (!getMessage().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getDestinationBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt64(2, timestamp_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, message_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt64(4, expirationStartTimestamp_); + } + for (int i = 0; i < unidentifiedStatus_.size(); i++) { + output.writeMessage(5, unidentifiedStatus_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getDestinationBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, timestamp_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, message_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(4, expirationStartTimestamp_); + } + for (int i = 0; i < unidentifiedStatus_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, unidentifiedStatus_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent 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.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.SyncMessage.Sent} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getMessageFieldBuilder(); + getUnidentifiedStatusFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + destination_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + timestamp_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + if (messageBuilder_ == null) { + message_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); + } else { + messageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + expirationStartTimestamp_ = 0L; + bitField0_ = (bitField0_ & ~0x00000008); + if (unidentifiedStatusBuilder_ == null) { + unidentifiedStatus_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + unidentifiedStatusBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.destination_ = destination_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.timestamp_ = timestamp_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (messageBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = messageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.expirationStartTimestamp_ = expirationStartTimestamp_; + if (unidentifiedStatusBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + unidentifiedStatus_ = java.util.Collections.unmodifiableList(unidentifiedStatus_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.unidentifiedStatus_ = unidentifiedStatus_; + } else { + result.unidentifiedStatus_ = unidentifiedStatusBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance()) return this; + if (other.hasDestination()) { + bitField0_ |= 0x00000001; + destination_ = other.destination_; + onChanged(); + } + if (other.hasTimestamp()) { + setTimestamp(other.getTimestamp()); + } + if (other.hasMessage()) { + mergeMessage(other.getMessage()); + } + if (other.hasExpirationStartTimestamp()) { + setExpirationStartTimestamp(other.getExpirationStartTimestamp()); + } + if (unidentifiedStatusBuilder_ == null) { + if (!other.unidentifiedStatus_.isEmpty()) { + if (unidentifiedStatus_.isEmpty()) { + unidentifiedStatus_ = other.unidentifiedStatus_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureUnidentifiedStatusIsMutable(); + unidentifiedStatus_.addAll(other.unidentifiedStatus_); + } + onChanged(); + } + } else { + if (!other.unidentifiedStatus_.isEmpty()) { + if (unidentifiedStatusBuilder_.isEmpty()) { + unidentifiedStatusBuilder_.dispose(); + unidentifiedStatusBuilder_ = null; + unidentifiedStatus_ = other.unidentifiedStatus_; + bitField0_ = (bitField0_ & ~0x00000010); + unidentifiedStatusBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getUnidentifiedStatusFieldBuilder() : null; + } else { + unidentifiedStatusBuilder_.addAllMessages(other.unidentifiedStatus_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (hasMessage()) { + if (!getMessage().isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string destination = 1; + private java.lang.Object destination_ = ""; + /** + * optional string destination = 1; + */ + public boolean hasDestination() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string destination = 1; + */ + public java.lang.String getDestination() { + java.lang.Object ref = destination_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + destination_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string destination = 1; + */ + public com.google.protobuf.ByteString + getDestinationBytes() { + java.lang.Object ref = destination_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destination_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string destination = 1; + */ + public Builder setDestination( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + destination_ = value; + onChanged(); + return this; + } + /** + * optional string destination = 1; + */ + public Builder clearDestination() { + bitField0_ = (bitField0_ & ~0x00000001); + destination_ = getDefaultInstance().getDestination(); + onChanged(); + return this; + } + /** + * optional string destination = 1; + */ + public Builder setDestinationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + destination_ = value; + onChanged(); + return this; + } + + // optional uint64 timestamp = 2; + private long timestamp_ ; + /** + * optional uint64 timestamp = 2; + */ + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional uint64 timestamp = 2; + */ + public long getTimestamp() { + return timestamp_; + } + /** + * optional uint64 timestamp = 2; + */ + public Builder setTimestamp(long value) { + bitField0_ |= 0x00000002; + timestamp_ = value; + onChanged(); + return this; + } + /** + * optional uint64 timestamp = 2; + */ + public Builder clearTimestamp() { + bitField0_ = (bitField0_ & ~0x00000002); + timestamp_ = 0L; + onChanged(); + return this; + } + + // optional .signalservice.DataMessage message = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage message_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder> messageBuilder_; + /** + * optional .signalservice.DataMessage message = 3; + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.DataMessage message = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage getMessage() { + if (messageBuilder_ == null) { + return message_; + } else { + return messageBuilder_.getMessage(); + } + } + /** + * optional .signalservice.DataMessage message = 3; + */ + public Builder setMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage value) { + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + messageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.DataMessage message = 3; + */ + public Builder setMessage( + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder builderForValue) { + if (messageBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + messageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.DataMessage message = 3; + */ + public Builder mergeMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage value) { + if (messageBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + message_ != org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance()) { + message_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.newBuilder(message_).mergeFrom(value).buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + messageBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.DataMessage message = 3; + */ + public Builder clearMessage() { + if (messageBuilder_ == null) { + message_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); + onChanged(); + } else { + messageBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + * optional .signalservice.DataMessage message = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder getMessageBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMessageFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.DataMessage message = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder getMessageOrBuilder() { + if (messageBuilder_ != null) { + return messageBuilder_.getMessageOrBuilder(); + } else { + return message_; + } + } + /** + * optional .signalservice.DataMessage message = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder> + getMessageFieldBuilder() { + if (messageBuilder_ == null) { + messageBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder>( + message_, + getParentForChildren(), + isClean()); + message_ = null; + } + return messageBuilder_; + } + + // optional uint64 expirationStartTimestamp = 4; + private long expirationStartTimestamp_ ; + /** + * optional uint64 expirationStartTimestamp = 4; + */ + public boolean hasExpirationStartTimestamp() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional uint64 expirationStartTimestamp = 4; + */ + public long getExpirationStartTimestamp() { + return expirationStartTimestamp_; + } + /** + * optional uint64 expirationStartTimestamp = 4; + */ + public Builder setExpirationStartTimestamp(long value) { + bitField0_ |= 0x00000008; + expirationStartTimestamp_ = value; + onChanged(); + return this; + } + /** + * optional uint64 expirationStartTimestamp = 4; + */ + public Builder clearExpirationStartTimestamp() { + bitField0_ = (bitField0_ & ~0x00000008); + expirationStartTimestamp_ = 0L; + onChanged(); + return this; + } + + // repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + private java.util.List unidentifiedStatus_ = + java.util.Collections.emptyList(); + private void ensureUnidentifiedStatusIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + unidentifiedStatus_ = new java.util.ArrayList(unidentifiedStatus_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder> unidentifiedStatusBuilder_; + + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public java.util.List getUnidentifiedStatusList() { + if (unidentifiedStatusBuilder_ == null) { + return java.util.Collections.unmodifiableList(unidentifiedStatus_); + } else { + return unidentifiedStatusBuilder_.getMessageList(); + } + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public int getUnidentifiedStatusCount() { + if (unidentifiedStatusBuilder_ == null) { + return unidentifiedStatus_.size(); + } else { + return unidentifiedStatusBuilder_.getCount(); + } + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus getUnidentifiedStatus(int index) { + if (unidentifiedStatusBuilder_ == null) { + return unidentifiedStatus_.get(index); + } else { + return unidentifiedStatusBuilder_.getMessage(index); + } + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public Builder setUnidentifiedStatus( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus value) { + if (unidentifiedStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnidentifiedStatusIsMutable(); + unidentifiedStatus_.set(index, value); + onChanged(); + } else { + unidentifiedStatusBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public Builder setUnidentifiedStatus( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder builderForValue) { + if (unidentifiedStatusBuilder_ == null) { + ensureUnidentifiedStatusIsMutable(); + unidentifiedStatus_.set(index, builderForValue.build()); + onChanged(); + } else { + unidentifiedStatusBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public Builder addUnidentifiedStatus(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus value) { + if (unidentifiedStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnidentifiedStatusIsMutable(); + unidentifiedStatus_.add(value); + onChanged(); + } else { + unidentifiedStatusBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public Builder addUnidentifiedStatus( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus value) { + if (unidentifiedStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnidentifiedStatusIsMutable(); + unidentifiedStatus_.add(index, value); + onChanged(); + } else { + unidentifiedStatusBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public Builder addUnidentifiedStatus( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder builderForValue) { + if (unidentifiedStatusBuilder_ == null) { + ensureUnidentifiedStatusIsMutable(); + unidentifiedStatus_.add(builderForValue.build()); + onChanged(); + } else { + unidentifiedStatusBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public Builder addUnidentifiedStatus( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder builderForValue) { + if (unidentifiedStatusBuilder_ == null) { + ensureUnidentifiedStatusIsMutable(); + unidentifiedStatus_.add(index, builderForValue.build()); + onChanged(); + } else { + unidentifiedStatusBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public Builder addAllUnidentifiedStatus( + java.lang.Iterable values) { + if (unidentifiedStatusBuilder_ == null) { + ensureUnidentifiedStatusIsMutable(); + super.addAll(values, unidentifiedStatus_); + onChanged(); + } else { + unidentifiedStatusBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public Builder clearUnidentifiedStatus() { + if (unidentifiedStatusBuilder_ == null) { + unidentifiedStatus_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + unidentifiedStatusBuilder_.clear(); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public Builder removeUnidentifiedStatus(int index) { + if (unidentifiedStatusBuilder_ == null) { + ensureUnidentifiedStatusIsMutable(); + unidentifiedStatus_.remove(index); + onChanged(); + } else { + unidentifiedStatusBuilder_.remove(index); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder getUnidentifiedStatusBuilder( + int index) { + return getUnidentifiedStatusFieldBuilder().getBuilder(index); + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder getUnidentifiedStatusOrBuilder( + int index) { + if (unidentifiedStatusBuilder_ == null) { + return unidentifiedStatus_.get(index); } else { + return unidentifiedStatusBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public java.util.List + getUnidentifiedStatusOrBuilderList() { + if (unidentifiedStatusBuilder_ != null) { + return unidentifiedStatusBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(unidentifiedStatus_); + } + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder addUnidentifiedStatusBuilder() { + return getUnidentifiedStatusFieldBuilder().addBuilder( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.getDefaultInstance()); + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder addUnidentifiedStatusBuilder( + int index) { + return getUnidentifiedStatusFieldBuilder().addBuilder( + index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.getDefaultInstance()); + } + /** + * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; + */ + public java.util.List + getUnidentifiedStatusBuilderList() { + return getUnidentifiedStatusFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder> + getUnidentifiedStatusFieldBuilder() { + if (unidentifiedStatusBuilder_ == null) { + unidentifiedStatusBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder>( + unidentifiedStatus_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + unidentifiedStatus_ = null; + } + return unidentifiedStatusBuilder_; + } + + // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.Sent) + } + + static { + defaultInstance = new Sent(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.Sent) } - public interface SyncMessageOrBuilder - extends com.google.protobuf.MessageOrBuilder { + public interface ContactsOrBuilder + extends com.google.protobuf.MessageOrBuilder { - // optional .signalservice.SyncMessage.Sent sent = 1; - /** - * optional .signalservice.SyncMessage.Sent sent = 1; - */ - boolean hasSent(); - /** - * optional .signalservice.SyncMessage.Sent sent = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent getSent(); - /** - * optional .signalservice.SyncMessage.Sent sent = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder getSentOrBuilder(); + // optional .signalservice.AttachmentPointer blob = 1; + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + boolean hasBlob(); + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getBlob(); + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getBlobOrBuilder(); - // optional .signalservice.SyncMessage.Contacts contacts = 2; - /** - * optional .signalservice.SyncMessage.Contacts contacts = 2; - */ - boolean hasContacts(); - /** - * optional .signalservice.SyncMessage.Contacts contacts = 2; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts getContacts(); - /** - * optional .signalservice.SyncMessage.Contacts contacts = 2; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder getContactsOrBuilder(); + // optional bool complete = 2 [default = false]; + /** + * optional bool complete = 2 [default = false]; + */ + boolean hasComplete(); + /** + * optional bool complete = 2 [default = false]; + */ + boolean getComplete(); - // optional .signalservice.SyncMessage.Groups groups = 3; - /** - * optional .signalservice.SyncMessage.Groups groups = 3; - */ - boolean hasGroups(); - /** - * optional .signalservice.SyncMessage.Groups groups = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups getGroups(); - /** - * optional .signalservice.SyncMessage.Groups groups = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder getGroupsOrBuilder(); + // optional bytes data = 101; + /** + * optional bytes data = 101; + */ + boolean hasData(); + /** + * optional bytes data = 101; + */ + com.google.protobuf.ByteString getData(); + } + /** + * Protobuf type {@code signalservice.SyncMessage.Contacts} + */ + public static final class Contacts extends + com.google.protobuf.GeneratedMessage + implements ContactsOrBuilder { + // Use Contacts.newBuilder() to construct. + private Contacts(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Contacts(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - // optional .signalservice.SyncMessage.Request request = 4; - /** - * optional .signalservice.SyncMessage.Request request = 4; - */ - boolean hasRequest(); - /** - * optional .signalservice.SyncMessage.Request request = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request getRequest(); - /** - * optional .signalservice.SyncMessage.Request request = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.RequestOrBuilder getRequestOrBuilder(); + private static final Contacts defaultInstance; + public static Contacts getDefaultInstance() { + return defaultInstance; + } - // repeated .signalservice.SyncMessage.Read read = 5; - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - java.util.List - getReadList(); - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read getRead(int index); - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - int getReadCount(); - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - java.util.List - getReadOrBuilderList(); - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder getReadOrBuilder( - int index); + public Contacts getDefaultInstanceForType() { + return defaultInstance; + } - // optional .signalservice.SyncMessage.Blocked blocked = 6; - /** - * optional .signalservice.SyncMessage.Blocked blocked = 6; - */ - boolean hasBlocked(); - /** - * optional .signalservice.SyncMessage.Blocked blocked = 6; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked getBlocked(); - /** - * optional .signalservice.SyncMessage.Blocked blocked = 6; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder getBlockedOrBuilder(); + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Contacts( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = blob_.toBuilder(); + } + blob_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(blob_); + blob_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 16: { + bitField0_ |= 0x00000002; + complete_ = input.readBool(); + break; + } + case 810: { + bitField0_ |= 0x00000004; + data_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Contacts_descriptor; + } - // optional .signalservice.Verified verified = 7; - /** - * optional .signalservice.Verified verified = 7; - */ - boolean hasVerified(); - /** - * optional .signalservice.Verified verified = 7; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified getVerified(); - /** - * optional .signalservice.Verified verified = 7; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder getVerifiedOrBuilder(); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Contacts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder.class); + } - // optional .signalservice.SyncMessage.Configuration configuration = 9; - /** - * optional .signalservice.SyncMessage.Configuration configuration = 9; - */ - boolean hasConfiguration(); - /** - * optional .signalservice.SyncMessage.Configuration configuration = 9; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration getConfiguration(); - /** - * optional .signalservice.SyncMessage.Configuration configuration = 9; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ConfigurationOrBuilder getConfigurationOrBuilder(); + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Contacts parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Contacts(input, extensionRegistry); + } + }; - // optional bytes padding = 8; - /** - * optional bytes padding = 8; - */ - boolean hasPadding(); - /** - * optional bytes padding = 8; - */ - com.google.protobuf.ByteString getPadding(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - // repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - java.util.List - getStickerPackOperationList(); - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation getStickerPackOperation(int index); - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - int getStickerPackOperationCount(); - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - java.util.List - getStickerPackOperationOrBuilderList(); - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperationOrBuilder getStickerPackOperationOrBuilder( - int index); + private int bitField0_; + // optional .signalservice.AttachmentPointer blob = 1; + public static final int BLOB_FIELD_NUMBER = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer blob_; + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + public boolean hasBlob() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getBlob() { + return blob_; + } + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getBlobOrBuilder() { + return blob_; + } - // repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + // optional bool complete = 2 [default = false]; + public static final int COMPLETE_FIELD_NUMBER = 2; + private boolean complete_; + /** + * optional bool complete = 2 [default = false]; + */ + public boolean hasComplete() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bool complete = 2 [default = false]; + */ + public boolean getComplete() { + return complete_; + } + + // optional bytes data = 101; + public static final int DATA_FIELD_NUMBER = 101; + private com.google.protobuf.ByteString data_; + /** + * optional bytes data = 101; + */ + public boolean hasData() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bytes data = 101; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + private void initFields() { + blob_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + complete_ = false; + data_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, blob_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBool(2, complete_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(101, data_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, blob_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, complete_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(101, data_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts 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.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.SyncMessage.Contacts} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Contacts_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Contacts_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getBlobFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (blobBuilder_ == null) { + blob_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + } else { + blobBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + complete_ = false; + bitField0_ = (bitField0_ & ~0x00000002); + data_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Contacts_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (blobBuilder_ == null) { + result.blob_ = blob_; + } else { + result.blob_ = blobBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.complete_ = complete_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.data_ = data_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance()) return this; + if (other.hasBlob()) { + mergeBlob(other.getBlob()); + } + if (other.hasComplete()) { + setComplete(other.getComplete()); + } + if (other.hasData()) { + setData(other.getData()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional .signalservice.AttachmentPointer blob = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer blob_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> blobBuilder_; /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + * optional .signalservice.AttachmentPointer blob = 1; */ - java.util.List - getOpenGroupsList(); + public boolean hasBlob() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + * optional .signalservice.AttachmentPointer blob = 1; */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails getOpenGroups(int index); + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getBlob() { + if (blobBuilder_ == null) { + return blob_; + } else { + return blobBuilder_.getMessage(); + } + } /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + * optional .signalservice.AttachmentPointer blob = 1; */ - int getOpenGroupsCount(); + public Builder setBlob(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { + if (blobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blob_ = value; + onChanged(); + } else { + blobBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + * optional .signalservice.AttachmentPointer blob = 1; */ - java.util.List - getOpenGroupsOrBuilderList(); + public Builder setBlob( + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder builderForValue) { + if (blobBuilder_ == null) { + blob_ = builderForValue.build(); + onChanged(); + } else { + blobBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + * optional .signalservice.AttachmentPointer blob = 1; */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetailsOrBuilder getOpenGroupsOrBuilder( - int index); + public Builder mergeBlob(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { + if (blobBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + blob_ != org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) { + blob_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.newBuilder(blob_).mergeFrom(value).buildPartial(); + } else { + blob_ = value; + } + onChanged(); + } else { + blobBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + public Builder clearBlob() { + if (blobBuilder_ == null) { + blob_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + onChanged(); + } else { + blobBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder getBlobBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getBlobFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getBlobOrBuilder() { + if (blobBuilder_ != null) { + return blobBuilder_.getMessageOrBuilder(); + } else { + return blob_; + } + } + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> + getBlobFieldBuilder() { + if (blobBuilder_ == null) { + blobBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>( + blob_, + getParentForChildren(), + isClean()); + blob_ = null; + } + return blobBuilder_; + } + + // optional bool complete = 2 [default = false]; + private boolean complete_ ; + /** + * optional bool complete = 2 [default = false]; + */ + public boolean hasComplete() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bool complete = 2 [default = false]; + */ + public boolean getComplete() { + return complete_; + } + /** + * optional bool complete = 2 [default = false]; + */ + public Builder setComplete(boolean value) { + bitField0_ |= 0x00000002; + complete_ = value; + onChanged(); + return this; + } + /** + * optional bool complete = 2 [default = false]; + */ + public Builder clearComplete() { + bitField0_ = (bitField0_ & ~0x00000002); + complete_ = false; + onChanged(); + return this; + } + + // optional bytes data = 101; + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes data = 101; + */ + public boolean hasData() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bytes data = 101; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * optional bytes data = 101; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + data_ = value; + onChanged(); + return this; + } + /** + * optional bytes data = 101; + */ + public Builder clearData() { + bitField0_ = (bitField0_ & ~0x00000004); + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.Contacts) + } + + static { + defaultInstance = new Contacts(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.Contacts) + } + + public interface GroupsOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional .signalservice.AttachmentPointer blob = 1; + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + boolean hasBlob(); + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getBlob(); + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getBlobOrBuilder(); + + // optional bytes data = 101; + /** + * optional bytes data = 101; + */ + boolean hasData(); + /** + * optional bytes data = 101; + */ + com.google.protobuf.ByteString getData(); + } + /** + * Protobuf type {@code signalservice.SyncMessage.Groups} + */ + public static final class Groups extends + com.google.protobuf.GeneratedMessage + implements GroupsOrBuilder { + // Use Groups.newBuilder() to construct. + private Groups(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Groups(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Groups defaultInstance; + public static Groups getDefaultInstance() { + return defaultInstance; + } + + public Groups getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Groups( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = blob_.toBuilder(); + } + blob_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(blob_); + blob_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 810: { + bitField0_ |= 0x00000002; + data_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Groups_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Groups_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Groups parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Groups(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional .signalservice.AttachmentPointer blob = 1; + public static final int BLOB_FIELD_NUMBER = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer blob_; + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + public boolean hasBlob() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getBlob() { + return blob_; + } + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getBlobOrBuilder() { + return blob_; + } + + // optional bytes data = 101; + public static final int DATA_FIELD_NUMBER = 101; + private com.google.protobuf.ByteString data_; + /** + * optional bytes data = 101; + */ + public boolean hasData() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bytes data = 101; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + private void initFields() { + blob_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + data_ = com.google.protobuf.ByteString.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, blob_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(101, data_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, blob_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(101, data_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups 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.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.SyncMessage.Groups} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Groups_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Groups_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getBlobFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (blobBuilder_ == null) { + blob_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + } else { + blobBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + data_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Groups_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (blobBuilder_ == null) { + result.blob_ = blob_; + } else { + result.blob_ = blobBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.data_ = data_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance()) return this; + if (other.hasBlob()) { + mergeBlob(other.getBlob()); + } + if (other.hasData()) { + setData(other.getData()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional .signalservice.AttachmentPointer blob = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer blob_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> blobBuilder_; + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + public boolean hasBlob() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getBlob() { + if (blobBuilder_ == null) { + return blob_; + } else { + return blobBuilder_.getMessage(); + } + } + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + public Builder setBlob(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { + if (blobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blob_ = value; + onChanged(); + } else { + blobBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + public Builder setBlob( + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder builderForValue) { + if (blobBuilder_ == null) { + blob_ = builderForValue.build(); + onChanged(); + } else { + blobBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + public Builder mergeBlob(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { + if (blobBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + blob_ != org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) { + blob_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.newBuilder(blob_).mergeFrom(value).buildPartial(); + } else { + blob_ = value; + } + onChanged(); + } else { + blobBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + public Builder clearBlob() { + if (blobBuilder_ == null) { + blob_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + onChanged(); + } else { + blobBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder getBlobBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getBlobFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getBlobOrBuilder() { + if (blobBuilder_ != null) { + return blobBuilder_.getMessageOrBuilder(); + } else { + return blob_; + } + } + /** + * optional .signalservice.AttachmentPointer blob = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> + getBlobFieldBuilder() { + if (blobBuilder_ == null) { + blobBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>( + blob_, + getParentForChildren(), + isClean()); + blob_ = null; + } + return blobBuilder_; + } + + // optional bytes data = 101; + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes data = 101; + */ + public boolean hasData() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bytes data = 101; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + * optional bytes data = 101; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + data_ = value; + onChanged(); + return this; + } + /** + * optional bytes data = 101; + */ + public Builder clearData() { + bitField0_ = (bitField0_ & ~0x00000002); + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.Groups) + } + + static { + defaultInstance = new Groups(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.Groups) + } + + public interface BlockedOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // repeated string numbers = 1; + /** + * repeated string numbers = 1; + */ + java.util.List + getNumbersList(); + /** + * repeated string numbers = 1; + */ + int getNumbersCount(); + /** + * repeated string numbers = 1; + */ + java.lang.String getNumbers(int index); + /** + * repeated string numbers = 1; + */ + com.google.protobuf.ByteString + getNumbersBytes(int index); + + // repeated bytes groupIds = 2; + /** + * repeated bytes groupIds = 2; + */ + java.util.List getGroupIdsList(); + /** + * repeated bytes groupIds = 2; + */ + int getGroupIdsCount(); + /** + * repeated bytes groupIds = 2; + */ + com.google.protobuf.ByteString getGroupIds(int index); + } + /** + * Protobuf type {@code signalservice.SyncMessage.Blocked} + */ + public static final class Blocked extends + com.google.protobuf.GeneratedMessage + implements BlockedOrBuilder { + // Use Blocked.newBuilder() to construct. + private Blocked(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Blocked(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Blocked defaultInstance; + public static Blocked getDefaultInstance() { + return defaultInstance; + } + + public Blocked getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Blocked( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + numbers_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + numbers_.add(input.readBytes()); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + groupIds_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + groupIds_.add(input.readBytes()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + numbers_ = new com.google.protobuf.UnmodifiableLazyStringList(numbers_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + groupIds_ = java.util.Collections.unmodifiableList(groupIds_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Blocked_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Blocked_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Blocked parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Blocked(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + // repeated string numbers = 1; + public static final int NUMBERS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList numbers_; + /** + * repeated string numbers = 1; + */ + public java.util.List + getNumbersList() { + return numbers_; + } + /** + * repeated string numbers = 1; + */ + public int getNumbersCount() { + return numbers_.size(); + } + /** + * repeated string numbers = 1; + */ + public java.lang.String getNumbers(int index) { + return numbers_.get(index); + } + /** + * repeated string numbers = 1; + */ + public com.google.protobuf.ByteString + getNumbersBytes(int index) { + return numbers_.getByteString(index); + } + + // repeated bytes groupIds = 2; + public static final int GROUPIDS_FIELD_NUMBER = 2; + private java.util.List groupIds_; + /** + * repeated bytes groupIds = 2; + */ + public java.util.List + getGroupIdsList() { + return groupIds_; + } + /** + * repeated bytes groupIds = 2; + */ + public int getGroupIdsCount() { + return groupIds_.size(); + } + /** + * repeated bytes groupIds = 2; + */ + public com.google.protobuf.ByteString getGroupIds(int index) { + return groupIds_.get(index); + } + + private void initFields() { + numbers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + groupIds_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < numbers_.size(); i++) { + output.writeBytes(1, numbers_.getByteString(i)); + } + for (int i = 0; i < groupIds_.size(); i++) { + output.writeBytes(2, groupIds_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < numbers_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(numbers_.getByteString(i)); + } + size += dataSize; + size += 1 * getNumbersList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < groupIds_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(groupIds_.get(i)); + } + size += dataSize; + size += 1 * getGroupIdsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked 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.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.SyncMessage.Blocked} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Blocked_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Blocked_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + numbers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + groupIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Blocked_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + numbers_ = new com.google.protobuf.UnmodifiableLazyStringList( + numbers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.numbers_ = numbers_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + groupIds_ = java.util.Collections.unmodifiableList(groupIds_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.groupIds_ = groupIds_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance()) return this; + if (!other.numbers_.isEmpty()) { + if (numbers_.isEmpty()) { + numbers_ = other.numbers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureNumbersIsMutable(); + numbers_.addAll(other.numbers_); + } + onChanged(); + } + if (!other.groupIds_.isEmpty()) { + if (groupIds_.isEmpty()) { + groupIds_ = other.groupIds_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureGroupIdsIsMutable(); + groupIds_.addAll(other.groupIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // repeated string numbers = 1; + private com.google.protobuf.LazyStringList numbers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureNumbersIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + numbers_ = new com.google.protobuf.LazyStringArrayList(numbers_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string numbers = 1; + */ + public java.util.List + getNumbersList() { + return java.util.Collections.unmodifiableList(numbers_); + } + /** + * repeated string numbers = 1; + */ + public int getNumbersCount() { + return numbers_.size(); + } + /** + * repeated string numbers = 1; + */ + public java.lang.String getNumbers(int index) { + return numbers_.get(index); + } + /** + * repeated string numbers = 1; + */ + public com.google.protobuf.ByteString + getNumbersBytes(int index) { + return numbers_.getByteString(index); + } + /** + * repeated string numbers = 1; + */ + public Builder setNumbers( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNumbersIsMutable(); + numbers_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string numbers = 1; + */ + public Builder addNumbers( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNumbersIsMutable(); + numbers_.add(value); + onChanged(); + return this; + } + /** + * repeated string numbers = 1; + */ + public Builder addAllNumbers( + java.lang.Iterable values) { + ensureNumbersIsMutable(); + super.addAll(values, numbers_); + onChanged(); + return this; + } + /** + * repeated string numbers = 1; + */ + public Builder clearNumbers() { + numbers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string numbers = 1; + */ + public Builder addNumbersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNumbersIsMutable(); + numbers_.add(value); + onChanged(); + return this; + } + + // repeated bytes groupIds = 2; + private java.util.List groupIds_ = java.util.Collections.emptyList(); + private void ensureGroupIdsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + groupIds_ = new java.util.ArrayList(groupIds_); + bitField0_ |= 0x00000002; + } + } + /** + * repeated bytes groupIds = 2; + */ + public java.util.List + getGroupIdsList() { + return java.util.Collections.unmodifiableList(groupIds_); + } + /** + * repeated bytes groupIds = 2; + */ + public int getGroupIdsCount() { + return groupIds_.size(); + } + /** + * repeated bytes groupIds = 2; + */ + public com.google.protobuf.ByteString getGroupIds(int index) { + return groupIds_.get(index); + } + /** + * repeated bytes groupIds = 2; + */ + public Builder setGroupIds( + int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupIdsIsMutable(); + groupIds_.set(index, value); + onChanged(); + return this; + } + /** + * repeated bytes groupIds = 2; + */ + public Builder addGroupIds(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupIdsIsMutable(); + groupIds_.add(value); + onChanged(); + return this; + } + /** + * repeated bytes groupIds = 2; + */ + public Builder addAllGroupIds( + java.lang.Iterable values) { + ensureGroupIdsIsMutable(); + super.addAll(values, groupIds_); + onChanged(); + return this; + } + /** + * repeated bytes groupIds = 2; + */ + public Builder clearGroupIds() { + groupIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.Blocked) + } + + static { + defaultInstance = new Blocked(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.Blocked) + } + + public interface RequestOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional .signalservice.SyncMessage.Request.Type type = 1; + /** + * optional .signalservice.SyncMessage.Request.Type type = 1; + */ + boolean hasType(); + /** + * optional .signalservice.SyncMessage.Request.Type type = 1; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type getType(); + } + /** + * Protobuf type {@code signalservice.SyncMessage.Request} + */ + public static final class Request extends + com.google.protobuf.GeneratedMessage + implements RequestOrBuilder { + // Use Request.newBuilder() to construct. + private Request(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Request(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Request defaultInstance; + public static Request getDefaultInstance() { + return defaultInstance; + } + + public Request getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Request( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(1, rawValue); + } else { + bitField0_ |= 0x00000001; + type_ = value; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Request_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Request_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Request parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Request(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + /** + * Protobuf enum {@code signalservice.SyncMessage.Request.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0, 0), + /** + * CONTACTS = 1; + */ + CONTACTS(1, 1), + /** + * GROUPS = 2; + */ + GROUPS(2, 2), + /** + * BLOCKED = 3; + */ + BLOCKED(3, 3), + /** + * CONFIGURATION = 4; + */ + CONFIGURATION(4, 4), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * CONTACTS = 1; + */ + public static final int CONTACTS_VALUE = 1; + /** + * GROUPS = 2; + */ + public static final int GROUPS_VALUE = 2; + /** + * BLOCKED = 3; + */ + public static final int BLOCKED_VALUE = 3; + /** + * CONFIGURATION = 4; + */ + public static final int CONFIGURATION_VALUE = 4; + + + public final int getNumber() { return value; } + + public static Type valueOf(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return CONTACTS; + case 2: return GROUPS; + case 3: return BLOCKED; + case 4: return CONFIGURATION; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.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 index; + private final int value; + + private Type(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:signalservice.SyncMessage.Request.Type) + } + + private int bitField0_; + // optional .signalservice.SyncMessage.Request.Type type = 1; + public static final int TYPE_FIELD_NUMBER = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type type_; + /** + * optional .signalservice.SyncMessage.Request.Type type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.SyncMessage.Request.Type type = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type getType() { + return type_; + } + + private void initFields() { + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type.UNKNOWN; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeEnum(1, type_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request 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.service.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.SyncMessage.Request} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.RequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Request_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Request_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type.UNKNOWN; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Request_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.type_ = type_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance()) return this; + if (other.hasType()) { + setType(other.getType()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional .signalservice.SyncMessage.Request.Type type = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type.UNKNOWN; + /** + * optional .signalservice.SyncMessage.Request.Type type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.SyncMessage.Request.Type type = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type getType() { + return type_; + } + /** + * optional .signalservice.SyncMessage.Request.Type type = 1; + */ + public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + /** + * optional .signalservice.SyncMessage.Request.Type type = 1; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type.UNKNOWN; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.Request) + } + + static { + defaultInstance = new Request(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.Request) + } + + public interface ReadOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string sender = 1; + /** + * optional string sender = 1; + */ + boolean hasSender(); + /** + * optional string sender = 1; + */ + java.lang.String getSender(); + /** + * optional string sender = 1; + */ + com.google.protobuf.ByteString + getSenderBytes(); + + // optional uint64 timestamp = 2; + /** + * optional uint64 timestamp = 2; + */ + boolean hasTimestamp(); + /** + * optional uint64 timestamp = 2; + */ + long getTimestamp(); + } + /** + * Protobuf type {@code signalservice.SyncMessage.Read} + */ + public static final class Read extends + com.google.protobuf.GeneratedMessage + implements ReadOrBuilder { + // Use Read.newBuilder() to construct. + private Read(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Read(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Read defaultInstance; + public static Read getDefaultInstance() { + return defaultInstance; + } + + public Read getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Read( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + sender_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + timestamp_ = input.readUInt64(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Read_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Read_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Read parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Read(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string sender = 1; + public static final int SENDER_FIELD_NUMBER = 1; + private java.lang.Object sender_; + /** + * optional string sender = 1; + */ + public boolean hasSender() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string sender = 1; + */ + public java.lang.String getSender() { + java.lang.Object ref = sender_; + 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()) { + sender_ = s; + } + return s; + } + } + /** + * optional string sender = 1; + */ + public com.google.protobuf.ByteString + getSenderBytes() { + java.lang.Object ref = sender_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sender_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional uint64 timestamp = 2; + public static final int TIMESTAMP_FIELD_NUMBER = 2; + private long timestamp_; + /** + * optional uint64 timestamp = 2; + */ + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional uint64 timestamp = 2; + */ + public long getTimestamp() { + return timestamp_; + } + + private void initFields() { + sender_ = ""; + timestamp_ = 0L; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getSenderBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt64(2, timestamp_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getSenderBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(2, timestamp_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read 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.service.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.SyncMessage.Read} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Read_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Read_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + sender_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + timestamp_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Read_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.sender_ = sender_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.timestamp_ = timestamp_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.getDefaultInstance()) return this; + if (other.hasSender()) { + bitField0_ |= 0x00000001; + sender_ = other.sender_; + onChanged(); + } + if (other.hasTimestamp()) { + setTimestamp(other.getTimestamp()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string sender = 1; + private java.lang.Object sender_ = ""; + /** + * optional string sender = 1; + */ + public boolean hasSender() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string sender = 1; + */ + public java.lang.String getSender() { + java.lang.Object ref = sender_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + sender_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string sender = 1; + */ + public com.google.protobuf.ByteString + getSenderBytes() { + java.lang.Object ref = sender_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sender_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string sender = 1; + */ + public Builder setSender( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + sender_ = value; + onChanged(); + return this; + } + /** + * optional string sender = 1; + */ + public Builder clearSender() { + bitField0_ = (bitField0_ & ~0x00000001); + sender_ = getDefaultInstance().getSender(); + onChanged(); + return this; + } + /** + * optional string sender = 1; + */ + public Builder setSenderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + sender_ = value; + onChanged(); + return this; + } + + // optional uint64 timestamp = 2; + private long timestamp_ ; + /** + * optional uint64 timestamp = 2; + */ + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional uint64 timestamp = 2; + */ + public long getTimestamp() { + return timestamp_; + } + /** + * optional uint64 timestamp = 2; + */ + public Builder setTimestamp(long value) { + bitField0_ |= 0x00000002; + timestamp_ = value; + onChanged(); + return this; + } + /** + * optional uint64 timestamp = 2; + */ + public Builder clearTimestamp() { + bitField0_ = (bitField0_ & ~0x00000002); + timestamp_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.Read) + } + + static { + defaultInstance = new Read(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.Read) + } + + public interface ConfigurationOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional bool readReceipts = 1; + /** + * optional bool readReceipts = 1; + */ + boolean hasReadReceipts(); + /** + * optional bool readReceipts = 1; + */ + boolean getReadReceipts(); + + // optional bool unidentifiedDeliveryIndicators = 2; + /** + * optional bool unidentifiedDeliveryIndicators = 2; + */ + boolean hasUnidentifiedDeliveryIndicators(); + /** + * optional bool unidentifiedDeliveryIndicators = 2; + */ + boolean getUnidentifiedDeliveryIndicators(); + + // optional bool typingIndicators = 3; + /** + * optional bool typingIndicators = 3; + */ + boolean hasTypingIndicators(); + /** + * optional bool typingIndicators = 3; + */ + boolean getTypingIndicators(); + + // optional bool linkPreviews = 4; + /** + * optional bool linkPreviews = 4; + */ + boolean hasLinkPreviews(); + /** + * optional bool linkPreviews = 4; + */ + boolean getLinkPreviews(); + } + /** + * Protobuf type {@code signalservice.SyncMessage.Configuration} + */ + public static final class Configuration extends + com.google.protobuf.GeneratedMessage + implements ConfigurationOrBuilder { + // Use Configuration.newBuilder() to construct. + private Configuration(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Configuration(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Configuration defaultInstance; + public static Configuration getDefaultInstance() { + return defaultInstance; + } + + public Configuration getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Configuration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + readReceipts_ = input.readBool(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + unidentifiedDeliveryIndicators_ = input.readBool(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + typingIndicators_ = input.readBool(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + linkPreviews_ = input.readBool(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Configuration_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Configuration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Configuration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Configuration(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional bool readReceipts = 1; + public static final int READRECEIPTS_FIELD_NUMBER = 1; + private boolean readReceipts_; + /** + * optional bool readReceipts = 1; + */ + public boolean hasReadReceipts() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional bool readReceipts = 1; + */ + public boolean getReadReceipts() { + return readReceipts_; + } + + // optional bool unidentifiedDeliveryIndicators = 2; + public static final int UNIDENTIFIEDDELIVERYINDICATORS_FIELD_NUMBER = 2; + private boolean unidentifiedDeliveryIndicators_; + /** + * optional bool unidentifiedDeliveryIndicators = 2; + */ + public boolean hasUnidentifiedDeliveryIndicators() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bool unidentifiedDeliveryIndicators = 2; + */ + public boolean getUnidentifiedDeliveryIndicators() { + return unidentifiedDeliveryIndicators_; + } + + // optional bool typingIndicators = 3; + public static final int TYPINGINDICATORS_FIELD_NUMBER = 3; + private boolean typingIndicators_; + /** + * optional bool typingIndicators = 3; + */ + public boolean hasTypingIndicators() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bool typingIndicators = 3; + */ + public boolean getTypingIndicators() { + return typingIndicators_; + } + + // optional bool linkPreviews = 4; + public static final int LINKPREVIEWS_FIELD_NUMBER = 4; + private boolean linkPreviews_; + /** + * optional bool linkPreviews = 4; + */ + public boolean hasLinkPreviews() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional bool linkPreviews = 4; + */ + public boolean getLinkPreviews() { + return linkPreviews_; + } + + private void initFields() { + readReceipts_ = false; + unidentifiedDeliveryIndicators_ = false; + typingIndicators_ = false; + linkPreviews_ = false; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBool(1, readReceipts_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBool(2, unidentifiedDeliveryIndicators_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBool(3, typingIndicators_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBool(4, linkPreviews_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, readReceipts_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, unidentifiedDeliveryIndicators_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, typingIndicators_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, linkPreviews_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration 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.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.SyncMessage.Configuration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Configuration_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Configuration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + readReceipts_ = false; + bitField0_ = (bitField0_ & ~0x00000001); + unidentifiedDeliveryIndicators_ = false; + bitField0_ = (bitField0_ & ~0x00000002); + typingIndicators_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + linkPreviews_ = false; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Configuration_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.readReceipts_ = readReceipts_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.unidentifiedDeliveryIndicators_ = unidentifiedDeliveryIndicators_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.typingIndicators_ = typingIndicators_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.linkPreviews_ = linkPreviews_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance()) return this; + if (other.hasReadReceipts()) { + setReadReceipts(other.getReadReceipts()); + } + if (other.hasUnidentifiedDeliveryIndicators()) { + setUnidentifiedDeliveryIndicators(other.getUnidentifiedDeliveryIndicators()); + } + if (other.hasTypingIndicators()) { + setTypingIndicators(other.getTypingIndicators()); + } + if (other.hasLinkPreviews()) { + setLinkPreviews(other.getLinkPreviews()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional bool readReceipts = 1; + private boolean readReceipts_ ; + /** + * optional bool readReceipts = 1; + */ + public boolean hasReadReceipts() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional bool readReceipts = 1; + */ + public boolean getReadReceipts() { + return readReceipts_; + } + /** + * optional bool readReceipts = 1; + */ + public Builder setReadReceipts(boolean value) { + bitField0_ |= 0x00000001; + readReceipts_ = value; + onChanged(); + return this; + } + /** + * optional bool readReceipts = 1; + */ + public Builder clearReadReceipts() { + bitField0_ = (bitField0_ & ~0x00000001); + readReceipts_ = false; + onChanged(); + return this; + } + + // optional bool unidentifiedDeliveryIndicators = 2; + private boolean unidentifiedDeliveryIndicators_ ; + /** + * optional bool unidentifiedDeliveryIndicators = 2; + */ + public boolean hasUnidentifiedDeliveryIndicators() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bool unidentifiedDeliveryIndicators = 2; + */ + public boolean getUnidentifiedDeliveryIndicators() { + return unidentifiedDeliveryIndicators_; + } + /** + * optional bool unidentifiedDeliveryIndicators = 2; + */ + public Builder setUnidentifiedDeliveryIndicators(boolean value) { + bitField0_ |= 0x00000002; + unidentifiedDeliveryIndicators_ = value; + onChanged(); + return this; + } + /** + * optional bool unidentifiedDeliveryIndicators = 2; + */ + public Builder clearUnidentifiedDeliveryIndicators() { + bitField0_ = (bitField0_ & ~0x00000002); + unidentifiedDeliveryIndicators_ = false; + onChanged(); + return this; + } + + // optional bool typingIndicators = 3; + private boolean typingIndicators_ ; + /** + * optional bool typingIndicators = 3; + */ + public boolean hasTypingIndicators() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bool typingIndicators = 3; + */ + public boolean getTypingIndicators() { + return typingIndicators_; + } + /** + * optional bool typingIndicators = 3; + */ + public Builder setTypingIndicators(boolean value) { + bitField0_ |= 0x00000004; + typingIndicators_ = value; + onChanged(); + return this; + } + /** + * optional bool typingIndicators = 3; + */ + public Builder clearTypingIndicators() { + bitField0_ = (bitField0_ & ~0x00000004); + typingIndicators_ = false; + onChanged(); + return this; + } + + // optional bool linkPreviews = 4; + private boolean linkPreviews_ ; + /** + * optional bool linkPreviews = 4; + */ + public boolean hasLinkPreviews() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional bool linkPreviews = 4; + */ + public boolean getLinkPreviews() { + return linkPreviews_; + } + /** + * optional bool linkPreviews = 4; + */ + public Builder setLinkPreviews(boolean value) { + bitField0_ |= 0x00000008; + linkPreviews_ = value; + onChanged(); + return this; + } + /** + * optional bool linkPreviews = 4; + */ + public Builder clearLinkPreviews() { + bitField0_ = (bitField0_ & ~0x00000008); + linkPreviews_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.Configuration) + } + + static { + defaultInstance = new Configuration(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.Configuration) + } + + public interface StickerPackOperationOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional bytes packId = 1; + /** + * optional bytes packId = 1; + */ + boolean hasPackId(); + /** + * optional bytes packId = 1; + */ + com.google.protobuf.ByteString getPackId(); + + // optional bytes packKey = 2; + /** + * optional bytes packKey = 2; + */ + boolean hasPackKey(); + /** + * optional bytes packKey = 2; + */ + com.google.protobuf.ByteString getPackKey(); + + // optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; + /** + * optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; + */ + boolean hasType(); + /** + * optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type getType(); + } + /** + * Protobuf type {@code signalservice.SyncMessage.StickerPackOperation} + */ + public static final class StickerPackOperation extends + com.google.protobuf.GeneratedMessage + implements StickerPackOperationOrBuilder { + // Use StickerPackOperation.newBuilder() to construct. + private StickerPackOperation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private StickerPackOperation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final StickerPackOperation defaultInstance; + public static StickerPackOperation getDefaultInstance() { + return defaultInstance; + } + + public StickerPackOperation getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StickerPackOperation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + packId_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + packKey_ = input.readBytes(); + break; + } + case 24: { + int rawValue = input.readEnum(); + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(3, rawValue); + } else { + bitField0_ |= 0x00000004; + type_ = value; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_StickerPackOperation_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_StickerPackOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public StickerPackOperation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StickerPackOperation(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + /** + * Protobuf enum {@code signalservice.SyncMessage.StickerPackOperation.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * INSTALL = 0; + */ + INSTALL(0, 0), + /** + * REMOVE = 1; + */ + REMOVE(1, 1), + ; + + /** + * INSTALL = 0; + */ + public static final int INSTALL_VALUE = 0; + /** + * REMOVE = 1; + */ + public static final int REMOVE_VALUE = 1; + + + public final int getNumber() { return value; } + + public static Type valueOf(int value) { + switch (value) { + case 0: return INSTALL; + case 1: return REMOVE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.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 index; + private final int value; + + private Type(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:signalservice.SyncMessage.StickerPackOperation.Type) + } + + private int bitField0_; + // optional bytes packId = 1; + public static final int PACKID_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString packId_; + /** + * optional bytes packId = 1; + */ + public boolean hasPackId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional bytes packId = 1; + */ + public com.google.protobuf.ByteString getPackId() { + return packId_; + } + + // optional bytes packKey = 2; + public static final int PACKKEY_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString packKey_; + /** + * optional bytes packKey = 2; + */ + public boolean hasPackKey() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bytes packKey = 2; + */ + public com.google.protobuf.ByteString getPackKey() { + return packKey_; + } + + // optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; + public static final int TYPE_FIELD_NUMBER = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type type_; + /** + * optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type getType() { + return type_; + } + + private void initFields() { + packId_ = com.google.protobuf.ByteString.EMPTY; + packKey_ = com.google.protobuf.ByteString.EMPTY; + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type.INSTALL; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, packId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, packKey_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeEnum(3, type_.getNumber()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, packId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, packKey_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_.getNumber()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation 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.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.SyncMessage.StickerPackOperation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_StickerPackOperation_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_StickerPackOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + packId_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + packKey_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type.INSTALL; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_StickerPackOperation_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.packId_ = packId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.packKey_ = packKey_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.type_ = type_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.getDefaultInstance()) return this; + if (other.hasPackId()) { + setPackId(other.getPackId()); + } + if (other.hasPackKey()) { + setPackKey(other.getPackKey()); + } + if (other.hasType()) { + setType(other.getType()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional bytes packId = 1; + private com.google.protobuf.ByteString packId_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes packId = 1; + */ + public boolean hasPackId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional bytes packId = 1; + */ + public com.google.protobuf.ByteString getPackId() { + return packId_; + } + /** + * optional bytes packId = 1; + */ + public Builder setPackId(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + packId_ = value; + onChanged(); + return this; + } + /** + * optional bytes packId = 1; + */ + public Builder clearPackId() { + bitField0_ = (bitField0_ & ~0x00000001); + packId_ = getDefaultInstance().getPackId(); + onChanged(); + return this; + } + + // optional bytes packKey = 2; + private com.google.protobuf.ByteString packKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes packKey = 2; + */ + public boolean hasPackKey() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bytes packKey = 2; + */ + public com.google.protobuf.ByteString getPackKey() { + return packKey_; + } + /** + * optional bytes packKey = 2; + */ + public Builder setPackKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + packKey_ = value; + onChanged(); + return this; + } + /** + * optional bytes packKey = 2; + */ + public Builder clearPackKey() { + bitField0_ = (bitField0_ & ~0x00000002); + packKey_ = getDefaultInstance().getPackKey(); + onChanged(); + return this; + } + + // optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type.INSTALL; + /** + * optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type getType() { + return type_; + } + /** + * optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; + */ + public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + type_ = value; + onChanged(); + return this; + } + /** + * optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000004); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type.INSTALL; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.StickerPackOperation) + } + + static { + defaultInstance = new StickerPackOperation(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.StickerPackOperation) + } + + public interface OpenGroupDetailsOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string url = 1; + /** + * optional string url = 1; + */ + boolean hasUrl(); + /** + * optional string url = 1; + */ + java.lang.String getUrl(); + /** + * optional string url = 1; + */ + com.google.protobuf.ByteString + getUrlBytes(); + + // optional uint32 channelID = 2; + /** + * optional uint32 channelID = 2; + */ + boolean hasChannelID(); + /** + * optional uint32 channelID = 2; + */ + int getChannelID(); + } + /** + * Protobuf type {@code signalservice.SyncMessage.OpenGroupDetails} + */ + public static final class OpenGroupDetails extends + com.google.protobuf.GeneratedMessage + implements OpenGroupDetailsOrBuilder { + // Use OpenGroupDetails.newBuilder() to construct. + private OpenGroupDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private OpenGroupDetails(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final OpenGroupDetails defaultInstance; + public static OpenGroupDetails getDefaultInstance() { + return defaultInstance; + } + + public OpenGroupDetails getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OpenGroupDetails( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + url_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + channelID_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_OpenGroupDetails_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_OpenGroupDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public OpenGroupDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OpenGroupDetails(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string url = 1; + public static final int URL_FIELD_NUMBER = 1; + private java.lang.Object url_; + /** + * optional string url = 1; + */ + public boolean hasUrl() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string url = 1; + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + 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()) { + url_ = s; + } + return s; + } + } + /** + * optional string url = 1; + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional uint32 channelID = 2; + public static final int CHANNELID_FIELD_NUMBER = 2; + private int channelID_; + /** + * optional uint32 channelID = 2; + */ + public boolean hasChannelID() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional uint32 channelID = 2; + */ + public int getChannelID() { + return channelID_; + } + + private void initFields() { + url_ = ""; + channelID_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getUrlBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, channelID_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getUrlBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, channelID_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails 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.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.SyncMessage.OpenGroupDetails} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_OpenGroupDetails_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_OpenGroupDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + url_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + channelID_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_OpenGroupDetails_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.url_ = url_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.channelID_ = channelID_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.getDefaultInstance()) return this; + if (other.hasUrl()) { + bitField0_ |= 0x00000001; + url_ = other.url_; + onChanged(); + } + if (other.hasChannelID()) { + setChannelID(other.getChannelID()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string url = 1; + private java.lang.Object url_ = ""; + /** + * optional string url = 1; + */ + public boolean hasUrl() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string url = 1; + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string url = 1; + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string url = 1; + */ + public Builder setUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + url_ = value; + onChanged(); + return this; + } + /** + * optional string url = 1; + */ + public Builder clearUrl() { + bitField0_ = (bitField0_ & ~0x00000001); + url_ = getDefaultInstance().getUrl(); + onChanged(); + return this; + } + /** + * optional string url = 1; + */ + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + url_ = value; + onChanged(); + return this; + } + + // optional uint32 channelID = 2; + private int channelID_ ; + /** + * optional uint32 channelID = 2; + */ + public boolean hasChannelID() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional uint32 channelID = 2; + */ + public int getChannelID() { + return channelID_; + } + /** + * optional uint32 channelID = 2; + */ + public Builder setChannelID(int value) { + bitField0_ |= 0x00000002; + channelID_ = value; + onChanged(); + return this; + } + /** + * optional uint32 channelID = 2; + */ + public Builder clearChannelID() { + bitField0_ = (bitField0_ & ~0x00000002); + channelID_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.OpenGroupDetails) + } + + static { + defaultInstance = new OpenGroupDetails(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.OpenGroupDetails) + } + + private int bitField0_; + // optional .signalservice.SyncMessage.Sent sent = 1; + public static final int SENT_FIELD_NUMBER = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent sent_; + /** + * optional .signalservice.SyncMessage.Sent sent = 1; + */ + public boolean hasSent() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.SyncMessage.Sent sent = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent getSent() { + return sent_; + } + /** + * optional .signalservice.SyncMessage.Sent sent = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder getSentOrBuilder() { + return sent_; + } + + // optional .signalservice.SyncMessage.Contacts contacts = 2; + public static final int CONTACTS_FIELD_NUMBER = 2; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts contacts_; + /** + * optional .signalservice.SyncMessage.Contacts contacts = 2; + */ + public boolean hasContacts() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .signalservice.SyncMessage.Contacts contacts = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts getContacts() { + return contacts_; + } + /** + * optional .signalservice.SyncMessage.Contacts contacts = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder getContactsOrBuilder() { + return contacts_; + } + + // optional .signalservice.SyncMessage.Groups groups = 3; + public static final int GROUPS_FIELD_NUMBER = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups groups_; + /** + * optional .signalservice.SyncMessage.Groups groups = 3; + */ + public boolean hasGroups() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.SyncMessage.Groups groups = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups getGroups() { + return groups_; + } + /** + * optional .signalservice.SyncMessage.Groups groups = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder getGroupsOrBuilder() { + return groups_; + } + + // optional .signalservice.SyncMessage.Request request = 4; + public static final int REQUEST_FIELD_NUMBER = 4; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request request_; + /** + * optional .signalservice.SyncMessage.Request request = 4; + */ + public boolean hasRequest() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .signalservice.SyncMessage.Request request = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request getRequest() { + return request_; + } + /** + * optional .signalservice.SyncMessage.Request request = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.RequestOrBuilder getRequestOrBuilder() { + return request_; + } + + // repeated .signalservice.SyncMessage.Read read = 5; + public static final int READ_FIELD_NUMBER = 5; + private java.util.List read_; + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public java.util.List getReadList() { + return read_; + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public java.util.List + getReadOrBuilderList() { + return read_; + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public int getReadCount() { + return read_.size(); + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read getRead(int index) { + return read_.get(index); + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder getReadOrBuilder( + int index) { + return read_.get(index); + } + + // optional .signalservice.SyncMessage.Blocked blocked = 6; + public static final int BLOCKED_FIELD_NUMBER = 6; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked blocked_; + /** + * optional .signalservice.SyncMessage.Blocked blocked = 6; + */ + public boolean hasBlocked() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .signalservice.SyncMessage.Blocked blocked = 6; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked getBlocked() { + return blocked_; + } + /** + * optional .signalservice.SyncMessage.Blocked blocked = 6; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder getBlockedOrBuilder() { + return blocked_; + } + + // optional .signalservice.Verified verified = 7; + public static final int VERIFIED_FIELD_NUMBER = 7; + private org.session.libsignal.service.internal.push.SignalServiceProtos.Verified verified_; + /** + * optional .signalservice.Verified verified = 7; + */ + public boolean hasVerified() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional .signalservice.Verified verified = 7; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified getVerified() { + return verified_; + } + /** + * optional .signalservice.Verified verified = 7; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder getVerifiedOrBuilder() { + return verified_; + } + + // optional .signalservice.SyncMessage.Configuration configuration = 9; + public static final int CONFIGURATION_FIELD_NUMBER = 9; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration configuration_; + /** + * optional .signalservice.SyncMessage.Configuration configuration = 9; + */ + public boolean hasConfiguration() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional .signalservice.SyncMessage.Configuration configuration = 9; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration getConfiguration() { + return configuration_; + } + /** + * optional .signalservice.SyncMessage.Configuration configuration = 9; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ConfigurationOrBuilder getConfigurationOrBuilder() { + return configuration_; + } + + // optional bytes padding = 8; + public static final int PADDING_FIELD_NUMBER = 8; + private com.google.protobuf.ByteString padding_; + /** + * optional bytes padding = 8; + */ + public boolean hasPadding() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional bytes padding = 8; + */ + public com.google.protobuf.ByteString getPadding() { + return padding_; + } + + // repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + public static final int STICKERPACKOPERATION_FIELD_NUMBER = 10; + private java.util.List stickerPackOperation_; + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public java.util.List getStickerPackOperationList() { + return stickerPackOperation_; + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public java.util.List + getStickerPackOperationOrBuilderList() { + return stickerPackOperation_; + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public int getStickerPackOperationCount() { + return stickerPackOperation_.size(); + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation getStickerPackOperation(int index) { + return stickerPackOperation_.get(index); + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperationOrBuilder getStickerPackOperationOrBuilder( + int index) { + return stickerPackOperation_.get(index); + } + + // repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + public static final int OPENGROUPS_FIELD_NUMBER = 100; + private java.util.List openGroups_; + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public java.util.List getOpenGroupsList() { + return openGroups_; + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public java.util.List + getOpenGroupsOrBuilderList() { + return openGroups_; + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public int getOpenGroupsCount() { + return openGroups_.size(); + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails getOpenGroups(int index) { + return openGroups_.get(index); + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetailsOrBuilder getOpenGroupsOrBuilder( + int index) { + return openGroups_.get(index); + } + + private void initFields() { + sent_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance(); + contacts_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance(); + groups_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance(); + request_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance(); + read_ = java.util.Collections.emptyList(); + blocked_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance(); + verified_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); + configuration_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance(); + padding_ = com.google.protobuf.ByteString.EMPTY; + stickerPackOperation_ = java.util.Collections.emptyList(); + openGroups_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + if (hasSent()) { + if (!getSent().isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, sent_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, contacts_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, groups_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(4, request_); + } + for (int i = 0; i < read_.size(); i++) { + output.writeMessage(5, read_.get(i)); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(6, blocked_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeMessage(7, verified_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeBytes(8, padding_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeMessage(9, configuration_); + } + for (int i = 0; i < stickerPackOperation_.size(); i++) { + output.writeMessage(10, stickerPackOperation_.get(i)); + } + for (int i = 0; i < openGroups_.size(); i++) { + output.writeMessage(100, openGroups_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, sent_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, contacts_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, groups_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, request_); + } + for (int i = 0; i < read_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, read_.get(i)); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, blocked_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, verified_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(8, padding_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, configuration_); + } + for (int i = 0; i < stickerPackOperation_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, stickerPackOperation_.get(i)); + } + for (int i = 0; i < openGroups_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, openGroups_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage 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.service.internal.push.SignalServiceProtos.SyncMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.SyncMessage} */ - public static final class SyncMessage extends - com.google.protobuf.GeneratedMessage - implements SyncMessageOrBuilder { - // Use SyncMessage.newBuilder() to construct. - private SyncMessage(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private SyncMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final SyncMessage defaultInstance; - public static SyncMessage getDefaultInstance() { - return defaultInstance; - } - - public SyncMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SyncMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = sent_.toBuilder(); - } - sent_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sent_); - sent_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = contacts_.toBuilder(); - } - contacts_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(contacts_); - contacts_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = groups_.toBuilder(); - } - groups_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(groups_); - groups_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = request_.toBuilder(); - } - request_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - read_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - read_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.PARSER, extensionRegistry)); - break; - } - case 50: { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = blocked_.toBuilder(); - } - blocked_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(blocked_); - blocked_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 58: { - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder subBuilder = null; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - subBuilder = verified_.toBuilder(); - } - verified_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(verified_); - verified_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000020; - break; - } - case 66: { - bitField0_ |= 0x00000080; - padding_ = input.readBytes(); - break; - } - case 74: { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - subBuilder = configuration_.toBuilder(); - } - configuration_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(configuration_); - configuration_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - break; - } - case 82: { - if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { - stickerPackOperation_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000200; - } - stickerPackOperation_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.PARSER, extensionRegistry)); - break; - } - case 802: { - if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { - openGroups_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000400; - } - openGroups_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - read_ = java.util.Collections.unmodifiableList(read_); - } - if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { - stickerPackOperation_ = java.util.Collections.unmodifiableList(stickerPackOperation_); - } - if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { - openGroups_ = java.util.Collections.unmodifiableList(openGroups_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SyncMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SyncMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public interface SentOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string destination = 1; - /** - * optional string destination = 1; - */ - boolean hasDestination(); - /** - * optional string destination = 1; - */ - java.lang.String getDestination(); - /** - * optional string destination = 1; - */ - com.google.protobuf.ByteString - getDestinationBytes(); - - // optional uint64 timestamp = 2; - /** - * optional uint64 timestamp = 2; - */ - boolean hasTimestamp(); - /** - * optional uint64 timestamp = 2; - */ - long getTimestamp(); - - // optional .signalservice.DataMessage message = 3; - /** - * optional .signalservice.DataMessage message = 3; - */ - boolean hasMessage(); - /** - * optional .signalservice.DataMessage message = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage getMessage(); - /** - * optional .signalservice.DataMessage message = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder getMessageOrBuilder(); - - // optional uint64 expirationStartTimestamp = 4; - /** - * optional uint64 expirationStartTimestamp = 4; - */ - boolean hasExpirationStartTimestamp(); - /** - * optional uint64 expirationStartTimestamp = 4; - */ - long getExpirationStartTimestamp(); - - // repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - java.util.List - getUnidentifiedStatusList(); - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus getUnidentifiedStatus(int index); - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - int getUnidentifiedStatusCount(); - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - java.util.List - getUnidentifiedStatusOrBuilderList(); - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder getUnidentifiedStatusOrBuilder( - int index); - } - /** - * Protobuf type {@code signalservice.SyncMessage.Sent} - */ - public static final class Sent extends - com.google.protobuf.GeneratedMessage - implements SentOrBuilder { - // Use Sent.newBuilder() to construct. - private Sent(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Sent(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Sent defaultInstance; - public static Sent getDefaultInstance() { - return defaultInstance; - } - - public Sent getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Sent( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - destination_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - timestamp_ = input.readUInt64(); - break; - } - case 26: { - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = message_.toBuilder(); - } - message_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(message_); - message_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 32: { - bitField0_ |= 0x00000008; - expirationStartTimestamp_ = input.readUInt64(); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - unidentifiedStatus_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - unidentifiedStatus_.add(input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - unidentifiedStatus_ = java.util.Collections.unmodifiableList(unidentifiedStatus_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Sent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Sent(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public interface UnidentifiedDeliveryStatusOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string destination = 1; - /** - * optional string destination = 1; - */ - boolean hasDestination(); - /** - * optional string destination = 1; - */ - java.lang.String getDestination(); - /** - * optional string destination = 1; - */ - com.google.protobuf.ByteString - getDestinationBytes(); - - // optional bool unidentified = 2; - /** - * optional bool unidentified = 2; - */ - boolean hasUnidentified(); - /** - * optional bool unidentified = 2; - */ - boolean getUnidentified(); - } - /** - * Protobuf type {@code signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus} - */ - public static final class UnidentifiedDeliveryStatus extends - com.google.protobuf.GeneratedMessage - implements UnidentifiedDeliveryStatusOrBuilder { - // Use UnidentifiedDeliveryStatus.newBuilder() to construct. - private UnidentifiedDeliveryStatus(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private UnidentifiedDeliveryStatus(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final UnidentifiedDeliveryStatus defaultInstance; - public static UnidentifiedDeliveryStatus getDefaultInstance() { - return defaultInstance; - } - - public UnidentifiedDeliveryStatus getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnidentifiedDeliveryStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - destination_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - unidentified_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public UnidentifiedDeliveryStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnidentifiedDeliveryStatus(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string destination = 1; - public static final int DESTINATION_FIELD_NUMBER = 1; - private java.lang.Object destination_; - /** - * optional string destination = 1; - */ - public boolean hasDestination() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string destination = 1; - */ - public java.lang.String getDestination() { - java.lang.Object ref = destination_; - 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()) { - destination_ = s; - } - return s; - } - } - /** - * optional string destination = 1; - */ - public com.google.protobuf.ByteString - getDestinationBytes() { - java.lang.Object ref = destination_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destination_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional bool unidentified = 2; - public static final int UNIDENTIFIED_FIELD_NUMBER = 2; - private boolean unidentified_; - /** - * optional bool unidentified = 2; - */ - public boolean hasUnidentified() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bool unidentified = 2; - */ - public boolean getUnidentified() { - return unidentified_; - } - - private void initFields() { - destination_ = ""; - unidentified_ = false; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getDestinationBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBool(2, unidentified_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getDestinationBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, unidentified_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus 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.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - destination_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - unidentified_ = false; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.destination_ = destination_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.unidentified_ = unidentified_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.getDefaultInstance()) return this; - if (other.hasDestination()) { - bitField0_ |= 0x00000001; - destination_ = other.destination_; - onChanged(); - } - if (other.hasUnidentified()) { - setUnidentified(other.getUnidentified()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string destination = 1; - private java.lang.Object destination_ = ""; - /** - * optional string destination = 1; - */ - public boolean hasDestination() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string destination = 1; - */ - public java.lang.String getDestination() { - java.lang.Object ref = destination_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - destination_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string destination = 1; - */ - public com.google.protobuf.ByteString - getDestinationBytes() { - java.lang.Object ref = destination_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destination_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string destination = 1; - */ - public Builder setDestination( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - destination_ = value; - onChanged(); - return this; - } - /** - * optional string destination = 1; - */ - public Builder clearDestination() { - bitField0_ = (bitField0_ & ~0x00000001); - destination_ = getDefaultInstance().getDestination(); - onChanged(); - return this; - } - /** - * optional string destination = 1; - */ - public Builder setDestinationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - destination_ = value; - onChanged(); - return this; - } - - // optional bool unidentified = 2; - private boolean unidentified_ ; - /** - * optional bool unidentified = 2; - */ - public boolean hasUnidentified() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bool unidentified = 2; - */ - public boolean getUnidentified() { - return unidentified_; - } - /** - * optional bool unidentified = 2; - */ - public Builder setUnidentified(boolean value) { - bitField0_ |= 0x00000002; - unidentified_ = value; - onChanged(); - return this; - } - /** - * optional bool unidentified = 2; - */ - public Builder clearUnidentified() { - bitField0_ = (bitField0_ & ~0x00000002); - unidentified_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus) - } - - static { - defaultInstance = new UnidentifiedDeliveryStatus(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus) - } - - private int bitField0_; - // optional string destination = 1; - public static final int DESTINATION_FIELD_NUMBER = 1; - private java.lang.Object destination_; - /** - * optional string destination = 1; - */ - public boolean hasDestination() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string destination = 1; - */ - public java.lang.String getDestination() { - java.lang.Object ref = destination_; - 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()) { - destination_ = s; - } - return s; - } - } - /** - * optional string destination = 1; - */ - public com.google.protobuf.ByteString - getDestinationBytes() { - java.lang.Object ref = destination_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destination_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional uint64 timestamp = 2; - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private long timestamp_; - /** - * optional uint64 timestamp = 2; - */ - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } - - // optional .signalservice.DataMessage message = 3; - public static final int MESSAGE_FIELD_NUMBER = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage message_; - /** - * optional .signalservice.DataMessage message = 3; - */ - public boolean hasMessage() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .signalservice.DataMessage message = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage getMessage() { - return message_; - } - /** - * optional .signalservice.DataMessage message = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder getMessageOrBuilder() { - return message_; - } - - // optional uint64 expirationStartTimestamp = 4; - public static final int EXPIRATIONSTARTTIMESTAMP_FIELD_NUMBER = 4; - private long expirationStartTimestamp_; - /** - * optional uint64 expirationStartTimestamp = 4; - */ - public boolean hasExpirationStartTimestamp() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional uint64 expirationStartTimestamp = 4; - */ - public long getExpirationStartTimestamp() { - return expirationStartTimestamp_; - } - - // repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - public static final int UNIDENTIFIEDSTATUS_FIELD_NUMBER = 5; - private java.util.List unidentifiedStatus_; - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public java.util.List getUnidentifiedStatusList() { - return unidentifiedStatus_; - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public java.util.List - getUnidentifiedStatusOrBuilderList() { - return unidentifiedStatus_; - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public int getUnidentifiedStatusCount() { - return unidentifiedStatus_.size(); - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus getUnidentifiedStatus(int index) { - return unidentifiedStatus_.get(index); - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder getUnidentifiedStatusOrBuilder( - int index) { - return unidentifiedStatus_.get(index); - } - - private void initFields() { - destination_ = ""; - timestamp_ = 0L; - message_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); - expirationStartTimestamp_ = 0L; - unidentifiedStatus_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasMessage()) { - if (!getMessage().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getDestinationBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeUInt64(2, timestamp_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, message_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeUInt64(4, expirationStartTimestamp_); - } - for (int i = 0; i < unidentifiedStatus_.size(); i++) { - output.writeMessage(5, unidentifiedStatus_.get(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getDestinationBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, timestamp_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, message_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(4, expirationStartTimestamp_); - } - for (int i = 0; i < unidentifiedStatus_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, unidentifiedStatus_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent 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.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.SyncMessage.Sent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getMessageFieldBuilder(); - getUnidentifiedStatusFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - destination_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - timestamp_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); - if (messageBuilder_ == null) { - message_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); - } else { - messageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - expirationStartTimestamp_ = 0L; - bitField0_ = (bitField0_ & ~0x00000008); - if (unidentifiedStatusBuilder_ == null) { - unidentifiedStatus_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - unidentifiedStatusBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.destination_ = destination_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.timestamp_ = timestamp_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (messageBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = messageBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.expirationStartTimestamp_ = expirationStartTimestamp_; - if (unidentifiedStatusBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010)) { - unidentifiedStatus_ = java.util.Collections.unmodifiableList(unidentifiedStatus_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.unidentifiedStatus_ = unidentifiedStatus_; - } else { - result.unidentifiedStatus_ = unidentifiedStatusBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance()) return this; - if (other.hasDestination()) { - bitField0_ |= 0x00000001; - destination_ = other.destination_; - onChanged(); - } - if (other.hasTimestamp()) { - setTimestamp(other.getTimestamp()); - } - if (other.hasMessage()) { - mergeMessage(other.getMessage()); - } - if (other.hasExpirationStartTimestamp()) { - setExpirationStartTimestamp(other.getExpirationStartTimestamp()); - } - if (unidentifiedStatusBuilder_ == null) { - if (!other.unidentifiedStatus_.isEmpty()) { - if (unidentifiedStatus_.isEmpty()) { - unidentifiedStatus_ = other.unidentifiedStatus_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureUnidentifiedStatusIsMutable(); - unidentifiedStatus_.addAll(other.unidentifiedStatus_); - } - onChanged(); - } - } else { - if (!other.unidentifiedStatus_.isEmpty()) { - if (unidentifiedStatusBuilder_.isEmpty()) { - unidentifiedStatusBuilder_.dispose(); - unidentifiedStatusBuilder_ = null; - unidentifiedStatus_ = other.unidentifiedStatus_; - bitField0_ = (bitField0_ & ~0x00000010); - unidentifiedStatusBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getUnidentifiedStatusFieldBuilder() : null; - } else { - unidentifiedStatusBuilder_.addAllMessages(other.unidentifiedStatus_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasMessage()) { - if (!getMessage().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string destination = 1; - private java.lang.Object destination_ = ""; - /** - * optional string destination = 1; - */ - public boolean hasDestination() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string destination = 1; - */ - public java.lang.String getDestination() { - java.lang.Object ref = destination_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - destination_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string destination = 1; - */ - public com.google.protobuf.ByteString - getDestinationBytes() { - java.lang.Object ref = destination_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destination_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string destination = 1; - */ - public Builder setDestination( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - destination_ = value; - onChanged(); - return this; - } - /** - * optional string destination = 1; - */ - public Builder clearDestination() { - bitField0_ = (bitField0_ & ~0x00000001); - destination_ = getDefaultInstance().getDestination(); - onChanged(); - return this; - } - /** - * optional string destination = 1; - */ - public Builder setDestinationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - destination_ = value; - onChanged(); - return this; - } - - // optional uint64 timestamp = 2; - private long timestamp_ ; - /** - * optional uint64 timestamp = 2; - */ - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } - /** - * optional uint64 timestamp = 2; - */ - public Builder setTimestamp(long value) { - bitField0_ |= 0x00000002; - timestamp_ = value; - onChanged(); - return this; - } - /** - * optional uint64 timestamp = 2; - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000002); - timestamp_ = 0L; - onChanged(); - return this; - } - - // optional .signalservice.DataMessage message = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage message_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder> messageBuilder_; - /** - * optional .signalservice.DataMessage message = 3; - */ - public boolean hasMessage() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .signalservice.DataMessage message = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage getMessage() { - if (messageBuilder_ == null) { - return message_; - } else { - return messageBuilder_.getMessage(); - } - } - /** - * optional .signalservice.DataMessage message = 3; - */ - public Builder setMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage value) { - if (messageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - message_ = value; - onChanged(); - } else { - messageBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.DataMessage message = 3; - */ - public Builder setMessage( - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder builderForValue) { - if (messageBuilder_ == null) { - message_ = builderForValue.build(); - onChanged(); - } else { - messageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.DataMessage message = 3; - */ - public Builder mergeMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage value) { - if (messageBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - message_ != org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance()) { - message_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.newBuilder(message_).mergeFrom(value).buildPartial(); - } else { - message_ = value; - } - onChanged(); - } else { - messageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.DataMessage message = 3; - */ - public Builder clearMessage() { - if (messageBuilder_ == null) { - message_ = org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance(); - onChanged(); - } else { - messageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - /** - * optional .signalservice.DataMessage message = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder getMessageBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getMessageFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.DataMessage message = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder getMessageOrBuilder() { - if (messageBuilder_ != null) { - return messageBuilder_.getMessageOrBuilder(); - } else { - return message_; - } - } - /** - * optional .signalservice.DataMessage message = 3; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder> - getMessageFieldBuilder() { - if (messageBuilder_ == null) { - messageBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessage.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.DataMessageOrBuilder>( - message_, - getParentForChildren(), - isClean()); - message_ = null; - } - return messageBuilder_; - } - - // optional uint64 expirationStartTimestamp = 4; - private long expirationStartTimestamp_ ; - /** - * optional uint64 expirationStartTimestamp = 4; - */ - public boolean hasExpirationStartTimestamp() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional uint64 expirationStartTimestamp = 4; - */ - public long getExpirationStartTimestamp() { - return expirationStartTimestamp_; - } - /** - * optional uint64 expirationStartTimestamp = 4; - */ - public Builder setExpirationStartTimestamp(long value) { - bitField0_ |= 0x00000008; - expirationStartTimestamp_ = value; - onChanged(); - return this; - } - /** - * optional uint64 expirationStartTimestamp = 4; - */ - public Builder clearExpirationStartTimestamp() { - bitField0_ = (bitField0_ & ~0x00000008); - expirationStartTimestamp_ = 0L; - onChanged(); - return this; - } - - // repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - private java.util.List unidentifiedStatus_ = - java.util.Collections.emptyList(); - private void ensureUnidentifiedStatusIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - unidentifiedStatus_ = new java.util.ArrayList(unidentifiedStatus_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder> unidentifiedStatusBuilder_; - - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public java.util.List getUnidentifiedStatusList() { - if (unidentifiedStatusBuilder_ == null) { - return java.util.Collections.unmodifiableList(unidentifiedStatus_); - } else { - return unidentifiedStatusBuilder_.getMessageList(); - } - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public int getUnidentifiedStatusCount() { - if (unidentifiedStatusBuilder_ == null) { - return unidentifiedStatus_.size(); - } else { - return unidentifiedStatusBuilder_.getCount(); - } - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus getUnidentifiedStatus(int index) { - if (unidentifiedStatusBuilder_ == null) { - return unidentifiedStatus_.get(index); - } else { - return unidentifiedStatusBuilder_.getMessage(index); - } - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public Builder setUnidentifiedStatus( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus value) { - if (unidentifiedStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnidentifiedStatusIsMutable(); - unidentifiedStatus_.set(index, value); - onChanged(); - } else { - unidentifiedStatusBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public Builder setUnidentifiedStatus( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder builderForValue) { - if (unidentifiedStatusBuilder_ == null) { - ensureUnidentifiedStatusIsMutable(); - unidentifiedStatus_.set(index, builderForValue.build()); - onChanged(); - } else { - unidentifiedStatusBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public Builder addUnidentifiedStatus(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus value) { - if (unidentifiedStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnidentifiedStatusIsMutable(); - unidentifiedStatus_.add(value); - onChanged(); - } else { - unidentifiedStatusBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public Builder addUnidentifiedStatus( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus value) { - if (unidentifiedStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnidentifiedStatusIsMutable(); - unidentifiedStatus_.add(index, value); - onChanged(); - } else { - unidentifiedStatusBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public Builder addUnidentifiedStatus( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder builderForValue) { - if (unidentifiedStatusBuilder_ == null) { - ensureUnidentifiedStatusIsMutable(); - unidentifiedStatus_.add(builderForValue.build()); - onChanged(); - } else { - unidentifiedStatusBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public Builder addUnidentifiedStatus( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder builderForValue) { - if (unidentifiedStatusBuilder_ == null) { - ensureUnidentifiedStatusIsMutable(); - unidentifiedStatus_.add(index, builderForValue.build()); - onChanged(); - } else { - unidentifiedStatusBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public Builder addAllUnidentifiedStatus( - java.lang.Iterable values) { - if (unidentifiedStatusBuilder_ == null) { - ensureUnidentifiedStatusIsMutable(); - super.addAll(values, unidentifiedStatus_); - onChanged(); - } else { - unidentifiedStatusBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public Builder clearUnidentifiedStatus() { - if (unidentifiedStatusBuilder_ == null) { - unidentifiedStatus_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - unidentifiedStatusBuilder_.clear(); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public Builder removeUnidentifiedStatus(int index) { - if (unidentifiedStatusBuilder_ == null) { - ensureUnidentifiedStatusIsMutable(); - unidentifiedStatus_.remove(index); - onChanged(); - } else { - unidentifiedStatusBuilder_.remove(index); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder getUnidentifiedStatusBuilder( - int index) { - return getUnidentifiedStatusFieldBuilder().getBuilder(index); - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder getUnidentifiedStatusOrBuilder( - int index) { - if (unidentifiedStatusBuilder_ == null) { - return unidentifiedStatus_.get(index); } else { - return unidentifiedStatusBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public java.util.List - getUnidentifiedStatusOrBuilderList() { - if (unidentifiedStatusBuilder_ != null) { - return unidentifiedStatusBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(unidentifiedStatus_); - } - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder addUnidentifiedStatusBuilder() { - return getUnidentifiedStatusFieldBuilder().addBuilder( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.getDefaultInstance()); - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder addUnidentifiedStatusBuilder( - int index) { - return getUnidentifiedStatusFieldBuilder().addBuilder( - index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.getDefaultInstance()); - } - /** - * repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5; - */ - public java.util.List - getUnidentifiedStatusBuilderList() { - return getUnidentifiedStatusFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder> - getUnidentifiedStatusFieldBuilder() { - if (unidentifiedStatusBuilder_ == null) { - unidentifiedStatusBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder>( - unidentifiedStatus_, - ((bitField0_ & 0x00000010) == 0x00000010), - getParentForChildren(), - isClean()); - unidentifiedStatus_ = null; - } - return unidentifiedStatusBuilder_; - } - - // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.Sent) - } - - static { - defaultInstance = new Sent(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.Sent) - } - - public interface ContactsOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .signalservice.AttachmentPointer blob = 1; - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - boolean hasBlob(); - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getBlob(); - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getBlobOrBuilder(); - - // optional bool complete = 2 [default = false]; - /** - * optional bool complete = 2 [default = false]; - */ - boolean hasComplete(); - /** - * optional bool complete = 2 [default = false]; - */ - boolean getComplete(); - - // optional bytes data = 101; - /** - * optional bytes data = 101; - */ - boolean hasData(); - /** - * optional bytes data = 101; - */ - com.google.protobuf.ByteString getData(); - } - /** - * Protobuf type {@code signalservice.SyncMessage.Contacts} - */ - public static final class Contacts extends - com.google.protobuf.GeneratedMessage - implements ContactsOrBuilder { - // Use Contacts.newBuilder() to construct. - private Contacts(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Contacts(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Contacts defaultInstance; - public static Contacts getDefaultInstance() { - return defaultInstance; - } - - public Contacts getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Contacts( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = blob_.toBuilder(); - } - blob_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(blob_); - blob_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 16: { - bitField0_ |= 0x00000002; - complete_ = input.readBool(); - break; - } - case 810: { - bitField0_ |= 0x00000004; - data_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Contacts_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Contacts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Contacts parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Contacts(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional .signalservice.AttachmentPointer blob = 1; - public static final int BLOB_FIELD_NUMBER = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer blob_; - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public boolean hasBlob() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getBlob() { - return blob_; - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getBlobOrBuilder() { - return blob_; - } - - // optional bool complete = 2 [default = false]; - public static final int COMPLETE_FIELD_NUMBER = 2; - private boolean complete_; - /** - * optional bool complete = 2 [default = false]; - */ - public boolean hasComplete() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bool complete = 2 [default = false]; - */ - public boolean getComplete() { - return complete_; - } - - // optional bytes data = 101; - public static final int DATA_FIELD_NUMBER = 101; - private com.google.protobuf.ByteString data_; - /** - * optional bytes data = 101; - */ - public boolean hasData() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bytes data = 101; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private void initFields() { - blob_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - complete_ = false; - data_ = com.google.protobuf.ByteString.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, blob_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBool(2, complete_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(101, data_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, blob_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, complete_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(101, data_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts 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.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.SyncMessage.Contacts} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Contacts_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Contacts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getBlobFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (blobBuilder_ == null) { - blob_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - } else { - blobBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - complete_ = false; - bitField0_ = (bitField0_ & ~0x00000002); - data_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Contacts_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (blobBuilder_ == null) { - result.blob_ = blob_; - } else { - result.blob_ = blobBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.complete_ = complete_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.data_ = data_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance()) return this; - if (other.hasBlob()) { - mergeBlob(other.getBlob()); - } - if (other.hasComplete()) { - setComplete(other.getComplete()); - } - if (other.hasData()) { - setData(other.getData()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional .signalservice.AttachmentPointer blob = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer blob_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> blobBuilder_; - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public boolean hasBlob() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getBlob() { - if (blobBuilder_ == null) { - return blob_; - } else { - return blobBuilder_.getMessage(); - } - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public Builder setBlob(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { - if (blobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - blob_ = value; - onChanged(); - } else { - blobBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public Builder setBlob( - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder builderForValue) { - if (blobBuilder_ == null) { - blob_ = builderForValue.build(); - onChanged(); - } else { - blobBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public Builder mergeBlob(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { - if (blobBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - blob_ != org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) { - blob_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.newBuilder(blob_).mergeFrom(value).buildPartial(); - } else { - blob_ = value; - } - onChanged(); - } else { - blobBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public Builder clearBlob() { - if (blobBuilder_ == null) { - blob_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - onChanged(); - } else { - blobBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder getBlobBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getBlobFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getBlobOrBuilder() { - if (blobBuilder_ != null) { - return blobBuilder_.getMessageOrBuilder(); - } else { - return blob_; - } - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> - getBlobFieldBuilder() { - if (blobBuilder_ == null) { - blobBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>( - blob_, - getParentForChildren(), - isClean()); - blob_ = null; - } - return blobBuilder_; - } - - // optional bool complete = 2 [default = false]; - private boolean complete_ ; - /** - * optional bool complete = 2 [default = false]; - */ - public boolean hasComplete() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bool complete = 2 [default = false]; - */ - public boolean getComplete() { - return complete_; - } - /** - * optional bool complete = 2 [default = false]; - */ - public Builder setComplete(boolean value) { - bitField0_ |= 0x00000002; - complete_ = value; - onChanged(); - return this; - } - /** - * optional bool complete = 2 [default = false]; - */ - public Builder clearComplete() { - bitField0_ = (bitField0_ & ~0x00000002); - complete_ = false; - onChanged(); - return this; - } - - // optional bytes data = 101; - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes data = 101; - */ - public boolean hasData() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bytes data = 101; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * optional bytes data = 101; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - data_ = value; - onChanged(); - return this; - } - /** - * optional bytes data = 101; - */ - public Builder clearData() { - bitField0_ = (bitField0_ & ~0x00000004); - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.Contacts) - } - - static { - defaultInstance = new Contacts(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.Contacts) - } - - public interface GroupsOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .signalservice.AttachmentPointer blob = 1; - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - boolean hasBlob(); - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getBlob(); - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getBlobOrBuilder(); - - // optional bytes data = 101; - /** - * optional bytes data = 101; - */ - boolean hasData(); - /** - * optional bytes data = 101; - */ - com.google.protobuf.ByteString getData(); - } - /** - * Protobuf type {@code signalservice.SyncMessage.Groups} - */ - public static final class Groups extends - com.google.protobuf.GeneratedMessage - implements GroupsOrBuilder { - // Use Groups.newBuilder() to construct. - private Groups(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Groups(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Groups defaultInstance; - public static Groups getDefaultInstance() { - return defaultInstance; - } - - public Groups getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Groups( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = blob_.toBuilder(); - } - blob_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(blob_); - blob_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 810: { - bitField0_ |= 0x00000002; - data_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Groups_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Groups_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Groups parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Groups(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional .signalservice.AttachmentPointer blob = 1; - public static final int BLOB_FIELD_NUMBER = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer blob_; - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public boolean hasBlob() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getBlob() { - return blob_; - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getBlobOrBuilder() { - return blob_; - } - - // optional bytes data = 101; - public static final int DATA_FIELD_NUMBER = 101; - private com.google.protobuf.ByteString data_; - /** - * optional bytes data = 101; - */ - public boolean hasData() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bytes data = 101; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - - private void initFields() { - blob_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - data_ = com.google.protobuf.ByteString.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, blob_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(101, data_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, blob_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(101, data_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups 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.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.SyncMessage.Groups} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Groups_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Groups_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getBlobFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (blobBuilder_ == null) { - blob_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - } else { - blobBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - data_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Groups_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (blobBuilder_ == null) { - result.blob_ = blob_; - } else { - result.blob_ = blobBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.data_ = data_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance()) return this; - if (other.hasBlob()) { - mergeBlob(other.getBlob()); - } - if (other.hasData()) { - setData(other.getData()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional .signalservice.AttachmentPointer blob = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer blob_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> blobBuilder_; - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public boolean hasBlob() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getBlob() { - if (blobBuilder_ == null) { - return blob_; - } else { - return blobBuilder_.getMessage(); - } - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public Builder setBlob(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { - if (blobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - blob_ = value; - onChanged(); - } else { - blobBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public Builder setBlob( - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder builderForValue) { - if (blobBuilder_ == null) { - blob_ = builderForValue.build(); - onChanged(); - } else { - blobBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public Builder mergeBlob(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { - if (blobBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - blob_ != org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) { - blob_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.newBuilder(blob_).mergeFrom(value).buildPartial(); - } else { - blob_ = value; - } - onChanged(); - } else { - blobBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public Builder clearBlob() { - if (blobBuilder_ == null) { - blob_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - onChanged(); - } else { - blobBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder getBlobBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getBlobFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getBlobOrBuilder() { - if (blobBuilder_ != null) { - return blobBuilder_.getMessageOrBuilder(); - } else { - return blob_; - } - } - /** - * optional .signalservice.AttachmentPointer blob = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> - getBlobFieldBuilder() { - if (blobBuilder_ == null) { - blobBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>( - blob_, - getParentForChildren(), - isClean()); - blob_ = null; - } - return blobBuilder_; - } - - // optional bytes data = 101; - private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes data = 101; - */ - public boolean hasData() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bytes data = 101; - */ - public com.google.protobuf.ByteString getData() { - return data_; - } - /** - * optional bytes data = 101; - */ - public Builder setData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - data_ = value; - onChanged(); - return this; - } - /** - * optional bytes data = 101; - */ - public Builder clearData() { - bitField0_ = (bitField0_ & ~0x00000002); - data_ = getDefaultInstance().getData(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.Groups) - } - - static { - defaultInstance = new Groups(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.Groups) - } - - public interface BlockedOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // repeated string numbers = 1; - /** - * repeated string numbers = 1; - */ - java.util.List - getNumbersList(); - /** - * repeated string numbers = 1; - */ - int getNumbersCount(); - /** - * repeated string numbers = 1; - */ - java.lang.String getNumbers(int index); - /** - * repeated string numbers = 1; - */ - com.google.protobuf.ByteString - getNumbersBytes(int index); - - // repeated bytes groupIds = 2; - /** - * repeated bytes groupIds = 2; - */ - java.util.List getGroupIdsList(); - /** - * repeated bytes groupIds = 2; - */ - int getGroupIdsCount(); - /** - * repeated bytes groupIds = 2; - */ - com.google.protobuf.ByteString getGroupIds(int index); - } - /** - * Protobuf type {@code signalservice.SyncMessage.Blocked} - */ - public static final class Blocked extends - com.google.protobuf.GeneratedMessage - implements BlockedOrBuilder { - // Use Blocked.newBuilder() to construct. - private Blocked(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Blocked(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Blocked defaultInstance; - public static Blocked getDefaultInstance() { - return defaultInstance; - } - - public Blocked getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Blocked( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - numbers_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - numbers_.add(input.readBytes()); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - groupIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - groupIds_.add(input.readBytes()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - numbers_ = new com.google.protobuf.UnmodifiableLazyStringList(numbers_); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - groupIds_ = java.util.Collections.unmodifiableList(groupIds_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Blocked_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Blocked_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Blocked parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Blocked(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - // repeated string numbers = 1; - public static final int NUMBERS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList numbers_; - /** - * repeated string numbers = 1; - */ - public java.util.List - getNumbersList() { - return numbers_; - } - /** - * repeated string numbers = 1; - */ - public int getNumbersCount() { - return numbers_.size(); - } - /** - * repeated string numbers = 1; - */ - public java.lang.String getNumbers(int index) { - return numbers_.get(index); - } - /** - * repeated string numbers = 1; - */ - public com.google.protobuf.ByteString - getNumbersBytes(int index) { - return numbers_.getByteString(index); - } - - // repeated bytes groupIds = 2; - public static final int GROUPIDS_FIELD_NUMBER = 2; - private java.util.List groupIds_; - /** - * repeated bytes groupIds = 2; - */ - public java.util.List - getGroupIdsList() { - return groupIds_; - } - /** - * repeated bytes groupIds = 2; - */ - public int getGroupIdsCount() { - return groupIds_.size(); - } - /** - * repeated bytes groupIds = 2; - */ - public com.google.protobuf.ByteString getGroupIds(int index) { - return groupIds_.get(index); - } - - private void initFields() { - numbers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - groupIds_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - for (int i = 0; i < numbers_.size(); i++) { - output.writeBytes(1, numbers_.getByteString(i)); - } - for (int i = 0; i < groupIds_.size(); i++) { - output.writeBytes(2, groupIds_.get(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < numbers_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(numbers_.getByteString(i)); - } - size += dataSize; - size += 1 * getNumbersList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < groupIds_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(groupIds_.get(i)); - } - size += dataSize; - size += 1 * getGroupIdsList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked 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.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.SyncMessage.Blocked} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Blocked_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Blocked_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - numbers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - groupIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Blocked_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - numbers_ = new com.google.protobuf.UnmodifiableLazyStringList( - numbers_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.numbers_ = numbers_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - groupIds_ = java.util.Collections.unmodifiableList(groupIds_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.groupIds_ = groupIds_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance()) return this; - if (!other.numbers_.isEmpty()) { - if (numbers_.isEmpty()) { - numbers_ = other.numbers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNumbersIsMutable(); - numbers_.addAll(other.numbers_); - } - onChanged(); - } - if (!other.groupIds_.isEmpty()) { - if (groupIds_.isEmpty()) { - groupIds_ = other.groupIds_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureGroupIdsIsMutable(); - groupIds_.addAll(other.groupIds_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // repeated string numbers = 1; - private com.google.protobuf.LazyStringList numbers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureNumbersIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - numbers_ = new com.google.protobuf.LazyStringArrayList(numbers_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string numbers = 1; - */ - public java.util.List - getNumbersList() { - return java.util.Collections.unmodifiableList(numbers_); - } - /** - * repeated string numbers = 1; - */ - public int getNumbersCount() { - return numbers_.size(); - } - /** - * repeated string numbers = 1; - */ - public java.lang.String getNumbers(int index) { - return numbers_.get(index); - } - /** - * repeated string numbers = 1; - */ - public com.google.protobuf.ByteString - getNumbersBytes(int index) { - return numbers_.getByteString(index); - } - /** - * repeated string numbers = 1; - */ - public Builder setNumbers( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNumbersIsMutable(); - numbers_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string numbers = 1; - */ - public Builder addNumbers( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNumbersIsMutable(); - numbers_.add(value); - onChanged(); - return this; - } - /** - * repeated string numbers = 1; - */ - public Builder addAllNumbers( - java.lang.Iterable values) { - ensureNumbersIsMutable(); - super.addAll(values, numbers_); - onChanged(); - return this; - } - /** - * repeated string numbers = 1; - */ - public Builder clearNumbers() { - numbers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string numbers = 1; - */ - public Builder addNumbersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNumbersIsMutable(); - numbers_.add(value); - onChanged(); - return this; - } - - // repeated bytes groupIds = 2; - private java.util.List groupIds_ = java.util.Collections.emptyList(); - private void ensureGroupIdsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - groupIds_ = new java.util.ArrayList(groupIds_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated bytes groupIds = 2; - */ - public java.util.List - getGroupIdsList() { - return java.util.Collections.unmodifiableList(groupIds_); - } - /** - * repeated bytes groupIds = 2; - */ - public int getGroupIdsCount() { - return groupIds_.size(); - } - /** - * repeated bytes groupIds = 2; - */ - public com.google.protobuf.ByteString getGroupIds(int index) { - return groupIds_.get(index); - } - /** - * repeated bytes groupIds = 2; - */ - public Builder setGroupIds( - int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupIdsIsMutable(); - groupIds_.set(index, value); - onChanged(); - return this; - } - /** - * repeated bytes groupIds = 2; - */ - public Builder addGroupIds(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupIdsIsMutable(); - groupIds_.add(value); - onChanged(); - return this; - } - /** - * repeated bytes groupIds = 2; - */ - public Builder addAllGroupIds( - java.lang.Iterable values) { - ensureGroupIdsIsMutable(); - super.addAll(values, groupIds_); - onChanged(); - return this; - } - /** - * repeated bytes groupIds = 2; - */ - public Builder clearGroupIds() { - groupIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.Blocked) - } - - static { - defaultInstance = new Blocked(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.Blocked) - } - - public interface RequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional .signalservice.SyncMessage.Request.Type type = 1; - /** - * optional .signalservice.SyncMessage.Request.Type type = 1; - */ - boolean hasType(); - /** - * optional .signalservice.SyncMessage.Request.Type type = 1; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type getType(); - } - /** - * Protobuf type {@code signalservice.SyncMessage.Request} - */ - public static final class Request extends - com.google.protobuf.GeneratedMessage - implements RequestOrBuilder { - // Use Request.newBuilder() to construct. - private Request(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Request(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Request defaultInstance; - public static Request getDefaultInstance() { - return defaultInstance; - } - - public Request getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Request( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - type_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Request_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Request parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Request(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - /** - * Protobuf enum {@code signalservice.SyncMessage.Request.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0, 0), - /** - * CONTACTS = 1; - */ - CONTACTS(1, 1), - /** - * GROUPS = 2; - */ - GROUPS(2, 2), - /** - * BLOCKED = 3; - */ - BLOCKED(3, 3), - /** - * CONFIGURATION = 4; - */ - CONFIGURATION(4, 4), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * CONTACTS = 1; - */ - public static final int CONTACTS_VALUE = 1; - /** - * GROUPS = 2; - */ - public static final int GROUPS_VALUE = 2; - /** - * BLOCKED = 3; - */ - public static final int BLOCKED_VALUE = 3; - /** - * CONFIGURATION = 4; - */ - public static final int CONFIGURATION_VALUE = 4; - - - public final int getNumber() { return value; } - - public static Type valueOf(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return CONTACTS; - case 2: return GROUPS; - case 3: return BLOCKED; - case 4: return CONFIGURATION; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.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 index; - private final int value; - - private Type(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:signalservice.SyncMessage.Request.Type) - } - - private int bitField0_; - // optional .signalservice.SyncMessage.Request.Type type = 1; - public static final int TYPE_FIELD_NUMBER = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type type_; - /** - * optional .signalservice.SyncMessage.Request.Type type = 1; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.SyncMessage.Request.Type type = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type getType() { - return type_; - } - - private void initFields() { - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type.UNKNOWN; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, type_.getNumber()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_.getNumber()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request 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.service.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.SyncMessage.Request} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.RequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Request_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Request_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type.UNKNOWN; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Request_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.type_ = type_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance()) return this; - if (other.hasType()) { - setType(other.getType()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional .signalservice.SyncMessage.Request.Type type = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type.UNKNOWN; - /** - * optional .signalservice.SyncMessage.Request.Type type = 1; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.SyncMessage.Request.Type type = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type getType() { - return type_; - } - /** - * optional .signalservice.SyncMessage.Request.Type type = 1; - */ - public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - type_ = value; - onChanged(); - return this; - } - /** - * optional .signalservice.SyncMessage.Request.Type type = 1; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Type.UNKNOWN; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.Request) - } - - static { - defaultInstance = new Request(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.Request) - } - - public interface ReadOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string sender = 1; - /** - * optional string sender = 1; - */ - boolean hasSender(); - /** - * optional string sender = 1; - */ - java.lang.String getSender(); - /** - * optional string sender = 1; - */ - com.google.protobuf.ByteString - getSenderBytes(); - - // optional uint64 timestamp = 2; - /** - * optional uint64 timestamp = 2; - */ - boolean hasTimestamp(); - /** - * optional uint64 timestamp = 2; - */ - long getTimestamp(); - } - /** - * Protobuf type {@code signalservice.SyncMessage.Read} - */ - public static final class Read extends - com.google.protobuf.GeneratedMessage - implements ReadOrBuilder { - // Use Read.newBuilder() to construct. - private Read(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Read(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Read defaultInstance; - public static Read getDefaultInstance() { - return defaultInstance; - } - - public Read getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Read( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - sender_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - timestamp_ = input.readUInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Read_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Read_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Read parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Read(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string sender = 1; - public static final int SENDER_FIELD_NUMBER = 1; - private java.lang.Object sender_; - /** - * optional string sender = 1; - */ - public boolean hasSender() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string sender = 1; - */ - public java.lang.String getSender() { - java.lang.Object ref = sender_; - 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()) { - sender_ = s; - } - return s; - } - } - /** - * optional string sender = 1; - */ - public com.google.protobuf.ByteString - getSenderBytes() { - java.lang.Object ref = sender_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sender_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional uint64 timestamp = 2; - public static final int TIMESTAMP_FIELD_NUMBER = 2; - private long timestamp_; - /** - * optional uint64 timestamp = 2; - */ - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } - - private void initFields() { - sender_ = ""; - timestamp_ = 0L; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getSenderBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeUInt64(2, timestamp_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getSenderBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(2, timestamp_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read 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.service.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.SyncMessage.Read} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Read_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Read_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - sender_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - timestamp_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Read_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.sender_ = sender_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.timestamp_ = timestamp_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.getDefaultInstance()) return this; - if (other.hasSender()) { - bitField0_ |= 0x00000001; - sender_ = other.sender_; - onChanged(); - } - if (other.hasTimestamp()) { - setTimestamp(other.getTimestamp()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string sender = 1; - private java.lang.Object sender_ = ""; - /** - * optional string sender = 1; - */ - public boolean hasSender() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string sender = 1; - */ - public java.lang.String getSender() { - java.lang.Object ref = sender_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - sender_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string sender = 1; - */ - public com.google.protobuf.ByteString - getSenderBytes() { - java.lang.Object ref = sender_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sender_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string sender = 1; - */ - public Builder setSender( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - sender_ = value; - onChanged(); - return this; - } - /** - * optional string sender = 1; - */ - public Builder clearSender() { - bitField0_ = (bitField0_ & ~0x00000001); - sender_ = getDefaultInstance().getSender(); - onChanged(); - return this; - } - /** - * optional string sender = 1; - */ - public Builder setSenderBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - sender_ = value; - onChanged(); - return this; - } - - // optional uint64 timestamp = 2; - private long timestamp_ ; - /** - * optional uint64 timestamp = 2; - */ - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional uint64 timestamp = 2; - */ - public long getTimestamp() { - return timestamp_; - } - /** - * optional uint64 timestamp = 2; - */ - public Builder setTimestamp(long value) { - bitField0_ |= 0x00000002; - timestamp_ = value; - onChanged(); - return this; - } - /** - * optional uint64 timestamp = 2; - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000002); - timestamp_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.Read) - } - - static { - defaultInstance = new Read(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.Read) - } - - public interface ConfigurationOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional bool readReceipts = 1; - /** - * optional bool readReceipts = 1; - */ - boolean hasReadReceipts(); - /** - * optional bool readReceipts = 1; - */ - boolean getReadReceipts(); - - // optional bool unidentifiedDeliveryIndicators = 2; - /** - * optional bool unidentifiedDeliveryIndicators = 2; - */ - boolean hasUnidentifiedDeliveryIndicators(); - /** - * optional bool unidentifiedDeliveryIndicators = 2; - */ - boolean getUnidentifiedDeliveryIndicators(); - - // optional bool typingIndicators = 3; - /** - * optional bool typingIndicators = 3; - */ - boolean hasTypingIndicators(); - /** - * optional bool typingIndicators = 3; - */ - boolean getTypingIndicators(); - - // optional bool linkPreviews = 4; - /** - * optional bool linkPreviews = 4; - */ - boolean hasLinkPreviews(); - /** - * optional bool linkPreviews = 4; - */ - boolean getLinkPreviews(); - } - /** - * Protobuf type {@code signalservice.SyncMessage.Configuration} - */ - public static final class Configuration extends - com.google.protobuf.GeneratedMessage - implements ConfigurationOrBuilder { - // Use Configuration.newBuilder() to construct. - private Configuration(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Configuration(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Configuration defaultInstance; - public static Configuration getDefaultInstance() { - return defaultInstance; - } - - public Configuration getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Configuration( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - readReceipts_ = input.readBool(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - unidentifiedDeliveryIndicators_ = input.readBool(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - typingIndicators_ = input.readBool(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - linkPreviews_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Configuration_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Configuration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Configuration parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Configuration(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional bool readReceipts = 1; - public static final int READRECEIPTS_FIELD_NUMBER = 1; - private boolean readReceipts_; - /** - * optional bool readReceipts = 1; - */ - public boolean hasReadReceipts() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bool readReceipts = 1; - */ - public boolean getReadReceipts() { - return readReceipts_; - } - - // optional bool unidentifiedDeliveryIndicators = 2; - public static final int UNIDENTIFIEDDELIVERYINDICATORS_FIELD_NUMBER = 2; - private boolean unidentifiedDeliveryIndicators_; - /** - * optional bool unidentifiedDeliveryIndicators = 2; - */ - public boolean hasUnidentifiedDeliveryIndicators() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bool unidentifiedDeliveryIndicators = 2; - */ - public boolean getUnidentifiedDeliveryIndicators() { - return unidentifiedDeliveryIndicators_; - } - - // optional bool typingIndicators = 3; - public static final int TYPINGINDICATORS_FIELD_NUMBER = 3; - private boolean typingIndicators_; - /** - * optional bool typingIndicators = 3; - */ - public boolean hasTypingIndicators() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bool typingIndicators = 3; - */ - public boolean getTypingIndicators() { - return typingIndicators_; - } - - // optional bool linkPreviews = 4; - public static final int LINKPREVIEWS_FIELD_NUMBER = 4; - private boolean linkPreviews_; - /** - * optional bool linkPreviews = 4; - */ - public boolean hasLinkPreviews() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool linkPreviews = 4; - */ - public boolean getLinkPreviews() { - return linkPreviews_; - } - - private void initFields() { - readReceipts_ = false; - unidentifiedDeliveryIndicators_ = false; - typingIndicators_ = false; - linkPreviews_ = false; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(1, readReceipts_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBool(2, unidentifiedDeliveryIndicators_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBool(3, typingIndicators_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBool(4, linkPreviews_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, readReceipts_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, unidentifiedDeliveryIndicators_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, typingIndicators_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, linkPreviews_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration 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.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.SyncMessage.Configuration} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ConfigurationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Configuration_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Configuration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - readReceipts_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - unidentifiedDeliveryIndicators_ = false; - bitField0_ = (bitField0_ & ~0x00000002); - typingIndicators_ = false; - bitField0_ = (bitField0_ & ~0x00000004); - linkPreviews_ = false; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Configuration_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.readReceipts_ = readReceipts_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.unidentifiedDeliveryIndicators_ = unidentifiedDeliveryIndicators_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.typingIndicators_ = typingIndicators_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.linkPreviews_ = linkPreviews_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance()) return this; - if (other.hasReadReceipts()) { - setReadReceipts(other.getReadReceipts()); - } - if (other.hasUnidentifiedDeliveryIndicators()) { - setUnidentifiedDeliveryIndicators(other.getUnidentifiedDeliveryIndicators()); - } - if (other.hasTypingIndicators()) { - setTypingIndicators(other.getTypingIndicators()); - } - if (other.hasLinkPreviews()) { - setLinkPreviews(other.getLinkPreviews()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional bool readReceipts = 1; - private boolean readReceipts_ ; - /** - * optional bool readReceipts = 1; - */ - public boolean hasReadReceipts() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bool readReceipts = 1; - */ - public boolean getReadReceipts() { - return readReceipts_; - } - /** - * optional bool readReceipts = 1; - */ - public Builder setReadReceipts(boolean value) { - bitField0_ |= 0x00000001; - readReceipts_ = value; - onChanged(); - return this; - } - /** - * optional bool readReceipts = 1; - */ - public Builder clearReadReceipts() { - bitField0_ = (bitField0_ & ~0x00000001); - readReceipts_ = false; - onChanged(); - return this; - } - - // optional bool unidentifiedDeliveryIndicators = 2; - private boolean unidentifiedDeliveryIndicators_ ; - /** - * optional bool unidentifiedDeliveryIndicators = 2; - */ - public boolean hasUnidentifiedDeliveryIndicators() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bool unidentifiedDeliveryIndicators = 2; - */ - public boolean getUnidentifiedDeliveryIndicators() { - return unidentifiedDeliveryIndicators_; - } - /** - * optional bool unidentifiedDeliveryIndicators = 2; - */ - public Builder setUnidentifiedDeliveryIndicators(boolean value) { - bitField0_ |= 0x00000002; - unidentifiedDeliveryIndicators_ = value; - onChanged(); - return this; - } - /** - * optional bool unidentifiedDeliveryIndicators = 2; - */ - public Builder clearUnidentifiedDeliveryIndicators() { - bitField0_ = (bitField0_ & ~0x00000002); - unidentifiedDeliveryIndicators_ = false; - onChanged(); - return this; - } - - // optional bool typingIndicators = 3; - private boolean typingIndicators_ ; - /** - * optional bool typingIndicators = 3; - */ - public boolean hasTypingIndicators() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bool typingIndicators = 3; - */ - public boolean getTypingIndicators() { - return typingIndicators_; - } - /** - * optional bool typingIndicators = 3; - */ - public Builder setTypingIndicators(boolean value) { - bitField0_ |= 0x00000004; - typingIndicators_ = value; - onChanged(); - return this; - } - /** - * optional bool typingIndicators = 3; - */ - public Builder clearTypingIndicators() { - bitField0_ = (bitField0_ & ~0x00000004); - typingIndicators_ = false; - onChanged(); - return this; - } - - // optional bool linkPreviews = 4; - private boolean linkPreviews_ ; - /** - * optional bool linkPreviews = 4; - */ - public boolean hasLinkPreviews() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool linkPreviews = 4; - */ - public boolean getLinkPreviews() { - return linkPreviews_; - } - /** - * optional bool linkPreviews = 4; - */ - public Builder setLinkPreviews(boolean value) { - bitField0_ |= 0x00000008; - linkPreviews_ = value; - onChanged(); - return this; - } - /** - * optional bool linkPreviews = 4; - */ - public Builder clearLinkPreviews() { - bitField0_ = (bitField0_ & ~0x00000008); - linkPreviews_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.Configuration) - } - - static { - defaultInstance = new Configuration(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.Configuration) - } - - public interface StickerPackOperationOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional bytes packId = 1; - /** - * optional bytes packId = 1; - */ - boolean hasPackId(); - /** - * optional bytes packId = 1; - */ - com.google.protobuf.ByteString getPackId(); - - // optional bytes packKey = 2; - /** - * optional bytes packKey = 2; - */ - boolean hasPackKey(); - /** - * optional bytes packKey = 2; - */ - com.google.protobuf.ByteString getPackKey(); - - // optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; - /** - * optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; - */ - boolean hasType(); - /** - * optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type getType(); - } - /** - * Protobuf type {@code signalservice.SyncMessage.StickerPackOperation} - */ - public static final class StickerPackOperation extends - com.google.protobuf.GeneratedMessage - implements StickerPackOperationOrBuilder { - // Use StickerPackOperation.newBuilder() to construct. - private StickerPackOperation(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private StickerPackOperation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final StickerPackOperation defaultInstance; - public static StickerPackOperation getDefaultInstance() { - return defaultInstance; - } - - public StickerPackOperation getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StickerPackOperation( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - packId_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - packKey_ = input.readBytes(); - break; - } - case 24: { - int rawValue = input.readEnum(); - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - type_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_StickerPackOperation_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_StickerPackOperation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public StickerPackOperation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StickerPackOperation(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - /** - * Protobuf enum {@code signalservice.SyncMessage.StickerPackOperation.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * INSTALL = 0; - */ - INSTALL(0, 0), - /** - * REMOVE = 1; - */ - REMOVE(1, 1), - ; - - /** - * INSTALL = 0; - */ - public static final int INSTALL_VALUE = 0; - /** - * REMOVE = 1; - */ - public static final int REMOVE_VALUE = 1; - - - public final int getNumber() { return value; } - - public static Type valueOf(int value) { - switch (value) { - case 0: return INSTALL; - case 1: return REMOVE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.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 index; - private final int value; - - private Type(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:signalservice.SyncMessage.StickerPackOperation.Type) - } - - private int bitField0_; - // optional bytes packId = 1; - public static final int PACKID_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString packId_; - /** - * optional bytes packId = 1; - */ - public boolean hasPackId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bytes packId = 1; - */ - public com.google.protobuf.ByteString getPackId() { - return packId_; - } - - // optional bytes packKey = 2; - public static final int PACKKEY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString packKey_; - /** - * optional bytes packKey = 2; - */ - public boolean hasPackKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bytes packKey = 2; - */ - public com.google.protobuf.ByteString getPackKey() { - return packKey_; - } - - // optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; - public static final int TYPE_FIELD_NUMBER = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type type_; - /** - * optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type getType() { - return type_; - } - - private void initFields() { - packId_ = com.google.protobuf.ByteString.EMPTY; - packKey_ = com.google.protobuf.ByteString.EMPTY; - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type.INSTALL; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, packId_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, packKey_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, type_.getNumber()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, packId_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, packKey_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_.getNumber()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation 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.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.SyncMessage.StickerPackOperation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_StickerPackOperation_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_StickerPackOperation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - packId_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - packKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type.INSTALL; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_StickerPackOperation_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.packId_ = packId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.packKey_ = packKey_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.type_ = type_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.getDefaultInstance()) return this; - if (other.hasPackId()) { - setPackId(other.getPackId()); - } - if (other.hasPackKey()) { - setPackKey(other.getPackKey()); - } - if (other.hasType()) { - setType(other.getType()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional bytes packId = 1; - private com.google.protobuf.ByteString packId_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes packId = 1; - */ - public boolean hasPackId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bytes packId = 1; - */ - public com.google.protobuf.ByteString getPackId() { - return packId_; - } - /** - * optional bytes packId = 1; - */ - public Builder setPackId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - packId_ = value; - onChanged(); - return this; - } - /** - * optional bytes packId = 1; - */ - public Builder clearPackId() { - bitField0_ = (bitField0_ & ~0x00000001); - packId_ = getDefaultInstance().getPackId(); - onChanged(); - return this; - } - - // optional bytes packKey = 2; - private com.google.protobuf.ByteString packKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes packKey = 2; - */ - public boolean hasPackKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bytes packKey = 2; - */ - public com.google.protobuf.ByteString getPackKey() { - return packKey_; - } - /** - * optional bytes packKey = 2; - */ - public Builder setPackKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - packKey_ = value; - onChanged(); - return this; - } - /** - * optional bytes packKey = 2; - */ - public Builder clearPackKey() { - bitField0_ = (bitField0_ & ~0x00000002); - packKey_ = getDefaultInstance().getPackKey(); - onChanged(); - return this; - } - - // optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type.INSTALL; - /** - * optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type getType() { - return type_; - } - /** - * optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; - */ - public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - type_ = value; - onChanged(); - return this; - } - /** - * optional .signalservice.SyncMessage.StickerPackOperation.Type type = 3; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000004); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Type.INSTALL; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.StickerPackOperation) - } - - static { - defaultInstance = new StickerPackOperation(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.StickerPackOperation) - } - - public interface OpenGroupDetailsOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string url = 1; - /** - * optional string url = 1; - */ - boolean hasUrl(); - /** - * optional string url = 1; - */ - java.lang.String getUrl(); - /** - * optional string url = 1; - */ - com.google.protobuf.ByteString - getUrlBytes(); - - // optional uint32 channelID = 2; - /** - * optional uint32 channelID = 2; - */ - boolean hasChannelID(); - /** - * optional uint32 channelID = 2; - */ - int getChannelID(); - } - /** - * Protobuf type {@code signalservice.SyncMessage.OpenGroupDetails} - */ - public static final class OpenGroupDetails extends - com.google.protobuf.GeneratedMessage - implements OpenGroupDetailsOrBuilder { - // Use OpenGroupDetails.newBuilder() to construct. - private OpenGroupDetails(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private OpenGroupDetails(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final OpenGroupDetails defaultInstance; - public static OpenGroupDetails getDefaultInstance() { - return defaultInstance; - } - - public OpenGroupDetails getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OpenGroupDetails( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - url_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - channelID_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_OpenGroupDetails_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_OpenGroupDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public OpenGroupDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OpenGroupDetails(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string url = 1; - public static final int URL_FIELD_NUMBER = 1; - private java.lang.Object url_; - /** - * optional string url = 1; - */ - public boolean hasUrl() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string url = 1; - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - 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()) { - url_ = s; - } - return s; - } - } - /** - * optional string url = 1; - */ - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional uint32 channelID = 2; - public static final int CHANNELID_FIELD_NUMBER = 2; - private int channelID_; - /** - * optional uint32 channelID = 2; - */ - public boolean hasChannelID() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional uint32 channelID = 2; - */ - public int getChannelID() { - return channelID_; - } - - private void initFields() { - url_ = ""; - channelID_ = 0; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getUrlBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeUInt32(2, channelID_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getUrlBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, channelID_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails 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.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.SyncMessage.OpenGroupDetails} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_OpenGroupDetails_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_OpenGroupDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - url_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - channelID_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_OpenGroupDetails_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.url_ = url_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.channelID_ = channelID_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.getDefaultInstance()) return this; - if (other.hasUrl()) { - bitField0_ |= 0x00000001; - url_ = other.url_; - onChanged(); - } - if (other.hasChannelID()) { - setChannelID(other.getChannelID()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string url = 1; - private java.lang.Object url_ = ""; - /** - * optional string url = 1; - */ - public boolean hasUrl() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string url = 1; - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - url_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string url = 1; - */ - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string url = 1; - */ - public Builder setUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - url_ = value; - onChanged(); - return this; - } - /** - * optional string url = 1; - */ - public Builder clearUrl() { - bitField0_ = (bitField0_ & ~0x00000001); - url_ = getDefaultInstance().getUrl(); - onChanged(); - return this; - } - /** - * optional string url = 1; - */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - url_ = value; - onChanged(); - return this; - } - - // optional uint32 channelID = 2; - private int channelID_ ; - /** - * optional uint32 channelID = 2; - */ - public boolean hasChannelID() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional uint32 channelID = 2; - */ - public int getChannelID() { - return channelID_; - } - /** - * optional uint32 channelID = 2; - */ - public Builder setChannelID(int value) { - bitField0_ |= 0x00000002; - channelID_ = value; - onChanged(); - return this; - } - /** - * optional uint32 channelID = 2; - */ - public Builder clearChannelID() { - bitField0_ = (bitField0_ & ~0x00000002); - channelID_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.OpenGroupDetails) - } - - static { - defaultInstance = new OpenGroupDetails(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.SyncMessage.OpenGroupDetails) - } - - private int bitField0_; - // optional .signalservice.SyncMessage.Sent sent = 1; - public static final int SENT_FIELD_NUMBER = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent sent_; - /** - * optional .signalservice.SyncMessage.Sent sent = 1; - */ - public boolean hasSent() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.SyncMessage.Sent sent = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent getSent() { - return sent_; - } - /** - * optional .signalservice.SyncMessage.Sent sent = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder getSentOrBuilder() { - return sent_; - } - - // optional .signalservice.SyncMessage.Contacts contacts = 2; - public static final int CONTACTS_FIELD_NUMBER = 2; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts contacts_; - /** - * optional .signalservice.SyncMessage.Contacts contacts = 2; - */ - public boolean hasContacts() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .signalservice.SyncMessage.Contacts contacts = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts getContacts() { - return contacts_; - } - /** - * optional .signalservice.SyncMessage.Contacts contacts = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder getContactsOrBuilder() { - return contacts_; - } - - // optional .signalservice.SyncMessage.Groups groups = 3; - public static final int GROUPS_FIELD_NUMBER = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups groups_; - /** - * optional .signalservice.SyncMessage.Groups groups = 3; - */ - public boolean hasGroups() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .signalservice.SyncMessage.Groups groups = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups getGroups() { - return groups_; - } - /** - * optional .signalservice.SyncMessage.Groups groups = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder getGroupsOrBuilder() { - return groups_; - } - - // optional .signalservice.SyncMessage.Request request = 4; - public static final int REQUEST_FIELD_NUMBER = 4; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request request_; - /** - * optional .signalservice.SyncMessage.Request request = 4; - */ - public boolean hasRequest() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .signalservice.SyncMessage.Request request = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request getRequest() { - return request_; - } - /** - * optional .signalservice.SyncMessage.Request request = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.RequestOrBuilder getRequestOrBuilder() { - return request_; - } - - // repeated .signalservice.SyncMessage.Read read = 5; - public static final int READ_FIELD_NUMBER = 5; - private java.util.List read_; - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public java.util.List getReadList() { - return read_; - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public java.util.List - getReadOrBuilderList() { - return read_; - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public int getReadCount() { - return read_.size(); - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read getRead(int index) { - return read_.get(index); - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder getReadOrBuilder( - int index) { - return read_.get(index); - } - - // optional .signalservice.SyncMessage.Blocked blocked = 6; - public static final int BLOCKED_FIELD_NUMBER = 6; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked blocked_; - /** - * optional .signalservice.SyncMessage.Blocked blocked = 6; - */ - public boolean hasBlocked() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional .signalservice.SyncMessage.Blocked blocked = 6; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked getBlocked() { - return blocked_; - } - /** - * optional .signalservice.SyncMessage.Blocked blocked = 6; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder getBlockedOrBuilder() { - return blocked_; - } - - // optional .signalservice.Verified verified = 7; - public static final int VERIFIED_FIELD_NUMBER = 7; - private org.session.libsignal.service.internal.push.SignalServiceProtos.Verified verified_; - /** - * optional .signalservice.Verified verified = 7; - */ - public boolean hasVerified() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional .signalservice.Verified verified = 7; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified getVerified() { - return verified_; - } - /** - * optional .signalservice.Verified verified = 7; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder getVerifiedOrBuilder() { - return verified_; - } - - // optional .signalservice.SyncMessage.Configuration configuration = 9; - public static final int CONFIGURATION_FIELD_NUMBER = 9; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration configuration_; - /** - * optional .signalservice.SyncMessage.Configuration configuration = 9; - */ - public boolean hasConfiguration() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional .signalservice.SyncMessage.Configuration configuration = 9; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration getConfiguration() { - return configuration_; - } - /** - * optional .signalservice.SyncMessage.Configuration configuration = 9; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ConfigurationOrBuilder getConfigurationOrBuilder() { - return configuration_; - } - - // optional bytes padding = 8; - public static final int PADDING_FIELD_NUMBER = 8; - private com.google.protobuf.ByteString padding_; - /** - * optional bytes padding = 8; - */ - public boolean hasPadding() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional bytes padding = 8; - */ - public com.google.protobuf.ByteString getPadding() { - return padding_; - } - - // repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - public static final int STICKERPACKOPERATION_FIELD_NUMBER = 10; - private java.util.List stickerPackOperation_; - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public java.util.List getStickerPackOperationList() { - return stickerPackOperation_; - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public java.util.List - getStickerPackOperationOrBuilderList() { - return stickerPackOperation_; - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public int getStickerPackOperationCount() { - return stickerPackOperation_.size(); - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation getStickerPackOperation(int index) { - return stickerPackOperation_.get(index); - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperationOrBuilder getStickerPackOperationOrBuilder( - int index) { - return stickerPackOperation_.get(index); - } - - // repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - public static final int OPENGROUPS_FIELD_NUMBER = 100; - private java.util.List openGroups_; - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public java.util.List getOpenGroupsList() { - return openGroups_; - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public java.util.List - getOpenGroupsOrBuilderList() { - return openGroups_; - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public int getOpenGroupsCount() { - return openGroups_.size(); - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails getOpenGroups(int index) { - return openGroups_.get(index); - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetailsOrBuilder getOpenGroupsOrBuilder( - int index) { - return openGroups_.get(index); - } - - private void initFields() { - sent_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance(); - contacts_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance(); - groups_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance(); - request_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance(); - read_ = java.util.Collections.emptyList(); - blocked_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance(); - verified_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); - configuration_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance(); - padding_ = com.google.protobuf.ByteString.EMPTY; - stickerPackOperation_ = java.util.Collections.emptyList(); - openGroups_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (hasSent()) { - if (!getSent().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, sent_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, contacts_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, groups_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, request_); - } - for (int i = 0; i < read_.size(); i++) { - output.writeMessage(5, read_.get(i)); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(6, blocked_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(7, verified_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(8, padding_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(9, configuration_); - } - for (int i = 0; i < stickerPackOperation_.size(); i++) { - output.writeMessage(10, stickerPackOperation_.get(i)); - } - for (int i = 0; i < openGroups_.size(); i++) { - output.writeMessage(100, openGroups_.get(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, sent_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, contacts_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, groups_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, request_); - } - for (int i = 0; i < read_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, read_.get(i)); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, blocked_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, verified_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, padding_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, configuration_); - } - for (int i = 0; i < stickerPackOperation_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, stickerPackOperation_.get(i)); - } - for (int i = 0; i < openGroups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, openGroups_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage 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.service.internal.push.SignalServiceProtos.SyncMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.SyncMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getSentFieldBuilder(); - getContactsFieldBuilder(); - getGroupsFieldBuilder(); - getRequestFieldBuilder(); - getReadFieldBuilder(); - getBlockedFieldBuilder(); - getVerifiedFieldBuilder(); - getConfigurationFieldBuilder(); - getStickerPackOperationFieldBuilder(); - getOpenGroupsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (sentBuilder_ == null) { - sent_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance(); - } else { - sentBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (contactsBuilder_ == null) { - contacts_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance(); - } else { - contactsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (groupsBuilder_ == null) { - groups_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance(); - } else { - groupsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (requestBuilder_ == null) { - request_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance(); - } else { - requestBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - if (readBuilder_ == null) { - read_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - readBuilder_.clear(); - } - if (blockedBuilder_ == null) { - blocked_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance(); - } else { - blockedBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - if (verifiedBuilder_ == null) { - verified_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); - } else { - verifiedBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - if (configurationBuilder_ == null) { - configuration_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance(); - } else { - configurationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - padding_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000100); - if (stickerPackOperationBuilder_ == null) { - stickerPackOperation_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - } else { - stickerPackOperationBuilder_.clear(); - } - if (openGroupsBuilder_ == null) { - openGroups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - } else { - openGroupsBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (sentBuilder_ == null) { - result.sent_ = sent_; - } else { - result.sent_ = sentBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (contactsBuilder_ == null) { - result.contacts_ = contacts_; - } else { - result.contacts_ = contactsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (groupsBuilder_ == null) { - result.groups_ = groups_; - } else { - result.groups_ = groupsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - if (requestBuilder_ == null) { - result.request_ = request_; - } else { - result.request_ = requestBuilder_.build(); - } - if (readBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010)) { - read_ = java.util.Collections.unmodifiableList(read_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.read_ = read_; - } else { - result.read_ = readBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000010; - } - if (blockedBuilder_ == null) { - result.blocked_ = blocked_; - } else { - result.blocked_ = blockedBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000020; - } - if (verifiedBuilder_ == null) { - result.verified_ = verified_; - } else { - result.verified_ = verifiedBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000040; - } - if (configurationBuilder_ == null) { - result.configuration_ = configuration_; - } else { - result.configuration_ = configurationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000080; - } - result.padding_ = padding_; - if (stickerPackOperationBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200)) { - stickerPackOperation_ = java.util.Collections.unmodifiableList(stickerPackOperation_); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.stickerPackOperation_ = stickerPackOperation_; - } else { - result.stickerPackOperation_ = stickerPackOperationBuilder_.build(); - } - if (openGroupsBuilder_ == null) { - if (((bitField0_ & 0x00000400) == 0x00000400)) { - openGroups_ = java.util.Collections.unmodifiableList(openGroups_); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.openGroups_ = openGroups_; - } else { - result.openGroups_ = openGroupsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance()) return this; - if (other.hasSent()) { - mergeSent(other.getSent()); - } - if (other.hasContacts()) { - mergeContacts(other.getContacts()); - } - if (other.hasGroups()) { - mergeGroups(other.getGroups()); - } - if (other.hasRequest()) { - mergeRequest(other.getRequest()); - } - if (readBuilder_ == null) { - if (!other.read_.isEmpty()) { - if (read_.isEmpty()) { - read_ = other.read_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureReadIsMutable(); - read_.addAll(other.read_); - } - onChanged(); - } - } else { - if (!other.read_.isEmpty()) { - if (readBuilder_.isEmpty()) { - readBuilder_.dispose(); - readBuilder_ = null; - read_ = other.read_; - bitField0_ = (bitField0_ & ~0x00000010); - readBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getReadFieldBuilder() : null; - } else { - readBuilder_.addAllMessages(other.read_); - } - } - } - if (other.hasBlocked()) { - mergeBlocked(other.getBlocked()); - } - if (other.hasVerified()) { - mergeVerified(other.getVerified()); - } - if (other.hasConfiguration()) { - mergeConfiguration(other.getConfiguration()); - } - if (other.hasPadding()) { - setPadding(other.getPadding()); - } - if (stickerPackOperationBuilder_ == null) { - if (!other.stickerPackOperation_.isEmpty()) { - if (stickerPackOperation_.isEmpty()) { - stickerPackOperation_ = other.stickerPackOperation_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensureStickerPackOperationIsMutable(); - stickerPackOperation_.addAll(other.stickerPackOperation_); - } - onChanged(); - } - } else { - if (!other.stickerPackOperation_.isEmpty()) { - if (stickerPackOperationBuilder_.isEmpty()) { - stickerPackOperationBuilder_.dispose(); - stickerPackOperationBuilder_ = null; - stickerPackOperation_ = other.stickerPackOperation_; - bitField0_ = (bitField0_ & ~0x00000200); - stickerPackOperationBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getStickerPackOperationFieldBuilder() : null; - } else { - stickerPackOperationBuilder_.addAllMessages(other.stickerPackOperation_); - } - } - } - if (openGroupsBuilder_ == null) { - if (!other.openGroups_.isEmpty()) { - if (openGroups_.isEmpty()) { - openGroups_ = other.openGroups_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensureOpenGroupsIsMutable(); - openGroups_.addAll(other.openGroups_); - } - onChanged(); - } - } else { - if (!other.openGroups_.isEmpty()) { - if (openGroupsBuilder_.isEmpty()) { - openGroupsBuilder_.dispose(); - openGroupsBuilder_ = null; - openGroups_ = other.openGroups_; - bitField0_ = (bitField0_ & ~0x00000400); - openGroupsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getOpenGroupsFieldBuilder() : null; - } else { - openGroupsBuilder_.addAllMessages(other.openGroups_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (hasSent()) { - if (!getSent().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional .signalservice.SyncMessage.Sent sent = 1; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent sent_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder> sentBuilder_; - /** - * optional .signalservice.SyncMessage.Sent sent = 1; - */ - public boolean hasSent() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .signalservice.SyncMessage.Sent sent = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent getSent() { - if (sentBuilder_ == null) { - return sent_; - } else { - return sentBuilder_.getMessage(); - } - } - /** - * optional .signalservice.SyncMessage.Sent sent = 1; - */ - public Builder setSent(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent value) { - if (sentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sent_ = value; - onChanged(); - } else { - sentBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.SyncMessage.Sent sent = 1; - */ - public Builder setSent( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder builderForValue) { - if (sentBuilder_ == null) { - sent_ = builderForValue.build(); - onChanged(); - } else { - sentBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.SyncMessage.Sent sent = 1; - */ - public Builder mergeSent(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent value) { - if (sentBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - sent_ != org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance()) { - sent_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.newBuilder(sent_).mergeFrom(value).buildPartial(); - } else { - sent_ = value; - } - onChanged(); - } else { - sentBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .signalservice.SyncMessage.Sent sent = 1; - */ - public Builder clearSent() { - if (sentBuilder_ == null) { - sent_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance(); - onChanged(); - } else { - sentBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .signalservice.SyncMessage.Sent sent = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder getSentBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getSentFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.SyncMessage.Sent sent = 1; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder getSentOrBuilder() { - if (sentBuilder_ != null) { - return sentBuilder_.getMessageOrBuilder(); - } else { - return sent_; - } - } - /** - * optional .signalservice.SyncMessage.Sent sent = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder> - getSentFieldBuilder() { - if (sentBuilder_ == null) { - sentBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder>( - sent_, - getParentForChildren(), - isClean()); - sent_ = null; - } - return sentBuilder_; - } - - // optional .signalservice.SyncMessage.Contacts contacts = 2; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts contacts_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder> contactsBuilder_; - /** - * optional .signalservice.SyncMessage.Contacts contacts = 2; - */ - public boolean hasContacts() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .signalservice.SyncMessage.Contacts contacts = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts getContacts() { - if (contactsBuilder_ == null) { - return contacts_; - } else { - return contactsBuilder_.getMessage(); - } - } - /** - * optional .signalservice.SyncMessage.Contacts contacts = 2; - */ - public Builder setContacts(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts value) { - if (contactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - contacts_ = value; - onChanged(); - } else { - contactsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .signalservice.SyncMessage.Contacts contacts = 2; - */ - public Builder setContacts( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder builderForValue) { - if (contactsBuilder_ == null) { - contacts_ = builderForValue.build(); - onChanged(); - } else { - contactsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .signalservice.SyncMessage.Contacts contacts = 2; - */ - public Builder mergeContacts(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts value) { - if (contactsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - contacts_ != org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance()) { - contacts_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.newBuilder(contacts_).mergeFrom(value).buildPartial(); - } else { - contacts_ = value; - } - onChanged(); - } else { - contactsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .signalservice.SyncMessage.Contacts contacts = 2; - */ - public Builder clearContacts() { - if (contactsBuilder_ == null) { - contacts_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance(); - onChanged(); - } else { - contactsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - * optional .signalservice.SyncMessage.Contacts contacts = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder getContactsBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getContactsFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.SyncMessage.Contacts contacts = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder getContactsOrBuilder() { - if (contactsBuilder_ != null) { - return contactsBuilder_.getMessageOrBuilder(); - } else { - return contacts_; - } - } - /** - * optional .signalservice.SyncMessage.Contacts contacts = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder> - getContactsFieldBuilder() { - if (contactsBuilder_ == null) { - contactsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder>( - contacts_, - getParentForChildren(), - isClean()); - contacts_ = null; - } - return contactsBuilder_; - } - - // optional .signalservice.SyncMessage.Groups groups = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups groups_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder> groupsBuilder_; - /** - * optional .signalservice.SyncMessage.Groups groups = 3; - */ - public boolean hasGroups() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .signalservice.SyncMessage.Groups groups = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups getGroups() { - if (groupsBuilder_ == null) { - return groups_; - } else { - return groupsBuilder_.getMessage(); - } - } - /** - * optional .signalservice.SyncMessage.Groups groups = 3; - */ - public Builder setGroups(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups value) { - if (groupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - groups_ = value; - onChanged(); - } else { - groupsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.SyncMessage.Groups groups = 3; - */ - public Builder setGroups( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder builderForValue) { - if (groupsBuilder_ == null) { - groups_ = builderForValue.build(); - onChanged(); - } else { - groupsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.SyncMessage.Groups groups = 3; - */ - public Builder mergeGroups(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups value) { - if (groupsBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - groups_ != org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance()) { - groups_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.newBuilder(groups_).mergeFrom(value).buildPartial(); - } else { - groups_ = value; - } - onChanged(); - } else { - groupsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.SyncMessage.Groups groups = 3; - */ - public Builder clearGroups() { - if (groupsBuilder_ == null) { - groups_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance(); - onChanged(); - } else { - groupsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - /** - * optional .signalservice.SyncMessage.Groups groups = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder getGroupsBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getGroupsFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.SyncMessage.Groups groups = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder getGroupsOrBuilder() { - if (groupsBuilder_ != null) { - return groupsBuilder_.getMessageOrBuilder(); - } else { - return groups_; - } - } - /** - * optional .signalservice.SyncMessage.Groups groups = 3; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder> - getGroupsFieldBuilder() { - if (groupsBuilder_ == null) { - groupsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder>( - groups_, - getParentForChildren(), - isClean()); - groups_ = null; - } - return groupsBuilder_; - } - - // optional .signalservice.SyncMessage.Request request = 4; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request request_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.RequestOrBuilder> requestBuilder_; - /** - * optional .signalservice.SyncMessage.Request request = 4; - */ - public boolean hasRequest() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .signalservice.SyncMessage.Request request = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request getRequest() { - if (requestBuilder_ == null) { - return request_; - } else { - return requestBuilder_.getMessage(); - } - } - /** - * optional .signalservice.SyncMessage.Request request = 4; - */ - public Builder setRequest(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request value) { - if (requestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - request_ = value; - onChanged(); - } else { - requestBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.SyncMessage.Request request = 4; - */ - public Builder setRequest( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Builder builderForValue) { - if (requestBuilder_ == null) { - request_ = builderForValue.build(); - onChanged(); - } else { - requestBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.SyncMessage.Request request = 4; - */ - public Builder mergeRequest(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request value) { - if (requestBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - request_ != org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance()) { - request_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.newBuilder(request_).mergeFrom(value).buildPartial(); - } else { - request_ = value; - } - onChanged(); - } else { - requestBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.SyncMessage.Request request = 4; - */ - public Builder clearRequest() { - if (requestBuilder_ == null) { - request_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance(); - onChanged(); - } else { - requestBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - /** - * optional .signalservice.SyncMessage.Request request = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Builder getRequestBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getRequestFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.SyncMessage.Request request = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.RequestOrBuilder getRequestOrBuilder() { - if (requestBuilder_ != null) { - return requestBuilder_.getMessageOrBuilder(); - } else { - return request_; - } - } - /** - * optional .signalservice.SyncMessage.Request request = 4; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.RequestOrBuilder> - getRequestFieldBuilder() { - if (requestBuilder_ == null) { - requestBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.RequestOrBuilder>( - request_, - getParentForChildren(), - isClean()); - request_ = null; - } - return requestBuilder_; - } - - // repeated .signalservice.SyncMessage.Read read = 5; - private java.util.List read_ = - java.util.Collections.emptyList(); - private void ensureReadIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - read_ = new java.util.ArrayList(read_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder> readBuilder_; - - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public java.util.List getReadList() { - if (readBuilder_ == null) { - return java.util.Collections.unmodifiableList(read_); - } else { - return readBuilder_.getMessageList(); - } - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public int getReadCount() { - if (readBuilder_ == null) { - return read_.size(); - } else { - return readBuilder_.getCount(); - } - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read getRead(int index) { - if (readBuilder_ == null) { - return read_.get(index); - } else { - return readBuilder_.getMessage(index); - } - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public Builder setRead( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read value) { - if (readBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReadIsMutable(); - read_.set(index, value); - onChanged(); - } else { - readBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public Builder setRead( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder builderForValue) { - if (readBuilder_ == null) { - ensureReadIsMutable(); - read_.set(index, builderForValue.build()); - onChanged(); - } else { - readBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public Builder addRead(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read value) { - if (readBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReadIsMutable(); - read_.add(value); - onChanged(); - } else { - readBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public Builder addRead( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read value) { - if (readBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReadIsMutable(); - read_.add(index, value); - onChanged(); - } else { - readBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public Builder addRead( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder builderForValue) { - if (readBuilder_ == null) { - ensureReadIsMutable(); - read_.add(builderForValue.build()); - onChanged(); - } else { - readBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public Builder addRead( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder builderForValue) { - if (readBuilder_ == null) { - ensureReadIsMutable(); - read_.add(index, builderForValue.build()); - onChanged(); - } else { - readBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public Builder addAllRead( - java.lang.Iterable values) { - if (readBuilder_ == null) { - ensureReadIsMutable(); - super.addAll(values, read_); - onChanged(); - } else { - readBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public Builder clearRead() { - if (readBuilder_ == null) { - read_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - readBuilder_.clear(); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public Builder removeRead(int index) { - if (readBuilder_ == null) { - ensureReadIsMutable(); - read_.remove(index); - onChanged(); - } else { - readBuilder_.remove(index); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder getReadBuilder( - int index) { - return getReadFieldBuilder().getBuilder(index); - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder getReadOrBuilder( - int index) { - if (readBuilder_ == null) { - return read_.get(index); } else { - return readBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public java.util.List - getReadOrBuilderList() { - if (readBuilder_ != null) { - return readBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(read_); - } - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder addReadBuilder() { - return getReadFieldBuilder().addBuilder( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.getDefaultInstance()); - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder addReadBuilder( - int index) { - return getReadFieldBuilder().addBuilder( - index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.getDefaultInstance()); - } - /** - * repeated .signalservice.SyncMessage.Read read = 5; - */ - public java.util.List - getReadBuilderList() { - return getReadFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder> - getReadFieldBuilder() { - if (readBuilder_ == null) { - readBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder>( - read_, - ((bitField0_ & 0x00000010) == 0x00000010), - getParentForChildren(), - isClean()); - read_ = null; - } - return readBuilder_; - } - - // optional .signalservice.SyncMessage.Blocked blocked = 6; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked blocked_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder> blockedBuilder_; - /** - * optional .signalservice.SyncMessage.Blocked blocked = 6; - */ - public boolean hasBlocked() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional .signalservice.SyncMessage.Blocked blocked = 6; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked getBlocked() { - if (blockedBuilder_ == null) { - return blocked_; - } else { - return blockedBuilder_.getMessage(); - } - } - /** - * optional .signalservice.SyncMessage.Blocked blocked = 6; - */ - public Builder setBlocked(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked value) { - if (blockedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - blocked_ = value; - onChanged(); - } else { - blockedBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - return this; - } - /** - * optional .signalservice.SyncMessage.Blocked blocked = 6; - */ - public Builder setBlocked( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder builderForValue) { - if (blockedBuilder_ == null) { - blocked_ = builderForValue.build(); - onChanged(); - } else { - blockedBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - return this; - } - /** - * optional .signalservice.SyncMessage.Blocked blocked = 6; - */ - public Builder mergeBlocked(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked value) { - if (blockedBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - blocked_ != org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance()) { - blocked_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.newBuilder(blocked_).mergeFrom(value).buildPartial(); - } else { - blocked_ = value; - } - onChanged(); - } else { - blockedBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - return this; - } - /** - * optional .signalservice.SyncMessage.Blocked blocked = 6; - */ - public Builder clearBlocked() { - if (blockedBuilder_ == null) { - blocked_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance(); - onChanged(); - } else { - blockedBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - /** - * optional .signalservice.SyncMessage.Blocked blocked = 6; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder getBlockedBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getBlockedFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.SyncMessage.Blocked blocked = 6; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder getBlockedOrBuilder() { - if (blockedBuilder_ != null) { - return blockedBuilder_.getMessageOrBuilder(); - } else { - return blocked_; - } - } - /** - * optional .signalservice.SyncMessage.Blocked blocked = 6; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder> - getBlockedFieldBuilder() { - if (blockedBuilder_ == null) { - blockedBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder>( - blocked_, - getParentForChildren(), - isClean()); - blocked_ = null; - } - return blockedBuilder_; - } - - // optional .signalservice.Verified verified = 7; - private org.session.libsignal.service.internal.push.SignalServiceProtos.Verified verified_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified, org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder> verifiedBuilder_; - /** - * optional .signalservice.Verified verified = 7; - */ - public boolean hasVerified() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional .signalservice.Verified verified = 7; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified getVerified() { - if (verifiedBuilder_ == null) { - return verified_; - } else { - return verifiedBuilder_.getMessage(); - } - } - /** - * optional .signalservice.Verified verified = 7; - */ - public Builder setVerified(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified value) { - if (verifiedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - verified_ = value; - onChanged(); - } else { - verifiedBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - return this; - } - /** - * optional .signalservice.Verified verified = 7; - */ - public Builder setVerified( - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder builderForValue) { - if (verifiedBuilder_ == null) { - verified_ = builderForValue.build(); - onChanged(); - } else { - verifiedBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - return this; - } - /** - * optional .signalservice.Verified verified = 7; - */ - public Builder mergeVerified(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified value) { - if (verifiedBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - verified_ != org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance()) { - verified_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.newBuilder(verified_).mergeFrom(value).buildPartial(); - } else { - verified_ = value; - } - onChanged(); - } else { - verifiedBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - return this; - } - /** - * optional .signalservice.Verified verified = 7; - */ - public Builder clearVerified() { - if (verifiedBuilder_ == null) { - verified_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); - onChanged(); - } else { - verifiedBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - /** - * optional .signalservice.Verified verified = 7; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder getVerifiedBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getVerifiedFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.Verified verified = 7; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder getVerifiedOrBuilder() { - if (verifiedBuilder_ != null) { - return verifiedBuilder_.getMessageOrBuilder(); - } else { - return verified_; - } - } - /** - * optional .signalservice.Verified verified = 7; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified, org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder> - getVerifiedFieldBuilder() { - if (verifiedBuilder_ == null) { - verifiedBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified, org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder>( - verified_, - getParentForChildren(), - isClean()); - verified_ = null; - } - return verifiedBuilder_; - } - - // optional .signalservice.SyncMessage.Configuration configuration = 9; - private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration configuration_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ConfigurationOrBuilder> configurationBuilder_; - /** - * optional .signalservice.SyncMessage.Configuration configuration = 9; - */ - public boolean hasConfiguration() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional .signalservice.SyncMessage.Configuration configuration = 9; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration getConfiguration() { - if (configurationBuilder_ == null) { - return configuration_; - } else { - return configurationBuilder_.getMessage(); - } - } - /** - * optional .signalservice.SyncMessage.Configuration configuration = 9; - */ - public Builder setConfiguration(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration value) { - if (configurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - configuration_ = value; - onChanged(); - } else { - configurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .signalservice.SyncMessage.Configuration configuration = 9; - */ - public Builder setConfiguration( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder builderForValue) { - if (configurationBuilder_ == null) { - configuration_ = builderForValue.build(); - onChanged(); - } else { - configurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .signalservice.SyncMessage.Configuration configuration = 9; - */ - public Builder mergeConfiguration(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration value) { - if (configurationBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - configuration_ != org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance()) { - configuration_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.newBuilder(configuration_).mergeFrom(value).buildPartial(); - } else { - configuration_ = value; - } - onChanged(); - } else { - configurationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .signalservice.SyncMessage.Configuration configuration = 9; - */ - public Builder clearConfiguration() { - if (configurationBuilder_ == null) { - configuration_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance(); - onChanged(); - } else { - configurationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - /** - * optional .signalservice.SyncMessage.Configuration configuration = 9; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder getConfigurationBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getConfigurationFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.SyncMessage.Configuration configuration = 9; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ConfigurationOrBuilder getConfigurationOrBuilder() { - if (configurationBuilder_ != null) { - return configurationBuilder_.getMessageOrBuilder(); - } else { - return configuration_; - } - } - /** - * optional .signalservice.SyncMessage.Configuration configuration = 9; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ConfigurationOrBuilder> - getConfigurationFieldBuilder() { - if (configurationBuilder_ == null) { - configurationBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ConfigurationOrBuilder>( - configuration_, - getParentForChildren(), - isClean()); - configuration_ = null; - } - return configurationBuilder_; - } - - // optional bytes padding = 8; - private com.google.protobuf.ByteString padding_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes padding = 8; - */ - public boolean hasPadding() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional bytes padding = 8; - */ - public com.google.protobuf.ByteString getPadding() { - return padding_; - } - /** - * optional bytes padding = 8; - */ - public Builder setPadding(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - padding_ = value; - onChanged(); - return this; - } - /** - * optional bytes padding = 8; - */ - public Builder clearPadding() { - bitField0_ = (bitField0_ & ~0x00000100); - padding_ = getDefaultInstance().getPadding(); - onChanged(); - return this; - } - - // repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - private java.util.List stickerPackOperation_ = - java.util.Collections.emptyList(); - private void ensureStickerPackOperationIsMutable() { - if (!((bitField0_ & 0x00000200) == 0x00000200)) { - stickerPackOperation_ = new java.util.ArrayList(stickerPackOperation_); - bitField0_ |= 0x00000200; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperationOrBuilder> stickerPackOperationBuilder_; - - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public java.util.List getStickerPackOperationList() { - if (stickerPackOperationBuilder_ == null) { - return java.util.Collections.unmodifiableList(stickerPackOperation_); - } else { - return stickerPackOperationBuilder_.getMessageList(); - } - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public int getStickerPackOperationCount() { - if (stickerPackOperationBuilder_ == null) { - return stickerPackOperation_.size(); - } else { - return stickerPackOperationBuilder_.getCount(); - } - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation getStickerPackOperation(int index) { - if (stickerPackOperationBuilder_ == null) { - return stickerPackOperation_.get(index); - } else { - return stickerPackOperationBuilder_.getMessage(index); - } - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public Builder setStickerPackOperation( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation value) { - if (stickerPackOperationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStickerPackOperationIsMutable(); - stickerPackOperation_.set(index, value); - onChanged(); - } else { - stickerPackOperationBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public Builder setStickerPackOperation( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder builderForValue) { - if (stickerPackOperationBuilder_ == null) { - ensureStickerPackOperationIsMutable(); - stickerPackOperation_.set(index, builderForValue.build()); - onChanged(); - } else { - stickerPackOperationBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public Builder addStickerPackOperation(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation value) { - if (stickerPackOperationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStickerPackOperationIsMutable(); - stickerPackOperation_.add(value); - onChanged(); - } else { - stickerPackOperationBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public Builder addStickerPackOperation( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation value) { - if (stickerPackOperationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStickerPackOperationIsMutable(); - stickerPackOperation_.add(index, value); - onChanged(); - } else { - stickerPackOperationBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public Builder addStickerPackOperation( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder builderForValue) { - if (stickerPackOperationBuilder_ == null) { - ensureStickerPackOperationIsMutable(); - stickerPackOperation_.add(builderForValue.build()); - onChanged(); - } else { - stickerPackOperationBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public Builder addStickerPackOperation( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder builderForValue) { - if (stickerPackOperationBuilder_ == null) { - ensureStickerPackOperationIsMutable(); - stickerPackOperation_.add(index, builderForValue.build()); - onChanged(); - } else { - stickerPackOperationBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public Builder addAllStickerPackOperation( - java.lang.Iterable values) { - if (stickerPackOperationBuilder_ == null) { - ensureStickerPackOperationIsMutable(); - super.addAll(values, stickerPackOperation_); - onChanged(); - } else { - stickerPackOperationBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public Builder clearStickerPackOperation() { - if (stickerPackOperationBuilder_ == null) { - stickerPackOperation_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - } else { - stickerPackOperationBuilder_.clear(); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public Builder removeStickerPackOperation(int index) { - if (stickerPackOperationBuilder_ == null) { - ensureStickerPackOperationIsMutable(); - stickerPackOperation_.remove(index); - onChanged(); - } else { - stickerPackOperationBuilder_.remove(index); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder getStickerPackOperationBuilder( - int index) { - return getStickerPackOperationFieldBuilder().getBuilder(index); - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperationOrBuilder getStickerPackOperationOrBuilder( - int index) { - if (stickerPackOperationBuilder_ == null) { - return stickerPackOperation_.get(index); } else { - return stickerPackOperationBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public java.util.List - getStickerPackOperationOrBuilderList() { - if (stickerPackOperationBuilder_ != null) { - return stickerPackOperationBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(stickerPackOperation_); - } - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder addStickerPackOperationBuilder() { - return getStickerPackOperationFieldBuilder().addBuilder( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.getDefaultInstance()); - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder addStickerPackOperationBuilder( - int index) { - return getStickerPackOperationFieldBuilder().addBuilder( - index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.getDefaultInstance()); - } - /** - * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; - */ - public java.util.List - getStickerPackOperationBuilderList() { - return getStickerPackOperationFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperationOrBuilder> - getStickerPackOperationFieldBuilder() { - if (stickerPackOperationBuilder_ == null) { - stickerPackOperationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperationOrBuilder>( - stickerPackOperation_, - ((bitField0_ & 0x00000200) == 0x00000200), - getParentForChildren(), - isClean()); - stickerPackOperation_ = null; - } - return stickerPackOperationBuilder_; - } - - // repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - private java.util.List openGroups_ = - java.util.Collections.emptyList(); - private void ensureOpenGroupsIsMutable() { - if (!((bitField0_ & 0x00000400) == 0x00000400)) { - openGroups_ = new java.util.ArrayList(openGroups_); - bitField0_ |= 0x00000400; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetailsOrBuilder> openGroupsBuilder_; - - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public java.util.List getOpenGroupsList() { - if (openGroupsBuilder_ == null) { - return java.util.Collections.unmodifiableList(openGroups_); - } else { - return openGroupsBuilder_.getMessageList(); - } - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public int getOpenGroupsCount() { - if (openGroupsBuilder_ == null) { - return openGroups_.size(); - } else { - return openGroupsBuilder_.getCount(); - } - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails getOpenGroups(int index) { - if (openGroupsBuilder_ == null) { - return openGroups_.get(index); - } else { - return openGroupsBuilder_.getMessage(index); - } - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public Builder setOpenGroups( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails value) { - if (openGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOpenGroupsIsMutable(); - openGroups_.set(index, value); - onChanged(); - } else { - openGroupsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public Builder setOpenGroups( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder builderForValue) { - if (openGroupsBuilder_ == null) { - ensureOpenGroupsIsMutable(); - openGroups_.set(index, builderForValue.build()); - onChanged(); - } else { - openGroupsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public Builder addOpenGroups(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails value) { - if (openGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOpenGroupsIsMutable(); - openGroups_.add(value); - onChanged(); - } else { - openGroupsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public Builder addOpenGroups( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails value) { - if (openGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOpenGroupsIsMutable(); - openGroups_.add(index, value); - onChanged(); - } else { - openGroupsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public Builder addOpenGroups( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder builderForValue) { - if (openGroupsBuilder_ == null) { - ensureOpenGroupsIsMutable(); - openGroups_.add(builderForValue.build()); - onChanged(); - } else { - openGroupsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public Builder addOpenGroups( - int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder builderForValue) { - if (openGroupsBuilder_ == null) { - ensureOpenGroupsIsMutable(); - openGroups_.add(index, builderForValue.build()); - onChanged(); - } else { - openGroupsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public Builder addAllOpenGroups( - java.lang.Iterable values) { - if (openGroupsBuilder_ == null) { - ensureOpenGroupsIsMutable(); - super.addAll(values, openGroups_); - onChanged(); - } else { - openGroupsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public Builder clearOpenGroups() { - if (openGroupsBuilder_ == null) { - openGroups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - } else { - openGroupsBuilder_.clear(); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public Builder removeOpenGroups(int index) { - if (openGroupsBuilder_ == null) { - ensureOpenGroupsIsMutable(); - openGroups_.remove(index); - onChanged(); - } else { - openGroupsBuilder_.remove(index); - } - return this; - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder getOpenGroupsBuilder( - int index) { - return getOpenGroupsFieldBuilder().getBuilder(index); - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetailsOrBuilder getOpenGroupsOrBuilder( - int index) { - if (openGroupsBuilder_ == null) { - return openGroups_.get(index); } else { - return openGroupsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public java.util.List - getOpenGroupsOrBuilderList() { - if (openGroupsBuilder_ != null) { - return openGroupsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(openGroups_); - } - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder addOpenGroupsBuilder() { - return getOpenGroupsFieldBuilder().addBuilder( - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.getDefaultInstance()); - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder addOpenGroupsBuilder( - int index) { - return getOpenGroupsFieldBuilder().addBuilder( - index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.getDefaultInstance()); - } - /** - * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; - */ - public java.util.List - getOpenGroupsBuilderList() { - return getOpenGroupsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetailsOrBuilder> - getOpenGroupsFieldBuilder() { - if (openGroupsBuilder_ == null) { - openGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetailsOrBuilder>( - openGroups_, - ((bitField0_ & 0x00000400) == 0x00000400), - getParentForChildren(), - isClean()); - openGroups_ = null; - } - return openGroupsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage) - } - - static { - defaultInstance = new SyncMessage(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.SyncMessage) + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.class, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getSentFieldBuilder(); + getContactsFieldBuilder(); + getGroupsFieldBuilder(); + getRequestFieldBuilder(); + getReadFieldBuilder(); + getBlockedFieldBuilder(); + getVerifiedFieldBuilder(); + getConfigurationFieldBuilder(); + getStickerPackOperationFieldBuilder(); + getOpenGroupsFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (sentBuilder_ == null) { + sent_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance(); + } else { + sentBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (contactsBuilder_ == null) { + contacts_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance(); + } else { + contactsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (groupsBuilder_ == null) { + groups_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance(); + } else { + groupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (requestBuilder_ == null) { + request_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance(); + } else { + requestBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (readBuilder_ == null) { + read_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + readBuilder_.clear(); + } + if (blockedBuilder_ == null) { + blocked_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance(); + } else { + blockedBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (verifiedBuilder_ == null) { + verified_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); + } else { + verifiedBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (configurationBuilder_ == null) { + configuration_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance(); + } else { + configurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + padding_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000100); + if (stickerPackOperationBuilder_ == null) { + stickerPackOperation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + } else { + stickerPackOperationBuilder_.clear(); + } + if (openGroupsBuilder_ == null) { + openGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + } else { + openGroupsBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage result = new org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (sentBuilder_ == null) { + result.sent_ = sent_; + } else { + result.sent_ = sentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (contactsBuilder_ == null) { + result.contacts_ = contacts_; + } else { + result.contacts_ = contactsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (groupsBuilder_ == null) { + result.groups_ = groups_; + } else { + result.groups_ = groupsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + if (readBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + read_ = java.util.Collections.unmodifiableList(read_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.read_ = read_; + } else { + result.read_ = readBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + if (blockedBuilder_ == null) { + result.blocked_ = blocked_; + } else { + result.blocked_ = blockedBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000020; + } + if (verifiedBuilder_ == null) { + result.verified_ = verified_; + } else { + result.verified_ = verifiedBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000040; + } + if (configurationBuilder_ == null) { + result.configuration_ = configuration_; + } else { + result.configuration_ = configurationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000080; + } + result.padding_ = padding_; + if (stickerPackOperationBuilder_ == null) { + if (((bitField0_ & 0x00000200) == 0x00000200)) { + stickerPackOperation_ = java.util.Collections.unmodifiableList(stickerPackOperation_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.stickerPackOperation_ = stickerPackOperation_; + } else { + result.stickerPackOperation_ = stickerPackOperationBuilder_.build(); + } + if (openGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000400) == 0x00000400)) { + openGroups_ = java.util.Collections.unmodifiableList(openGroups_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.openGroups_ = openGroups_; + } else { + result.openGroups_ = openGroupsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance()) return this; + if (other.hasSent()) { + mergeSent(other.getSent()); + } + if (other.hasContacts()) { + mergeContacts(other.getContacts()); + } + if (other.hasGroups()) { + mergeGroups(other.getGroups()); + } + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (readBuilder_ == null) { + if (!other.read_.isEmpty()) { + if (read_.isEmpty()) { + read_ = other.read_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureReadIsMutable(); + read_.addAll(other.read_); + } + onChanged(); + } + } else { + if (!other.read_.isEmpty()) { + if (readBuilder_.isEmpty()) { + readBuilder_.dispose(); + readBuilder_ = null; + read_ = other.read_; + bitField0_ = (bitField0_ & ~0x00000010); + readBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getReadFieldBuilder() : null; + } else { + readBuilder_.addAllMessages(other.read_); + } + } + } + if (other.hasBlocked()) { + mergeBlocked(other.getBlocked()); + } + if (other.hasVerified()) { + mergeVerified(other.getVerified()); + } + if (other.hasConfiguration()) { + mergeConfiguration(other.getConfiguration()); + } + if (other.hasPadding()) { + setPadding(other.getPadding()); + } + if (stickerPackOperationBuilder_ == null) { + if (!other.stickerPackOperation_.isEmpty()) { + if (stickerPackOperation_.isEmpty()) { + stickerPackOperation_ = other.stickerPackOperation_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureStickerPackOperationIsMutable(); + stickerPackOperation_.addAll(other.stickerPackOperation_); + } + onChanged(); + } + } else { + if (!other.stickerPackOperation_.isEmpty()) { + if (stickerPackOperationBuilder_.isEmpty()) { + stickerPackOperationBuilder_.dispose(); + stickerPackOperationBuilder_ = null; + stickerPackOperation_ = other.stickerPackOperation_; + bitField0_ = (bitField0_ & ~0x00000200); + stickerPackOperationBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getStickerPackOperationFieldBuilder() : null; + } else { + stickerPackOperationBuilder_.addAllMessages(other.stickerPackOperation_); + } + } + } + if (openGroupsBuilder_ == null) { + if (!other.openGroups_.isEmpty()) { + if (openGroups_.isEmpty()) { + openGroups_ = other.openGroups_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureOpenGroupsIsMutable(); + openGroups_.addAll(other.openGroups_); + } + onChanged(); + } + } else { + if (!other.openGroups_.isEmpty()) { + if (openGroupsBuilder_.isEmpty()) { + openGroupsBuilder_.dispose(); + openGroupsBuilder_ = null; + openGroups_ = other.openGroups_; + bitField0_ = (bitField0_ & ~0x00000400); + openGroupsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getOpenGroupsFieldBuilder() : null; + } else { + openGroupsBuilder_.addAllMessages(other.openGroups_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (hasSent()) { + if (!getSent().isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional .signalservice.SyncMessage.Sent sent = 1; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent sent_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder> sentBuilder_; + /** + * optional .signalservice.SyncMessage.Sent sent = 1; + */ + public boolean hasSent() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .signalservice.SyncMessage.Sent sent = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent getSent() { + if (sentBuilder_ == null) { + return sent_; + } else { + return sentBuilder_.getMessage(); + } + } + /** + * optional .signalservice.SyncMessage.Sent sent = 1; + */ + public Builder setSent(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent value) { + if (sentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sent_ = value; + onChanged(); + } else { + sentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.SyncMessage.Sent sent = 1; + */ + public Builder setSent( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder builderForValue) { + if (sentBuilder_ == null) { + sent_ = builderForValue.build(); + onChanged(); + } else { + sentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.SyncMessage.Sent sent = 1; + */ + public Builder mergeSent(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent value) { + if (sentBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + sent_ != org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance()) { + sent_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.newBuilder(sent_).mergeFrom(value).buildPartial(); + } else { + sent_ = value; + } + onChanged(); + } else { + sentBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .signalservice.SyncMessage.Sent sent = 1; + */ + public Builder clearSent() { + if (sentBuilder_ == null) { + sent_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance(); + onChanged(); + } else { + sentBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + * optional .signalservice.SyncMessage.Sent sent = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder getSentBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSentFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.SyncMessage.Sent sent = 1; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder getSentOrBuilder() { + if (sentBuilder_ != null) { + return sentBuilder_.getMessageOrBuilder(); + } else { + return sent_; + } + } + /** + * optional .signalservice.SyncMessage.Sent sent = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder> + getSentFieldBuilder() { + if (sentBuilder_ == null) { + sentBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder>( + sent_, + getParentForChildren(), + isClean()); + sent_ = null; + } + return sentBuilder_; + } + + // optional .signalservice.SyncMessage.Contacts contacts = 2; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts contacts_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder> contactsBuilder_; + /** + * optional .signalservice.SyncMessage.Contacts contacts = 2; + */ + public boolean hasContacts() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .signalservice.SyncMessage.Contacts contacts = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts getContacts() { + if (contactsBuilder_ == null) { + return contacts_; + } else { + return contactsBuilder_.getMessage(); + } + } + /** + * optional .signalservice.SyncMessage.Contacts contacts = 2; + */ + public Builder setContacts(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts value) { + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contacts_ = value; + onChanged(); + } else { + contactsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .signalservice.SyncMessage.Contacts contacts = 2; + */ + public Builder setContacts( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder builderForValue) { + if (contactsBuilder_ == null) { + contacts_ = builderForValue.build(); + onChanged(); + } else { + contactsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .signalservice.SyncMessage.Contacts contacts = 2; + */ + public Builder mergeContacts(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts value) { + if (contactsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + contacts_ != org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance()) { + contacts_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.newBuilder(contacts_).mergeFrom(value).buildPartial(); + } else { + contacts_ = value; + } + onChanged(); + } else { + contactsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .signalservice.SyncMessage.Contacts contacts = 2; + */ + public Builder clearContacts() { + if (contactsBuilder_ == null) { + contacts_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance(); + onChanged(); + } else { + contactsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + * optional .signalservice.SyncMessage.Contacts contacts = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder getContactsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getContactsFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.SyncMessage.Contacts contacts = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder getContactsOrBuilder() { + if (contactsBuilder_ != null) { + return contactsBuilder_.getMessageOrBuilder(); + } else { + return contacts_; + } + } + /** + * optional .signalservice.SyncMessage.Contacts contacts = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder> + getContactsFieldBuilder() { + if (contactsBuilder_ == null) { + contactsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder>( + contacts_, + getParentForChildren(), + isClean()); + contacts_ = null; + } + return contactsBuilder_; + } + + // optional .signalservice.SyncMessage.Groups groups = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups groups_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder> groupsBuilder_; + /** + * optional .signalservice.SyncMessage.Groups groups = 3; + */ + public boolean hasGroups() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.SyncMessage.Groups groups = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups getGroups() { + if (groupsBuilder_ == null) { + return groups_; + } else { + return groupsBuilder_.getMessage(); + } + } + /** + * optional .signalservice.SyncMessage.Groups groups = 3; + */ + public Builder setGroups(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups value) { + if (groupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + groups_ = value; + onChanged(); + } else { + groupsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.SyncMessage.Groups groups = 3; + */ + public Builder setGroups( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder builderForValue) { + if (groupsBuilder_ == null) { + groups_ = builderForValue.build(); + onChanged(); + } else { + groupsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.SyncMessage.Groups groups = 3; + */ + public Builder mergeGroups(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups value) { + if (groupsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + groups_ != org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance()) { + groups_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.newBuilder(groups_).mergeFrom(value).buildPartial(); + } else { + groups_ = value; + } + onChanged(); + } else { + groupsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.SyncMessage.Groups groups = 3; + */ + public Builder clearGroups() { + if (groupsBuilder_ == null) { + groups_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance(); + onChanged(); + } else { + groupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + * optional .signalservice.SyncMessage.Groups groups = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder getGroupsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getGroupsFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.SyncMessage.Groups groups = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder getGroupsOrBuilder() { + if (groupsBuilder_ != null) { + return groupsBuilder_.getMessageOrBuilder(); + } else { + return groups_; + } + } + /** + * optional .signalservice.SyncMessage.Groups groups = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder> + getGroupsFieldBuilder() { + if (groupsBuilder_ == null) { + groupsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder>( + groups_, + getParentForChildren(), + isClean()); + groups_ = null; + } + return groupsBuilder_; + } + + // optional .signalservice.SyncMessage.Request request = 4; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request request_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.RequestOrBuilder> requestBuilder_; + /** + * optional .signalservice.SyncMessage.Request request = 4; + */ + public boolean hasRequest() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .signalservice.SyncMessage.Request request = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request getRequest() { + if (requestBuilder_ == null) { + return request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * optional .signalservice.SyncMessage.Request request = 4; + */ + public Builder setRequest(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.SyncMessage.Request request = 4; + */ + public Builder setRequest( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.SyncMessage.Request request = 4; + */ + public Builder mergeRequest(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request value) { + if (requestBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + request_ != org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance()) { + request_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.SyncMessage.Request request = 4; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance(); + onChanged(); + } else { + requestBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + /** + * optional .signalservice.SyncMessage.Request request = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Builder getRequestBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.SyncMessage.Request request = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.RequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_; + } + } + /** + * optional .signalservice.SyncMessage.Request request = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.RequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Request.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.RequestOrBuilder>( + request_, + getParentForChildren(), + isClean()); + request_ = null; + } + return requestBuilder_; + } + + // repeated .signalservice.SyncMessage.Read read = 5; + private java.util.List read_ = + java.util.Collections.emptyList(); + private void ensureReadIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + read_ = new java.util.ArrayList(read_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder> readBuilder_; + + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public java.util.List getReadList() { + if (readBuilder_ == null) { + return java.util.Collections.unmodifiableList(read_); + } else { + return readBuilder_.getMessageList(); + } + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public int getReadCount() { + if (readBuilder_ == null) { + return read_.size(); + } else { + return readBuilder_.getCount(); + } + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read getRead(int index) { + if (readBuilder_ == null) { + return read_.get(index); + } else { + return readBuilder_.getMessage(index); + } + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public Builder setRead( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read value) { + if (readBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReadIsMutable(); + read_.set(index, value); + onChanged(); + } else { + readBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public Builder setRead( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder builderForValue) { + if (readBuilder_ == null) { + ensureReadIsMutable(); + read_.set(index, builderForValue.build()); + onChanged(); + } else { + readBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public Builder addRead(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read value) { + if (readBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReadIsMutable(); + read_.add(value); + onChanged(); + } else { + readBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public Builder addRead( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read value) { + if (readBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReadIsMutable(); + read_.add(index, value); + onChanged(); + } else { + readBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public Builder addRead( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder builderForValue) { + if (readBuilder_ == null) { + ensureReadIsMutable(); + read_.add(builderForValue.build()); + onChanged(); + } else { + readBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public Builder addRead( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder builderForValue) { + if (readBuilder_ == null) { + ensureReadIsMutable(); + read_.add(index, builderForValue.build()); + onChanged(); + } else { + readBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public Builder addAllRead( + java.lang.Iterable values) { + if (readBuilder_ == null) { + ensureReadIsMutable(); + super.addAll(values, read_); + onChanged(); + } else { + readBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public Builder clearRead() { + if (readBuilder_ == null) { + read_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + readBuilder_.clear(); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public Builder removeRead(int index) { + if (readBuilder_ == null) { + ensureReadIsMutable(); + read_.remove(index); + onChanged(); + } else { + readBuilder_.remove(index); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder getReadBuilder( + int index) { + return getReadFieldBuilder().getBuilder(index); + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder getReadOrBuilder( + int index) { + if (readBuilder_ == null) { + return read_.get(index); } else { + return readBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public java.util.List + getReadOrBuilderList() { + if (readBuilder_ != null) { + return readBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(read_); + } + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder addReadBuilder() { + return getReadFieldBuilder().addBuilder( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.getDefaultInstance()); + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder addReadBuilder( + int index) { + return getReadFieldBuilder().addBuilder( + index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.getDefaultInstance()); + } + /** + * repeated .signalservice.SyncMessage.Read read = 5; + */ + public java.util.List + getReadBuilderList() { + return getReadFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder> + getReadFieldBuilder() { + if (readBuilder_ == null) { + readBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Read.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder>( + read_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + read_ = null; + } + return readBuilder_; + } + + // optional .signalservice.SyncMessage.Blocked blocked = 6; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked blocked_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder> blockedBuilder_; + /** + * optional .signalservice.SyncMessage.Blocked blocked = 6; + */ + public boolean hasBlocked() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional .signalservice.SyncMessage.Blocked blocked = 6; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked getBlocked() { + if (blockedBuilder_ == null) { + return blocked_; + } else { + return blockedBuilder_.getMessage(); + } + } + /** + * optional .signalservice.SyncMessage.Blocked blocked = 6; + */ + public Builder setBlocked(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked value) { + if (blockedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blocked_ = value; + onChanged(); + } else { + blockedBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .signalservice.SyncMessage.Blocked blocked = 6; + */ + public Builder setBlocked( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder builderForValue) { + if (blockedBuilder_ == null) { + blocked_ = builderForValue.build(); + onChanged(); + } else { + blockedBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .signalservice.SyncMessage.Blocked blocked = 6; + */ + public Builder mergeBlocked(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked value) { + if (blockedBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020) && + blocked_ != org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance()) { + blocked_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.newBuilder(blocked_).mergeFrom(value).buildPartial(); + } else { + blocked_ = value; + } + onChanged(); + } else { + blockedBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + * optional .signalservice.SyncMessage.Blocked blocked = 6; + */ + public Builder clearBlocked() { + if (blockedBuilder_ == null) { + blocked_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance(); + onChanged(); + } else { + blockedBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + /** + * optional .signalservice.SyncMessage.Blocked blocked = 6; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder getBlockedBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getBlockedFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.SyncMessage.Blocked blocked = 6; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder getBlockedOrBuilder() { + if (blockedBuilder_ != null) { + return blockedBuilder_.getMessageOrBuilder(); + } else { + return blocked_; + } + } + /** + * optional .signalservice.SyncMessage.Blocked blocked = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder> + getBlockedFieldBuilder() { + if (blockedBuilder_ == null) { + blockedBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder>( + blocked_, + getParentForChildren(), + isClean()); + blocked_ = null; + } + return blockedBuilder_; + } + + // optional .signalservice.Verified verified = 7; + private org.session.libsignal.service.internal.push.SignalServiceProtos.Verified verified_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified, org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder> verifiedBuilder_; + /** + * optional .signalservice.Verified verified = 7; + */ + public boolean hasVerified() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional .signalservice.Verified verified = 7; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified getVerified() { + if (verifiedBuilder_ == null) { + return verified_; + } else { + return verifiedBuilder_.getMessage(); + } + } + /** + * optional .signalservice.Verified verified = 7; + */ + public Builder setVerified(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified value) { + if (verifiedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + verified_ = value; + onChanged(); + } else { + verifiedBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + return this; + } + /** + * optional .signalservice.Verified verified = 7; + */ + public Builder setVerified( + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder builderForValue) { + if (verifiedBuilder_ == null) { + verified_ = builderForValue.build(); + onChanged(); + } else { + verifiedBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + return this; + } + /** + * optional .signalservice.Verified verified = 7; + */ + public Builder mergeVerified(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified value) { + if (verifiedBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040) && + verified_ != org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance()) { + verified_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.newBuilder(verified_).mergeFrom(value).buildPartial(); + } else { + verified_ = value; + } + onChanged(); + } else { + verifiedBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + return this; + } + /** + * optional .signalservice.Verified verified = 7; + */ + public Builder clearVerified() { + if (verifiedBuilder_ == null) { + verified_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); + onChanged(); + } else { + verifiedBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + /** + * optional .signalservice.Verified verified = 7; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder getVerifiedBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getVerifiedFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.Verified verified = 7; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder getVerifiedOrBuilder() { + if (verifiedBuilder_ != null) { + return verifiedBuilder_.getMessageOrBuilder(); + } else { + return verified_; + } + } + /** + * optional .signalservice.Verified verified = 7; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified, org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder> + getVerifiedFieldBuilder() { + if (verifiedBuilder_ == null) { + verifiedBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified, org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder>( + verified_, + getParentForChildren(), + isClean()); + verified_ = null; + } + return verifiedBuilder_; + } + + // optional .signalservice.SyncMessage.Configuration configuration = 9; + private org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration configuration_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ConfigurationOrBuilder> configurationBuilder_; + /** + * optional .signalservice.SyncMessage.Configuration configuration = 9; + */ + public boolean hasConfiguration() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional .signalservice.SyncMessage.Configuration configuration = 9; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration getConfiguration() { + if (configurationBuilder_ == null) { + return configuration_; + } else { + return configurationBuilder_.getMessage(); + } + } + /** + * optional .signalservice.SyncMessage.Configuration configuration = 9; + */ + public Builder setConfiguration(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration value) { + if (configurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configuration_ = value; + onChanged(); + } else { + configurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + return this; + } + /** + * optional .signalservice.SyncMessage.Configuration configuration = 9; + */ + public Builder setConfiguration( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder builderForValue) { + if (configurationBuilder_ == null) { + configuration_ = builderForValue.build(); + onChanged(); + } else { + configurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + return this; + } + /** + * optional .signalservice.SyncMessage.Configuration configuration = 9; + */ + public Builder mergeConfiguration(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration value) { + if (configurationBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080) && + configuration_ != org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance()) { + configuration_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.newBuilder(configuration_).mergeFrom(value).buildPartial(); + } else { + configuration_ = value; + } + onChanged(); + } else { + configurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + return this; + } + /** + * optional .signalservice.SyncMessage.Configuration configuration = 9; + */ + public Builder clearConfiguration() { + if (configurationBuilder_ == null) { + configuration_ = org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance(); + onChanged(); + } else { + configurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + /** + * optional .signalservice.SyncMessage.Configuration configuration = 9; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder getConfigurationBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getConfigurationFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.SyncMessage.Configuration configuration = 9; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ConfigurationOrBuilder getConfigurationOrBuilder() { + if (configurationBuilder_ != null) { + return configurationBuilder_.getMessageOrBuilder(); + } else { + return configuration_; + } + } + /** + * optional .signalservice.SyncMessage.Configuration configuration = 9; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ConfigurationOrBuilder> + getConfigurationFieldBuilder() { + if (configurationBuilder_ == null) { + configurationBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.ConfigurationOrBuilder>( + configuration_, + getParentForChildren(), + isClean()); + configuration_ = null; + } + return configurationBuilder_; + } + + // optional bytes padding = 8; + private com.google.protobuf.ByteString padding_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes padding = 8; + */ + public boolean hasPadding() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional bytes padding = 8; + */ + public com.google.protobuf.ByteString getPadding() { + return padding_; + } + /** + * optional bytes padding = 8; + */ + public Builder setPadding(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + padding_ = value; + onChanged(); + return this; + } + /** + * optional bytes padding = 8; + */ + public Builder clearPadding() { + bitField0_ = (bitField0_ & ~0x00000100); + padding_ = getDefaultInstance().getPadding(); + onChanged(); + return this; + } + + // repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + private java.util.List stickerPackOperation_ = + java.util.Collections.emptyList(); + private void ensureStickerPackOperationIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + stickerPackOperation_ = new java.util.ArrayList(stickerPackOperation_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperationOrBuilder> stickerPackOperationBuilder_; + + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public java.util.List getStickerPackOperationList() { + if (stickerPackOperationBuilder_ == null) { + return java.util.Collections.unmodifiableList(stickerPackOperation_); + } else { + return stickerPackOperationBuilder_.getMessageList(); + } + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public int getStickerPackOperationCount() { + if (stickerPackOperationBuilder_ == null) { + return stickerPackOperation_.size(); + } else { + return stickerPackOperationBuilder_.getCount(); + } + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation getStickerPackOperation(int index) { + if (stickerPackOperationBuilder_ == null) { + return stickerPackOperation_.get(index); + } else { + return stickerPackOperationBuilder_.getMessage(index); + } + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public Builder setStickerPackOperation( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation value) { + if (stickerPackOperationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStickerPackOperationIsMutable(); + stickerPackOperation_.set(index, value); + onChanged(); + } else { + stickerPackOperationBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public Builder setStickerPackOperation( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder builderForValue) { + if (stickerPackOperationBuilder_ == null) { + ensureStickerPackOperationIsMutable(); + stickerPackOperation_.set(index, builderForValue.build()); + onChanged(); + } else { + stickerPackOperationBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public Builder addStickerPackOperation(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation value) { + if (stickerPackOperationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStickerPackOperationIsMutable(); + stickerPackOperation_.add(value); + onChanged(); + } else { + stickerPackOperationBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public Builder addStickerPackOperation( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation value) { + if (stickerPackOperationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStickerPackOperationIsMutable(); + stickerPackOperation_.add(index, value); + onChanged(); + } else { + stickerPackOperationBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public Builder addStickerPackOperation( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder builderForValue) { + if (stickerPackOperationBuilder_ == null) { + ensureStickerPackOperationIsMutable(); + stickerPackOperation_.add(builderForValue.build()); + onChanged(); + } else { + stickerPackOperationBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public Builder addStickerPackOperation( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder builderForValue) { + if (stickerPackOperationBuilder_ == null) { + ensureStickerPackOperationIsMutable(); + stickerPackOperation_.add(index, builderForValue.build()); + onChanged(); + } else { + stickerPackOperationBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public Builder addAllStickerPackOperation( + java.lang.Iterable values) { + if (stickerPackOperationBuilder_ == null) { + ensureStickerPackOperationIsMutable(); + super.addAll(values, stickerPackOperation_); + onChanged(); + } else { + stickerPackOperationBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public Builder clearStickerPackOperation() { + if (stickerPackOperationBuilder_ == null) { + stickerPackOperation_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + stickerPackOperationBuilder_.clear(); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public Builder removeStickerPackOperation(int index) { + if (stickerPackOperationBuilder_ == null) { + ensureStickerPackOperationIsMutable(); + stickerPackOperation_.remove(index); + onChanged(); + } else { + stickerPackOperationBuilder_.remove(index); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder getStickerPackOperationBuilder( + int index) { + return getStickerPackOperationFieldBuilder().getBuilder(index); + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperationOrBuilder getStickerPackOperationOrBuilder( + int index) { + if (stickerPackOperationBuilder_ == null) { + return stickerPackOperation_.get(index); } else { + return stickerPackOperationBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public java.util.List + getStickerPackOperationOrBuilderList() { + if (stickerPackOperationBuilder_ != null) { + return stickerPackOperationBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stickerPackOperation_); + } + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder addStickerPackOperationBuilder() { + return getStickerPackOperationFieldBuilder().addBuilder( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.getDefaultInstance()); + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder addStickerPackOperationBuilder( + int index) { + return getStickerPackOperationFieldBuilder().addBuilder( + index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.getDefaultInstance()); + } + /** + * repeated .signalservice.SyncMessage.StickerPackOperation stickerPackOperation = 10; + */ + public java.util.List + getStickerPackOperationBuilderList() { + return getStickerPackOperationFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperationOrBuilder> + getStickerPackOperationFieldBuilder() { + if (stickerPackOperationBuilder_ == null) { + stickerPackOperationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperation.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.StickerPackOperationOrBuilder>( + stickerPackOperation_, + ((bitField0_ & 0x00000200) == 0x00000200), + getParentForChildren(), + isClean()); + stickerPackOperation_ = null; + } + return stickerPackOperationBuilder_; + } + + // repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + private java.util.List openGroups_ = + java.util.Collections.emptyList(); + private void ensureOpenGroupsIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + openGroups_ = new java.util.ArrayList(openGroups_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetailsOrBuilder> openGroupsBuilder_; + + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public java.util.List getOpenGroupsList() { + if (openGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(openGroups_); + } else { + return openGroupsBuilder_.getMessageList(); + } + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public int getOpenGroupsCount() { + if (openGroupsBuilder_ == null) { + return openGroups_.size(); + } else { + return openGroupsBuilder_.getCount(); + } + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails getOpenGroups(int index) { + if (openGroupsBuilder_ == null) { + return openGroups_.get(index); + } else { + return openGroupsBuilder_.getMessage(index); + } + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public Builder setOpenGroups( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails value) { + if (openGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOpenGroupsIsMutable(); + openGroups_.set(index, value); + onChanged(); + } else { + openGroupsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public Builder setOpenGroups( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder builderForValue) { + if (openGroupsBuilder_ == null) { + ensureOpenGroupsIsMutable(); + openGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + openGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public Builder addOpenGroups(org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails value) { + if (openGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOpenGroupsIsMutable(); + openGroups_.add(value); + onChanged(); + } else { + openGroupsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public Builder addOpenGroups( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails value) { + if (openGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOpenGroupsIsMutable(); + openGroups_.add(index, value); + onChanged(); + } else { + openGroupsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public Builder addOpenGroups( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder builderForValue) { + if (openGroupsBuilder_ == null) { + ensureOpenGroupsIsMutable(); + openGroups_.add(builderForValue.build()); + onChanged(); + } else { + openGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public Builder addOpenGroups( + int index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder builderForValue) { + if (openGroupsBuilder_ == null) { + ensureOpenGroupsIsMutable(); + openGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + openGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public Builder addAllOpenGroups( + java.lang.Iterable values) { + if (openGroupsBuilder_ == null) { + ensureOpenGroupsIsMutable(); + super.addAll(values, openGroups_); + onChanged(); + } else { + openGroupsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public Builder clearOpenGroups() { + if (openGroupsBuilder_ == null) { + openGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + openGroupsBuilder_.clear(); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public Builder removeOpenGroups(int index) { + if (openGroupsBuilder_ == null) { + ensureOpenGroupsIsMutable(); + openGroups_.remove(index); + onChanged(); + } else { + openGroupsBuilder_.remove(index); + } + return this; + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder getOpenGroupsBuilder( + int index) { + return getOpenGroupsFieldBuilder().getBuilder(index); + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetailsOrBuilder getOpenGroupsOrBuilder( + int index) { + if (openGroupsBuilder_ == null) { + return openGroups_.get(index); } else { + return openGroupsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public java.util.List + getOpenGroupsOrBuilderList() { + if (openGroupsBuilder_ != null) { + return openGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(openGroups_); + } + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder addOpenGroupsBuilder() { + return getOpenGroupsFieldBuilder().addBuilder( + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.getDefaultInstance()); + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder addOpenGroupsBuilder( + int index) { + return getOpenGroupsFieldBuilder().addBuilder( + index, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.getDefaultInstance()); + } + /** + * repeated .signalservice.SyncMessage.OpenGroupDetails openGroups = 100; + */ + public java.util.List + getOpenGroupsBuilderList() { + return getOpenGroupsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetailsOrBuilder> + getOpenGroupsFieldBuilder() { + if (openGroupsBuilder_ == null) { + openGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetails.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.SyncMessage.OpenGroupDetailsOrBuilder>( + openGroups_, + ((bitField0_ & 0x00000400) == 0x00000400), + getParentForChildren(), + isClean()); + openGroups_ = null; + } + return openGroupsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:signalservice.SyncMessage) } - public interface AttachmentPointerOrBuilder - extends com.google.protobuf.MessageOrBuilder { + static { + defaultInstance = new SyncMessage(true); + defaultInstance.initFields(); + } - // optional fixed64 id = 1; - /** - * optional fixed64 id = 1; - */ - boolean hasId(); - /** - * optional fixed64 id = 1; - */ - long getId(); + // @@protoc_insertion_point(class_scope:signalservice.SyncMessage) + } - // optional string contentType = 2; - /** - * optional string contentType = 2; - */ - boolean hasContentType(); - /** - * optional string contentType = 2; - */ - java.lang.String getContentType(); - /** - * optional string contentType = 2; - */ - com.google.protobuf.ByteString + public interface AttachmentPointerOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional fixed64 id = 1; + /** + * optional fixed64 id = 1; + */ + boolean hasId(); + /** + * optional fixed64 id = 1; + */ + long getId(); + + // optional string contentType = 2; + /** + * optional string contentType = 2; + */ + boolean hasContentType(); + /** + * optional string contentType = 2; + */ + java.lang.String getContentType(); + /** + * optional string contentType = 2; + */ + com.google.protobuf.ByteString getContentTypeBytes(); - // optional bytes key = 3; - /** - * optional bytes key = 3; - */ - boolean hasKey(); - /** - * optional bytes key = 3; - */ - com.google.protobuf.ByteString getKey(); + // optional bytes key = 3; + /** + * optional bytes key = 3; + */ + boolean hasKey(); + /** + * optional bytes key = 3; + */ + com.google.protobuf.ByteString getKey(); - // optional uint32 size = 4; - /** - * optional uint32 size = 4; - */ - boolean hasSize(); - /** - * optional uint32 size = 4; - */ - int getSize(); + // optional uint32 size = 4; + /** + * optional uint32 size = 4; + */ + boolean hasSize(); + /** + * optional uint32 size = 4; + */ + int getSize(); - // optional bytes thumbnail = 5; - /** - * optional bytes thumbnail = 5; - */ - boolean hasThumbnail(); - /** - * optional bytes thumbnail = 5; - */ - com.google.protobuf.ByteString getThumbnail(); + // optional bytes thumbnail = 5; + /** + * optional bytes thumbnail = 5; + */ + boolean hasThumbnail(); + /** + * optional bytes thumbnail = 5; + */ + com.google.protobuf.ByteString getThumbnail(); - // optional bytes digest = 6; - /** - * optional bytes digest = 6; - */ - boolean hasDigest(); - /** - * optional bytes digest = 6; - */ - com.google.protobuf.ByteString getDigest(); + // optional bytes digest = 6; + /** + * optional bytes digest = 6; + */ + boolean hasDigest(); + /** + * optional bytes digest = 6; + */ + com.google.protobuf.ByteString getDigest(); - // optional string fileName = 7; - /** - * optional string fileName = 7; - */ - boolean hasFileName(); - /** - * optional string fileName = 7; - */ - java.lang.String getFileName(); - /** - * optional string fileName = 7; - */ - com.google.protobuf.ByteString + // optional string fileName = 7; + /** + * optional string fileName = 7; + */ + boolean hasFileName(); + /** + * optional string fileName = 7; + */ + java.lang.String getFileName(); + /** + * optional string fileName = 7; + */ + com.google.protobuf.ByteString getFileNameBytes(); - // optional uint32 flags = 8; - /** - * optional uint32 flags = 8; - */ - boolean hasFlags(); - /** - * optional uint32 flags = 8; - */ - int getFlags(); + // optional uint32 flags = 8; + /** + * optional uint32 flags = 8; + */ + boolean hasFlags(); + /** + * optional uint32 flags = 8; + */ + int getFlags(); - // optional uint32 width = 9; - /** - * optional uint32 width = 9; - */ - boolean hasWidth(); - /** - * optional uint32 width = 9; - */ - int getWidth(); + // optional uint32 width = 9; + /** + * optional uint32 width = 9; + */ + boolean hasWidth(); + /** + * optional uint32 width = 9; + */ + int getWidth(); - // optional uint32 height = 10; - /** - * optional uint32 height = 10; - */ - boolean hasHeight(); - /** - * optional uint32 height = 10; - */ - int getHeight(); + // optional uint32 height = 10; + /** + * optional uint32 height = 10; + */ + boolean hasHeight(); + /** + * optional uint32 height = 10; + */ + int getHeight(); - // optional string caption = 11; - /** - * optional string caption = 11; - */ - boolean hasCaption(); - /** - * optional string caption = 11; - */ - java.lang.String getCaption(); - /** - * optional string caption = 11; - */ - com.google.protobuf.ByteString + // optional string caption = 11; + /** + * optional string caption = 11; + */ + boolean hasCaption(); + /** + * optional string caption = 11; + */ + java.lang.String getCaption(); + /** + * optional string caption = 11; + */ + com.google.protobuf.ByteString getCaptionBytes(); - // optional string url = 101; - /** - * optional string url = 101; - */ - boolean hasUrl(); - /** - * optional string url = 101; - */ - java.lang.String getUrl(); - /** - * optional string url = 101; - */ - com.google.protobuf.ByteString + // optional string url = 101; + /** + * optional string url = 101; + */ + boolean hasUrl(); + /** + * optional string url = 101; + */ + java.lang.String getUrl(); + /** + * optional string url = 101; + */ + com.google.protobuf.ByteString getUrlBytes(); + } + /** + * Protobuf type {@code signalservice.AttachmentPointer} + */ + public static final class AttachmentPointer extends + com.google.protobuf.GeneratedMessage + implements AttachmentPointerOrBuilder { + // Use AttachmentPointer.newBuilder() to construct. + private AttachmentPointer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private AttachmentPointer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final AttachmentPointer defaultInstance; + public static AttachmentPointer getDefaultInstance() { + return defaultInstance; + } + + public AttachmentPointer getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AttachmentPointer( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 9: { + bitField0_ |= 0x00000001; + id_ = input.readFixed64(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + contentType_ = input.readBytes(); + break; + } + case 26: { + bitField0_ |= 0x00000004; + key_ = input.readBytes(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + size_ = input.readUInt32(); + break; + } + case 42: { + bitField0_ |= 0x00000010; + thumbnail_ = input.readBytes(); + break; + } + case 50: { + bitField0_ |= 0x00000020; + digest_ = input.readBytes(); + break; + } + case 58: { + bitField0_ |= 0x00000040; + fileName_ = input.readBytes(); + break; + } + case 64: { + bitField0_ |= 0x00000080; + flags_ = input.readUInt32(); + break; + } + case 72: { + bitField0_ |= 0x00000100; + width_ = input.readUInt32(); + break; + } + case 80: { + bitField0_ |= 0x00000200; + height_ = input.readUInt32(); + break; + } + case 90: { + bitField0_ |= 0x00000400; + caption_ = input.readBytes(); + break; + } + case 810: { + bitField0_ |= 0x00000800; + url_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_AttachmentPointer_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_AttachmentPointer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.class, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public AttachmentPointer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AttachmentPointer(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + /** + * Protobuf enum {@code signalservice.AttachmentPointer.Flags} + */ + public enum Flags + implements com.google.protobuf.ProtocolMessageEnum { + /** + * VOICE_MESSAGE = 1; + */ + VOICE_MESSAGE(0, 1), + ; + + /** + * VOICE_MESSAGE = 1; + */ + public static final int VOICE_MESSAGE_VALUE = 1; + + + public final int getNumber() { return value; } + + public static Flags valueOf(int value) { + switch (value) { + case 1: return VOICE_MESSAGE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Flags findValueByNumber(int number) { + return Flags.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDescriptor().getEnumTypes().get(0); + } + + private static final Flags[] VALUES = values(); + + public static Flags valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + return VALUES[desc.getIndex()]; + } + + private final int index; + private final int value; + + private Flags(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:signalservice.AttachmentPointer.Flags) + } + + private int bitField0_; + // optional fixed64 id = 1; + public static final int ID_FIELD_NUMBER = 1; + private long id_; + /** + * optional fixed64 id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional fixed64 id = 1; + */ + public long getId() { + return id_; + } + + // optional string contentType = 2; + public static final int CONTENTTYPE_FIELD_NUMBER = 2; + private java.lang.Object contentType_; + /** + * optional string contentType = 2; + */ + public boolean hasContentType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string contentType = 2; + */ + public java.lang.String getContentType() { + java.lang.Object ref = contentType_; + 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()) { + contentType_ = s; + } + return s; + } + } + /** + * optional string contentType = 2; + */ + public com.google.protobuf.ByteString + getContentTypeBytes() { + java.lang.Object ref = contentType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional bytes key = 3; + public static final int KEY_FIELD_NUMBER = 3; + private com.google.protobuf.ByteString key_; + /** + * optional bytes key = 3; + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bytes key = 3; + */ + public com.google.protobuf.ByteString getKey() { + return key_; + } + + // optional uint32 size = 4; + public static final int SIZE_FIELD_NUMBER = 4; + private int size_; + /** + * optional uint32 size = 4; + */ + public boolean hasSize() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional uint32 size = 4; + */ + public int getSize() { + return size_; + } + + // optional bytes thumbnail = 5; + public static final int THUMBNAIL_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString thumbnail_; + /** + * optional bytes thumbnail = 5; + */ + public boolean hasThumbnail() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional bytes thumbnail = 5; + */ + public com.google.protobuf.ByteString getThumbnail() { + return thumbnail_; + } + + // optional bytes digest = 6; + public static final int DIGEST_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString digest_; + /** + * optional bytes digest = 6; + */ + public boolean hasDigest() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional bytes digest = 6; + */ + public com.google.protobuf.ByteString getDigest() { + return digest_; + } + + // optional string fileName = 7; + public static final int FILENAME_FIELD_NUMBER = 7; + private java.lang.Object fileName_; + /** + * optional string fileName = 7; + */ + public boolean hasFileName() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional string fileName = 7; + */ + public java.lang.String getFileName() { + java.lang.Object ref = fileName_; + 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()) { + fileName_ = s; + } + return s; + } + } + /** + * optional string fileName = 7; + */ + public com.google.protobuf.ByteString + getFileNameBytes() { + java.lang.Object ref = fileName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional uint32 flags = 8; + public static final int FLAGS_FIELD_NUMBER = 8; + private int flags_; + /** + * optional uint32 flags = 8; + */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional uint32 flags = 8; + */ + public int getFlags() { + return flags_; + } + + // optional uint32 width = 9; + public static final int WIDTH_FIELD_NUMBER = 9; + private int width_; + /** + * optional uint32 width = 9; + */ + public boolean hasWidth() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional uint32 width = 9; + */ + public int getWidth() { + return width_; + } + + // optional uint32 height = 10; + public static final int HEIGHT_FIELD_NUMBER = 10; + private int height_; + /** + * optional uint32 height = 10; + */ + public boolean hasHeight() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + /** + * optional uint32 height = 10; + */ + public int getHeight() { + return height_; + } + + // optional string caption = 11; + public static final int CAPTION_FIELD_NUMBER = 11; + private java.lang.Object caption_; + /** + * optional string caption = 11; + */ + public boolean hasCaption() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * optional string caption = 11; + */ + public java.lang.String getCaption() { + java.lang.Object ref = caption_; + 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()) { + caption_ = s; + } + return s; + } + } + /** + * optional string caption = 11; + */ + public com.google.protobuf.ByteString + getCaptionBytes() { + java.lang.Object ref = caption_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + caption_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional string url = 101; + public static final int URL_FIELD_NUMBER = 101; + private java.lang.Object url_; + /** + * optional string url = 101; + */ + public boolean hasUrl() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + /** + * optional string url = 101; + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + 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()) { + url_ = s; + } + return s; + } + } + /** + * optional string url = 101; + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + id_ = 0L; + contentType_ = ""; + key_ = com.google.protobuf.ByteString.EMPTY; + size_ = 0; + thumbnail_ = com.google.protobuf.ByteString.EMPTY; + digest_ = com.google.protobuf.ByteString.EMPTY; + fileName_ = ""; + flags_ = 0; + width_ = 0; + height_ = 0; + caption_ = ""; + url_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeFixed64(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getContentTypeBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, key_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeUInt32(4, size_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeBytes(5, thumbnail_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBytes(6, digest_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeBytes(7, getFileNameBytes()); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeUInt32(8, flags_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeUInt32(9, width_); + } + if (((bitField0_ & 0x00000200) == 0x00000200)) { + output.writeUInt32(10, height_); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + output.writeBytes(11, getCaptionBytes()); + } + if (((bitField0_ & 0x00000800) == 0x00000800)) { + output.writeBytes(101, getUrlBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeFixed64Size(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getContentTypeBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, key_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, size_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, thumbnail_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, digest_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, getFileNameBytes()); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, flags_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(9, width_); + } + if (((bitField0_ & 0x00000200) == 0x00000200)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(10, height_); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(11, getCaptionBytes()); + } + if (((bitField0_ & 0x00000800) == 0x00000800)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(101, getUrlBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer 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.service.internal.push.SignalServiceProtos.AttachmentPointer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.AttachmentPointer} */ - public static final class AttachmentPointer extends - com.google.protobuf.GeneratedMessage - implements AttachmentPointerOrBuilder { - // Use AttachmentPointer.newBuilder() to construct. - private AttachmentPointer(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_AttachmentPointer_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_AttachmentPointer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.class, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } - private AttachmentPointer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + } + private static Builder create() { + return new Builder(); + } - private static final AttachmentPointer defaultInstance; - public static AttachmentPointer getDefaultInstance() { - return defaultInstance; + public Builder clear() { + super.clear(); + id_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + contentType_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + key_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + size_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + thumbnail_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + digest_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + fileName_ = ""; + bitField0_ = (bitField0_ & ~0x00000040); + flags_ = 0; + bitField0_ = (bitField0_ & ~0x00000080); + width_ = 0; + bitField0_ = (bitField0_ & ~0x00000100); + height_ = 0; + bitField0_ = (bitField0_ & ~0x00000200); + caption_ = ""; + bitField0_ = (bitField0_ & ~0x00000400); + url_ = ""; + bitField0_ = (bitField0_ & ~0x00000800); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_AttachmentPointer_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - public AttachmentPointer getDefaultInstanceForType() { - return defaultInstance; + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer result = new org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + result.id_ = id_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - private AttachmentPointer( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 9: { - bitField0_ |= 0x00000001; - id_ = input.readFixed64(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - contentType_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - key_ = input.readBytes(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - size_ = input.readUInt32(); - break; - } - case 42: { - bitField0_ |= 0x00000010; - thumbnail_ = input.readBytes(); - break; - } - case 50: { - bitField0_ |= 0x00000020; - digest_ = input.readBytes(); - break; - } - case 58: { - bitField0_ |= 0x00000040; - fileName_ = input.readBytes(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - flags_ = input.readUInt32(); - break; - } - case 72: { - bitField0_ |= 0x00000100; - width_ = input.readUInt32(); - break; - } - case 80: { - bitField0_ |= 0x00000200; - height_ = input.readUInt32(); - break; - } - case 90: { - bitField0_ |= 0x00000400; - caption_ = input.readBytes(); - break; - } - case 810: { - bitField0_ |= 0x00000800; - url_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + result.contentType_ = contentType_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_AttachmentPointer_descriptor; + result.key_ = key_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_AttachmentPointer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.class, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder.class); + result.size_ = size_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AttachmentPointer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AttachmentPointer(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + result.thumbnail_ = thumbnail_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; } - - /** - * Protobuf enum {@code signalservice.AttachmentPointer.Flags} - */ - public enum Flags - implements com.google.protobuf.ProtocolMessageEnum { - /** - * VOICE_MESSAGE = 1; - */ - VOICE_MESSAGE(0, 1), - ; - - /** - * VOICE_MESSAGE = 1; - */ - public static final int VOICE_MESSAGE_VALUE = 1; - - - public final int getNumber() { return value; } - - public static Flags valueOf(int value) { - switch (value) { - case 1: return VOICE_MESSAGE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Flags findValueByNumber(int number) { - return Flags.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDescriptor().getEnumTypes().get(0); - } - - private static final Flags[] VALUES = values(); - - public static Flags valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private Flags(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:signalservice.AttachmentPointer.Flags) + result.digest_ = digest_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; } - - private int bitField0_; - // optional fixed64 id = 1; - public static final int ID_FIELD_NUMBER = 1; - private long id_; - /** - * optional fixed64 id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + result.fileName_ = fileName_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; } - /** - * optional fixed64 id = 1; - */ - public long getId() { - return id_; + result.flags_ = flags_; + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000100; } - - // optional string contentType = 2; - public static final int CONTENTTYPE_FIELD_NUMBER = 2; - private java.lang.Object contentType_; - /** - * optional string contentType = 2; - */ - public boolean hasContentType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + result.width_ = width_; + if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + to_bitField0_ |= 0x00000200; } - /** - * optional string contentType = 2; - */ - public java.lang.String getContentType() { - java.lang.Object ref = contentType_; - 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()) { - contentType_ = s; - } - return s; - } + result.height_ = height_; + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000400; } - /** - * optional string contentType = 2; - */ - public com.google.protobuf.ByteString - getContentTypeBytes() { - java.lang.Object ref = contentType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contentType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + result.caption_ = caption_; + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + to_bitField0_ |= 0x00000800; } + result.url_ = url_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } - // optional bytes key = 3; - public static final int KEY_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString key_; - /** - * optional bytes key = 3; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000004) == 0x00000004); + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer)other); + } else { + super.mergeFrom(other); + return this; } - /** - * optional bytes key = 3; - */ - public com.google.protobuf.ByteString getKey() { - return key_; + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) return this; + if (other.hasId()) { + setId(other.getId()); } - - // optional uint32 size = 4; - public static final int SIZE_FIELD_NUMBER = 4; - private int size_; - /** - * optional uint32 size = 4; - */ - public boolean hasSize() { - return ((bitField0_ & 0x00000008) == 0x00000008); + if (other.hasContentType()) { + bitField0_ |= 0x00000002; + contentType_ = other.contentType_; + onChanged(); } - /** - * optional uint32 size = 4; - */ - public int getSize() { - return size_; + if (other.hasKey()) { + setKey(other.getKey()); } - - // optional bytes thumbnail = 5; - public static final int THUMBNAIL_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString thumbnail_; - /** - * optional bytes thumbnail = 5; - */ - public boolean hasThumbnail() { - return ((bitField0_ & 0x00000010) == 0x00000010); + if (other.hasSize()) { + setSize(other.getSize()); } - /** - * optional bytes thumbnail = 5; - */ - public com.google.protobuf.ByteString getThumbnail() { - return thumbnail_; + if (other.hasThumbnail()) { + setThumbnail(other.getThumbnail()); } - - // optional bytes digest = 6; - public static final int DIGEST_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString digest_; - /** - * optional bytes digest = 6; - */ - public boolean hasDigest() { - return ((bitField0_ & 0x00000020) == 0x00000020); + if (other.hasDigest()) { + setDigest(other.getDigest()); } - /** - * optional bytes digest = 6; - */ - public com.google.protobuf.ByteString getDigest() { - return digest_; + if (other.hasFileName()) { + bitField0_ |= 0x00000040; + fileName_ = other.fileName_; + onChanged(); } - - // optional string fileName = 7; - public static final int FILENAME_FIELD_NUMBER = 7; - private java.lang.Object fileName_; - /** - * optional string fileName = 7; - */ - public boolean hasFileName() { - return ((bitField0_ & 0x00000040) == 0x00000040); + if (other.hasFlags()) { + setFlags(other.getFlags()); } - /** - * optional string fileName = 7; - */ - public java.lang.String getFileName() { - java.lang.Object ref = fileName_; - 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()) { - fileName_ = s; - } - return s; - } + if (other.hasWidth()) { + setWidth(other.getWidth()); } - /** - * optional string fileName = 7; - */ - public com.google.protobuf.ByteString - getFileNameBytes() { - java.lang.Object ref = fileName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fileName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + if (other.hasHeight()) { + setHeight(other.getHeight()); } - - // optional uint32 flags = 8; - public static final int FLAGS_FIELD_NUMBER = 8; - private int flags_; - /** - * optional uint32 flags = 8; - */ - public boolean hasFlags() { - return ((bitField0_ & 0x00000080) == 0x00000080); + if (other.hasCaption()) { + bitField0_ |= 0x00000400; + caption_ = other.caption_; + onChanged(); } - /** - * optional uint32 flags = 8; - */ - public int getFlags() { - return flags_; + if (other.hasUrl()) { + bitField0_ |= 0x00000800; + url_ = other.url_; + onChanged(); } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } - // optional uint32 width = 9; - public static final int WIDTH_FIELD_NUMBER = 9; - private int width_; - /** - * optional uint32 width = 9; - */ - public boolean hasWidth() { - return ((bitField0_ & 0x00000100) == 0x00000100); + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } - /** - * optional uint32 width = 9; - */ - public int getWidth() { - return width_; + return this; + } + private int bitField0_; + + // optional fixed64 id = 1; + private long id_ ; + /** + * optional fixed64 id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional fixed64 id = 1; + */ + public long getId() { + return id_; + } + /** + * optional fixed64 id = 1; + */ + public Builder setId(long value) { + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + /** + * optional fixed64 id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = 0L; + onChanged(); + return this; + } + + // optional string contentType = 2; + private java.lang.Object contentType_ = ""; + /** + * optional string contentType = 2; + */ + public boolean hasContentType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string contentType = 2; + */ + public java.lang.String getContentType() { + java.lang.Object ref = contentType_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + contentType_ = s; + return s; + } else { + return (java.lang.String) ref; } - - // optional uint32 height = 10; - public static final int HEIGHT_FIELD_NUMBER = 10; - private int height_; - /** - * optional uint32 height = 10; - */ - public boolean hasHeight() { - return ((bitField0_ & 0x00000200) == 0x00000200); + } + /** + * optional string contentType = 2; + */ + public com.google.protobuf.ByteString + getContentTypeBytes() { + java.lang.Object ref = contentType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - /** - * optional uint32 height = 10; - */ - public int getHeight() { - return height_; + } + /** + * optional string contentType = 2; + */ + public Builder setContentType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + contentType_ = value; + onChanged(); + return this; + } + /** + * optional string contentType = 2; + */ + public Builder clearContentType() { + bitField0_ = (bitField0_ & ~0x00000002); + contentType_ = getDefaultInstance().getContentType(); + onChanged(); + return this; + } + /** + * optional string contentType = 2; + */ + public Builder setContentTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + contentType_ = value; + onChanged(); + return this; + } + + // optional bytes key = 3; + private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes key = 3; + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bytes key = 3; + */ + public com.google.protobuf.ByteString getKey() { + return key_; + } + /** + * optional bytes key = 3; + */ + public Builder setKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + key_ = value; + onChanged(); + return this; + } + /** + * optional bytes key = 3; + */ + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000004); + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + + // optional uint32 size = 4; + private int size_ ; + /** + * optional uint32 size = 4; + */ + public boolean hasSize() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional uint32 size = 4; + */ + public int getSize() { + return size_; + } + /** + * optional uint32 size = 4; + */ + public Builder setSize(int value) { + bitField0_ |= 0x00000008; + size_ = value; + onChanged(); + return this; + } + /** + * optional uint32 size = 4; + */ + public Builder clearSize() { + bitField0_ = (bitField0_ & ~0x00000008); + size_ = 0; + onChanged(); + return this; + } + + // optional bytes thumbnail = 5; + private com.google.protobuf.ByteString thumbnail_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes thumbnail = 5; + */ + public boolean hasThumbnail() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional bytes thumbnail = 5; + */ + public com.google.protobuf.ByteString getThumbnail() { + return thumbnail_; + } + /** + * optional bytes thumbnail = 5; + */ + public Builder setThumbnail(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + thumbnail_ = value; + onChanged(); + return this; + } + /** + * optional bytes thumbnail = 5; + */ + public Builder clearThumbnail() { + bitField0_ = (bitField0_ & ~0x00000010); + thumbnail_ = getDefaultInstance().getThumbnail(); + onChanged(); + return this; + } + + // optional bytes digest = 6; + private com.google.protobuf.ByteString digest_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes digest = 6; + */ + public boolean hasDigest() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional bytes digest = 6; + */ + public com.google.protobuf.ByteString getDigest() { + return digest_; + } + /** + * optional bytes digest = 6; + */ + public Builder setDigest(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + digest_ = value; + onChanged(); + return this; + } + /** + * optional bytes digest = 6; + */ + public Builder clearDigest() { + bitField0_ = (bitField0_ & ~0x00000020); + digest_ = getDefaultInstance().getDigest(); + onChanged(); + return this; + } + + // optional string fileName = 7; + private java.lang.Object fileName_ = ""; + /** + * optional string fileName = 7; + */ + public boolean hasFileName() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional string fileName = 7; + */ + public java.lang.String getFileName() { + java.lang.Object ref = fileName_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + fileName_ = s; + return s; + } else { + return (java.lang.String) ref; } - - // optional string caption = 11; - public static final int CAPTION_FIELD_NUMBER = 11; - private java.lang.Object caption_; - /** - * optional string caption = 11; - */ - public boolean hasCaption() { - return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * optional string fileName = 7; + */ + public com.google.protobuf.ByteString + getFileNameBytes() { + java.lang.Object ref = fileName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - /** - * optional string caption = 11; - */ - public java.lang.String getCaption() { - java.lang.Object ref = caption_; - 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()) { - caption_ = s; - } - return s; - } + } + /** + * optional string fileName = 7; + */ + public Builder setFileName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + fileName_ = value; + onChanged(); + return this; + } + /** + * optional string fileName = 7; + */ + public Builder clearFileName() { + bitField0_ = (bitField0_ & ~0x00000040); + fileName_ = getDefaultInstance().getFileName(); + onChanged(); + return this; + } + /** + * optional string fileName = 7; + */ + public Builder setFileNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + fileName_ = value; + onChanged(); + return this; + } + + // optional uint32 flags = 8; + private int flags_ ; + /** + * optional uint32 flags = 8; + */ + public boolean hasFlags() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional uint32 flags = 8; + */ + public int getFlags() { + return flags_; + } + /** + * optional uint32 flags = 8; + */ + public Builder setFlags(int value) { + bitField0_ |= 0x00000080; + flags_ = value; + onChanged(); + return this; + } + /** + * optional uint32 flags = 8; + */ + public Builder clearFlags() { + bitField0_ = (bitField0_ & ~0x00000080); + flags_ = 0; + onChanged(); + return this; + } + + // optional uint32 width = 9; + private int width_ ; + /** + * optional uint32 width = 9; + */ + public boolean hasWidth() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional uint32 width = 9; + */ + public int getWidth() { + return width_; + } + /** + * optional uint32 width = 9; + */ + public Builder setWidth(int value) { + bitField0_ |= 0x00000100; + width_ = value; + onChanged(); + return this; + } + /** + * optional uint32 width = 9; + */ + public Builder clearWidth() { + bitField0_ = (bitField0_ & ~0x00000100); + width_ = 0; + onChanged(); + return this; + } + + // optional uint32 height = 10; + private int height_ ; + /** + * optional uint32 height = 10; + */ + public boolean hasHeight() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + /** + * optional uint32 height = 10; + */ + public int getHeight() { + return height_; + } + /** + * optional uint32 height = 10; + */ + public Builder setHeight(int value) { + bitField0_ |= 0x00000200; + height_ = value; + onChanged(); + return this; + } + /** + * optional uint32 height = 10; + */ + public Builder clearHeight() { + bitField0_ = (bitField0_ & ~0x00000200); + height_ = 0; + onChanged(); + return this; + } + + // optional string caption = 11; + private java.lang.Object caption_ = ""; + /** + * optional string caption = 11; + */ + public boolean hasCaption() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * optional string caption = 11; + */ + public java.lang.String getCaption() { + java.lang.Object ref = caption_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + caption_ = s; + return s; + } else { + return (java.lang.String) ref; } - /** - * optional string caption = 11; - */ - public com.google.protobuf.ByteString - getCaptionBytes() { - java.lang.Object ref = caption_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - caption_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + } + /** + * optional string caption = 11; + */ + public com.google.protobuf.ByteString + getCaptionBytes() { + java.lang.Object ref = caption_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + caption_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } + /** + * optional string caption = 11; + */ + public Builder setCaption( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + caption_ = value; + onChanged(); + return this; + } + /** + * optional string caption = 11; + */ + public Builder clearCaption() { + bitField0_ = (bitField0_ & ~0x00000400); + caption_ = getDefaultInstance().getCaption(); + onChanged(); + return this; + } + /** + * optional string caption = 11; + */ + public Builder setCaptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + caption_ = value; + onChanged(); + return this; + } - // optional string url = 101; - public static final int URL_FIELD_NUMBER = 101; - private java.lang.Object url_; - /** - * optional string url = 101; - */ - public boolean hasUrl() { - return ((bitField0_ & 0x00000800) == 0x00000800); + // optional string url = 101; + private java.lang.Object url_ = ""; + /** + * optional string url = 101; + */ + public boolean hasUrl() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + /** + * optional string url = 101; + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; } - /** - * optional string url = 101; - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - 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()) { - url_ = s; - } - return s; - } - } - /** - * optional string url = 101; - */ - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + } + /** + * optional string url = 101; + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } + /** + * optional string url = 101; + */ + public Builder setUrl( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + url_ = value; + onChanged(); + return this; + } + /** + * optional string url = 101; + */ + public Builder clearUrl() { + bitField0_ = (bitField0_ & ~0x00000800); + url_ = getDefaultInstance().getUrl(); + onChanged(); + return this; + } + /** + * optional string url = 101; + */ + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + url_ = value; + onChanged(); + return this; + } - private void initFields() { - id_ = 0L; - contentType_ = ""; - key_ = com.google.protobuf.ByteString.EMPTY; - size_ = 0; - thumbnail_ = com.google.protobuf.ByteString.EMPTY; - digest_ = com.google.protobuf.ByteString.EMPTY; - fileName_ = ""; - flags_ = 0; - width_ = 0; - height_ = 0; - caption_ = ""; - url_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeFixed64(1, id_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getContentTypeBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, key_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeUInt32(4, size_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, thumbnail_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, digest_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getFileNameBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeUInt32(8, flags_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeUInt32(9, width_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeUInt32(10, height_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(11, getCaptionBytes()); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBytes(101, getUrlBytes()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, id_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getContentTypeBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, key_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, size_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, thumbnail_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, digest_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getFileNameBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, flags_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(9, width_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, height_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, getCaptionBytes()); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(101, getUrlBytes()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer 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.service.internal.push.SignalServiceProtos.AttachmentPointer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.AttachmentPointer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_AttachmentPointer_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_AttachmentPointer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.class, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - id_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - contentType_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - key_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - size_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - thumbnail_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - digest_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); - fileName_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); - flags_ = 0; - bitField0_ = (bitField0_ & ~0x00000080); - width_ = 0; - bitField0_ = (bitField0_ & ~0x00000100); - height_ = 0; - bitField0_ = (bitField0_ & ~0x00000200); - caption_ = ""; - bitField0_ = (bitField0_ & ~0x00000400); - url_ = ""; - bitField0_ = (bitField0_ & ~0x00000800); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_AttachmentPointer_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer result = new org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.contentType_ = contentType_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.size_ = size_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.thumbnail_ = thumbnail_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.digest_ = digest_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.fileName_ = fileName_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.flags_ = flags_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.width_ = width_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - result.height_ = height_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000400; - } - result.caption_ = caption_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000800; - } - result.url_ = url_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) return this; - if (other.hasId()) { - setId(other.getId()); - } - if (other.hasContentType()) { - bitField0_ |= 0x00000002; - contentType_ = other.contentType_; - onChanged(); - } - if (other.hasKey()) { - setKey(other.getKey()); - } - if (other.hasSize()) { - setSize(other.getSize()); - } - if (other.hasThumbnail()) { - setThumbnail(other.getThumbnail()); - } - if (other.hasDigest()) { - setDigest(other.getDigest()); - } - if (other.hasFileName()) { - bitField0_ |= 0x00000040; - fileName_ = other.fileName_; - onChanged(); - } - if (other.hasFlags()) { - setFlags(other.getFlags()); - } - if (other.hasWidth()) { - setWidth(other.getWidth()); - } - if (other.hasHeight()) { - setHeight(other.getHeight()); - } - if (other.hasCaption()) { - bitField0_ |= 0x00000400; - caption_ = other.caption_; - onChanged(); - } - if (other.hasUrl()) { - bitField0_ |= 0x00000800; - url_ = other.url_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional fixed64 id = 1; - private long id_ ; - /** - * optional fixed64 id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional fixed64 id = 1; - */ - public long getId() { - return id_; - } - /** - * optional fixed64 id = 1; - */ - public Builder setId(long value) { - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional fixed64 id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = 0L; - onChanged(); - return this; - } - - // optional string contentType = 2; - private java.lang.Object contentType_ = ""; - /** - * optional string contentType = 2; - */ - public boolean hasContentType() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string contentType = 2; - */ - public java.lang.String getContentType() { - java.lang.Object ref = contentType_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - contentType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string contentType = 2; - */ - public com.google.protobuf.ByteString - getContentTypeBytes() { - java.lang.Object ref = contentType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contentType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string contentType = 2; - */ - public Builder setContentType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - contentType_ = value; - onChanged(); - return this; - } - /** - * optional string contentType = 2; - */ - public Builder clearContentType() { - bitField0_ = (bitField0_ & ~0x00000002); - contentType_ = getDefaultInstance().getContentType(); - onChanged(); - return this; - } - /** - * optional string contentType = 2; - */ - public Builder setContentTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - contentType_ = value; - onChanged(); - return this; - } - - // optional bytes key = 3; - private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes key = 3; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bytes key = 3; - */ - public com.google.protobuf.ByteString getKey() { - return key_; - } - /** - * optional bytes key = 3; - */ - public Builder setKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - key_ = value; - onChanged(); - return this; - } - /** - * optional bytes key = 3; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000004); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - - // optional uint32 size = 4; - private int size_ ; - /** - * optional uint32 size = 4; - */ - public boolean hasSize() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional uint32 size = 4; - */ - public int getSize() { - return size_; - } - /** - * optional uint32 size = 4; - */ - public Builder setSize(int value) { - bitField0_ |= 0x00000008; - size_ = value; - onChanged(); - return this; - } - /** - * optional uint32 size = 4; - */ - public Builder clearSize() { - bitField0_ = (bitField0_ & ~0x00000008); - size_ = 0; - onChanged(); - return this; - } - - // optional bytes thumbnail = 5; - private com.google.protobuf.ByteString thumbnail_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes thumbnail = 5; - */ - public boolean hasThumbnail() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional bytes thumbnail = 5; - */ - public com.google.protobuf.ByteString getThumbnail() { - return thumbnail_; - } - /** - * optional bytes thumbnail = 5; - */ - public Builder setThumbnail(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - thumbnail_ = value; - onChanged(); - return this; - } - /** - * optional bytes thumbnail = 5; - */ - public Builder clearThumbnail() { - bitField0_ = (bitField0_ & ~0x00000010); - thumbnail_ = getDefaultInstance().getThumbnail(); - onChanged(); - return this; - } - - // optional bytes digest = 6; - private com.google.protobuf.ByteString digest_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes digest = 6; - */ - public boolean hasDigest() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional bytes digest = 6; - */ - public com.google.protobuf.ByteString getDigest() { - return digest_; - } - /** - * optional bytes digest = 6; - */ - public Builder setDigest(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - digest_ = value; - onChanged(); - return this; - } - /** - * optional bytes digest = 6; - */ - public Builder clearDigest() { - bitField0_ = (bitField0_ & ~0x00000020); - digest_ = getDefaultInstance().getDigest(); - onChanged(); - return this; - } - - // optional string fileName = 7; - private java.lang.Object fileName_ = ""; - /** - * optional string fileName = 7; - */ - public boolean hasFileName() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string fileName = 7; - */ - public java.lang.String getFileName() { - java.lang.Object ref = fileName_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - fileName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string fileName = 7; - */ - public com.google.protobuf.ByteString - getFileNameBytes() { - java.lang.Object ref = fileName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fileName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string fileName = 7; - */ - public Builder setFileName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - fileName_ = value; - onChanged(); - return this; - } - /** - * optional string fileName = 7; - */ - public Builder clearFileName() { - bitField0_ = (bitField0_ & ~0x00000040); - fileName_ = getDefaultInstance().getFileName(); - onChanged(); - return this; - } - /** - * optional string fileName = 7; - */ - public Builder setFileNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - fileName_ = value; - onChanged(); - return this; - } - - // optional uint32 flags = 8; - private int flags_ ; - /** - * optional uint32 flags = 8; - */ - public boolean hasFlags() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional uint32 flags = 8; - */ - public int getFlags() { - return flags_; - } - /** - * optional uint32 flags = 8; - */ - public Builder setFlags(int value) { - bitField0_ |= 0x00000080; - flags_ = value; - onChanged(); - return this; - } - /** - * optional uint32 flags = 8; - */ - public Builder clearFlags() { - bitField0_ = (bitField0_ & ~0x00000080); - flags_ = 0; - onChanged(); - return this; - } - - // optional uint32 width = 9; - private int width_ ; - /** - * optional uint32 width = 9; - */ - public boolean hasWidth() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional uint32 width = 9; - */ - public int getWidth() { - return width_; - } - /** - * optional uint32 width = 9; - */ - public Builder setWidth(int value) { - bitField0_ |= 0x00000100; - width_ = value; - onChanged(); - return this; - } - /** - * optional uint32 width = 9; - */ - public Builder clearWidth() { - bitField0_ = (bitField0_ & ~0x00000100); - width_ = 0; - onChanged(); - return this; - } - - // optional uint32 height = 10; - private int height_ ; - /** - * optional uint32 height = 10; - */ - public boolean hasHeight() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional uint32 height = 10; - */ - public int getHeight() { - return height_; - } - /** - * optional uint32 height = 10; - */ - public Builder setHeight(int value) { - bitField0_ |= 0x00000200; - height_ = value; - onChanged(); - return this; - } - /** - * optional uint32 height = 10; - */ - public Builder clearHeight() { - bitField0_ = (bitField0_ & ~0x00000200); - height_ = 0; - onChanged(); - return this; - } - - // optional string caption = 11; - private java.lang.Object caption_ = ""; - /** - * optional string caption = 11; - */ - public boolean hasCaption() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional string caption = 11; - */ - public java.lang.String getCaption() { - java.lang.Object ref = caption_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - caption_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string caption = 11; - */ - public com.google.protobuf.ByteString - getCaptionBytes() { - java.lang.Object ref = caption_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - caption_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string caption = 11; - */ - public Builder setCaption( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - caption_ = value; - onChanged(); - return this; - } - /** - * optional string caption = 11; - */ - public Builder clearCaption() { - bitField0_ = (bitField0_ & ~0x00000400); - caption_ = getDefaultInstance().getCaption(); - onChanged(); - return this; - } - /** - * optional string caption = 11; - */ - public Builder setCaptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - caption_ = value; - onChanged(); - return this; - } - - // optional string url = 101; - private java.lang.Object url_ = ""; - /** - * optional string url = 101; - */ - public boolean hasUrl() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional string url = 101; - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - url_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string url = 101; - */ - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string url = 101; - */ - public Builder setUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - url_ = value; - onChanged(); - return this; - } - /** - * optional string url = 101; - */ - public Builder clearUrl() { - bitField0_ = (bitField0_ & ~0x00000800); - url_ = getDefaultInstance().getUrl(); - onChanged(); - return this; - } - /** - * optional string url = 101; - */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - url_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.AttachmentPointer) - } - - static { - defaultInstance = new AttachmentPointer(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.AttachmentPointer) + // @@protoc_insertion_point(builder_scope:signalservice.AttachmentPointer) } - public interface GroupContextOrBuilder - extends com.google.protobuf.MessageOrBuilder { + static { + defaultInstance = new AttachmentPointer(true); + defaultInstance.initFields(); + } - // optional bytes id = 1; - /** - * optional bytes id = 1; - */ - boolean hasId(); - /** - * optional bytes id = 1; - */ - com.google.protobuf.ByteString getId(); + // @@protoc_insertion_point(class_scope:signalservice.AttachmentPointer) + } - // optional .signalservice.GroupContext.Type type = 2; - /** - * optional .signalservice.GroupContext.Type type = 2; - */ - boolean hasType(); - /** - * optional .signalservice.GroupContext.Type type = 2; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type getType(); + public interface GroupContextOrBuilder + extends com.google.protobuf.MessageOrBuilder { - // optional string name = 3; - /** - * optional string name = 3; - */ - boolean hasName(); - /** - * optional string name = 3; - */ - java.lang.String getName(); - /** - * optional string name = 3; - */ - com.google.protobuf.ByteString + // optional bytes id = 1; + /** + * optional bytes id = 1; + */ + boolean hasId(); + /** + * optional bytes id = 1; + */ + com.google.protobuf.ByteString getId(); + + // optional .signalservice.GroupContext.Type type = 2; + /** + * optional .signalservice.GroupContext.Type type = 2; + */ + boolean hasType(); + /** + * optional .signalservice.GroupContext.Type type = 2; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type getType(); + + // optional string name = 3; + /** + * optional string name = 3; + */ + boolean hasName(); + /** + * optional string name = 3; + */ + java.lang.String getName(); + /** + * optional string name = 3; + */ + com.google.protobuf.ByteString getNameBytes(); - // repeated string members = 4; - /** - * repeated string members = 4; - */ - java.util.List - getMembersList(); - /** - * repeated string members = 4; - */ - int getMembersCount(); - /** - * repeated string members = 4; - */ - java.lang.String getMembers(int index); - /** - * repeated string members = 4; - */ - com.google.protobuf.ByteString + // repeated string members = 4; + /** + * repeated string members = 4; + */ + java.util.List + getMembersList(); + /** + * repeated string members = 4; + */ + int getMembersCount(); + /** + * repeated string members = 4; + */ + java.lang.String getMembers(int index); + /** + * repeated string members = 4; + */ + com.google.protobuf.ByteString getMembersBytes(int index); - // optional .signalservice.AttachmentPointer avatar = 5; - /** - * optional .signalservice.AttachmentPointer avatar = 5; - */ - boolean hasAvatar(); - /** - * optional .signalservice.AttachmentPointer avatar = 5; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getAvatar(); - /** - * optional .signalservice.AttachmentPointer avatar = 5; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAvatarOrBuilder(); + // optional .signalservice.AttachmentPointer avatar = 5; + /** + * optional .signalservice.AttachmentPointer avatar = 5; + */ + boolean hasAvatar(); + /** + * optional .signalservice.AttachmentPointer avatar = 5; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getAvatar(); + /** + * optional .signalservice.AttachmentPointer avatar = 5; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAvatarOrBuilder(); - // repeated string admins = 6; - /** - * repeated string admins = 6; - */ - java.util.List - getAdminsList(); - /** - * repeated string admins = 6; - */ - int getAdminsCount(); - /** - * repeated string admins = 6; - */ - java.lang.String getAdmins(int index); - /** - * repeated string admins = 6; - */ - com.google.protobuf.ByteString + // repeated string admins = 6; + /** + * repeated string admins = 6; + */ + java.util.List + getAdminsList(); + /** + * repeated string admins = 6; + */ + int getAdminsCount(); + /** + * repeated string admins = 6; + */ + java.lang.String getAdmins(int index); + /** + * repeated string admins = 6; + */ + com.google.protobuf.ByteString getAdminsBytes(int index); - // repeated string newMembers = 998; - /** - * repeated string newMembers = 998; - * - *
-         * Loki - These fields are only used internally for the Android code base.
-         * This is so that we can differentiate adding/kicking.
-         * DO NOT USE WHEN SENDING MESSAGES.
-         * 
- */ - java.util.List - getNewMembersList(); - /** - * repeated string newMembers = 998; - * - *
-         * Loki - These fields are only used internally for the Android code base.
-         * This is so that we can differentiate adding/kicking.
-         * DO NOT USE WHEN SENDING MESSAGES.
-         * 
- */ - int getNewMembersCount(); - /** - * repeated string newMembers = 998; - * - *
-         * Loki - These fields are only used internally for the Android code base.
-         * This is so that we can differentiate adding/kicking.
-         * DO NOT USE WHEN SENDING MESSAGES.
-         * 
- */ - java.lang.String getNewMembers(int index); - /** - * repeated string newMembers = 998; - * - *
-         * Loki - These fields are only used internally for the Android code base.
-         * This is so that we can differentiate adding/kicking.
-         * DO NOT USE WHEN SENDING MESSAGES.
-         * 
- */ - com.google.protobuf.ByteString + // repeated string newMembers = 998; + /** + * repeated string newMembers = 998; + * + *
+     * Loki - These fields are only used internally for the Android code base.
+     * This is so that we can differentiate adding/kicking.
+     * DO NOT USE WHEN SENDING MESSAGES.
+     * 
+ */ + java.util.List + getNewMembersList(); + /** + * repeated string newMembers = 998; + * + *
+     * Loki - These fields are only used internally for the Android code base.
+     * This is so that we can differentiate adding/kicking.
+     * DO NOT USE WHEN SENDING MESSAGES.
+     * 
+ */ + int getNewMembersCount(); + /** + * repeated string newMembers = 998; + * + *
+     * Loki - These fields are only used internally for the Android code base.
+     * This is so that we can differentiate adding/kicking.
+     * DO NOT USE WHEN SENDING MESSAGES.
+     * 
+ */ + java.lang.String getNewMembers(int index); + /** + * repeated string newMembers = 998; + * + *
+     * Loki - These fields are only used internally for the Android code base.
+     * This is so that we can differentiate adding/kicking.
+     * DO NOT USE WHEN SENDING MESSAGES.
+     * 
+ */ + com.google.protobuf.ByteString getNewMembersBytes(int index); - // repeated string removedMembers = 999; - /** - * repeated string removedMembers = 999; - */ - java.util.List - getRemovedMembersList(); - /** - * repeated string removedMembers = 999; - */ - int getRemovedMembersCount(); - /** - * repeated string removedMembers = 999; - */ - java.lang.String getRemovedMembers(int index); - /** - * repeated string removedMembers = 999; - */ - com.google.protobuf.ByteString + // repeated string removedMembers = 999; + /** + * repeated string removedMembers = 999; + */ + java.util.List + getRemovedMembersList(); + /** + * repeated string removedMembers = 999; + */ + int getRemovedMembersCount(); + /** + * repeated string removedMembers = 999; + */ + java.lang.String getRemovedMembers(int index); + /** + * repeated string removedMembers = 999; + */ + com.google.protobuf.ByteString getRemovedMembersBytes(int index); + } + /** + * Protobuf type {@code signalservice.GroupContext} + */ + public static final class GroupContext extends + com.google.protobuf.GeneratedMessage + implements GroupContextOrBuilder { + // Use GroupContext.newBuilder() to construct. + private GroupContext(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private GroupContext(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final GroupContext defaultInstance; + public static GroupContext getDefaultInstance() { + return defaultInstance; + } + + public GroupContext getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupContext( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + id_ = input.readBytes(); + break; + } + case 16: { + int rawValue = input.readEnum(); + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type.valueOf(rawValue); + if (value == null) { + unknownFields.mergeVarintField(2, rawValue); + } else { + bitField0_ |= 0x00000002; + type_ = value; + } + break; + } + case 26: { + bitField0_ |= 0x00000004; + name_ = input.readBytes(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + members_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + members_.add(input.readBytes()); + break; + } + case 42: { + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = avatar_.toBuilder(); + } + avatar_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(avatar_); + avatar_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + admins_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + admins_.add(input.readBytes()); + break; + } + case 7986: { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + newMembers_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000040; + } + newMembers_.add(input.readBytes()); + break; + } + case 7994: { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + removedMembers_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000080; + } + removedMembers_.add(input.readBytes()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + members_ = new com.google.protobuf.UnmodifiableLazyStringList(members_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + admins_ = new com.google.protobuf.UnmodifiableLazyStringList(admins_); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + newMembers_ = new com.google.protobuf.UnmodifiableLazyStringList(newMembers_); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + removedMembers_ = new com.google.protobuf.UnmodifiableLazyStringList(removedMembers_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupContext_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.class, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public GroupContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupContext(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + /** + * Protobuf enum {@code signalservice.GroupContext.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { + /** + * UNKNOWN = 0; + */ + UNKNOWN(0, 0), + /** + * UPDATE = 1; + */ + UPDATE(1, 1), + /** + * DELIVER = 2; + */ + DELIVER(2, 2), + /** + * QUIT = 3; + */ + QUIT(3, 3), + /** + * REQUEST_INFO = 4; + */ + REQUEST_INFO(4, 4), + ; + + /** + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * UPDATE = 1; + */ + public static final int UPDATE_VALUE = 1; + /** + * DELIVER = 2; + */ + public static final int DELIVER_VALUE = 2; + /** + * QUIT = 3; + */ + public static final int QUIT_VALUE = 3; + /** + * REQUEST_INFO = 4; + */ + public static final int REQUEST_INFO_VALUE = 4; + + + public final int getNumber() { return value; } + + public static Type valueOf(int value) { + switch (value) { + case 0: return UNKNOWN; + case 1: return UPDATE; + case 2: return DELIVER; + case 3: return QUIT; + case 4: return REQUEST_INFO; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.valueOf(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + return getDescriptor().getValues().get(index); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.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 index; + private final int value; + + private Type(int index, int value) { + this.index = index; + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:signalservice.GroupContext.Type) + } + + private int bitField0_; + // optional bytes id = 1; + public static final int ID_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString id_; + /** + * optional bytes id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional bytes id = 1; + */ + public com.google.protobuf.ByteString getId() { + return id_; + } + + // optional .signalservice.GroupContext.Type type = 2; + public static final int TYPE_FIELD_NUMBER = 2; + private org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type type_; + /** + * optional .signalservice.GroupContext.Type type = 2; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .signalservice.GroupContext.Type type = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type getType() { + return type_; + } + + // optional string name = 3; + public static final int NAME_FIELD_NUMBER = 3; + private java.lang.Object name_; + /** + * optional string name = 3; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string name = 3; + */ + 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; + */ + 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; + } + } + + // repeated string members = 4; + public static final int MEMBERS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList members_; + /** + * repeated string members = 4; + */ + public java.util.List + getMembersList() { + return members_; + } + /** + * repeated string members = 4; + */ + public int getMembersCount() { + return members_.size(); + } + /** + * repeated string members = 4; + */ + public java.lang.String getMembers(int index) { + return members_.get(index); + } + /** + * repeated string members = 4; + */ + public com.google.protobuf.ByteString + getMembersBytes(int index) { + return members_.getByteString(index); + } + + // optional .signalservice.AttachmentPointer avatar = 5; + public static final int AVATAR_FIELD_NUMBER = 5; + private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer avatar_; + /** + * optional .signalservice.AttachmentPointer avatar = 5; + */ + public boolean hasAvatar() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .signalservice.AttachmentPointer avatar = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getAvatar() { + return avatar_; + } + /** + * optional .signalservice.AttachmentPointer avatar = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAvatarOrBuilder() { + return avatar_; + } + + // repeated string admins = 6; + public static final int ADMINS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList admins_; + /** + * repeated string admins = 6; + */ + public java.util.List + getAdminsList() { + return admins_; + } + /** + * repeated string admins = 6; + */ + public int getAdminsCount() { + return admins_.size(); + } + /** + * repeated string admins = 6; + */ + public java.lang.String getAdmins(int index) { + return admins_.get(index); + } + /** + * repeated string admins = 6; + */ + public com.google.protobuf.ByteString + getAdminsBytes(int index) { + return admins_.getByteString(index); + } + + // repeated string newMembers = 998; + public static final int NEWMEMBERS_FIELD_NUMBER = 998; + private com.google.protobuf.LazyStringList newMembers_; + /** + * repeated string newMembers = 998; + * + *
+     * Loki - These fields are only used internally for the Android code base.
+     * This is so that we can differentiate adding/kicking.
+     * DO NOT USE WHEN SENDING MESSAGES.
+     * 
+ */ + public java.util.List + getNewMembersList() { + return newMembers_; + } + /** + * repeated string newMembers = 998; + * + *
+     * Loki - These fields are only used internally for the Android code base.
+     * This is so that we can differentiate adding/kicking.
+     * DO NOT USE WHEN SENDING MESSAGES.
+     * 
+ */ + public int getNewMembersCount() { + return newMembers_.size(); + } + /** + * repeated string newMembers = 998; + * + *
+     * Loki - These fields are only used internally for the Android code base.
+     * This is so that we can differentiate adding/kicking.
+     * DO NOT USE WHEN SENDING MESSAGES.
+     * 
+ */ + public java.lang.String getNewMembers(int index) { + return newMembers_.get(index); + } + /** + * repeated string newMembers = 998; + * + *
+     * Loki - These fields are only used internally for the Android code base.
+     * This is so that we can differentiate adding/kicking.
+     * DO NOT USE WHEN SENDING MESSAGES.
+     * 
+ */ + public com.google.protobuf.ByteString + getNewMembersBytes(int index) { + return newMembers_.getByteString(index); + } + + // repeated string removedMembers = 999; + public static final int REMOVEDMEMBERS_FIELD_NUMBER = 999; + private com.google.protobuf.LazyStringList removedMembers_; + /** + * repeated string removedMembers = 999; + */ + public java.util.List + getRemovedMembersList() { + return removedMembers_; + } + /** + * repeated string removedMembers = 999; + */ + public int getRemovedMembersCount() { + return removedMembers_.size(); + } + /** + * repeated string removedMembers = 999; + */ + public java.lang.String getRemovedMembers(int index) { + return removedMembers_.get(index); + } + /** + * repeated string removedMembers = 999; + */ + public com.google.protobuf.ByteString + getRemovedMembersBytes(int index) { + return removedMembers_.getByteString(index); + } + + private void initFields() { + id_ = com.google.protobuf.ByteString.EMPTY; + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type.UNKNOWN; + name_ = ""; + members_ = com.google.protobuf.LazyStringArrayList.EMPTY; + avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + admins_ = com.google.protobuf.LazyStringArrayList.EMPTY; + newMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + removedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, type_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getNameBytes()); + } + for (int i = 0; i < members_.size(); i++) { + output.writeBytes(4, members_.getByteString(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(5, avatar_); + } + for (int i = 0; i < admins_.size(); i++) { + output.writeBytes(6, admins_.getByteString(i)); + } + for (int i = 0; i < newMembers_.size(); i++) { + output.writeBytes(998, newMembers_.getByteString(i)); + } + for (int i = 0; i < removedMembers_.size(); i++) { + output.writeBytes(999, removedMembers_.getByteString(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getNameBytes()); + } + { + int dataSize = 0; + for (int i = 0; i < members_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(members_.getByteString(i)); + } + size += dataSize; + size += 1 * getMembersList().size(); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, avatar_); + } + { + int dataSize = 0; + for (int i = 0; i < admins_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(admins_.getByteString(i)); + } + size += dataSize; + size += 1 * getAdminsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < newMembers_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(newMembers_.getByteString(i)); + } + size += dataSize; + size += 2 * getNewMembersList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < removedMembers_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(removedMembers_.getByteString(i)); + } + size += dataSize; + size += 2 * getRemovedMembersList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext 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.service.internal.push.SignalServiceProtos.GroupContext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.GroupContext} */ - public static final class GroupContext extends - com.google.protobuf.GeneratedMessage - implements GroupContextOrBuilder { - // Use GroupContext.newBuilder() to construct. - private GroupContext(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GroupContext(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupContext_descriptor; + } - private static final GroupContext defaultInstance; - public static GroupContext getDefaultInstance() { - return defaultInstance; - } + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.class, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Builder.class); + } - public GroupContext getDefaultInstanceForType() { - return defaultInstance; - } + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getAvatarFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + id_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type.UNKNOWN; + bitField0_ = (bitField0_ & ~0x00000002); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + members_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + if (avatarBuilder_ == null) { + avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + } else { + avatarBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + admins_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + newMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + removedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupContext_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext result = new org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.name_ = name_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + members_ = new com.google.protobuf.UnmodifiableLazyStringList( + members_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.members_ = members_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + if (avatarBuilder_ == null) { + result.avatar_ = avatar_; + } else { + result.avatar_ = avatarBuilder_.build(); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + admins_ = new com.google.protobuf.UnmodifiableLazyStringList( + admins_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.admins_ = admins_; + if (((bitField0_ & 0x00000040) == 0x00000040)) { + newMembers_ = new com.google.protobuf.UnmodifiableLazyStringList( + newMembers_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.newMembers_ = newMembers_; + if (((bitField0_ & 0x00000080) == 0x00000080)) { + removedMembers_ = new com.google.protobuf.UnmodifiableLazyStringList( + removedMembers_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.removedMembers_ = removedMembers_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance()) return this; + if (other.hasId()) { + setId(other.getId()); + } + if (other.hasType()) { + setType(other.getType()); + } + if (other.hasName()) { + bitField0_ |= 0x00000004; + name_ = other.name_; + onChanged(); + } + if (!other.members_.isEmpty()) { + if (members_.isEmpty()) { + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureMembersIsMutable(); + members_.addAll(other.members_); + } + onChanged(); + } + if (other.hasAvatar()) { + mergeAvatar(other.getAvatar()); + } + if (!other.admins_.isEmpty()) { + if (admins_.isEmpty()) { + admins_ = other.admins_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureAdminsIsMutable(); + admins_.addAll(other.admins_); + } + onChanged(); + } + if (!other.newMembers_.isEmpty()) { + if (newMembers_.isEmpty()) { + newMembers_ = other.newMembers_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureNewMembersIsMutable(); + newMembers_.addAll(other.newMembers_); + } + onChanged(); + } + if (!other.removedMembers_.isEmpty()) { + if (removedMembers_.isEmpty()) { + removedMembers_ = other.removedMembers_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureRemovedMembersIsMutable(); + removedMembers_.addAll(other.removedMembers_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional bytes id = 1; + private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional bytes id = 1; + */ + public com.google.protobuf.ByteString getId() { + return id_; + } + /** + * optional bytes id = 1; + */ + public Builder setId(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + /** + * optional bytes id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + + // optional .signalservice.GroupContext.Type type = 2; + private org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type.UNKNOWN; + /** + * optional .signalservice.GroupContext.Type type = 2; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .signalservice.GroupContext.Type type = 2; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type getType() { + return type_; + } + /** + * optional .signalservice.GroupContext.Type type = 2; + */ + public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value; + onChanged(); + return this; + } + /** + * optional .signalservice.GroupContext.Type type = 2; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type.UNKNOWN; + onChanged(); + return this; + } + + // optional string name = 3; + private java.lang.Object name_ = ""; + /** + * optional string name = 3; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string name = 3; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string name = 3; + */ + 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; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + name_ = value; + onChanged(); + return this; + } + /** + * optional string name = 3; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000004); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * optional string name = 3; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + name_ = value; + onChanged(); + return this; + } + + // repeated string members = 4; + private com.google.protobuf.LazyStringList members_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMembersIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + members_ = new com.google.protobuf.LazyStringArrayList(members_); + bitField0_ |= 0x00000008; + } + } + /** + * repeated string members = 4; + */ + public java.util.List + getMembersList() { + return java.util.Collections.unmodifiableList(members_); + } + /** + * repeated string members = 4; + */ + public int getMembersCount() { + return members_.size(); + } + /** + * repeated string members = 4; + */ + public java.lang.String getMembers(int index) { + return members_.get(index); + } + /** + * repeated string members = 4; + */ + public com.google.protobuf.ByteString + getMembersBytes(int index) { + return members_.getByteString(index); + } + /** + * repeated string members = 4; + */ + public Builder setMembers( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string members = 4; + */ + public Builder addMembers( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(value); + onChanged(); + return this; + } + /** + * repeated string members = 4; + */ + public Builder addAllMembers( + java.lang.Iterable values) { + ensureMembersIsMutable(); + super.addAll(values, members_); + onChanged(); + return this; + } + /** + * repeated string members = 4; + */ + public Builder clearMembers() { + members_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * repeated string members = 4; + */ + public Builder addMembersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(value); + onChanged(); + return this; + } + + // optional .signalservice.AttachmentPointer avatar = 5; + private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> avatarBuilder_; + /** + * optional .signalservice.AttachmentPointer avatar = 5; + */ + public boolean hasAvatar() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .signalservice.AttachmentPointer avatar = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getAvatar() { + if (avatarBuilder_ == null) { + return avatar_; + } else { + return avatarBuilder_.getMessage(); + } + } + /** + * optional .signalservice.AttachmentPointer avatar = 5; + */ + public Builder setAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + avatar_ = value; + onChanged(); + } else { + avatarBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .signalservice.AttachmentPointer avatar = 5; + */ + public Builder setAvatar( + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder builderForValue) { + if (avatarBuilder_ == null) { + avatar_ = builderForValue.build(); + onChanged(); + } else { + avatarBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .signalservice.AttachmentPointer avatar = 5; + */ + public Builder mergeAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { + if (avatarBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + avatar_ != org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) { + avatar_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.newBuilder(avatar_).mergeFrom(value).buildPartial(); + } else { + avatar_ = value; + } + onChanged(); + } else { + avatarBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .signalservice.AttachmentPointer avatar = 5; + */ + public Builder clearAvatar() { + if (avatarBuilder_ == null) { + avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); + onChanged(); + } else { + avatarBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + /** + * optional .signalservice.AttachmentPointer avatar = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder getAvatarBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getAvatarFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.AttachmentPointer avatar = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAvatarOrBuilder() { + if (avatarBuilder_ != null) { + return avatarBuilder_.getMessageOrBuilder(); + } else { + return avatar_; + } + } + /** + * optional .signalservice.AttachmentPointer avatar = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> + getAvatarFieldBuilder() { + if (avatarBuilder_ == null) { + avatarBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>( + avatar_, + getParentForChildren(), + isClean()); + avatar_ = null; + } + return avatarBuilder_; + } + + // repeated string admins = 6; + private com.google.protobuf.LazyStringList admins_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAdminsIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + admins_ = new com.google.protobuf.LazyStringArrayList(admins_); + bitField0_ |= 0x00000020; + } + } + /** + * repeated string admins = 6; + */ + public java.util.List + getAdminsList() { + return java.util.Collections.unmodifiableList(admins_); + } + /** + * repeated string admins = 6; + */ + public int getAdminsCount() { + return admins_.size(); + } + /** + * repeated string admins = 6; + */ + public java.lang.String getAdmins(int index) { + return admins_.get(index); + } + /** + * repeated string admins = 6; + */ + public com.google.protobuf.ByteString + getAdminsBytes(int index) { + return admins_.getByteString(index); + } + /** + * repeated string admins = 6; + */ + public Builder setAdmins( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdminsIsMutable(); + admins_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string admins = 6; + */ + public Builder addAdmins( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdminsIsMutable(); + admins_.add(value); + onChanged(); + return this; + } + /** + * repeated string admins = 6; + */ + public Builder addAllAdmins( + java.lang.Iterable values) { + ensureAdminsIsMutable(); + super.addAll(values, admins_); + onChanged(); + return this; + } + /** + * repeated string admins = 6; + */ + public Builder clearAdmins() { + admins_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * repeated string admins = 6; + */ + public Builder addAdminsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdminsIsMutable(); + admins_.add(value); + onChanged(); + return this; + } + + // repeated string newMembers = 998; + private com.google.protobuf.LazyStringList newMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureNewMembersIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + newMembers_ = new com.google.protobuf.LazyStringArrayList(newMembers_); + bitField0_ |= 0x00000040; + } + } + /** + * repeated string newMembers = 998; + * + *
+       * Loki - These fields are only used internally for the Android code base.
+       * This is so that we can differentiate adding/kicking.
+       * DO NOT USE WHEN SENDING MESSAGES.
+       * 
+ */ + public java.util.List + getNewMembersList() { + return java.util.Collections.unmodifiableList(newMembers_); + } + /** + * repeated string newMembers = 998; + * + *
+       * Loki - These fields are only used internally for the Android code base.
+       * This is so that we can differentiate adding/kicking.
+       * DO NOT USE WHEN SENDING MESSAGES.
+       * 
+ */ + public int getNewMembersCount() { + return newMembers_.size(); + } + /** + * repeated string newMembers = 998; + * + *
+       * Loki - These fields are only used internally for the Android code base.
+       * This is so that we can differentiate adding/kicking.
+       * DO NOT USE WHEN SENDING MESSAGES.
+       * 
+ */ + public java.lang.String getNewMembers(int index) { + return newMembers_.get(index); + } + /** + * repeated string newMembers = 998; + * + *
+       * Loki - These fields are only used internally for the Android code base.
+       * This is so that we can differentiate adding/kicking.
+       * DO NOT USE WHEN SENDING MESSAGES.
+       * 
+ */ + public com.google.protobuf.ByteString + getNewMembersBytes(int index) { + return newMembers_.getByteString(index); + } + /** + * repeated string newMembers = 998; + * + *
+       * Loki - These fields are only used internally for the Android code base.
+       * This is so that we can differentiate adding/kicking.
+       * DO NOT USE WHEN SENDING MESSAGES.
+       * 
+ */ + public Builder setNewMembers( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNewMembersIsMutable(); + newMembers_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string newMembers = 998; + * + *
+       * Loki - These fields are only used internally for the Android code base.
+       * This is so that we can differentiate adding/kicking.
+       * DO NOT USE WHEN SENDING MESSAGES.
+       * 
+ */ + public Builder addNewMembers( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNewMembersIsMutable(); + newMembers_.add(value); + onChanged(); + return this; + } + /** + * repeated string newMembers = 998; + * + *
+       * Loki - These fields are only used internally for the Android code base.
+       * This is so that we can differentiate adding/kicking.
+       * DO NOT USE WHEN SENDING MESSAGES.
+       * 
+ */ + public Builder addAllNewMembers( + java.lang.Iterable values) { + ensureNewMembersIsMutable(); + super.addAll(values, newMembers_); + onChanged(); + return this; + } + /** + * repeated string newMembers = 998; + * + *
+       * Loki - These fields are only used internally for the Android code base.
+       * This is so that we can differentiate adding/kicking.
+       * DO NOT USE WHEN SENDING MESSAGES.
+       * 
+ */ + public Builder clearNewMembers() { + newMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * repeated string newMembers = 998; + * + *
+       * Loki - These fields are only used internally for the Android code base.
+       * This is so that we can differentiate adding/kicking.
+       * DO NOT USE WHEN SENDING MESSAGES.
+       * 
+ */ + public Builder addNewMembersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNewMembersIsMutable(); + newMembers_.add(value); + onChanged(); + return this; + } + + // repeated string removedMembers = 999; + private com.google.protobuf.LazyStringList removedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRemovedMembersIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + removedMembers_ = new com.google.protobuf.LazyStringArrayList(removedMembers_); + bitField0_ |= 0x00000080; + } + } + /** + * repeated string removedMembers = 999; + */ + public java.util.List + getRemovedMembersList() { + return java.util.Collections.unmodifiableList(removedMembers_); + } + /** + * repeated string removedMembers = 999; + */ + public int getRemovedMembersCount() { + return removedMembers_.size(); + } + /** + * repeated string removedMembers = 999; + */ + public java.lang.String getRemovedMembers(int index) { + return removedMembers_.get(index); + } + /** + * repeated string removedMembers = 999; + */ + public com.google.protobuf.ByteString + getRemovedMembersBytes(int index) { + return removedMembers_.getByteString(index); + } + /** + * repeated string removedMembers = 999; + */ + public Builder setRemovedMembers( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRemovedMembersIsMutable(); + removedMembers_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string removedMembers = 999; + */ + public Builder addRemovedMembers( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRemovedMembersIsMutable(); + removedMembers_.add(value); + onChanged(); + return this; + } + /** + * repeated string removedMembers = 999; + */ + public Builder addAllRemovedMembers( + java.lang.Iterable values) { + ensureRemovedMembersIsMutable(); + super.addAll(values, removedMembers_); + onChanged(); + return this; + } + /** + * repeated string removedMembers = 999; + */ + public Builder clearRemovedMembers() { + removedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * repeated string removedMembers = 999; + */ + public Builder addRemovedMembersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRemovedMembersIsMutable(); + removedMembers_.add(value); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.GroupContext) + } + + static { + defaultInstance = new GroupContext(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.GroupContext) + } + + public interface ContactDetailsOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string number = 1; + /** + * optional string number = 1; + */ + boolean hasNumber(); + /** + * optional string number = 1; + */ + java.lang.String getNumber(); + /** + * optional string number = 1; + */ + com.google.protobuf.ByteString + getNumberBytes(); + + // optional string name = 2; + /** + * optional string name = 2; + */ + boolean hasName(); + /** + * optional string name = 2; + */ + java.lang.String getName(); + /** + * optional string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + // optional .signalservice.ContactDetails.Avatar avatar = 3; + /** + * optional .signalservice.ContactDetails.Avatar avatar = 3; + */ + boolean hasAvatar(); + /** + * optional .signalservice.ContactDetails.Avatar avatar = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar getAvatar(); + /** + * optional .signalservice.ContactDetails.Avatar avatar = 3; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.AvatarOrBuilder getAvatarOrBuilder(); + + // optional string color = 4; + /** + * optional string color = 4; + */ + boolean hasColor(); + /** + * optional string color = 4; + */ + java.lang.String getColor(); + /** + * optional string color = 4; + */ + com.google.protobuf.ByteString + getColorBytes(); + + // optional .signalservice.Verified verified = 5; + /** + * optional .signalservice.Verified verified = 5; + */ + boolean hasVerified(); + /** + * optional .signalservice.Verified verified = 5; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified getVerified(); + /** + * optional .signalservice.Verified verified = 5; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder getVerifiedOrBuilder(); + + // optional bytes profileKey = 6; + /** + * optional bytes profileKey = 6; + */ + boolean hasProfileKey(); + /** + * optional bytes profileKey = 6; + */ + com.google.protobuf.ByteString getProfileKey(); + + // optional bool blocked = 7; + /** + * optional bool blocked = 7; + */ + boolean hasBlocked(); + /** + * optional bool blocked = 7; + */ + boolean getBlocked(); + + // optional uint32 expireTimer = 8; + /** + * optional uint32 expireTimer = 8; + */ + boolean hasExpireTimer(); + /** + * optional uint32 expireTimer = 8; + */ + int getExpireTimer(); + + // optional string nickname = 101; + /** + * optional string nickname = 101; + * + *
+     * Loki
+     * 
+ */ + boolean hasNickname(); + /** + * optional string nickname = 101; + * + *
+     * Loki
+     * 
+ */ + java.lang.String getNickname(); + /** + * optional string nickname = 101; + * + *
+     * Loki
+     * 
+ */ + com.google.protobuf.ByteString + getNicknameBytes(); + } + /** + * Protobuf type {@code signalservice.ContactDetails} + */ + public static final class ContactDetails extends + com.google.protobuf.GeneratedMessage + implements ContactDetailsOrBuilder { + // Use ContactDetails.newBuilder() to construct. + private ContactDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private ContactDetails(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final ContactDetails defaultInstance; + public static ContactDetails getDefaultInstance() { + return defaultInstance; + } + + public ContactDetails getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - private GroupContext( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - id_ = input.readBytes(); - break; - } - case 16: { - int rawValue = input.readEnum(); - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type value = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - type_ = value; - } - break; - } - case 26: { - bitField0_ |= 0x00000004; - name_ = input.readBytes(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - members_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - members_.add(input.readBytes()); - break; - } - case 42: { - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = avatar_.toBuilder(); - } - avatar_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatar_); - avatar_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - admins_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000020; - } - admins_.add(input.readBytes()); - break; - } - case 7986: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - newMembers_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000040; - } - newMembers_.add(input.readBytes()); - break; - } - case 7994: { - if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - removedMembers_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000080; - } - removedMembers_.add(input.readBytes()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - members_ = new com.google.protobuf.UnmodifiableLazyStringList(members_); - } - if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - admins_ = new com.google.protobuf.UnmodifiableLazyStringList(admins_); - } - if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - newMembers_ = new com.google.protobuf.UnmodifiableLazyStringList(newMembers_); - } - if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - removedMembers_ = new com.google.protobuf.UnmodifiableLazyStringList(removedMembers_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); + return this.unknownFields; + } + private ContactDetails( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; } + case 10: { + bitField0_ |= 0x00000001; + number_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + name_ = input.readBytes(); + break; + } + case 26: { + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = avatar_.toBuilder(); + } + avatar_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(avatar_); + avatar_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 34: { + bitField0_ |= 0x00000008; + color_ = input.readBytes(); + break; + } + case 42: { + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder subBuilder = null; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subBuilder = verified_.toBuilder(); + } + verified_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(verified_); + verified_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000010; + break; + } + case 50: { + bitField0_ |= 0x00000020; + profileKey_ = input.readBytes(); + break; + } + case 56: { + bitField0_ |= 0x00000040; + blocked_ = input.readBool(); + break; + } + case 64: { + bitField0_ |= 0x00000080; + expireTimer_ = input.readUInt32(); + break; + } + case 810: { + bitField0_ |= 0x00000100; + nickname_ = input.readBytes(); + break; + } + } } - public static final com.google.protobuf.Descriptors.Descriptor + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupContext_descriptor; + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public ContactDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContactDetails(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public interface AvatarOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string contentType = 1; + /** + * optional string contentType = 1; + */ + boolean hasContentType(); + /** + * optional string contentType = 1; + */ + java.lang.String getContentType(); + /** + * optional string contentType = 1; + */ + com.google.protobuf.ByteString + getContentTypeBytes(); + + // optional uint32 length = 2; + /** + * optional uint32 length = 2; + */ + boolean hasLength(); + /** + * optional uint32 length = 2; + */ + int getLength(); + } + /** + * Protobuf type {@code signalservice.ContactDetails.Avatar} + */ + public static final class Avatar extends + com.google.protobuf.GeneratedMessage + implements AvatarOrBuilder { + // Use Avatar.newBuilder() to construct. + private Avatar(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Avatar(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Avatar defaultInstance; + public static Avatar getDefaultInstance() { + return defaultInstance; + } + + public Avatar getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Avatar( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + contentType_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + length_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_Avatar_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_Avatar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Avatar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Avatar(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string contentType = 1; + public static final int CONTENTTYPE_FIELD_NUMBER = 1; + private java.lang.Object contentType_; + /** + * optional string contentType = 1; + */ + public boolean hasContentType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string contentType = 1; + */ + public java.lang.String getContentType() { + java.lang.Object ref = contentType_; + 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()) { + contentType_ = s; + } + return s; + } + } + /** + * optional string contentType = 1; + */ + public com.google.protobuf.ByteString + getContentTypeBytes() { + java.lang.Object ref = contentType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional uint32 length = 2; + public static final int LENGTH_FIELD_NUMBER = 2; + private int length_; + /** + * optional uint32 length = 2; + */ + public boolean hasLength() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional uint32 length = 2; + */ + public int getLength() { + return length_; + } + + private void initFields() { + contentType_ = ""; + length_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getContentTypeBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, length_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getContentTypeBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, length_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar 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.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.ContactDetails.Avatar} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.AvatarOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_Avatar_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupContext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.class, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GroupContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupContext(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - /** - * Protobuf enum {@code signalservice.GroupContext.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0, 0), - /** - * UPDATE = 1; - */ - UPDATE(1, 1), - /** - * DELIVER = 2; - */ - DELIVER(2, 2), - /** - * QUIT = 3; - */ - QUIT(3, 3), - /** - * REQUEST_INFO = 4; - */ - REQUEST_INFO(4, 4), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * UPDATE = 1; - */ - public static final int UPDATE_VALUE = 1; - /** - * DELIVER = 2; - */ - public static final int DELIVER_VALUE = 2; - /** - * QUIT = 3; - */ - public static final int QUIT_VALUE = 3; - /** - * REQUEST_INFO = 4; - */ - public static final int REQUEST_INFO_VALUE = 4; - - - public final int getNumber() { return value; } - - public static Type valueOf(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return UPDATE; - case 2: return DELIVER; - case 3: return QUIT; - case 4: return REQUEST_INFO; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.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 index; - private final int value; - - private Type(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:signalservice.GroupContext.Type) - } - - private int bitField0_; - // optional bytes id = 1; - public static final int ID_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString id_; - /** - * optional bytes id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bytes id = 1; - */ - public com.google.protobuf.ByteString getId() { - return id_; - } - - // optional .signalservice.GroupContext.Type type = 2; - public static final int TYPE_FIELD_NUMBER = 2; - private org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type type_; - /** - * optional .signalservice.GroupContext.Type type = 2; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .signalservice.GroupContext.Type type = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type getType() { - return type_; - } - - // optional string name = 3; - public static final int NAME_FIELD_NUMBER = 3; - private java.lang.Object name_; - /** - * optional string name = 3; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string name = 3; - */ - 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; - */ - 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; - } - } - - // repeated string members = 4; - public static final int MEMBERS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList members_; - /** - * repeated string members = 4; - */ - public java.util.List - getMembersList() { - return members_; - } - /** - * repeated string members = 4; - */ - public int getMembersCount() { - return members_.size(); - } - /** - * repeated string members = 4; - */ - public java.lang.String getMembers(int index) { - return members_.get(index); - } - /** - * repeated string members = 4; - */ - public com.google.protobuf.ByteString - getMembersBytes(int index) { - return members_.getByteString(index); - } - - // optional .signalservice.AttachmentPointer avatar = 5; - public static final int AVATAR_FIELD_NUMBER = 5; - private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer avatar_; - /** - * optional .signalservice.AttachmentPointer avatar = 5; - */ - public boolean hasAvatar() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .signalservice.AttachmentPointer avatar = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getAvatar() { - return avatar_; - } - /** - * optional .signalservice.AttachmentPointer avatar = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAvatarOrBuilder() { - return avatar_; - } - - // repeated string admins = 6; - public static final int ADMINS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList admins_; - /** - * repeated string admins = 6; - */ - public java.util.List - getAdminsList() { - return admins_; - } - /** - * repeated string admins = 6; - */ - public int getAdminsCount() { - return admins_.size(); - } - /** - * repeated string admins = 6; - */ - public java.lang.String getAdmins(int index) { - return admins_.get(index); - } - /** - * repeated string admins = 6; - */ - public com.google.protobuf.ByteString - getAdminsBytes(int index) { - return admins_.getByteString(index); - } - - // repeated string newMembers = 998; - public static final int NEWMEMBERS_FIELD_NUMBER = 998; - private com.google.protobuf.LazyStringList newMembers_; - /** - * repeated string newMembers = 998; - * - *
-         * Loki - These fields are only used internally for the Android code base.
-         * This is so that we can differentiate adding/kicking.
-         * DO NOT USE WHEN SENDING MESSAGES.
-         * 
- */ - public java.util.List - getNewMembersList() { - return newMembers_; - } - /** - * repeated string newMembers = 998; - * - *
-         * Loki - These fields are only used internally for the Android code base.
-         * This is so that we can differentiate adding/kicking.
-         * DO NOT USE WHEN SENDING MESSAGES.
-         * 
- */ - public int getNewMembersCount() { - return newMembers_.size(); - } - /** - * repeated string newMembers = 998; - * - *
-         * Loki - These fields are only used internally for the Android code base.
-         * This is so that we can differentiate adding/kicking.
-         * DO NOT USE WHEN SENDING MESSAGES.
-         * 
- */ - public java.lang.String getNewMembers(int index) { - return newMembers_.get(index); - } - /** - * repeated string newMembers = 998; - * - *
-         * Loki - These fields are only used internally for the Android code base.
-         * This is so that we can differentiate adding/kicking.
-         * DO NOT USE WHEN SENDING MESSAGES.
-         * 
- */ - public com.google.protobuf.ByteString - getNewMembersBytes(int index) { - return newMembers_.getByteString(index); - } - - // repeated string removedMembers = 999; - public static final int REMOVEDMEMBERS_FIELD_NUMBER = 999; - private com.google.protobuf.LazyStringList removedMembers_; - /** - * repeated string removedMembers = 999; - */ - public java.util.List - getRemovedMembersList() { - return removedMembers_; - } - /** - * repeated string removedMembers = 999; - */ - public int getRemovedMembersCount() { - return removedMembers_.size(); - } - /** - * repeated string removedMembers = 999; - */ - public java.lang.String getRemovedMembers(int index) { - return removedMembers_.get(index); - } - /** - * repeated string removedMembers = 999; - */ - public com.google.protobuf.ByteString - getRemovedMembersBytes(int index) { - return removedMembers_.getByteString(index); - } - - private void initFields() { - id_ = com.google.protobuf.ByteString.EMPTY; - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type.UNKNOWN; - name_ = ""; - members_ = com.google.protobuf.LazyStringArrayList.EMPTY; - avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - admins_ = com.google.protobuf.LazyStringArrayList.EMPTY; - newMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - removedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, id_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, type_.getNumber()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getNameBytes()); - } - for (int i = 0; i < members_.size(); i++) { - output.writeBytes(4, members_.getByteString(i)); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(5, avatar_); - } - for (int i = 0; i < admins_.size(); i++) { - output.writeBytes(6, admins_.getByteString(i)); - } - for (int i = 0; i < newMembers_.size(); i++) { - output.writeBytes(998, newMembers_.getByteString(i)); - } - for (int i = 0; i < removedMembers_.size(); i++) { - output.writeBytes(999, removedMembers_.getByteString(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, id_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_.getNumber()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getNameBytes()); - } - { - int dataSize = 0; - for (int i = 0; i < members_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(members_.getByteString(i)); - } - size += dataSize; - size += 1 * getMembersList().size(); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, avatar_); - } - { - int dataSize = 0; - for (int i = 0; i < admins_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(admins_.getByteString(i)); - } - size += dataSize; - size += 1 * getAdminsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < newMembers_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(newMembers_.getByteString(i)); - } - size += dataSize; - size += 2 * getNewMembersList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < removedMembers_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(removedMembers_.getByteString(i)); - } - size += dataSize; - size += 2 * getRemovedMembersList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext 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.service.internal.push.SignalServiceProtos.GroupContext parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.GroupContext} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupContext_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupContext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.class, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Builder.class); - } + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_Avatar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.Builder.class); + } - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getAvatarFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } - public Builder clear() { - super.clear(); - id_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type.UNKNOWN; - bitField0_ = (bitField0_ & ~0x00000002); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - members_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - if (avatarBuilder_ == null) { - avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - } else { - avatarBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - admins_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); - newMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000040); - removedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } + public Builder clear() { + super.clear(); + contentType_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + length_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } + public Builder clone() { + return create().mergeFrom(buildPartial()); + } - public com.google.protobuf.Descriptors.Descriptor + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupContext_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext result = new org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.type_ = type_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.name_ = name_; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - members_ = new com.google.protobuf.UnmodifiableLazyStringList( - members_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.members_ = members_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000008; - } - if (avatarBuilder_ == null) { - result.avatar_ = avatar_; - } else { - result.avatar_ = avatarBuilder_.build(); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - admins_ = new com.google.protobuf.UnmodifiableLazyStringList( - admins_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.admins_ = admins_; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - newMembers_ = new com.google.protobuf.UnmodifiableLazyStringList( - newMembers_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.newMembers_ = newMembers_; - if (((bitField0_ & 0x00000080) == 0x00000080)) { - removedMembers_ = new com.google.protobuf.UnmodifiableLazyStringList( - removedMembers_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.removedMembers_ = removedMembers_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance()) return this; - if (other.hasId()) { - setId(other.getId()); - } - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasName()) { - bitField0_ |= 0x00000004; - name_ = other.name_; - onChanged(); - } - if (!other.members_.isEmpty()) { - if (members_.isEmpty()) { - members_ = other.members_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureMembersIsMutable(); - members_.addAll(other.members_); - } - onChanged(); - } - if (other.hasAvatar()) { - mergeAvatar(other.getAvatar()); - } - if (!other.admins_.isEmpty()) { - if (admins_.isEmpty()) { - admins_ = other.admins_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureAdminsIsMutable(); - admins_.addAll(other.admins_); - } - onChanged(); - } - if (!other.newMembers_.isEmpty()) { - if (newMembers_.isEmpty()) { - newMembers_ = other.newMembers_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureNewMembersIsMutable(); - newMembers_.addAll(other.newMembers_); - } - onChanged(); - } - if (!other.removedMembers_.isEmpty()) { - if (removedMembers_.isEmpty()) { - removedMembers_ = other.removedMembers_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureRemovedMembersIsMutable(); - removedMembers_.addAll(other.removedMembers_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional bytes id = 1; - private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bytes id = 1; - */ - public com.google.protobuf.ByteString getId() { - return id_; - } - /** - * optional bytes id = 1; - */ - public Builder setId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional bytes id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - - // optional .signalservice.GroupContext.Type type = 2; - private org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type.UNKNOWN; - /** - * optional .signalservice.GroupContext.Type type = 2; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .signalservice.GroupContext.Type type = 2; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type getType() { - return type_; - } - /** - * optional .signalservice.GroupContext.Type type = 2; - */ - public Builder setType(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - type_ = value; - onChanged(); - return this; - } - /** - * optional .signalservice.GroupContext.Type type = 2; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000002); - type_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupContext.Type.UNKNOWN; - onChanged(); - return this; - } - - // optional string name = 3; - private java.lang.Object name_ = ""; - /** - * optional string name = 3; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string name = 3; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 3; - */ - 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; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 3; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000004); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 3; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - name_ = value; - onChanged(); - return this; - } - - // repeated string members = 4; - private com.google.protobuf.LazyStringList members_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureMembersIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - members_ = new com.google.protobuf.LazyStringArrayList(members_); - bitField0_ |= 0x00000008; - } - } - /** - * repeated string members = 4; - */ - public java.util.List - getMembersList() { - return java.util.Collections.unmodifiableList(members_); - } - /** - * repeated string members = 4; - */ - public int getMembersCount() { - return members_.size(); - } - /** - * repeated string members = 4; - */ - public java.lang.String getMembers(int index) { - return members_.get(index); - } - /** - * repeated string members = 4; - */ - public com.google.protobuf.ByteString - getMembersBytes(int index) { - return members_.getByteString(index); - } - /** - * repeated string members = 4; - */ - public Builder setMembers( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMembersIsMutable(); - members_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string members = 4; - */ - public Builder addMembers( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMembersIsMutable(); - members_.add(value); - onChanged(); - return this; - } - /** - * repeated string members = 4; - */ - public Builder addAllMembers( - java.lang.Iterable values) { - ensureMembersIsMutable(); - super.addAll(values, members_); - onChanged(); - return this; - } - /** - * repeated string members = 4; - */ - public Builder clearMembers() { - members_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * repeated string members = 4; - */ - public Builder addMembersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMembersIsMutable(); - members_.add(value); - onChanged(); - return this; - } - - // optional .signalservice.AttachmentPointer avatar = 5; - private org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> avatarBuilder_; - /** - * optional .signalservice.AttachmentPointer avatar = 5; - */ - public boolean hasAvatar() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional .signalservice.AttachmentPointer avatar = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer getAvatar() { - if (avatarBuilder_ == null) { - return avatar_; - } else { - return avatarBuilder_.getMessage(); - } - } - /** - * optional .signalservice.AttachmentPointer avatar = 5; - */ - public Builder setAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { - if (avatarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatar_ = value; - onChanged(); - } else { - avatarBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .signalservice.AttachmentPointer avatar = 5; - */ - public Builder setAvatar( - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder builderForValue) { - if (avatarBuilder_ == null) { - avatar_ = builderForValue.build(); - onChanged(); - } else { - avatarBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .signalservice.AttachmentPointer avatar = 5; - */ - public Builder mergeAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer value) { - if (avatarBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - avatar_ != org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) { - avatar_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.newBuilder(avatar_).mergeFrom(value).buildPartial(); - } else { - avatar_ = value; - } - onChanged(); - } else { - avatarBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .signalservice.AttachmentPointer avatar = 5; - */ - public Builder clearAvatar() { - if (avatarBuilder_ == null) { - avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance(); - onChanged(); - } else { - avatarBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - /** - * optional .signalservice.AttachmentPointer avatar = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder getAvatarBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getAvatarFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.AttachmentPointer avatar = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAvatarOrBuilder() { - if (avatarBuilder_ != null) { - return avatarBuilder_.getMessageOrBuilder(); - } else { - return avatar_; - } - } - /** - * optional .signalservice.AttachmentPointer avatar = 5; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> - getAvatarFieldBuilder() { - if (avatarBuilder_ == null) { - avatarBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>( - avatar_, - getParentForChildren(), - isClean()); - avatar_ = null; - } - return avatarBuilder_; - } - - // repeated string admins = 6; - private com.google.protobuf.LazyStringList admins_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureAdminsIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { - admins_ = new com.google.protobuf.LazyStringArrayList(admins_); - bitField0_ |= 0x00000020; - } - } - /** - * repeated string admins = 6; - */ - public java.util.List - getAdminsList() { - return java.util.Collections.unmodifiableList(admins_); - } - /** - * repeated string admins = 6; - */ - public int getAdminsCount() { - return admins_.size(); - } - /** - * repeated string admins = 6; - */ - public java.lang.String getAdmins(int index) { - return admins_.get(index); - } - /** - * repeated string admins = 6; - */ - public com.google.protobuf.ByteString - getAdminsBytes(int index) { - return admins_.getByteString(index); - } - /** - * repeated string admins = 6; - */ - public Builder setAdmins( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdminsIsMutable(); - admins_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string admins = 6; - */ - public Builder addAdmins( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdminsIsMutable(); - admins_.add(value); - onChanged(); - return this; - } - /** - * repeated string admins = 6; - */ - public Builder addAllAdmins( - java.lang.Iterable values) { - ensureAdminsIsMutable(); - super.addAll(values, admins_); - onChanged(); - return this; - } - /** - * repeated string admins = 6; - */ - public Builder clearAdmins() { - admins_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * repeated string admins = 6; - */ - public Builder addAdminsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdminsIsMutable(); - admins_.add(value); - onChanged(); - return this; - } - - // repeated string newMembers = 998; - private com.google.protobuf.LazyStringList newMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureNewMembersIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { - newMembers_ = new com.google.protobuf.LazyStringArrayList(newMembers_); - bitField0_ |= 0x00000040; - } - } - /** - * repeated string newMembers = 998; - * - *
-             * Loki - These fields are only used internally for the Android code base.
-             * This is so that we can differentiate adding/kicking.
-             * DO NOT USE WHEN SENDING MESSAGES.
-             * 
- */ - public java.util.List - getNewMembersList() { - return java.util.Collections.unmodifiableList(newMembers_); - } - /** - * repeated string newMembers = 998; - * - *
-             * Loki - These fields are only used internally for the Android code base.
-             * This is so that we can differentiate adding/kicking.
-             * DO NOT USE WHEN SENDING MESSAGES.
-             * 
- */ - public int getNewMembersCount() { - return newMembers_.size(); - } - /** - * repeated string newMembers = 998; - * - *
-             * Loki - These fields are only used internally for the Android code base.
-             * This is so that we can differentiate adding/kicking.
-             * DO NOT USE WHEN SENDING MESSAGES.
-             * 
- */ - public java.lang.String getNewMembers(int index) { - return newMembers_.get(index); - } - /** - * repeated string newMembers = 998; - * - *
-             * Loki - These fields are only used internally for the Android code base.
-             * This is so that we can differentiate adding/kicking.
-             * DO NOT USE WHEN SENDING MESSAGES.
-             * 
- */ - public com.google.protobuf.ByteString - getNewMembersBytes(int index) { - return newMembers_.getByteString(index); - } - /** - * repeated string newMembers = 998; - * - *
-             * Loki - These fields are only used internally for the Android code base.
-             * This is so that we can differentiate adding/kicking.
-             * DO NOT USE WHEN SENDING MESSAGES.
-             * 
- */ - public Builder setNewMembers( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNewMembersIsMutable(); - newMembers_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string newMembers = 998; - * - *
-             * Loki - These fields are only used internally for the Android code base.
-             * This is so that we can differentiate adding/kicking.
-             * DO NOT USE WHEN SENDING MESSAGES.
-             * 
- */ - public Builder addNewMembers( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNewMembersIsMutable(); - newMembers_.add(value); - onChanged(); - return this; - } - /** - * repeated string newMembers = 998; - * - *
-             * Loki - These fields are only used internally for the Android code base.
-             * This is so that we can differentiate adding/kicking.
-             * DO NOT USE WHEN SENDING MESSAGES.
-             * 
- */ - public Builder addAllNewMembers( - java.lang.Iterable values) { - ensureNewMembersIsMutable(); - super.addAll(values, newMembers_); - onChanged(); - return this; - } - /** - * repeated string newMembers = 998; - * - *
-             * Loki - These fields are only used internally for the Android code base.
-             * This is so that we can differentiate adding/kicking.
-             * DO NOT USE WHEN SENDING MESSAGES.
-             * 
- */ - public Builder clearNewMembers() { - newMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * repeated string newMembers = 998; - * - *
-             * Loki - These fields are only used internally for the Android code base.
-             * This is so that we can differentiate adding/kicking.
-             * DO NOT USE WHEN SENDING MESSAGES.
-             * 
- */ - public Builder addNewMembersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNewMembersIsMutable(); - newMembers_.add(value); - onChanged(); - return this; - } - - // repeated string removedMembers = 999; - private com.google.protobuf.LazyStringList removedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureRemovedMembersIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { - removedMembers_ = new com.google.protobuf.LazyStringArrayList(removedMembers_); - bitField0_ |= 0x00000080; - } - } - /** - * repeated string removedMembers = 999; - */ - public java.util.List - getRemovedMembersList() { - return java.util.Collections.unmodifiableList(removedMembers_); - } - /** - * repeated string removedMembers = 999; - */ - public int getRemovedMembersCount() { - return removedMembers_.size(); - } - /** - * repeated string removedMembers = 999; - */ - public java.lang.String getRemovedMembers(int index) { - return removedMembers_.get(index); - } - /** - * repeated string removedMembers = 999; - */ - public com.google.protobuf.ByteString - getRemovedMembersBytes(int index) { - return removedMembers_.getByteString(index); - } - /** - * repeated string removedMembers = 999; - */ - public Builder setRemovedMembers( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRemovedMembersIsMutable(); - removedMembers_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string removedMembers = 999; - */ - public Builder addRemovedMembers( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRemovedMembersIsMutable(); - removedMembers_.add(value); - onChanged(); - return this; - } - /** - * repeated string removedMembers = 999; - */ - public Builder addAllRemovedMembers( - java.lang.Iterable values) { - ensureRemovedMembersIsMutable(); - super.addAll(values, removedMembers_); - onChanged(); - return this; - } - /** - * repeated string removedMembers = 999; - */ - public Builder clearRemovedMembers() { - removedMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - * repeated string removedMembers = 999; - */ - public Builder addRemovedMembersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRemovedMembersIsMutable(); - removedMembers_.add(value); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.GroupContext) + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_Avatar_descriptor; } - static { - defaultInstance = new GroupContext(true); - defaultInstance.initFields(); + public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.getDefaultInstance(); } - // @@protoc_insertion_point(class_scope:signalservice.GroupContext) + public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.contentType_ = contentType_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.length_ = length_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.getDefaultInstance()) return this; + if (other.hasContentType()) { + bitField0_ |= 0x00000001; + contentType_ = other.contentType_; + onChanged(); + } + if (other.hasLength()) { + setLength(other.getLength()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string contentType = 1; + private java.lang.Object contentType_ = ""; + /** + * optional string contentType = 1; + */ + public boolean hasContentType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string contentType = 1; + */ + public java.lang.String getContentType() { + java.lang.Object ref = contentType_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + contentType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string contentType = 1; + */ + public com.google.protobuf.ByteString + getContentTypeBytes() { + java.lang.Object ref = contentType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string contentType = 1; + */ + public Builder setContentType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + contentType_ = value; + onChanged(); + return this; + } + /** + * optional string contentType = 1; + */ + public Builder clearContentType() { + bitField0_ = (bitField0_ & ~0x00000001); + contentType_ = getDefaultInstance().getContentType(); + onChanged(); + return this; + } + /** + * optional string contentType = 1; + */ + public Builder setContentTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + contentType_ = value; + onChanged(); + return this; + } + + // optional uint32 length = 2; + private int length_ ; + /** + * optional uint32 length = 2; + */ + public boolean hasLength() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional uint32 length = 2; + */ + public int getLength() { + return length_; + } + /** + * optional uint32 length = 2; + */ + public Builder setLength(int value) { + bitField0_ |= 0x00000002; + length_ = value; + onChanged(); + return this; + } + /** + * optional uint32 length = 2; + */ + public Builder clearLength() { + bitField0_ = (bitField0_ & ~0x00000002); + length_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.ContactDetails.Avatar) + } + + static { + defaultInstance = new Avatar(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.ContactDetails.Avatar) } - public interface ContactDetailsOrBuilder - extends com.google.protobuf.MessageOrBuilder { + private int bitField0_; + // optional string number = 1; + public static final int NUMBER_FIELD_NUMBER = 1; + private java.lang.Object number_; + /** + * optional string number = 1; + */ + public boolean hasNumber() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string number = 1; + */ + public java.lang.String getNumber() { + java.lang.Object ref = number_; + 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()) { + number_ = s; + } + return s; + } + } + /** + * optional string number = 1; + */ + public com.google.protobuf.ByteString + getNumberBytes() { + java.lang.Object ref = number_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + number_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // optional string number = 1; - /** - * optional string number = 1; - */ - boolean hasNumber(); - /** - * optional string number = 1; - */ - java.lang.String getNumber(); - /** - * optional string number = 1; - */ - com.google.protobuf.ByteString - getNumberBytes(); + // optional string name = 2; + public static final int NAME_FIELD_NUMBER = 2; + private java.lang.Object name_; + /** + * optional string name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + * optional string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // optional string name = 2; - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); + // optional .signalservice.ContactDetails.Avatar avatar = 3; + public static final int AVATAR_FIELD_NUMBER = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar avatar_; + /** + * optional .signalservice.ContactDetails.Avatar avatar = 3; + */ + public boolean hasAvatar() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.ContactDetails.Avatar avatar = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar getAvatar() { + return avatar_; + } + /** + * optional .signalservice.ContactDetails.Avatar avatar = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.AvatarOrBuilder getAvatarOrBuilder() { + return avatar_; + } - // optional .signalservice.ContactDetails.Avatar avatar = 3; - /** - * optional .signalservice.ContactDetails.Avatar avatar = 3; - */ - boolean hasAvatar(); - /** - * optional .signalservice.ContactDetails.Avatar avatar = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar getAvatar(); - /** - * optional .signalservice.ContactDetails.Avatar avatar = 3; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.AvatarOrBuilder getAvatarOrBuilder(); + // optional string color = 4; + public static final int COLOR_FIELD_NUMBER = 4; + private java.lang.Object color_; + /** + * optional string color = 4; + */ + public boolean hasColor() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional string color = 4; + */ + public java.lang.String getColor() { + java.lang.Object ref = color_; + 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()) { + color_ = s; + } + return s; + } + } + /** + * optional string color = 4; + */ + public com.google.protobuf.ByteString + getColorBytes() { + java.lang.Object ref = color_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + color_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // optional string color = 4; - /** - * optional string color = 4; - */ - boolean hasColor(); - /** - * optional string color = 4; - */ - java.lang.String getColor(); - /** - * optional string color = 4; - */ - com.google.protobuf.ByteString - getColorBytes(); + // optional .signalservice.Verified verified = 5; + public static final int VERIFIED_FIELD_NUMBER = 5; + private org.session.libsignal.service.internal.push.SignalServiceProtos.Verified verified_; + /** + * optional .signalservice.Verified verified = 5; + */ + public boolean hasVerified() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .signalservice.Verified verified = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified getVerified() { + return verified_; + } + /** + * optional .signalservice.Verified verified = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder getVerifiedOrBuilder() { + return verified_; + } - // optional .signalservice.Verified verified = 5; - /** - * optional .signalservice.Verified verified = 5; - */ - boolean hasVerified(); - /** - * optional .signalservice.Verified verified = 5; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified getVerified(); - /** - * optional .signalservice.Verified verified = 5; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder getVerifiedOrBuilder(); + // optional bytes profileKey = 6; + public static final int PROFILEKEY_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString profileKey_; + /** + * optional bytes profileKey = 6; + */ + public boolean hasProfileKey() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional bytes profileKey = 6; + */ + public com.google.protobuf.ByteString getProfileKey() { + return profileKey_; + } - // optional bytes profileKey = 6; - /** - * optional bytes profileKey = 6; - */ - boolean hasProfileKey(); - /** - * optional bytes profileKey = 6; - */ - com.google.protobuf.ByteString getProfileKey(); + // optional bool blocked = 7; + public static final int BLOCKED_FIELD_NUMBER = 7; + private boolean blocked_; + /** + * optional bool blocked = 7; + */ + public boolean hasBlocked() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional bool blocked = 7; + */ + public boolean getBlocked() { + return blocked_; + } - // optional bool blocked = 7; - /** - * optional bool blocked = 7; - */ - boolean hasBlocked(); - /** - * optional bool blocked = 7; - */ - boolean getBlocked(); + // optional uint32 expireTimer = 8; + public static final int EXPIRETIMER_FIELD_NUMBER = 8; + private int expireTimer_; + /** + * optional uint32 expireTimer = 8; + */ + public boolean hasExpireTimer() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional uint32 expireTimer = 8; + */ + public int getExpireTimer() { + return expireTimer_; + } - // optional uint32 expireTimer = 8; - /** - * optional uint32 expireTimer = 8; - */ - boolean hasExpireTimer(); - /** - * optional uint32 expireTimer = 8; - */ - int getExpireTimer(); + // optional string nickname = 101; + public static final int NICKNAME_FIELD_NUMBER = 101; + private java.lang.Object nickname_; + /** + * optional string nickname = 101; + * + *
+     * Loki
+     * 
+ */ + public boolean hasNickname() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional string nickname = 101; + * + *
+     * Loki
+     * 
+ */ + public java.lang.String getNickname() { + java.lang.Object ref = nickname_; + 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()) { + nickname_ = s; + } + return s; + } + } + /** + * optional string nickname = 101; + * + *
+     * Loki
+     * 
+ */ + public com.google.protobuf.ByteString + getNicknameBytes() { + java.lang.Object ref = nickname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nickname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // optional string nickname = 101; - /** - * optional string nickname = 101; - * - *
-         * Loki
-         * 
- */ - boolean hasNickname(); - /** - * optional string nickname = 101; - * - *
-         * Loki
-         * 
- */ - java.lang.String getNickname(); - /** - * optional string nickname = 101; - * - *
-         * Loki
-         * 
- */ - com.google.protobuf.ByteString - getNicknameBytes(); + private void initFields() { + number_ = ""; + name_ = ""; + avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.getDefaultInstance(); + color_ = ""; + verified_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); + profileKey_ = com.google.protobuf.ByteString.EMPTY; + blocked_ = false; + expireTimer_ = 0; + nickname_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getNumberBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getNameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, avatar_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(4, getColorBytes()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(5, verified_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBytes(6, profileKey_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeBool(7, blocked_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeUInt32(8, expireTimer_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeBytes(101, getNicknameBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getNumberBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getNameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, avatar_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, getColorBytes()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, verified_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, profileKey_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, blocked_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, expireTimer_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(101, getNicknameBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails 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.service.internal.push.SignalServiceProtos.ContactDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.ContactDetails} */ - public static final class ContactDetails extends - com.google.protobuf.GeneratedMessage - implements ContactDetailsOrBuilder { - // Use ContactDetails.newBuilder() to construct. - private ContactDetails(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ContactDetails(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_descriptor; + } - private static final ContactDetails defaultInstance; - public static ContactDetails getDefaultInstance() { - return defaultInstance; - } + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Builder.class); + } - public ContactDetails getDefaultInstanceForType() { - return defaultInstance; - } + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getAvatarFieldBuilder(); + getVerifiedFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + number_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + if (avatarBuilder_ == null) { + avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.getDefaultInstance(); + } else { + avatarBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + color_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + if (verifiedBuilder_ == null) { + verified_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); + } else { + verifiedBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + profileKey_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + blocked_ = false; + bitField0_ = (bitField0_ & ~0x00000040); + expireTimer_ = 0; + bitField0_ = (bitField0_ & ~0x00000080); + nickname_ = ""; + bitField0_ = (bitField0_ & ~0x00000100); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.number_ = number_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (avatarBuilder_ == null) { + result.avatar_ = avatar_; + } else { + result.avatar_ = avatarBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.color_ = color_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + if (verifiedBuilder_ == null) { + result.verified_ = verified_; + } else { + result.verified_ = verifiedBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.profileKey_ = profileKey_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.blocked_ = blocked_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; + } + result.expireTimer_ = expireTimer_; + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000100; + } + result.nickname_ = nickname_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.getDefaultInstance()) return this; + if (other.hasNumber()) { + bitField0_ |= 0x00000001; + number_ = other.number_; + onChanged(); + } + if (other.hasName()) { + bitField0_ |= 0x00000002; + name_ = other.name_; + onChanged(); + } + if (other.hasAvatar()) { + mergeAvatar(other.getAvatar()); + } + if (other.hasColor()) { + bitField0_ |= 0x00000008; + color_ = other.color_; + onChanged(); + } + if (other.hasVerified()) { + mergeVerified(other.getVerified()); + } + if (other.hasProfileKey()) { + setProfileKey(other.getProfileKey()); + } + if (other.hasBlocked()) { + setBlocked(other.getBlocked()); + } + if (other.hasExpireTimer()) { + setExpireTimer(other.getExpireTimer()); + } + if (other.hasNickname()) { + bitField0_ |= 0x00000100; + nickname_ = other.nickname_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string number = 1; + private java.lang.Object number_ = ""; + /** + * optional string number = 1; + */ + public boolean hasNumber() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string number = 1; + */ + public java.lang.String getNumber() { + java.lang.Object ref = number_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + number_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string number = 1; + */ + public com.google.protobuf.ByteString + getNumberBytes() { + java.lang.Object ref = number_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + number_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string number = 1; + */ + public Builder setNumber( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + number_ = value; + onChanged(); + return this; + } + /** + * optional string number = 1; + */ + public Builder clearNumber() { + bitField0_ = (bitField0_ & ~0x00000001); + number_ = getDefaultInstance().getNumber(); + onChanged(); + return this; + } + /** + * optional string number = 1; + */ + public Builder setNumberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + number_ = value; + onChanged(); + return this; + } + + // optional string name = 2; + private java.lang.Object name_ = ""; + /** + * optional string name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + name_ = value; + onChanged(); + return this; + } + /** + * optional string name = 2; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000002); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * optional string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + name_ = value; + onChanged(); + return this; + } + + // optional .signalservice.ContactDetails.Avatar avatar = 3; + private org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.AvatarOrBuilder> avatarBuilder_; + /** + * optional .signalservice.ContactDetails.Avatar avatar = 3; + */ + public boolean hasAvatar() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.ContactDetails.Avatar avatar = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar getAvatar() { + if (avatarBuilder_ == null) { + return avatar_; + } else { + return avatarBuilder_.getMessage(); + } + } + /** + * optional .signalservice.ContactDetails.Avatar avatar = 3; + */ + public Builder setAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar value) { + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + avatar_ = value; + onChanged(); + } else { + avatarBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.ContactDetails.Avatar avatar = 3; + */ + public Builder setAvatar( + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.Builder builderForValue) { + if (avatarBuilder_ == null) { + avatar_ = builderForValue.build(); + onChanged(); + } else { + avatarBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.ContactDetails.Avatar avatar = 3; + */ + public Builder mergeAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar value) { + if (avatarBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + avatar_ != org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.getDefaultInstance()) { + avatar_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); + } else { + avatar_ = value; + } + onChanged(); + } else { + avatarBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .signalservice.ContactDetails.Avatar avatar = 3; + */ + public Builder clearAvatar() { + if (avatarBuilder_ == null) { + avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.getDefaultInstance(); + onChanged(); + } else { + avatarBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + * optional .signalservice.ContactDetails.Avatar avatar = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.Builder getAvatarBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAvatarFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.ContactDetails.Avatar avatar = 3; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.AvatarOrBuilder getAvatarOrBuilder() { + if (avatarBuilder_ != null) { + return avatarBuilder_.getMessageOrBuilder(); + } else { + return avatar_; + } + } + /** + * optional .signalservice.ContactDetails.Avatar avatar = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.AvatarOrBuilder> + getAvatarFieldBuilder() { + if (avatarBuilder_ == null) { + avatarBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.AvatarOrBuilder>( + avatar_, + getParentForChildren(), + isClean()); + avatar_ = null; + } + return avatarBuilder_; + } + + // optional string color = 4; + private java.lang.Object color_ = ""; + /** + * optional string color = 4; + */ + public boolean hasColor() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional string color = 4; + */ + public java.lang.String getColor() { + java.lang.Object ref = color_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + color_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string color = 4; + */ + public com.google.protobuf.ByteString + getColorBytes() { + java.lang.Object ref = color_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + color_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string color = 4; + */ + public Builder setColor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + color_ = value; + onChanged(); + return this; + } + /** + * optional string color = 4; + */ + public Builder clearColor() { + bitField0_ = (bitField0_ & ~0x00000008); + color_ = getDefaultInstance().getColor(); + onChanged(); + return this; + } + /** + * optional string color = 4; + */ + public Builder setColorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + color_ = value; + onChanged(); + return this; + } + + // optional .signalservice.Verified verified = 5; + private org.session.libsignal.service.internal.push.SignalServiceProtos.Verified verified_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified, org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder> verifiedBuilder_; + /** + * optional .signalservice.Verified verified = 5; + */ + public boolean hasVerified() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .signalservice.Verified verified = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified getVerified() { + if (verifiedBuilder_ == null) { + return verified_; + } else { + return verifiedBuilder_.getMessage(); + } + } + /** + * optional .signalservice.Verified verified = 5; + */ + public Builder setVerified(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified value) { + if (verifiedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + verified_ = value; + onChanged(); + } else { + verifiedBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .signalservice.Verified verified = 5; + */ + public Builder setVerified( + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder builderForValue) { + if (verifiedBuilder_ == null) { + verified_ = builderForValue.build(); + onChanged(); + } else { + verifiedBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .signalservice.Verified verified = 5; + */ + public Builder mergeVerified(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified value) { + if (verifiedBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + verified_ != org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance()) { + verified_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.newBuilder(verified_).mergeFrom(value).buildPartial(); + } else { + verified_ = value; + } + onChanged(); + } else { + verifiedBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + * optional .signalservice.Verified verified = 5; + */ + public Builder clearVerified() { + if (verifiedBuilder_ == null) { + verified_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); + onChanged(); + } else { + verifiedBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + /** + * optional .signalservice.Verified verified = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder getVerifiedBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getVerifiedFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.Verified verified = 5; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder getVerifiedOrBuilder() { + if (verifiedBuilder_ != null) { + return verifiedBuilder_.getMessageOrBuilder(); + } else { + return verified_; + } + } + /** + * optional .signalservice.Verified verified = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified, org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder> + getVerifiedFieldBuilder() { + if (verifiedBuilder_ == null) { + verifiedBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.Verified, org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder>( + verified_, + getParentForChildren(), + isClean()); + verified_ = null; + } + return verifiedBuilder_; + } + + // optional bytes profileKey = 6; + private com.google.protobuf.ByteString profileKey_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes profileKey = 6; + */ + public boolean hasProfileKey() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional bytes profileKey = 6; + */ + public com.google.protobuf.ByteString getProfileKey() { + return profileKey_; + } + /** + * optional bytes profileKey = 6; + */ + public Builder setProfileKey(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + profileKey_ = value; + onChanged(); + return this; + } + /** + * optional bytes profileKey = 6; + */ + public Builder clearProfileKey() { + bitField0_ = (bitField0_ & ~0x00000020); + profileKey_ = getDefaultInstance().getProfileKey(); + onChanged(); + return this; + } + + // optional bool blocked = 7; + private boolean blocked_ ; + /** + * optional bool blocked = 7; + */ + public boolean hasBlocked() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional bool blocked = 7; + */ + public boolean getBlocked() { + return blocked_; + } + /** + * optional bool blocked = 7; + */ + public Builder setBlocked(boolean value) { + bitField0_ |= 0x00000040; + blocked_ = value; + onChanged(); + return this; + } + /** + * optional bool blocked = 7; + */ + public Builder clearBlocked() { + bitField0_ = (bitField0_ & ~0x00000040); + blocked_ = false; + onChanged(); + return this; + } + + // optional uint32 expireTimer = 8; + private int expireTimer_ ; + /** + * optional uint32 expireTimer = 8; + */ + public boolean hasExpireTimer() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional uint32 expireTimer = 8; + */ + public int getExpireTimer() { + return expireTimer_; + } + /** + * optional uint32 expireTimer = 8; + */ + public Builder setExpireTimer(int value) { + bitField0_ |= 0x00000080; + expireTimer_ = value; + onChanged(); + return this; + } + /** + * optional uint32 expireTimer = 8; + */ + public Builder clearExpireTimer() { + bitField0_ = (bitField0_ & ~0x00000080); + expireTimer_ = 0; + onChanged(); + return this; + } + + // optional string nickname = 101; + private java.lang.Object nickname_ = ""; + /** + * optional string nickname = 101; + * + *
+       * Loki
+       * 
+ */ + public boolean hasNickname() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional string nickname = 101; + * + *
+       * Loki
+       * 
+ */ + public java.lang.String getNickname() { + java.lang.Object ref = nickname_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + nickname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string nickname = 101; + * + *
+       * Loki
+       * 
+ */ + public com.google.protobuf.ByteString + getNicknameBytes() { + java.lang.Object ref = nickname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nickname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string nickname = 101; + * + *
+       * Loki
+       * 
+ */ + public Builder setNickname( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + nickname_ = value; + onChanged(); + return this; + } + /** + * optional string nickname = 101; + * + *
+       * Loki
+       * 
+ */ + public Builder clearNickname() { + bitField0_ = (bitField0_ & ~0x00000100); + nickname_ = getDefaultInstance().getNickname(); + onChanged(); + return this; + } + /** + * optional string nickname = 101; + * + *
+       * Loki
+       * 
+ */ + public Builder setNicknameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + nickname_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.ContactDetails) + } + + static { + defaultInstance = new ContactDetails(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.ContactDetails) + } + + public interface GroupDetailsOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional bytes id = 1; + /** + * optional bytes id = 1; + */ + boolean hasId(); + /** + * optional bytes id = 1; + */ + com.google.protobuf.ByteString getId(); + + // optional string name = 2; + /** + * optional string name = 2; + */ + boolean hasName(); + /** + * optional string name = 2; + */ + java.lang.String getName(); + /** + * optional string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + + // repeated string members = 3; + /** + * repeated string members = 3; + */ + java.util.List + getMembersList(); + /** + * repeated string members = 3; + */ + int getMembersCount(); + /** + * repeated string members = 3; + */ + java.lang.String getMembers(int index); + /** + * repeated string members = 3; + */ + com.google.protobuf.ByteString + getMembersBytes(int index); + + // optional .signalservice.GroupDetails.Avatar avatar = 4; + /** + * optional .signalservice.GroupDetails.Avatar avatar = 4; + */ + boolean hasAvatar(); + /** + * optional .signalservice.GroupDetails.Avatar avatar = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar getAvatar(); + /** + * optional .signalservice.GroupDetails.Avatar avatar = 4; + */ + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.AvatarOrBuilder getAvatarOrBuilder(); + + // optional bool active = 5 [default = true]; + /** + * optional bool active = 5 [default = true]; + */ + boolean hasActive(); + /** + * optional bool active = 5 [default = true]; + */ + boolean getActive(); + + // optional uint32 expireTimer = 6; + /** + * optional uint32 expireTimer = 6; + */ + boolean hasExpireTimer(); + /** + * optional uint32 expireTimer = 6; + */ + int getExpireTimer(); + + // optional string color = 7; + /** + * optional string color = 7; + */ + boolean hasColor(); + /** + * optional string color = 7; + */ + java.lang.String getColor(); + /** + * optional string color = 7; + */ + com.google.protobuf.ByteString + getColorBytes(); + + // optional bool blocked = 8; + /** + * optional bool blocked = 8; + */ + boolean hasBlocked(); + /** + * optional bool blocked = 8; + */ + boolean getBlocked(); + + // repeated string admins = 9; + /** + * repeated string admins = 9; + */ + java.util.List + getAdminsList(); + /** + * repeated string admins = 9; + */ + int getAdminsCount(); + /** + * repeated string admins = 9; + */ + java.lang.String getAdmins(int index); + /** + * repeated string admins = 9; + */ + com.google.protobuf.ByteString + getAdminsBytes(int index); + } + /** + * Protobuf type {@code signalservice.GroupDetails} + */ + public static final class GroupDetails extends + com.google.protobuf.GeneratedMessage + implements GroupDetailsOrBuilder { + // Use GroupDetails.newBuilder() to construct. + private GroupDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private GroupDetails(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final GroupDetails defaultInstance; + public static GroupDetails getDefaultInstance() { + return defaultInstance; + } + + public GroupDetails getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - private ContactDetails( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - number_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - name_ = input.readBytes(); - break; - } - case 26: { - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = avatar_.toBuilder(); - } - avatar_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatar_); - avatar_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - bitField0_ |= 0x00000008; - color_ = input.readBytes(); - break; - } - case 42: { - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = verified_.toBuilder(); - } - verified_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(verified_); - verified_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 50: { - bitField0_ |= 0x00000020; - profileKey_ = input.readBytes(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - blocked_ = input.readBool(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - expireTimer_ = input.readUInt32(); - break; - } - case 810: { - bitField0_ |= 0x00000100; - nickname_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); + return this.unknownFields; + } + private GroupDetails( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; } + case 10: { + bitField0_ |= 0x00000001; + id_ = input.readBytes(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + name_ = input.readBytes(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + members_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + members_.add(input.readBytes()); + break; + } + case 34: { + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = avatar_.toBuilder(); + } + avatar_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(avatar_); + avatar_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 40: { + bitField0_ |= 0x00000008; + active_ = input.readBool(); + break; + } + case 48: { + bitField0_ |= 0x00000010; + expireTimer_ = input.readUInt32(); + break; + } + case 58: { + bitField0_ |= 0x00000020; + color_ = input.readBytes(); + break; + } + case 64: { + bitField0_ |= 0x00000040; + blocked_ = input.readBool(); + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + admins_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000100; + } + admins_.add(input.readBytes()); + break; + } + } } - public static final com.google.protobuf.Descriptors.Descriptor + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + members_ = new com.google.protobuf.UnmodifiableLazyStringList(members_); + } + if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + admins_ = new com.google.protobuf.UnmodifiableLazyStringList(admins_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_descriptor; + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.class, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public GroupDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupDetails(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public interface AvatarOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string contentType = 1; + /** + * optional string contentType = 1; + */ + boolean hasContentType(); + /** + * optional string contentType = 1; + */ + java.lang.String getContentType(); + /** + * optional string contentType = 1; + */ + com.google.protobuf.ByteString + getContentTypeBytes(); + + // optional uint32 length = 2; + /** + * optional uint32 length = 2; + */ + boolean hasLength(); + /** + * optional uint32 length = 2; + */ + int getLength(); + } + /** + * Protobuf type {@code signalservice.GroupDetails.Avatar} + */ + public static final class Avatar extends + com.google.protobuf.GeneratedMessage + implements AvatarOrBuilder { + // Use Avatar.newBuilder() to construct. + private Avatar(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Avatar(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Avatar defaultInstance; + public static Avatar getDefaultInstance() { + return defaultInstance; + } + + public Avatar getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Avatar( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + contentType_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + length_ = input.readUInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_Avatar_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_Avatar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.class, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Avatar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Avatar(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string contentType = 1; + public static final int CONTENTTYPE_FIELD_NUMBER = 1; + private java.lang.Object contentType_; + /** + * optional string contentType = 1; + */ + public boolean hasContentType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string contentType = 1; + */ + public java.lang.String getContentType() { + java.lang.Object ref = contentType_; + 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()) { + contentType_ = s; + } + return s; + } + } + /** + * optional string contentType = 1; + */ + public com.google.protobuf.ByteString + getContentTypeBytes() { + java.lang.Object ref = contentType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional uint32 length = 2; + public static final int LENGTH_FIELD_NUMBER = 2; + private int length_; + /** + * optional uint32 length = 2; + */ + public boolean hasLength() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional uint32 length = 2; + */ + public int getLength() { + return length_; + } + + private void initFields() { + contentType_ = ""; + length_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getContentTypeBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeUInt32(2, length_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getContentTypeBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, length_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar 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.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code signalservice.GroupDetails.Avatar} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.AvatarOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_Avatar_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ContactDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContactDetails(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public interface AvatarOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string contentType = 1; - /** - * optional string contentType = 1; - */ - boolean hasContentType(); - /** - * optional string contentType = 1; - */ - java.lang.String getContentType(); - /** - * optional string contentType = 1; - */ - com.google.protobuf.ByteString - getContentTypeBytes(); - - // optional uint32 length = 2; - /** - * optional uint32 length = 2; - */ - boolean hasLength(); - /** - * optional uint32 length = 2; - */ - int getLength(); - } - /** - * Protobuf type {@code signalservice.ContactDetails.Avatar} - */ - public static final class Avatar extends - com.google.protobuf.GeneratedMessage - implements AvatarOrBuilder { - // Use Avatar.newBuilder() to construct. - private Avatar(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Avatar(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Avatar defaultInstance; - public static Avatar getDefaultInstance() { - return defaultInstance; - } - - public Avatar getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Avatar( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - contentType_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - length_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_Avatar_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_Avatar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Avatar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Avatar(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string contentType = 1; - public static final int CONTENTTYPE_FIELD_NUMBER = 1; - private java.lang.Object contentType_; - /** - * optional string contentType = 1; - */ - public boolean hasContentType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string contentType = 1; - */ - public java.lang.String getContentType() { - java.lang.Object ref = contentType_; - 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()) { - contentType_ = s; - } - return s; - } - } - /** - * optional string contentType = 1; - */ - public com.google.protobuf.ByteString - getContentTypeBytes() { - java.lang.Object ref = contentType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contentType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional uint32 length = 2; - public static final int LENGTH_FIELD_NUMBER = 2; - private int length_; - /** - * optional uint32 length = 2; - */ - public boolean hasLength() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional uint32 length = 2; - */ - public int getLength() { - return length_; - } - - private void initFields() { - contentType_ = ""; - length_ = 0; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getContentTypeBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeUInt32(2, length_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getContentTypeBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, length_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar 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.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.ContactDetails.Avatar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.AvatarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_Avatar_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_Avatar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - contentType_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - length_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_Avatar_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.contentType_ = contentType_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.length_ = length_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.getDefaultInstance()) return this; - if (other.hasContentType()) { - bitField0_ |= 0x00000001; - contentType_ = other.contentType_; - onChanged(); - } - if (other.hasLength()) { - setLength(other.getLength()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string contentType = 1; - private java.lang.Object contentType_ = ""; - /** - * optional string contentType = 1; - */ - public boolean hasContentType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string contentType = 1; - */ - public java.lang.String getContentType() { - java.lang.Object ref = contentType_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - contentType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string contentType = 1; - */ - public com.google.protobuf.ByteString - getContentTypeBytes() { - java.lang.Object ref = contentType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contentType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string contentType = 1; - */ - public Builder setContentType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - contentType_ = value; - onChanged(); - return this; - } - /** - * optional string contentType = 1; - */ - public Builder clearContentType() { - bitField0_ = (bitField0_ & ~0x00000001); - contentType_ = getDefaultInstance().getContentType(); - onChanged(); - return this; - } - /** - * optional string contentType = 1; - */ - public Builder setContentTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - contentType_ = value; - onChanged(); - return this; - } - - // optional uint32 length = 2; - private int length_ ; - /** - * optional uint32 length = 2; - */ - public boolean hasLength() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional uint32 length = 2; - */ - public int getLength() { - return length_; - } - /** - * optional uint32 length = 2; - */ - public Builder setLength(int value) { - bitField0_ |= 0x00000002; - length_ = value; - onChanged(); - return this; - } - /** - * optional uint32 length = 2; - */ - public Builder clearLength() { - bitField0_ = (bitField0_ & ~0x00000002); - length_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.ContactDetails.Avatar) - } - - static { - defaultInstance = new Avatar(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.ContactDetails.Avatar) + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_Avatar_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.class, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.Builder.class); } - private int bitField0_; - // optional string number = 1; - public static final int NUMBER_FIELD_NUMBER = 1; - private java.lang.Object number_; - /** - * optional string number = 1; - */ - public boolean hasNumber() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string number = 1; - */ - public java.lang.String getNumber() { - java.lang.Object ref = number_; - 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()) { - number_ = s; - } - return s; - } - } - /** - * optional string number = 1; - */ - public com.google.protobuf.ByteString - getNumberBytes() { - java.lang.Object ref = number_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - number_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - // optional string name = 2; - public static final int NAME_FIELD_NUMBER = 2; - private java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + private static Builder create() { + return new Builder(); } - // optional .signalservice.ContactDetails.Avatar avatar = 3; - public static final int AVATAR_FIELD_NUMBER = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar avatar_; - /** - * optional .signalservice.ContactDetails.Avatar avatar = 3; - */ - public boolean hasAvatar() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .signalservice.ContactDetails.Avatar avatar = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar getAvatar() { - return avatar_; - } - /** - * optional .signalservice.ContactDetails.Avatar avatar = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.AvatarOrBuilder getAvatarOrBuilder() { - return avatar_; + public Builder clear() { + super.clear(); + contentType_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + length_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; } - // optional string color = 4; - public static final int COLOR_FIELD_NUMBER = 4; - private java.lang.Object color_; - /** - * optional string color = 4; - */ - public boolean hasColor() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string color = 4; - */ - public java.lang.String getColor() { - java.lang.Object ref = color_; - 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()) { - color_ = s; - } - return s; - } - } - /** - * optional string color = 4; - */ - public com.google.protobuf.ByteString - getColorBytes() { - java.lang.Object ref = color_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - color_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder clone() { + return create().mergeFrom(buildPartial()); } - // optional .signalservice.Verified verified = 5; - public static final int VERIFIED_FIELD_NUMBER = 5; - private org.session.libsignal.service.internal.push.SignalServiceProtos.Verified verified_; - /** - * optional .signalservice.Verified verified = 5; - */ - public boolean hasVerified() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional .signalservice.Verified verified = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified getVerified() { - return verified_; - } - /** - * optional .signalservice.Verified verified = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder getVerifiedOrBuilder() { - return verified_; - } - - // optional bytes profileKey = 6; - public static final int PROFILEKEY_FIELD_NUMBER = 6; - private com.google.protobuf.ByteString profileKey_; - /** - * optional bytes profileKey = 6; - */ - public boolean hasProfileKey() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional bytes profileKey = 6; - */ - public com.google.protobuf.ByteString getProfileKey() { - return profileKey_; - } - - // optional bool blocked = 7; - public static final int BLOCKED_FIELD_NUMBER = 7; - private boolean blocked_; - /** - * optional bool blocked = 7; - */ - public boolean hasBlocked() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional bool blocked = 7; - */ - public boolean getBlocked() { - return blocked_; - } - - // optional uint32 expireTimer = 8; - public static final int EXPIRETIMER_FIELD_NUMBER = 8; - private int expireTimer_; - /** - * optional uint32 expireTimer = 8; - */ - public boolean hasExpireTimer() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional uint32 expireTimer = 8; - */ - public int getExpireTimer() { - return expireTimer_; - } - - // optional string nickname = 101; - public static final int NICKNAME_FIELD_NUMBER = 101; - private java.lang.Object nickname_; - /** - * optional string nickname = 101; - * - *
-         * Loki
-         * 
- */ - public boolean hasNickname() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional string nickname = 101; - * - *
-         * Loki
-         * 
- */ - public java.lang.String getNickname() { - java.lang.Object ref = nickname_; - 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()) { - nickname_ = s; - } - return s; - } - } - /** - * optional string nickname = 101; - * - *
-         * Loki
-         * 
- */ - public com.google.protobuf.ByteString - getNicknameBytes() { - java.lang.Object ref = nickname_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - number_ = ""; - name_ = ""; - avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.getDefaultInstance(); - color_ = ""; - verified_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); - profileKey_ = com.google.protobuf.ByteString.EMPTY; - blocked_ = false; - expireTimer_ = 0; - nickname_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNumberBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, avatar_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getColorBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, verified_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, profileKey_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBool(7, blocked_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeUInt32(8, expireTimer_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(101, getNicknameBytes()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getNumberBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, avatar_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getColorBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, verified_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, profileKey_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, blocked_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(8, expireTimer_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(101, getNicknameBytes()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails 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.service.internal.push.SignalServiceProtos.ContactDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.ContactDetails} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.class, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getAvatarFieldBuilder(); - getVerifiedFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - number_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - if (avatarBuilder_ == null) { - avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.getDefaultInstance(); - } else { - avatarBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - color_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - if (verifiedBuilder_ == null) { - verified_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); - } else { - verifiedBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - profileKey_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); - blocked_ = false; - bitField0_ = (bitField0_ & ~0x00000040); - expireTimer_ = 0; - bitField0_ = (bitField0_ & ~0x00000080); - nickname_ = ""; - bitField0_ = (bitField0_ & ~0x00000100); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_ContactDetails_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails result = new org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.number_ = number_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (avatarBuilder_ == null) { - result.avatar_ = avatar_; - } else { - result.avatar_ = avatarBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.color_ = color_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - if (verifiedBuilder_ == null) { - result.verified_ = verified_; - } else { - result.verified_ = verifiedBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.profileKey_ = profileKey_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.blocked_ = blocked_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.expireTimer_ = expireTimer_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.nickname_ = nickname_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.getDefaultInstance()) return this; - if (other.hasNumber()) { - bitField0_ |= 0x00000001; - number_ = other.number_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (other.hasAvatar()) { - mergeAvatar(other.getAvatar()); - } - if (other.hasColor()) { - bitField0_ |= 0x00000008; - color_ = other.color_; - onChanged(); - } - if (other.hasVerified()) { - mergeVerified(other.getVerified()); - } - if (other.hasProfileKey()) { - setProfileKey(other.getProfileKey()); - } - if (other.hasBlocked()) { - setBlocked(other.getBlocked()); - } - if (other.hasExpireTimer()) { - setExpireTimer(other.getExpireTimer()); - } - if (other.hasNickname()) { - bitField0_ |= 0x00000100; - nickname_ = other.nickname_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string number = 1; - private java.lang.Object number_ = ""; - /** - * optional string number = 1; - */ - public boolean hasNumber() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string number = 1; - */ - public java.lang.String getNumber() { - java.lang.Object ref = number_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - number_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string number = 1; - */ - public com.google.protobuf.ByteString - getNumberBytes() { - java.lang.Object ref = number_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - number_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string number = 1; - */ - public Builder setNumber( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - number_ = value; - onChanged(); - return this; - } - /** - * optional string number = 1; - */ - public Builder clearNumber() { - bitField0_ = (bitField0_ & ~0x00000001); - number_ = getDefaultInstance().getNumber(); - onChanged(); - return this; - } - /** - * optional string number = 1; - */ - public Builder setNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - number_ = value; - onChanged(); - return this; - } - - // optional string name = 2; - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - - // optional .signalservice.ContactDetails.Avatar avatar = 3; - private org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.AvatarOrBuilder> avatarBuilder_; - /** - * optional .signalservice.ContactDetails.Avatar avatar = 3; - */ - public boolean hasAvatar() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .signalservice.ContactDetails.Avatar avatar = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar getAvatar() { - if (avatarBuilder_ == null) { - return avatar_; - } else { - return avatarBuilder_.getMessage(); - } - } - /** - * optional .signalservice.ContactDetails.Avatar avatar = 3; - */ - public Builder setAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar value) { - if (avatarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatar_ = value; - onChanged(); - } else { - avatarBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.ContactDetails.Avatar avatar = 3; - */ - public Builder setAvatar( - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.Builder builderForValue) { - if (avatarBuilder_ == null) { - avatar_ = builderForValue.build(); - onChanged(); - } else { - avatarBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.ContactDetails.Avatar avatar = 3; - */ - public Builder mergeAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar value) { - if (avatarBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - avatar_ != org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.getDefaultInstance()) { - avatar_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); - } else { - avatar_ = value; - } - onChanged(); - } else { - avatarBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .signalservice.ContactDetails.Avatar avatar = 3; - */ - public Builder clearAvatar() { - if (avatarBuilder_ == null) { - avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.getDefaultInstance(); - onChanged(); - } else { - avatarBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - /** - * optional .signalservice.ContactDetails.Avatar avatar = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.Builder getAvatarBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getAvatarFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.ContactDetails.Avatar avatar = 3; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.AvatarOrBuilder getAvatarOrBuilder() { - if (avatarBuilder_ != null) { - return avatarBuilder_.getMessageOrBuilder(); - } else { - return avatar_; - } - } - /** - * optional .signalservice.ContactDetails.Avatar avatar = 3; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.AvatarOrBuilder> - getAvatarFieldBuilder() { - if (avatarBuilder_ == null) { - avatarBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.ContactDetails.AvatarOrBuilder>( - avatar_, - getParentForChildren(), - isClean()); - avatar_ = null; - } - return avatarBuilder_; - } - - // optional string color = 4; - private java.lang.Object color_ = ""; - /** - * optional string color = 4; - */ - public boolean hasColor() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string color = 4; - */ - public java.lang.String getColor() { - java.lang.Object ref = color_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - color_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string color = 4; - */ - public com.google.protobuf.ByteString - getColorBytes() { - java.lang.Object ref = color_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - color_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string color = 4; - */ - public Builder setColor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - color_ = value; - onChanged(); - return this; - } - /** - * optional string color = 4; - */ - public Builder clearColor() { - bitField0_ = (bitField0_ & ~0x00000008); - color_ = getDefaultInstance().getColor(); - onChanged(); - return this; - } - /** - * optional string color = 4; - */ - public Builder setColorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - color_ = value; - onChanged(); - return this; - } - - // optional .signalservice.Verified verified = 5; - private org.session.libsignal.service.internal.push.SignalServiceProtos.Verified verified_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified, org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder> verifiedBuilder_; - /** - * optional .signalservice.Verified verified = 5; - */ - public boolean hasVerified() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional .signalservice.Verified verified = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified getVerified() { - if (verifiedBuilder_ == null) { - return verified_; - } else { - return verifiedBuilder_.getMessage(); - } - } - /** - * optional .signalservice.Verified verified = 5; - */ - public Builder setVerified(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified value) { - if (verifiedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - verified_ = value; - onChanged(); - } else { - verifiedBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .signalservice.Verified verified = 5; - */ - public Builder setVerified( - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder builderForValue) { - if (verifiedBuilder_ == null) { - verified_ = builderForValue.build(); - onChanged(); - } else { - verifiedBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .signalservice.Verified verified = 5; - */ - public Builder mergeVerified(org.session.libsignal.service.internal.push.SignalServiceProtos.Verified value) { - if (verifiedBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - verified_ != org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance()) { - verified_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.newBuilder(verified_).mergeFrom(value).buildPartial(); - } else { - verified_ = value; - } - onChanged(); - } else { - verifiedBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .signalservice.Verified verified = 5; - */ - public Builder clearVerified() { - if (verifiedBuilder_ == null) { - verified_ = org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.getDefaultInstance(); - onChanged(); - } else { - verifiedBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - /** - * optional .signalservice.Verified verified = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder getVerifiedBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getVerifiedFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.Verified verified = 5; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder getVerifiedOrBuilder() { - if (verifiedBuilder_ != null) { - return verifiedBuilder_.getMessageOrBuilder(); - } else { - return verified_; - } - } - /** - * optional .signalservice.Verified verified = 5; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified, org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder> - getVerifiedFieldBuilder() { - if (verifiedBuilder_ == null) { - verifiedBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.Verified, org.session.libsignal.service.internal.push.SignalServiceProtos.Verified.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.VerifiedOrBuilder>( - verified_, - getParentForChildren(), - isClean()); - verified_ = null; - } - return verifiedBuilder_; - } - - // optional bytes profileKey = 6; - private com.google.protobuf.ByteString profileKey_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes profileKey = 6; - */ - public boolean hasProfileKey() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional bytes profileKey = 6; - */ - public com.google.protobuf.ByteString getProfileKey() { - return profileKey_; - } - /** - * optional bytes profileKey = 6; - */ - public Builder setProfileKey(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - profileKey_ = value; - onChanged(); - return this; - } - /** - * optional bytes profileKey = 6; - */ - public Builder clearProfileKey() { - bitField0_ = (bitField0_ & ~0x00000020); - profileKey_ = getDefaultInstance().getProfileKey(); - onChanged(); - return this; - } - - // optional bool blocked = 7; - private boolean blocked_ ; - /** - * optional bool blocked = 7; - */ - public boolean hasBlocked() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional bool blocked = 7; - */ - public boolean getBlocked() { - return blocked_; - } - /** - * optional bool blocked = 7; - */ - public Builder setBlocked(boolean value) { - bitField0_ |= 0x00000040; - blocked_ = value; - onChanged(); - return this; - } - /** - * optional bool blocked = 7; - */ - public Builder clearBlocked() { - bitField0_ = (bitField0_ & ~0x00000040); - blocked_ = false; - onChanged(); - return this; - } - - // optional uint32 expireTimer = 8; - private int expireTimer_ ; - /** - * optional uint32 expireTimer = 8; - */ - public boolean hasExpireTimer() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional uint32 expireTimer = 8; - */ - public int getExpireTimer() { - return expireTimer_; - } - /** - * optional uint32 expireTimer = 8; - */ - public Builder setExpireTimer(int value) { - bitField0_ |= 0x00000080; - expireTimer_ = value; - onChanged(); - return this; - } - /** - * optional uint32 expireTimer = 8; - */ - public Builder clearExpireTimer() { - bitField0_ = (bitField0_ & ~0x00000080); - expireTimer_ = 0; - onChanged(); - return this; - } - - // optional string nickname = 101; - private java.lang.Object nickname_ = ""; - /** - * optional string nickname = 101; - * - *
-             * Loki
-             * 
- */ - public boolean hasNickname() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional string nickname = 101; - * - *
-             * Loki
-             * 
- */ - public java.lang.String getNickname() { - java.lang.Object ref = nickname_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - nickname_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string nickname = 101; - * - *
-             * Loki
-             * 
- */ - public com.google.protobuf.ByteString - getNicknameBytes() { - java.lang.Object ref = nickname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string nickname = 101; - * - *
-             * Loki
-             * 
- */ - public Builder setNickname( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - nickname_ = value; - onChanged(); - return this; - } - /** - * optional string nickname = 101; - * - *
-             * Loki
-             * 
- */ - public Builder clearNickname() { - bitField0_ = (bitField0_ & ~0x00000100); - nickname_ = getDefaultInstance().getNickname(); - onChanged(); - return this; - } - /** - * optional string nickname = 101; - * - *
-             * Loki
-             * 
- */ - public Builder setNicknameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - nickname_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.ContactDetails) + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_Avatar_descriptor; } - static { - defaultInstance = new ContactDetails(true); - defaultInstance.initFields(); + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.getDefaultInstance(); } - // @@protoc_insertion_point(class_scope:signalservice.ContactDetails) + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar result = new org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.contentType_ = contentType_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.length_ = length_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.getDefaultInstance()) return this; + if (other.hasContentType()) { + bitField0_ |= 0x00000001; + contentType_ = other.contentType_; + onChanged(); + } + if (other.hasLength()) { + setLength(other.getLength()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string contentType = 1; + private java.lang.Object contentType_ = ""; + /** + * optional string contentType = 1; + */ + public boolean hasContentType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string contentType = 1; + */ + public java.lang.String getContentType() { + java.lang.Object ref = contentType_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + contentType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string contentType = 1; + */ + public com.google.protobuf.ByteString + getContentTypeBytes() { + java.lang.Object ref = contentType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + contentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string contentType = 1; + */ + public Builder setContentType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + contentType_ = value; + onChanged(); + return this; + } + /** + * optional string contentType = 1; + */ + public Builder clearContentType() { + bitField0_ = (bitField0_ & ~0x00000001); + contentType_ = getDefaultInstance().getContentType(); + onChanged(); + return this; + } + /** + * optional string contentType = 1; + */ + public Builder setContentTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + contentType_ = value; + onChanged(); + return this; + } + + // optional uint32 length = 2; + private int length_ ; + /** + * optional uint32 length = 2; + */ + public boolean hasLength() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional uint32 length = 2; + */ + public int getLength() { + return length_; + } + /** + * optional uint32 length = 2; + */ + public Builder setLength(int value) { + bitField0_ |= 0x00000002; + length_ = value; + onChanged(); + return this; + } + /** + * optional uint32 length = 2; + */ + public Builder clearLength() { + bitField0_ = (bitField0_ & ~0x00000002); + length_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:signalservice.GroupDetails.Avatar) + } + + static { + defaultInstance = new Avatar(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:signalservice.GroupDetails.Avatar) } - public interface GroupDetailsOrBuilder - extends com.google.protobuf.MessageOrBuilder { + private int bitField0_; + // optional bytes id = 1; + public static final int ID_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString id_; + /** + * optional bytes id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional bytes id = 1; + */ + public com.google.protobuf.ByteString getId() { + return id_; + } - // optional bytes id = 1; - /** - * optional bytes id = 1; - */ - boolean hasId(); - /** - * optional bytes id = 1; - */ - com.google.protobuf.ByteString getId(); + // optional string name = 2; + public static final int NAME_FIELD_NUMBER = 2; + private java.lang.Object name_; + /** + * optional string name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + * optional string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // optional string name = 2; - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); + // repeated string members = 3; + public static final int MEMBERS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList members_; + /** + * repeated string members = 3; + */ + public java.util.List + getMembersList() { + return members_; + } + /** + * repeated string members = 3; + */ + public int getMembersCount() { + return members_.size(); + } + /** + * repeated string members = 3; + */ + public java.lang.String getMembers(int index) { + return members_.get(index); + } + /** + * repeated string members = 3; + */ + public com.google.protobuf.ByteString + getMembersBytes(int index) { + return members_.getByteString(index); + } - // repeated string members = 3; - /** - * repeated string members = 3; - */ - java.util.List - getMembersList(); - /** - * repeated string members = 3; - */ - int getMembersCount(); - /** - * repeated string members = 3; - */ - java.lang.String getMembers(int index); - /** - * repeated string members = 3; - */ - com.google.protobuf.ByteString - getMembersBytes(int index); + // optional .signalservice.GroupDetails.Avatar avatar = 4; + public static final int AVATAR_FIELD_NUMBER = 4; + private org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar avatar_; + /** + * optional .signalservice.GroupDetails.Avatar avatar = 4; + */ + public boolean hasAvatar() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.GroupDetails.Avatar avatar = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar getAvatar() { + return avatar_; + } + /** + * optional .signalservice.GroupDetails.Avatar avatar = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.AvatarOrBuilder getAvatarOrBuilder() { + return avatar_; + } - // optional .signalservice.GroupDetails.Avatar avatar = 4; - /** - * optional .signalservice.GroupDetails.Avatar avatar = 4; - */ - boolean hasAvatar(); - /** - * optional .signalservice.GroupDetails.Avatar avatar = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar getAvatar(); - /** - * optional .signalservice.GroupDetails.Avatar avatar = 4; - */ - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.AvatarOrBuilder getAvatarOrBuilder(); + // optional bool active = 5 [default = true]; + public static final int ACTIVE_FIELD_NUMBER = 5; + private boolean active_; + /** + * optional bool active = 5 [default = true]; + */ + public boolean hasActive() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional bool active = 5 [default = true]; + */ + public boolean getActive() { + return active_; + } - // optional bool active = 5 [default = true]; - /** - * optional bool active = 5 [default = true]; - */ - boolean hasActive(); - /** - * optional bool active = 5 [default = true]; - */ - boolean getActive(); + // optional uint32 expireTimer = 6; + public static final int EXPIRETIMER_FIELD_NUMBER = 6; + private int expireTimer_; + /** + * optional uint32 expireTimer = 6; + */ + public boolean hasExpireTimer() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional uint32 expireTimer = 6; + */ + public int getExpireTimer() { + return expireTimer_; + } - // optional uint32 expireTimer = 6; - /** - * optional uint32 expireTimer = 6; - */ - boolean hasExpireTimer(); - /** - * optional uint32 expireTimer = 6; - */ - int getExpireTimer(); + // optional string color = 7; + public static final int COLOR_FIELD_NUMBER = 7; + private java.lang.Object color_; + /** + * optional string color = 7; + */ + public boolean hasColor() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional string color = 7; + */ + public java.lang.String getColor() { + java.lang.Object ref = color_; + 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()) { + color_ = s; + } + return s; + } + } + /** + * optional string color = 7; + */ + public com.google.protobuf.ByteString + getColorBytes() { + java.lang.Object ref = color_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + color_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // optional string color = 7; - /** - * optional string color = 7; - */ - boolean hasColor(); - /** - * optional string color = 7; - */ - java.lang.String getColor(); - /** - * optional string color = 7; - */ - com.google.protobuf.ByteString - getColorBytes(); + // optional bool blocked = 8; + public static final int BLOCKED_FIELD_NUMBER = 8; + private boolean blocked_; + /** + * optional bool blocked = 8; + */ + public boolean hasBlocked() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional bool blocked = 8; + */ + public boolean getBlocked() { + return blocked_; + } - // optional bool blocked = 8; - /** - * optional bool blocked = 8; - */ - boolean hasBlocked(); - /** - * optional bool blocked = 8; - */ - boolean getBlocked(); + // repeated string admins = 9; + public static final int ADMINS_FIELD_NUMBER = 9; + private com.google.protobuf.LazyStringList admins_; + /** + * repeated string admins = 9; + */ + public java.util.List + getAdminsList() { + return admins_; + } + /** + * repeated string admins = 9; + */ + public int getAdminsCount() { + return admins_.size(); + } + /** + * repeated string admins = 9; + */ + public java.lang.String getAdmins(int index) { + return admins_.get(index); + } + /** + * repeated string admins = 9; + */ + public com.google.protobuf.ByteString + getAdminsBytes(int index) { + return admins_.getByteString(index); + } - // repeated string admins = 9; - /** - * repeated string admins = 9; - */ - java.util.List - getAdminsList(); - /** - * repeated string admins = 9; - */ - int getAdminsCount(); - /** - * repeated string admins = 9; - */ - java.lang.String getAdmins(int index); - /** - * repeated string admins = 9; - */ - com.google.protobuf.ByteString - getAdminsBytes(int index); + private void initFields() { + id_ = com.google.protobuf.ByteString.EMPTY; + name_ = ""; + members_ = com.google.protobuf.LazyStringArrayList.EMPTY; + avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.getDefaultInstance(); + active_ = true; + expireTimer_ = 0; + color_ = ""; + blocked_ = false; + admins_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getNameBytes()); + } + for (int i = 0; i < members_.size(); i++) { + output.writeBytes(3, members_.getByteString(i)); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(4, avatar_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBool(5, active_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeUInt32(6, expireTimer_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBytes(7, getColorBytes()); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeBool(8, blocked_); + } + for (int i = 0; i < admins_.size(); i++) { + output.writeBytes(9, admins_.getByteString(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, id_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getNameBytes()); + } + { + int dataSize = 0; + for (int i = 0; i < members_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(members_.getByteString(i)); + } + size += dataSize; + size += 1 * getMembersList().size(); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, avatar_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, active_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, expireTimer_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, getColorBytes()); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, blocked_); + } + { + int dataSize = 0; + for (int i = 0; i < admins_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(admins_.getByteString(i)); + } + size += dataSize; + size += 1 * getAdminsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails 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.service.internal.push.SignalServiceProtos.GroupDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * Protobuf type {@code signalservice.GroupDetails} */ - public static final class GroupDetails extends - com.google.protobuf.GeneratedMessage - implements GroupDetailsOrBuilder { - // Use GroupDetails.newBuilder() to construct. - private GroupDetails(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.class, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Builder.class); + } + + // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getAvatarFieldBuilder(); } - private GroupDetails(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + } + private static Builder create() { + return new Builder(); + } - private static final GroupDetails defaultInstance; - public static GroupDetails getDefaultInstance() { - return defaultInstance; + public Builder clear() { + super.clear(); + id_ = com.google.protobuf.ByteString.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + members_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + if (avatarBuilder_ == null) { + avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.getDefaultInstance(); + } else { + avatarBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000008); + active_ = true; + bitField0_ = (bitField0_ & ~0x00000010); + expireTimer_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + color_ = ""; + bitField0_ = (bitField0_ & ~0x00000040); + blocked_ = false; + bitField0_ = (bitField0_ & ~0x00000080); + admins_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000100); + return this; + } - public GroupDetails getDefaultInstanceForType() { - return defaultInstance; + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_descriptor; + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails getDefaultInstanceForType() { + return org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.getDefaultInstance(); + } + + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails build() { + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails buildPartial() { + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails result = new org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; } - private GroupDetails( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - id_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - name_ = input.readBytes(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - members_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - members_.add(input.readBytes()); - break; - } - case 34: { - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = avatar_.toBuilder(); - } - avatar_ = input.readMessage(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(avatar_); - avatar_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 40: { - bitField0_ |= 0x00000008; - active_ = input.readBool(); - break; - } - case 48: { - bitField0_ |= 0x00000010; - expireTimer_ = input.readUInt32(); - break; - } - case 58: { - bitField0_ |= 0x00000020; - color_ = input.readBytes(); - break; - } - case 64: { - bitField0_ |= 0x00000040; - blocked_ = input.readBool(); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { - admins_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000100; - } - admins_.add(input.readBytes()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - members_ = new com.google.protobuf.UnmodifiableLazyStringList(members_); - } - if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { - admins_ = new com.google.protobuf.UnmodifiableLazyStringList(admins_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } + result.id_ = id_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_descriptor; + result.name_ = name_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + members_ = new com.google.protobuf.UnmodifiableLazyStringList( + members_); + bitField0_ = (bitField0_ & ~0x00000004); } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.class, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Builder.class); + result.members_ = members_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000004; } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GroupDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupDetails(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + if (avatarBuilder_ == null) { + result.avatar_ = avatar_; + } else { + result.avatar_ = avatarBuilder_.build(); } - - public interface AvatarOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string contentType = 1; - /** - * optional string contentType = 1; - */ - boolean hasContentType(); - /** - * optional string contentType = 1; - */ - java.lang.String getContentType(); - /** - * optional string contentType = 1; - */ - com.google.protobuf.ByteString - getContentTypeBytes(); - - // optional uint32 length = 2; - /** - * optional uint32 length = 2; - */ - boolean hasLength(); - /** - * optional uint32 length = 2; - */ - int getLength(); + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; } - /** - * Protobuf type {@code signalservice.GroupDetails.Avatar} - */ - public static final class Avatar extends - com.google.protobuf.GeneratedMessage - implements AvatarOrBuilder { - // Use Avatar.newBuilder() to construct. - private Avatar(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Avatar(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Avatar defaultInstance; - public static Avatar getDefaultInstance() { - return defaultInstance; - } - - public Avatar getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Avatar( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - contentType_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - length_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_Avatar_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_Avatar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.class, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Avatar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Avatar(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string contentType = 1; - public static final int CONTENTTYPE_FIELD_NUMBER = 1; - private java.lang.Object contentType_; - /** - * optional string contentType = 1; - */ - public boolean hasContentType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string contentType = 1; - */ - public java.lang.String getContentType() { - java.lang.Object ref = contentType_; - 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()) { - contentType_ = s; - } - return s; - } - } - /** - * optional string contentType = 1; - */ - public com.google.protobuf.ByteString - getContentTypeBytes() { - java.lang.Object ref = contentType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contentType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional uint32 length = 2; - public static final int LENGTH_FIELD_NUMBER = 2; - private int length_; - /** - * optional uint32 length = 2; - */ - public boolean hasLength() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional uint32 length = 2; - */ - public int getLength() { - return length_; - } - - private void initFields() { - contentType_ = ""; - length_ = 0; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getContentTypeBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeUInt32(2, length_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getContentTypeBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, length_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar 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.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.GroupDetails.Avatar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.AvatarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_Avatar_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_Avatar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.class, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - contentType_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - length_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_Avatar_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar result = new org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.contentType_ = contentType_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.length_ = length_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.getDefaultInstance()) return this; - if (other.hasContentType()) { - bitField0_ |= 0x00000001; - contentType_ = other.contentType_; - onChanged(); - } - if (other.hasLength()) { - setLength(other.getLength()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string contentType = 1; - private java.lang.Object contentType_ = ""; - /** - * optional string contentType = 1; - */ - public boolean hasContentType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string contentType = 1; - */ - public java.lang.String getContentType() { - java.lang.Object ref = contentType_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - contentType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string contentType = 1; - */ - public com.google.protobuf.ByteString - getContentTypeBytes() { - java.lang.Object ref = contentType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - contentType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string contentType = 1; - */ - public Builder setContentType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - contentType_ = value; - onChanged(); - return this; - } - /** - * optional string contentType = 1; - */ - public Builder clearContentType() { - bitField0_ = (bitField0_ & ~0x00000001); - contentType_ = getDefaultInstance().getContentType(); - onChanged(); - return this; - } - /** - * optional string contentType = 1; - */ - public Builder setContentTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - contentType_ = value; - onChanged(); - return this; - } - - // optional uint32 length = 2; - private int length_ ; - /** - * optional uint32 length = 2; - */ - public boolean hasLength() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional uint32 length = 2; - */ - public int getLength() { - return length_; - } - /** - * optional uint32 length = 2; - */ - public Builder setLength(int value) { - bitField0_ |= 0x00000002; - length_ = value; - onChanged(); - return this; - } - /** - * optional uint32 length = 2; - */ - public Builder clearLength() { - bitField0_ = (bitField0_ & ~0x00000002); - length_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.GroupDetails.Avatar) - } - - static { - defaultInstance = new Avatar(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.GroupDetails.Avatar) + result.active_ = active_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; } + result.expireTimer_ = expireTimer_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000020; + } + result.color_ = color_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000040; + } + result.blocked_ = blocked_; + if (((bitField0_ & 0x00000100) == 0x00000100)) { + admins_ = new com.google.protobuf.UnmodifiableLazyStringList( + admins_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.admins_ = admins_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } - private int bitField0_; - // optional bytes id = 1; - public static final int ID_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString id_; - /** - * optional bytes id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bytes id = 1; - */ - public com.google.protobuf.ByteString getId() { - return id_; + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails) { + return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails)other); + } else { + super.mergeFrom(other); + return this; } + } - // optional string name = 2; - public static final int NAME_FIELD_NUMBER = 2; - private java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails other) { + if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.getDefaultInstance()) return this; + if (other.hasId()) { + setId(other.getId()); } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } + if (other.hasName()) { + bitField0_ |= 0x00000002; + name_ = other.name_; + onChanged(); } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + if (!other.members_.isEmpty()) { + if (members_.isEmpty()) { + members_ = other.members_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureMembersIsMutable(); + members_.addAll(other.members_); + } + onChanged(); } + if (other.hasAvatar()) { + mergeAvatar(other.getAvatar()); + } + if (other.hasActive()) { + setActive(other.getActive()); + } + if (other.hasExpireTimer()) { + setExpireTimer(other.getExpireTimer()); + } + if (other.hasColor()) { + bitField0_ |= 0x00000040; + color_ = other.color_; + onChanged(); + } + if (other.hasBlocked()) { + setBlocked(other.getBlocked()); + } + if (!other.admins_.isEmpty()) { + if (admins_.isEmpty()) { + admins_ = other.admins_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureAdminsIsMutable(); + admins_.addAll(other.admins_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } - // repeated string members = 3; - public static final int MEMBERS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList members_; - /** - * repeated string members = 3; - */ - public java.util.List - getMembersList() { - return members_; + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } } - /** - * repeated string members = 3; - */ - public int getMembersCount() { - return members_.size(); + return this; + } + private int bitField0_; + + // optional bytes id = 1; + private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional bytes id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional bytes id = 1; + */ + public com.google.protobuf.ByteString getId() { + return id_; + } + /** + * optional bytes id = 1; + */ + public Builder setId(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + /** + * optional bytes id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + + // optional string name = 2; + private java.lang.Object name_ = ""; + /** + * optional string name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; } - /** - * repeated string members = 3; - */ - public java.lang.String getMembers(int index) { - return members_.get(index); + } + /** + * optional string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - /** - * repeated string members = 3; - */ - public com.google.protobuf.ByteString - getMembersBytes(int index) { - return members_.getByteString(index); + } + /** + * optional string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + name_ = value; + onChanged(); + return this; + } + /** + * optional string name = 2; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000002); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * optional string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + name_ = value; + onChanged(); + return this; + } + + // repeated string members = 3; + private com.google.protobuf.LazyStringList members_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMembersIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + members_ = new com.google.protobuf.LazyStringArrayList(members_); + bitField0_ |= 0x00000004; + } + } + /** + * repeated string members = 3; + */ + public java.util.List + getMembersList() { + return java.util.Collections.unmodifiableList(members_); + } + /** + * repeated string members = 3; + */ + public int getMembersCount() { + return members_.size(); + } + /** + * repeated string members = 3; + */ + public java.lang.String getMembers(int index) { + return members_.get(index); + } + /** + * repeated string members = 3; + */ + public com.google.protobuf.ByteString + getMembersBytes(int index) { + return members_.getByteString(index); + } + /** + * repeated string members = 3; + */ + public Builder setMembers( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string members = 3; + */ + public Builder addMembers( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(value); + onChanged(); + return this; + } + /** + * repeated string members = 3; + */ + public Builder addAllMembers( + java.lang.Iterable values) { + ensureMembersIsMutable(); + super.addAll(values, members_); + onChanged(); + return this; + } + /** + * repeated string members = 3; + */ + public Builder clearMembers() { + members_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * repeated string members = 3; + */ + public Builder addMembersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembersIsMutable(); + members_.add(value); + onChanged(); + return this; + } + + // optional .signalservice.GroupDetails.Avatar avatar = 4; + private org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.AvatarOrBuilder> avatarBuilder_; + /** + * optional .signalservice.GroupDetails.Avatar avatar = 4; + */ + public boolean hasAvatar() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional .signalservice.GroupDetails.Avatar avatar = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar getAvatar() { + if (avatarBuilder_ == null) { + return avatar_; + } else { + return avatarBuilder_.getMessage(); } - - // optional .signalservice.GroupDetails.Avatar avatar = 4; - public static final int AVATAR_FIELD_NUMBER = 4; - private org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar avatar_; - /** - * optional .signalservice.GroupDetails.Avatar avatar = 4; - */ - public boolean hasAvatar() { - return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .signalservice.GroupDetails.Avatar avatar = 4; + */ + public Builder setAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar value) { + if (avatarBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + avatar_ = value; + onChanged(); + } else { + avatarBuilder_.setMessage(value); } - /** - * optional .signalservice.GroupDetails.Avatar avatar = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar getAvatar() { - return avatar_; + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.GroupDetails.Avatar avatar = 4; + */ + public Builder setAvatar( + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.Builder builderForValue) { + if (avatarBuilder_ == null) { + avatar_ = builderForValue.build(); + onChanged(); + } else { + avatarBuilder_.setMessage(builderForValue.build()); } - /** - * optional .signalservice.GroupDetails.Avatar avatar = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.AvatarOrBuilder getAvatarOrBuilder() { - return avatar_; + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.GroupDetails.Avatar avatar = 4; + */ + public Builder mergeAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar value) { + if (avatarBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + avatar_ != org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.getDefaultInstance()) { + avatar_ = + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); + } else { + avatar_ = value; + } + onChanged(); + } else { + avatarBuilder_.mergeFrom(value); } - - // optional bool active = 5 [default = true]; - public static final int ACTIVE_FIELD_NUMBER = 5; - private boolean active_; - /** - * optional bool active = 5 [default = true]; - */ - public boolean hasActive() { - return ((bitField0_ & 0x00000008) == 0x00000008); + bitField0_ |= 0x00000008; + return this; + } + /** + * optional .signalservice.GroupDetails.Avatar avatar = 4; + */ + public Builder clearAvatar() { + if (avatarBuilder_ == null) { + avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.getDefaultInstance(); + onChanged(); + } else { + avatarBuilder_.clear(); } - /** - * optional bool active = 5 [default = true]; - */ - public boolean getActive() { - return active_; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + /** + * optional .signalservice.GroupDetails.Avatar avatar = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.Builder getAvatarBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getAvatarFieldBuilder().getBuilder(); + } + /** + * optional .signalservice.GroupDetails.Avatar avatar = 4; + */ + public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.AvatarOrBuilder getAvatarOrBuilder() { + if (avatarBuilder_ != null) { + return avatarBuilder_.getMessageOrBuilder(); + } else { + return avatar_; } - - // optional uint32 expireTimer = 6; - public static final int EXPIRETIMER_FIELD_NUMBER = 6; - private int expireTimer_; - /** - * optional uint32 expireTimer = 6; - */ - public boolean hasExpireTimer() { - return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional .signalservice.GroupDetails.Avatar avatar = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.AvatarOrBuilder> + getAvatarFieldBuilder() { + if (avatarBuilder_ == null) { + avatarBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.AvatarOrBuilder>( + avatar_, + getParentForChildren(), + isClean()); + avatar_ = null; } - /** - * optional uint32 expireTimer = 6; - */ - public int getExpireTimer() { - return expireTimer_; + return avatarBuilder_; + } + + // optional bool active = 5 [default = true]; + private boolean active_ = true; + /** + * optional bool active = 5 [default = true]; + */ + public boolean hasActive() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional bool active = 5 [default = true]; + */ + public boolean getActive() { + return active_; + } + /** + * optional bool active = 5 [default = true]; + */ + public Builder setActive(boolean value) { + bitField0_ |= 0x00000010; + active_ = value; + onChanged(); + return this; + } + /** + * optional bool active = 5 [default = true]; + */ + public Builder clearActive() { + bitField0_ = (bitField0_ & ~0x00000010); + active_ = true; + onChanged(); + return this; + } + + // optional uint32 expireTimer = 6; + private int expireTimer_ ; + /** + * optional uint32 expireTimer = 6; + */ + public boolean hasExpireTimer() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional uint32 expireTimer = 6; + */ + public int getExpireTimer() { + return expireTimer_; + } + /** + * optional uint32 expireTimer = 6; + */ + public Builder setExpireTimer(int value) { + bitField0_ |= 0x00000020; + expireTimer_ = value; + onChanged(); + return this; + } + /** + * optional uint32 expireTimer = 6; + */ + public Builder clearExpireTimer() { + bitField0_ = (bitField0_ & ~0x00000020); + expireTimer_ = 0; + onChanged(); + return this; + } + + // optional string color = 7; + private java.lang.Object color_ = ""; + /** + * optional string color = 7; + */ + public boolean hasColor() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional string color = 7; + */ + public java.lang.String getColor() { + java.lang.Object ref = color_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + color_ = s; + return s; + } else { + return (java.lang.String) ref; } - - // optional string color = 7; - public static final int COLOR_FIELD_NUMBER = 7; - private java.lang.Object color_; - /** - * optional string color = 7; - */ - public boolean hasColor() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string color = 7; - */ - public java.lang.String getColor() { - java.lang.Object ref = color_; - 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()) { - color_ = s; - } - return s; - } - } - /** - * optional string color = 7; - */ - public com.google.protobuf.ByteString - getColorBytes() { - java.lang.Object ref = color_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - color_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + } + /** + * optional string color = 7; + */ + public com.google.protobuf.ByteString + getColorBytes() { + java.lang.Object ref = color_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + color_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } + /** + * optional string color = 7; + */ + public Builder setColor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + color_ = value; + onChanged(); + return this; + } + /** + * optional string color = 7; + */ + public Builder clearColor() { + bitField0_ = (bitField0_ & ~0x00000040); + color_ = getDefaultInstance().getColor(); + onChanged(); + return this; + } + /** + * optional string color = 7; + */ + public Builder setColorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + color_ = value; + onChanged(); + return this; + } - // optional bool blocked = 8; - public static final int BLOCKED_FIELD_NUMBER = 8; - private boolean blocked_; - /** - * optional bool blocked = 8; - */ - public boolean hasBlocked() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional bool blocked = 8; - */ - public boolean getBlocked() { - return blocked_; - } + // optional bool blocked = 8; + private boolean blocked_ ; + /** + * optional bool blocked = 8; + */ + public boolean hasBlocked() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional bool blocked = 8; + */ + public boolean getBlocked() { + return blocked_; + } + /** + * optional bool blocked = 8; + */ + public Builder setBlocked(boolean value) { + bitField0_ |= 0x00000080; + blocked_ = value; + onChanged(); + return this; + } + /** + * optional bool blocked = 8; + */ + public Builder clearBlocked() { + bitField0_ = (bitField0_ & ~0x00000080); + blocked_ = false; + onChanged(); + return this; + } - // repeated string admins = 9; - public static final int ADMINS_FIELD_NUMBER = 9; - private com.google.protobuf.LazyStringList admins_; - /** - * repeated string admins = 9; - */ - public java.util.List - getAdminsList() { - return admins_; - } - /** - * repeated string admins = 9; - */ - public int getAdminsCount() { - return admins_.size(); - } - /** - * repeated string admins = 9; - */ - public java.lang.String getAdmins(int index) { - return admins_.get(index); - } - /** - * repeated string admins = 9; - */ - public com.google.protobuf.ByteString - getAdminsBytes(int index) { - return admins_.getByteString(index); - } + // repeated string admins = 9; + private com.google.protobuf.LazyStringList admins_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAdminsIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + admins_ = new com.google.protobuf.LazyStringArrayList(admins_); + bitField0_ |= 0x00000100; + } + } + /** + * repeated string admins = 9; + */ + public java.util.List + getAdminsList() { + return java.util.Collections.unmodifiableList(admins_); + } + /** + * repeated string admins = 9; + */ + public int getAdminsCount() { + return admins_.size(); + } + /** + * repeated string admins = 9; + */ + public java.lang.String getAdmins(int index) { + return admins_.get(index); + } + /** + * repeated string admins = 9; + */ + public com.google.protobuf.ByteString + getAdminsBytes(int index) { + return admins_.getByteString(index); + } + /** + * repeated string admins = 9; + */ + public Builder setAdmins( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdminsIsMutable(); + admins_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string admins = 9; + */ + public Builder addAdmins( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdminsIsMutable(); + admins_.add(value); + onChanged(); + return this; + } + /** + * repeated string admins = 9; + */ + public Builder addAllAdmins( + java.lang.Iterable values) { + ensureAdminsIsMutable(); + super.addAll(values, admins_); + onChanged(); + return this; + } + /** + * repeated string admins = 9; + */ + public Builder clearAdmins() { + admins_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * repeated string admins = 9; + */ + public Builder addAdminsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdminsIsMutable(); + admins_.add(value); + onChanged(); + return this; + } - private void initFields() { - id_ = com.google.protobuf.ByteString.EMPTY; - name_ = ""; - members_ = com.google.protobuf.LazyStringArrayList.EMPTY; - avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.getDefaultInstance(); - active_ = true; - expireTimer_ = 0; - color_ = ""; - blocked_ = false; - admins_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, id_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - for (int i = 0; i < members_.size(); i++) { - output.writeBytes(3, members_.getByteString(i)); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(4, avatar_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBool(5, active_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeUInt32(6, expireTimer_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(7, getColorBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBool(8, blocked_); - } - for (int i = 0; i < admins_.size(); i++) { - output.writeBytes(9, admins_.getByteString(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, id_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - { - int dataSize = 0; - for (int i = 0; i < members_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(members_.getByteString(i)); - } - size += dataSize; - size += 1 * getMembersList().size(); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, avatar_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, active_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(6, expireTimer_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getColorBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, blocked_); - } - { - int dataSize = 0; - for (int i = 0; i < admins_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(admins_.getByteString(i)); - } - size += dataSize; - size += 1 * getAdminsList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails 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.service.internal.push.SignalServiceProtos.GroupDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code signalservice.GroupDetails} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.class, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Builder.class); - } - - // Construct using org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getAvatarFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - id_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - members_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (avatarBuilder_ == null) { - avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.getDefaultInstance(); - } else { - avatarBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - active_ = true; - bitField0_ = (bitField0_ & ~0x00000010); - expireTimer_ = 0; - bitField0_ = (bitField0_ & ~0x00000020); - color_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); - blocked_ = false; - bitField0_ = (bitField0_ & ~0x00000080); - admins_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000100); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.internal_static_signalservice_GroupDetails_descriptor; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails getDefaultInstanceForType() { - return org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.getDefaultInstance(); - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails build() { - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails buildPartial() { - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails result = new org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - members_ = new com.google.protobuf.UnmodifiableLazyStringList( - members_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.members_ = members_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000004; - } - if (avatarBuilder_ == null) { - result.avatar_ = avatar_; - } else { - result.avatar_ = avatarBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000008; - } - result.active_ = active_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000010; - } - result.expireTimer_ = expireTimer_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000020; - } - result.color_ = color_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000040; - } - result.blocked_ = blocked_; - if (((bitField0_ & 0x00000100) == 0x00000100)) { - admins_ = new com.google.protobuf.UnmodifiableLazyStringList( - admins_); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.admins_ = admins_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails) { - return mergeFrom((org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails other) { - if (other == org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.getDefaultInstance()) return this; - if (other.hasId()) { - setId(other.getId()); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (!other.members_.isEmpty()) { - if (members_.isEmpty()) { - members_ = other.members_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureMembersIsMutable(); - members_.addAll(other.members_); - } - onChanged(); - } - if (other.hasAvatar()) { - mergeAvatar(other.getAvatar()); - } - if (other.hasActive()) { - setActive(other.getActive()); - } - if (other.hasExpireTimer()) { - setExpireTimer(other.getExpireTimer()); - } - if (other.hasColor()) { - bitField0_ |= 0x00000040; - color_ = other.color_; - onChanged(); - } - if (other.hasBlocked()) { - setBlocked(other.getBlocked()); - } - if (!other.admins_.isEmpty()) { - if (admins_.isEmpty()) { - admins_ = other.admins_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureAdminsIsMutable(); - admins_.addAll(other.admins_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional bytes id = 1; - private com.google.protobuf.ByteString id_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bytes id = 1; - */ - public com.google.protobuf.ByteString getId() { - return id_; - } - /** - * optional bytes id = 1; - */ - public Builder setId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional bytes id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - - // optional string name = 2; - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - - // repeated string members = 3; - private com.google.protobuf.LazyStringList members_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureMembersIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - members_ = new com.google.protobuf.LazyStringArrayList(members_); - bitField0_ |= 0x00000004; - } - } - /** - * repeated string members = 3; - */ - public java.util.List - getMembersList() { - return java.util.Collections.unmodifiableList(members_); - } - /** - * repeated string members = 3; - */ - public int getMembersCount() { - return members_.size(); - } - /** - * repeated string members = 3; - */ - public java.lang.String getMembers(int index) { - return members_.get(index); - } - /** - * repeated string members = 3; - */ - public com.google.protobuf.ByteString - getMembersBytes(int index) { - return members_.getByteString(index); - } - /** - * repeated string members = 3; - */ - public Builder setMembers( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMembersIsMutable(); - members_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string members = 3; - */ - public Builder addMembers( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMembersIsMutable(); - members_.add(value); - onChanged(); - return this; - } - /** - * repeated string members = 3; - */ - public Builder addAllMembers( - java.lang.Iterable values) { - ensureMembersIsMutable(); - super.addAll(values, members_); - onChanged(); - return this; - } - /** - * repeated string members = 3; - */ - public Builder clearMembers() { - members_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * repeated string members = 3; - */ - public Builder addMembersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMembersIsMutable(); - members_.add(value); - onChanged(); - return this; - } - - // optional .signalservice.GroupDetails.Avatar avatar = 4; - private org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.AvatarOrBuilder> avatarBuilder_; - /** - * optional .signalservice.GroupDetails.Avatar avatar = 4; - */ - public boolean hasAvatar() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .signalservice.GroupDetails.Avatar avatar = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar getAvatar() { - if (avatarBuilder_ == null) { - return avatar_; - } else { - return avatarBuilder_.getMessage(); - } - } - /** - * optional .signalservice.GroupDetails.Avatar avatar = 4; - */ - public Builder setAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar value) { - if (avatarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - avatar_ = value; - onChanged(); - } else { - avatarBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.GroupDetails.Avatar avatar = 4; - */ - public Builder setAvatar( - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.Builder builderForValue) { - if (avatarBuilder_ == null) { - avatar_ = builderForValue.build(); - onChanged(); - } else { - avatarBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.GroupDetails.Avatar avatar = 4; - */ - public Builder mergeAvatar(org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar value) { - if (avatarBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - avatar_ != org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.getDefaultInstance()) { - avatar_ = - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.newBuilder(avatar_).mergeFrom(value).buildPartial(); - } else { - avatar_ = value; - } - onChanged(); - } else { - avatarBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .signalservice.GroupDetails.Avatar avatar = 4; - */ - public Builder clearAvatar() { - if (avatarBuilder_ == null) { - avatar_ = org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.getDefaultInstance(); - onChanged(); - } else { - avatarBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - /** - * optional .signalservice.GroupDetails.Avatar avatar = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.Builder getAvatarBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getAvatarFieldBuilder().getBuilder(); - } - /** - * optional .signalservice.GroupDetails.Avatar avatar = 4; - */ - public org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.AvatarOrBuilder getAvatarOrBuilder() { - if (avatarBuilder_ != null) { - return avatarBuilder_.getMessageOrBuilder(); - } else { - return avatar_; - } - } - /** - * optional .signalservice.GroupDetails.Avatar avatar = 4; - */ - private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.AvatarOrBuilder> - getAvatarFieldBuilder() { - if (avatarBuilder_ == null) { - avatarBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.Avatar.Builder, org.session.libsignal.service.internal.push.SignalServiceProtos.GroupDetails.AvatarOrBuilder>( - avatar_, - getParentForChildren(), - isClean()); - avatar_ = null; - } - return avatarBuilder_; - } - - // optional bool active = 5 [default = true]; - private boolean active_ = true; - /** - * optional bool active = 5 [default = true]; - */ - public boolean hasActive() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional bool active = 5 [default = true]; - */ - public boolean getActive() { - return active_; - } - /** - * optional bool active = 5 [default = true]; - */ - public Builder setActive(boolean value) { - bitField0_ |= 0x00000010; - active_ = value; - onChanged(); - return this; - } - /** - * optional bool active = 5 [default = true]; - */ - public Builder clearActive() { - bitField0_ = (bitField0_ & ~0x00000010); - active_ = true; - onChanged(); - return this; - } - - // optional uint32 expireTimer = 6; - private int expireTimer_ ; - /** - * optional uint32 expireTimer = 6; - */ - public boolean hasExpireTimer() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional uint32 expireTimer = 6; - */ - public int getExpireTimer() { - return expireTimer_; - } - /** - * optional uint32 expireTimer = 6; - */ - public Builder setExpireTimer(int value) { - bitField0_ |= 0x00000020; - expireTimer_ = value; - onChanged(); - return this; - } - /** - * optional uint32 expireTimer = 6; - */ - public Builder clearExpireTimer() { - bitField0_ = (bitField0_ & ~0x00000020); - expireTimer_ = 0; - onChanged(); - return this; - } - - // optional string color = 7; - private java.lang.Object color_ = ""; - /** - * optional string color = 7; - */ - public boolean hasColor() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string color = 7; - */ - public java.lang.String getColor() { - java.lang.Object ref = color_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - color_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string color = 7; - */ - public com.google.protobuf.ByteString - getColorBytes() { - java.lang.Object ref = color_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - color_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string color = 7; - */ - public Builder setColor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - color_ = value; - onChanged(); - return this; - } - /** - * optional string color = 7; - */ - public Builder clearColor() { - bitField0_ = (bitField0_ & ~0x00000040); - color_ = getDefaultInstance().getColor(); - onChanged(); - return this; - } - /** - * optional string color = 7; - */ - public Builder setColorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - color_ = value; - onChanged(); - return this; - } - - // optional bool blocked = 8; - private boolean blocked_ ; - /** - * optional bool blocked = 8; - */ - public boolean hasBlocked() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional bool blocked = 8; - */ - public boolean getBlocked() { - return blocked_; - } - /** - * optional bool blocked = 8; - */ - public Builder setBlocked(boolean value) { - bitField0_ |= 0x00000080; - blocked_ = value; - onChanged(); - return this; - } - /** - * optional bool blocked = 8; - */ - public Builder clearBlocked() { - bitField0_ = (bitField0_ & ~0x00000080); - blocked_ = false; - onChanged(); - return this; - } - - // repeated string admins = 9; - private com.google.protobuf.LazyStringList admins_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureAdminsIsMutable() { - if (!((bitField0_ & 0x00000100) == 0x00000100)) { - admins_ = new com.google.protobuf.LazyStringArrayList(admins_); - bitField0_ |= 0x00000100; - } - } - /** - * repeated string admins = 9; - */ - public java.util.List - getAdminsList() { - return java.util.Collections.unmodifiableList(admins_); - } - /** - * repeated string admins = 9; - */ - public int getAdminsCount() { - return admins_.size(); - } - /** - * repeated string admins = 9; - */ - public java.lang.String getAdmins(int index) { - return admins_.get(index); - } - /** - * repeated string admins = 9; - */ - public com.google.protobuf.ByteString - getAdminsBytes(int index) { - return admins_.getByteString(index); - } - /** - * repeated string admins = 9; - */ - public Builder setAdmins( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdminsIsMutable(); - admins_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string admins = 9; - */ - public Builder addAdmins( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdminsIsMutable(); - admins_.add(value); - onChanged(); - return this; - } - /** - * repeated string admins = 9; - */ - public Builder addAllAdmins( - java.lang.Iterable values) { - ensureAdminsIsMutable(); - super.addAll(values, admins_); - onChanged(); - return this; - } - /** - * repeated string admins = 9; - */ - public Builder clearAdmins() { - admins_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - * repeated string admins = 9; - */ - public Builder addAdminsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdminsIsMutable(); - admins_.add(value); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:signalservice.GroupDetails) - } - - static { - defaultInstance = new GroupDetails(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:signalservice.GroupDetails) + // @@protoc_insertion_point(builder_scope:signalservice.GroupDetails) } - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_Envelope_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_Envelope_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_Content_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_Content_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_DeviceLinkMessage_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_DeviceLinkMessage_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_PreKeyBundleMessage_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_PreKeyBundleMessage_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_CallMessage_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_CallMessage_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_CallMessage_Offer_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_CallMessage_Offer_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_CallMessage_Answer_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_CallMessage_Answer_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_CallMessage_IceUpdate_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_CallMessage_IceUpdate_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_CallMessage_Busy_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_CallMessage_Busy_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_CallMessage_Hangup_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_CallMessage_Hangup_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_DataMessage_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_DataMessage_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_DataMessage_Quote_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_DataMessage_Quote_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_DataMessage_Quote_QuotedAttachment_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_DataMessage_Quote_QuotedAttachment_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_DataMessage_Contact_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_DataMessage_Contact_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_DataMessage_Contact_Name_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_DataMessage_Contact_Name_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_DataMessage_Contact_Phone_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_DataMessage_Contact_Phone_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_DataMessage_Contact_Email_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_DataMessage_Contact_Email_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_DataMessage_Contact_PostalAddress_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_DataMessage_Contact_PostalAddress_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_DataMessage_Contact_Avatar_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_DataMessage_Contact_Avatar_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_DataMessage_Preview_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_DataMessage_Preview_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_DataMessage_Sticker_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_DataMessage_Sticker_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_LokiUserProfile_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_LokiUserProfile_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_ClosedGroupUpdateV2_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_ClosedGroupUpdateV2_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_ClosedGroupUpdate_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_ClosedGroupUpdate_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_ClosedGroupUpdate_SenderKey_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_ClosedGroupUpdate_SenderKey_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_NullMessage_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_NullMessage_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_ReceiptMessage_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_ReceiptMessage_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_TypingMessage_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_TypingMessage_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_Verified_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_Verified_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_SyncMessage_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_SyncMessage_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_SyncMessage_Sent_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_SyncMessage_Sent_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_SyncMessage_Contacts_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_SyncMessage_Contacts_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_SyncMessage_Groups_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_SyncMessage_Groups_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_SyncMessage_Blocked_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_SyncMessage_Blocked_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_SyncMessage_Request_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_SyncMessage_Request_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_SyncMessage_Read_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_SyncMessage_Read_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_SyncMessage_Configuration_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_SyncMessage_Configuration_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_SyncMessage_StickerPackOperation_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_SyncMessage_StickerPackOperation_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_SyncMessage_OpenGroupDetails_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_SyncMessage_OpenGroupDetails_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_AttachmentPointer_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_AttachmentPointer_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_GroupContext_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_GroupContext_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_ContactDetails_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_ContactDetails_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_ContactDetails_Avatar_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_ContactDetails_Avatar_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_GroupDetails_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_GroupDetails_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_signalservice_GroupDetails_Avatar_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_signalservice_GroupDetails_Avatar_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; static { - java.lang.String[] descriptorData = { - "\n\023SignalService.proto\022\rsignalservice\"\367\002\n" + - "\010Envelope\022*\n\004type\030\001 \001(\0162\034.signalservice." + - "Envelope.Type\022\016\n\006source\030\002 \001(\t\022\024\n\014sourceD" + - "evice\030\007 \001(\r\022\r\n\005relay\030\003 \001(\t\022\021\n\ttimestamp\030" + - "\005 \001(\004\022\025\n\rlegacyMessage\030\006 \001(\014\022\017\n\007content\030" + - "\010 \001(\014\022\022\n\nserverGuid\030\t \001(\t\022\027\n\017serverTimes" + - "tamp\030\n \001(\004\"\241\001\n\004Type\022\013\n\007UNKNOWN\020\000\022\016\n\nCIPH" + - "ERTEXT\020\001\022\020\n\014KEY_EXCHANGE\020\002\022\021\n\rPREKEY_BUN" + - "DLE\020\003\022\013\n\007RECEIPT\020\005\022\027\n\023UNIDENTIFIED_SENDE" + - "R\020\006\022\033\n\027CLOSED_GROUP_CIPHERTEXT\020\007\022\024\n\020FALL", - "BACK_MESSAGE\020e\"\267\003\n\007Content\022/\n\013dataMessag" + - "e\030\001 \001(\0132\032.signalservice.DataMessage\022/\n\013s" + - "yncMessage\030\002 \001(\0132\032.signalservice.SyncMes" + - "sage\022/\n\013callMessage\030\003 \001(\0132\032.signalservic" + - "e.CallMessage\022/\n\013nullMessage\030\004 \001(\0132\032.sig" + - "nalservice.NullMessage\0225\n\016receiptMessage" + - "\030\005 \001(\0132\035.signalservice.ReceiptMessage\0223\n" + - "\rtypingMessage\030\006 \001(\0132\034.signalservice.Typ" + - "ingMessage\022?\n\023preKeyBundleMessage\030e \001(\0132" + - "\".signalservice.PreKeyBundleMessage\022;\n\021d", - "eviceLinkMessage\030g \001(\0132 .signalservice.D" + - "eviceLinkMessage\"\203\001\n\021DeviceLinkMessage\022\030" + - "\n\020primaryPublicKey\030\001 \001(\t\022\032\n\022secondaryPub" + - "licKey\030\002 \001(\t\022\030\n\020requestSignature\030\003 \001(\014\022\036" + - "\n\026authorizationSignature\030\004 \001(\014\"\231\001\n\023PreKe" + - "yBundleMessage\022\023\n\013identityKey\030\001 \001(\014\022\020\n\010d" + - "eviceId\030\002 \001(\r\022\020\n\010preKeyId\030\003 \001(\r\022\023\n\013signe" + - "dKeyId\030\004 \001(\r\022\016\n\006preKey\030\005 \001(\014\022\021\n\tsignedKe" + - "y\030\006 \001(\014\022\021\n\tsignature\030\007 \001(\014\"\330\003\n\013CallMessa" + - "ge\022/\n\005offer\030\001 \001(\0132 .signalservice.CallMe", - "ssage.Offer\0221\n\006answer\030\002 \001(\0132!.signalserv" + - "ice.CallMessage.Answer\0227\n\ticeUpdate\030\003 \003(" + - "\0132$.signalservice.CallMessage.IceUpdate\022" + - "1\n\006hangup\030\004 \001(\0132!.signalservice.CallMess" + - "age.Hangup\022-\n\004busy\030\005 \001(\0132\037.signalservice" + - ".CallMessage.Busy\032(\n\005Offer\022\n\n\002id\030\001 \001(\004\022\023" + - "\n\013description\030\002 \001(\t\032)\n\006Answer\022\n\n\002id\030\001 \001(" + - "\004\022\023\n\013description\030\002 \001(\t\032K\n\tIceUpdate\022\n\n\002i" + - "d\030\001 \001(\004\022\016\n\006sdpMid\030\002 \001(\t\022\025\n\rsdpMLineIndex" + - "\030\003 \001(\r\022\013\n\003sdp\030\004 \001(\t\032\022\n\004Busy\022\n\n\002id\030\001 \001(\004\032", - "\024\n\006Hangup\022\n\n\002id\030\001 \001(\004\"U\n#ClosedGroupCiph" + - "ertextMessageWrapper\022\022\n\nciphertext\030\001 \001(\014" + - "\022\032\n\022ephemeralPublicKey\030\002 \001(\014\"\260\021\n\013DataMes" + - "sage\022\014\n\004body\030\001 \001(\t\0225\n\013attachments\030\002 \003(\0132" + - " .signalservice.AttachmentPointer\022*\n\005gro" + - "up\030\003 \001(\0132\033.signalservice.GroupContext\022\r\n" + - "\005flags\030\004 \001(\r\022\023\n\013expireTimer\030\005 \001(\r\022\022\n\npro" + - "fileKey\030\006 \001(\014\022\021\n\ttimestamp\030\007 \001(\004\022/\n\005quot" + - "e\030\010 \001(\0132 .signalservice.DataMessage.Quot" + - "e\0223\n\007contact\030\t \003(\0132\".signalservice.DataM", - "essage.Contact\0223\n\007preview\030\n \003(\0132\".signal" + - "service.DataMessage.Preview\0223\n\007sticker\030\013" + - " \001(\0132\".signalservice.DataMessage.Sticker" + - "\022/\n\007profile\030e \001(\0132\036.signalservice.LokiUs" + - "erProfile\022;\n\021closedGroupUpdate\030g \001(\0132 .s" + - "ignalservice.ClosedGroupUpdate\022?\n\023closed" + - "GroupUpdateV2\030h \001(\0132\".signalservice.Clos" + - "edGroupUpdateV2\032\351\001\n\005Quote\022\n\n\002id\030\001 \001(\004\022\016\n" + - "\006author\030\002 \001(\t\022\014\n\004text\030\003 \001(\t\022F\n\013attachmen" + - "ts\030\004 \003(\01321.signalservice.DataMessage.Quo", - "te.QuotedAttachment\032n\n\020QuotedAttachment\022" + - "\023\n\013contentType\030\001 \001(\t\022\020\n\010fileName\030\002 \001(\t\0223" + - "\n\tthumbnail\030\003 \001(\0132 .signalservice.Attach" + - "mentPointer\032\304\010\n\007Contact\0225\n\004name\030\001 \001(\0132\'." + - "signalservice.DataMessage.Contact.Name\0228" + - "\n\006number\030\003 \003(\0132(.signalservice.DataMessa" + - "ge.Contact.Phone\0227\n\005email\030\004 \003(\0132(.signal" + - "service.DataMessage.Contact.Email\022A\n\007add" + - "ress\030\005 \003(\01320.signalservice.DataMessage.C" + - "ontact.PostalAddress\0229\n\006avatar\030\006 \001(\0132).s", - "ignalservice.DataMessage.Contact.Avatar\022" + - "\024\n\014organization\030\007 \001(\t\032v\n\004Name\022\021\n\tgivenNa" + - "me\030\001 \001(\t\022\022\n\nfamilyName\030\002 \001(\t\022\016\n\006prefix\030\003" + - " \001(\t\022\016\n\006suffix\030\004 \001(\t\022\022\n\nmiddleName\030\005 \001(\t" + - "\022\023\n\013displayName\030\006 \001(\t\032\226\001\n\005Phone\022\r\n\005value" + - "\030\001 \001(\t\022;\n\004type\030\002 \001(\0162-.signalservice.Dat" + - "aMessage.Contact.Phone.Type\022\r\n\005label\030\003 \001" + - "(\t\"2\n\004Type\022\010\n\004HOME\020\001\022\n\n\006MOBILE\020\002\022\010\n\004WORK" + - "\020\003\022\n\n\006CUSTOM\020\004\032\226\001\n\005Email\022\r\n\005value\030\001 \001(\t\022" + - ";\n\004type\030\002 \001(\0162-.signalservice.DataMessag", - "e.Contact.Email.Type\022\r\n\005label\030\003 \001(\t\"2\n\004T" + - "ype\022\010\n\004HOME\020\001\022\n\n\006MOBILE\020\002\022\010\n\004WORK\020\003\022\n\n\006C" + - "USTOM\020\004\032\201\002\n\rPostalAddress\022C\n\004type\030\001 \001(\0162" + - "5.signalservice.DataMessage.Contact.Post" + - "alAddress.Type\022\r\n\005label\030\002 \001(\t\022\016\n\006street\030" + - "\003 \001(\t\022\r\n\005pobox\030\004 \001(\t\022\024\n\014neighborhood\030\005 \001" + - "(\t\022\014\n\004city\030\006 \001(\t\022\016\n\006region\030\007 \001(\t\022\020\n\010post" + - "code\030\010 \001(\t\022\017\n\007country\030\t \001(\t\"&\n\004Type\022\010\n\004H" + - "OME\020\001\022\010\n\004WORK\020\002\022\n\n\006CUSTOM\020\003\032M\n\006Avatar\0220\n" + - "\006avatar\030\001 \001(\0132 .signalservice.Attachment", - "Pointer\022\021\n\tisProfile\030\002 \001(\010\032V\n\007Preview\022\013\n" + - "\003url\030\001 \001(\t\022\r\n\005title\030\002 \001(\t\022/\n\005image\030\003 \001(\013" + - "2 .signalservice.AttachmentPointer\032m\n\007St" + - "icker\022\016\n\006packId\030\001 \001(\014\022\017\n\007packKey\030\002 \001(\014\022\021" + - "\n\tstickerId\030\003 \001(\r\022.\n\004data\030\004 \001(\0132 .signal" + - "service.AttachmentPointer\"l\n\005Flags\022\017\n\013EN" + - "D_SESSION\020\001\022\033\n\027EXPIRATION_TIMER_UPDATE\020\002" + - "\022\026\n\022PROFILE_KEY_UPDATE\020\004\022\035\n\030DEVICE_UNLIN" + - "KING_REQUEST\020\200\001\"A\n\017LokiUserProfile\022\023\n\013di" + - "splayName\030\001 \001(\t\022\031\n\021profilePictureURL\030\002 \001", - "(\t\"\301\003\n\023ClosedGroupUpdateV2\0225\n\004type\030\001 \002(\016" + - "2\'.signalservice.ClosedGroupUpdateV2.Typ" + - "e\022\021\n\tpublicKey\030\002 \001(\014\022\014\n\004name\030\003 \001(\t\022E\n\021en" + - "cryptionKeyPair\030\004 \001(\0132*.signalservice.Cl" + - "osedGroupUpdateV2.KeyPair\022\017\n\007members\030\005 \003" + - "(\014\022\016\n\006admins\030\006 \003(\014\022C\n\010wrappers\030\007 \003(\01321.s" + - "ignalservice.ClosedGroupUpdateV2.KeyPair" + - "Wrapper\0320\n\007KeyPair\022\021\n\tpublicKey\030\001 \002(\014\022\022\n" + - "\nprivateKey\030\002 \002(\014\032=\n\016KeyPairWrapper\022\021\n\tp" + - "ublicKey\030\001 \002(\014\022\030\n\020encryptedKeyPair\030\002 \002(\014", - "\"4\n\004Type\022\007\n\003NEW\020\001\022\n\n\006UPDATE\020\002\022\027\n\023ENCRYPT" + - "ION_KEY_PAIR\020\003\"\357\002\n\021ClosedGroupUpdate\022\014\n\004" + - "name\030\001 \001(\t\022\026\n\016groupPublicKey\030\002 \001(\014\022\027\n\017gr" + - "oupPrivateKey\030\003 \001(\014\022>\n\nsenderKeys\030\004 \003(\0132" + - "*.signalservice.ClosedGroupUpdate.Sender" + - "Key\022\017\n\007members\030\005 \003(\014\022\016\n\006admins\030\006 \003(\014\0223\n\004" + - "type\030\007 \001(\0162%.signalservice.ClosedGroupUp" + - "date.Type\032B\n\tSenderKey\022\020\n\010chainKey\030\001 \001(\014" + - "\022\020\n\010keyIndex\030\002 \001(\r\022\021\n\tpublicKey\030\003 \001(\014\"A\n" + - "\004Type\022\007\n\003NEW\020\000\022\010\n\004INFO\020\001\022\026\n\022SENDER_KEY_R", - "EQUEST\020\002\022\016\n\nSENDER_KEY\020\003\"\036\n\013NullMessage\022" + - "\017\n\007padding\030\001 \001(\014\"u\n\016ReceiptMessage\0220\n\004ty" + - "pe\030\001 \001(\0162\".signalservice.ReceiptMessage." + - "Type\022\021\n\ttimestamp\030\002 \003(\004\"\036\n\004Type\022\014\n\010DELIV" + - "ERY\020\000\022\010\n\004READ\020\001\"\214\001\n\rTypingMessage\022\021\n\ttim" + - "estamp\030\001 \001(\004\0223\n\006action\030\002 \001(\0162#.signalser" + - "vice.TypingMessage.Action\022\017\n\007groupId\030\003 \001" + - "(\014\"\"\n\006Action\022\013\n\007STARTED\020\000\022\013\n\007STOPPED\020\001\"\253" + - "\001\n\010Verified\022\023\n\013destination\030\001 \001(\t\022\023\n\013iden" + - "tityKey\030\002 \001(\014\022,\n\005state\030\003 \001(\0162\035.signalser", - "vice.Verified.State\022\023\n\013nullMessage\030\004 \001(\014" + - "\"2\n\005State\022\013\n\007DEFAULT\020\000\022\014\n\010VERIFIED\020\001\022\016\n\n" + - "UNVERIFIED\020\002\"\325\014\n\013SyncMessage\022-\n\004sent\030\001 \001" + - "(\0132\037.signalservice.SyncMessage.Sent\0225\n\010c" + - "ontacts\030\002 \001(\0132#.signalservice.SyncMessag" + - "e.Contacts\0221\n\006groups\030\003 \001(\0132!.signalservi" + - "ce.SyncMessage.Groups\0223\n\007request\030\004 \001(\0132\"" + - ".signalservice.SyncMessage.Request\022-\n\004re" + - "ad\030\005 \003(\0132\037.signalservice.SyncMessage.Rea" + - "d\0223\n\007blocked\030\006 \001(\0132\".signalservice.SyncM", - "essage.Blocked\022)\n\010verified\030\007 \001(\0132\027.signa" + - "lservice.Verified\022?\n\rconfiguration\030\t \001(\013" + - "2(.signalservice.SyncMessage.Configurati" + - "on\022\017\n\007padding\030\010 \001(\014\022M\n\024stickerPackOperat" + - "ion\030\n \003(\0132/.signalservice.SyncMessage.St" + - "ickerPackOperation\022?\n\nopenGroups\030d \003(\0132+" + - ".signalservice.SyncMessage.OpenGroupDeta" + - "ils\032\236\002\n\004Sent\022\023\n\013destination\030\001 \001(\t\022\021\n\ttim" + - "estamp\030\002 \001(\004\022+\n\007message\030\003 \001(\0132\032.signalse" + - "rvice.DataMessage\022 \n\030expirationStartTime", - "stamp\030\004 \001(\004\022V\n\022unidentifiedStatus\030\005 \003(\0132" + - ":.signalservice.SyncMessage.Sent.Unident" + - "ifiedDeliveryStatus\032G\n\032UnidentifiedDeliv" + - "eryStatus\022\023\n\013destination\030\001 \001(\t\022\024\n\014uniden" + - "tified\030\002 \001(\010\032a\n\010Contacts\022.\n\004blob\030\001 \001(\0132 " + - ".signalservice.AttachmentPointer\022\027\n\010comp" + - "lete\030\002 \001(\010:\005false\022\014\n\004data\030e \001(\014\032F\n\006Group" + - "s\022.\n\004blob\030\001 \001(\0132 .signalservice.Attachme" + - "ntPointer\022\014\n\004data\030e \001(\014\032,\n\007Blocked\022\017\n\007nu" + - "mbers\030\001 \003(\t\022\020\n\010groupIds\030\002 \003(\014\032\217\001\n\007Reques", - "t\0225\n\004type\030\001 \001(\0162\'.signalservice.SyncMess" + - "age.Request.Type\"M\n\004Type\022\013\n\007UNKNOWN\020\000\022\014\n" + - "\010CONTACTS\020\001\022\n\n\006GROUPS\020\002\022\013\n\007BLOCKED\020\003\022\021\n\r" + - "CONFIGURATION\020\004\032)\n\004Read\022\016\n\006sender\030\001 \001(\t\022" + - "\021\n\ttimestamp\030\002 \001(\004\032}\n\rConfiguration\022\024\n\014r" + - "eadReceipts\030\001 \001(\010\022&\n\036unidentifiedDeliver" + - "yIndicators\030\002 \001(\010\022\030\n\020typingIndicators\030\003 " + - "\001(\010\022\024\n\014linkPreviews\030\004 \001(\010\032\234\001\n\024StickerPac" + - "kOperation\022\016\n\006packId\030\001 \001(\014\022\017\n\007packKey\030\002 " + - "\001(\014\022B\n\004type\030\003 \001(\01624.signalservice.SyncMe", - "ssage.StickerPackOperation.Type\"\037\n\004Type\022" + - "\013\n\007INSTALL\020\000\022\n\n\006REMOVE\020\001\0322\n\020OpenGroupDet" + - "ails\022\013\n\003url\030\001 \001(\t\022\021\n\tchannelID\030\002 \001(\r\"\354\001\n" + - "\021AttachmentPointer\022\n\n\002id\030\001 \001(\006\022\023\n\013conten" + - "tType\030\002 \001(\t\022\013\n\003key\030\003 \001(\014\022\014\n\004size\030\004 \001(\r\022\021" + - "\n\tthumbnail\030\005 \001(\014\022\016\n\006digest\030\006 \001(\014\022\020\n\010fil" + - "eName\030\007 \001(\t\022\r\n\005flags\030\010 \001(\r\022\r\n\005width\030\t \001(" + - "\r\022\016\n\006height\030\n \001(\r\022\017\n\007caption\030\013 \001(\t\022\013\n\003ur" + - "l\030e \001(\t\"\032\n\005Flags\022\021\n\rVOICE_MESSAGE\020\001\"\243\002\n\014" + - "GroupContext\022\n\n\002id\030\001 \001(\014\022.\n\004type\030\002 \001(\0162 ", - ".signalservice.GroupContext.Type\022\014\n\004name" + - "\030\003 \001(\t\022\017\n\007members\030\004 \003(\t\0220\n\006avatar\030\005 \001(\0132" + - " .signalservice.AttachmentPointer\022\016\n\006adm" + - "ins\030\006 \003(\t\022\023\n\nnewMembers\030\346\007 \003(\t\022\027\n\016remove" + - "dMembers\030\347\007 \003(\t\"H\n\004Type\022\013\n\007UNKNOWN\020\000\022\n\n\006" + - "UPDATE\020\001\022\013\n\007DELIVER\020\002\022\010\n\004QUIT\020\003\022\020\n\014REQUE" + - "ST_INFO\020\004\"\231\002\n\016ContactDetails\022\016\n\006number\030\001" + - " \001(\t\022\014\n\004name\030\002 \001(\t\0224\n\006avatar\030\003 \001(\0132$.sig" + - "nalservice.ContactDetails.Avatar\022\r\n\005colo" + - "r\030\004 \001(\t\022)\n\010verified\030\005 \001(\0132\027.signalservic", - "e.Verified\022\022\n\nprofileKey\030\006 \001(\014\022\017\n\007blocke" + - "d\030\007 \001(\010\022\023\n\013expireTimer\030\010 \001(\r\022\020\n\010nickname" + - "\030e \001(\t\032-\n\006Avatar\022\023\n\013contentType\030\001 \001(\t\022\016\n" + - "\006length\030\002 \001(\r\"\367\001\n\014GroupDetails\022\n\n\002id\030\001 \001" + - "(\014\022\014\n\004name\030\002 \001(\t\022\017\n\007members\030\003 \003(\t\0222\n\006ava" + - "tar\030\004 \001(\0132\".signalservice.GroupDetails.A" + - "vatar\022\024\n\006active\030\005 \001(\010:\004true\022\023\n\013expireTim" + - "er\030\006 \001(\r\022\r\n\005color\030\007 \001(\t\022\017\n\007blocked\030\010 \001(\010" + - "\022\016\n\006admins\030\t \003(\t\032-\n\006Avatar\022\023\n\013contentTyp" + - "e\030\001 \001(\t\022\016\n\006length\030\002 \001(\rBE\n.org.whispersy", - "stems.signalservice.internal.pushB\023Signa" + - "lServiceProtos" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - internal_static_signalservice_Envelope_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_signalservice_Envelope_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_Envelope_descriptor, - new java.lang.String[] { "Type", "Source", "SourceDevice", "Relay", "Timestamp", "LegacyMessage", "Content", "ServerGuid", "ServerTimestamp", }); - internal_static_signalservice_Content_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_signalservice_Content_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_Content_descriptor, - new java.lang.String[] { "DataMessage", "SyncMessage", "CallMessage", "NullMessage", "ReceiptMessage", "TypingMessage", "PreKeyBundleMessage", "DeviceLinkMessage", }); - internal_static_signalservice_DeviceLinkMessage_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_signalservice_DeviceLinkMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_DeviceLinkMessage_descriptor, - new java.lang.String[] { "PrimaryPublicKey", "SecondaryPublicKey", "RequestSignature", "AuthorizationSignature", }); - internal_static_signalservice_PreKeyBundleMessage_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_signalservice_PreKeyBundleMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_PreKeyBundleMessage_descriptor, - new java.lang.String[] { "IdentityKey", "DeviceId", "PreKeyId", "SignedKeyId", "PreKey", "SignedKey", "Signature", }); - internal_static_signalservice_CallMessage_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_signalservice_CallMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_CallMessage_descriptor, - new java.lang.String[] { "Offer", "Answer", "IceUpdate", "Hangup", "Busy", }); - internal_static_signalservice_CallMessage_Offer_descriptor = - internal_static_signalservice_CallMessage_descriptor.getNestedTypes().get(0); - internal_static_signalservice_CallMessage_Offer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_CallMessage_Offer_descriptor, - new java.lang.String[] { "Id", "Description", }); - internal_static_signalservice_CallMessage_Answer_descriptor = - internal_static_signalservice_CallMessage_descriptor.getNestedTypes().get(1); - internal_static_signalservice_CallMessage_Answer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_CallMessage_Answer_descriptor, - new java.lang.String[] { "Id", "Description", }); - internal_static_signalservice_CallMessage_IceUpdate_descriptor = - internal_static_signalservice_CallMessage_descriptor.getNestedTypes().get(2); - internal_static_signalservice_CallMessage_IceUpdate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_CallMessage_IceUpdate_descriptor, - new java.lang.String[] { "Id", "SdpMid", "SdpMLineIndex", "Sdp", }); - internal_static_signalservice_CallMessage_Busy_descriptor = - internal_static_signalservice_CallMessage_descriptor.getNestedTypes().get(3); - internal_static_signalservice_CallMessage_Busy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_CallMessage_Busy_descriptor, - new java.lang.String[] { "Id", }); - internal_static_signalservice_CallMessage_Hangup_descriptor = - internal_static_signalservice_CallMessage_descriptor.getNestedTypes().get(4); - internal_static_signalservice_CallMessage_Hangup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_CallMessage_Hangup_descriptor, - new java.lang.String[] { "Id", }); - internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_descriptor, - new java.lang.String[] { "Ciphertext", "EphemeralPublicKey", }); - internal_static_signalservice_DataMessage_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_signalservice_DataMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_DataMessage_descriptor, - new java.lang.String[] { "Body", "Attachments", "Group", "Flags", "ExpireTimer", "ProfileKey", "Timestamp", "Quote", "Contact", "Preview", "Sticker", "Profile", "ClosedGroupUpdate", "ClosedGroupUpdateV2", }); - internal_static_signalservice_DataMessage_Quote_descriptor = - internal_static_signalservice_DataMessage_descriptor.getNestedTypes().get(0); - internal_static_signalservice_DataMessage_Quote_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_DataMessage_Quote_descriptor, - new java.lang.String[] { "Id", "Author", "Text", "Attachments", }); - internal_static_signalservice_DataMessage_Quote_QuotedAttachment_descriptor = - internal_static_signalservice_DataMessage_Quote_descriptor.getNestedTypes().get(0); - internal_static_signalservice_DataMessage_Quote_QuotedAttachment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_DataMessage_Quote_QuotedAttachment_descriptor, - new java.lang.String[] { "ContentType", "FileName", "Thumbnail", }); - internal_static_signalservice_DataMessage_Contact_descriptor = - internal_static_signalservice_DataMessage_descriptor.getNestedTypes().get(1); - internal_static_signalservice_DataMessage_Contact_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_DataMessage_Contact_descriptor, - new java.lang.String[] { "Name", "Number", "Email", "Address", "Avatar", "Organization", }); - internal_static_signalservice_DataMessage_Contact_Name_descriptor = - internal_static_signalservice_DataMessage_Contact_descriptor.getNestedTypes().get(0); - internal_static_signalservice_DataMessage_Contact_Name_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_DataMessage_Contact_Name_descriptor, - new java.lang.String[] { "GivenName", "FamilyName", "Prefix", "Suffix", "MiddleName", "DisplayName", }); - internal_static_signalservice_DataMessage_Contact_Phone_descriptor = - internal_static_signalservice_DataMessage_Contact_descriptor.getNestedTypes().get(1); - internal_static_signalservice_DataMessage_Contact_Phone_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_DataMessage_Contact_Phone_descriptor, - new java.lang.String[] { "Value", "Type", "Label", }); - internal_static_signalservice_DataMessage_Contact_Email_descriptor = - internal_static_signalservice_DataMessage_Contact_descriptor.getNestedTypes().get(2); - internal_static_signalservice_DataMessage_Contact_Email_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_DataMessage_Contact_Email_descriptor, - new java.lang.String[] { "Value", "Type", "Label", }); - internal_static_signalservice_DataMessage_Contact_PostalAddress_descriptor = - internal_static_signalservice_DataMessage_Contact_descriptor.getNestedTypes().get(3); - internal_static_signalservice_DataMessage_Contact_PostalAddress_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_DataMessage_Contact_PostalAddress_descriptor, - new java.lang.String[] { "Type", "Label", "Street", "Pobox", "Neighborhood", "City", "Region", "Postcode", "Country", }); - internal_static_signalservice_DataMessage_Contact_Avatar_descriptor = - internal_static_signalservice_DataMessage_Contact_descriptor.getNestedTypes().get(4); - internal_static_signalservice_DataMessage_Contact_Avatar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_DataMessage_Contact_Avatar_descriptor, - new java.lang.String[] { "Avatar", "IsProfile", }); - internal_static_signalservice_DataMessage_Preview_descriptor = - internal_static_signalservice_DataMessage_descriptor.getNestedTypes().get(2); - internal_static_signalservice_DataMessage_Preview_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_DataMessage_Preview_descriptor, - new java.lang.String[] { "Url", "Title", "Image", }); - internal_static_signalservice_DataMessage_Sticker_descriptor = - internal_static_signalservice_DataMessage_descriptor.getNestedTypes().get(3); - internal_static_signalservice_DataMessage_Sticker_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_DataMessage_Sticker_descriptor, - new java.lang.String[] { "PackId", "PackKey", "StickerId", "Data", }); - internal_static_signalservice_LokiUserProfile_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_signalservice_LokiUserProfile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_LokiUserProfile_descriptor, - new java.lang.String[] { "DisplayName", "ProfilePictureURL", }); - internal_static_signalservice_ClosedGroupUpdateV2_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_signalservice_ClosedGroupUpdateV2_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_ClosedGroupUpdateV2_descriptor, - new java.lang.String[] { "Type", "PublicKey", "Name", "EncryptionKeyPair", "Members", "Admins", "Wrappers", }); - internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_descriptor = - internal_static_signalservice_ClosedGroupUpdateV2_descriptor.getNestedTypes().get(0); - internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_descriptor, - new java.lang.String[] { "PublicKey", "PrivateKey", }); - internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_descriptor = - internal_static_signalservice_ClosedGroupUpdateV2_descriptor.getNestedTypes().get(1); - internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_descriptor, - new java.lang.String[] { "PublicKey", "EncryptedKeyPair", }); - internal_static_signalservice_ClosedGroupUpdate_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_signalservice_ClosedGroupUpdate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_ClosedGroupUpdate_descriptor, - new java.lang.String[] { "Name", "GroupPublicKey", "GroupPrivateKey", "SenderKeys", "Members", "Admins", "Type", }); - internal_static_signalservice_ClosedGroupUpdate_SenderKey_descriptor = - internal_static_signalservice_ClosedGroupUpdate_descriptor.getNestedTypes().get(0); - internal_static_signalservice_ClosedGroupUpdate_SenderKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_ClosedGroupUpdate_SenderKey_descriptor, - new java.lang.String[] { "ChainKey", "KeyIndex", "PublicKey", }); - internal_static_signalservice_NullMessage_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_signalservice_NullMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_NullMessage_descriptor, - new java.lang.String[] { "Padding", }); - internal_static_signalservice_ReceiptMessage_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_signalservice_ReceiptMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_ReceiptMessage_descriptor, - new java.lang.String[] { "Type", "Timestamp", }); - internal_static_signalservice_TypingMessage_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_signalservice_TypingMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_TypingMessage_descriptor, - new java.lang.String[] { "Timestamp", "Action", "GroupId", }); - internal_static_signalservice_Verified_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_signalservice_Verified_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_Verified_descriptor, - new java.lang.String[] { "Destination", "IdentityKey", "State", "NullMessage", }); - internal_static_signalservice_SyncMessage_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_signalservice_SyncMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_SyncMessage_descriptor, - new java.lang.String[] { "Sent", "Contacts", "Groups", "Request", "Read", "Blocked", "Verified", "Configuration", "Padding", "StickerPackOperation", "OpenGroups", }); - internal_static_signalservice_SyncMessage_Sent_descriptor = - internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(0); - internal_static_signalservice_SyncMessage_Sent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_SyncMessage_Sent_descriptor, - new java.lang.String[] { "Destination", "Timestamp", "Message", "ExpirationStartTimestamp", "UnidentifiedStatus", }); - internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_descriptor = - internal_static_signalservice_SyncMessage_Sent_descriptor.getNestedTypes().get(0); - internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_descriptor, - new java.lang.String[] { "Destination", "Unidentified", }); - internal_static_signalservice_SyncMessage_Contacts_descriptor = - internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(1); - internal_static_signalservice_SyncMessage_Contacts_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_SyncMessage_Contacts_descriptor, - new java.lang.String[] { "Blob", "Complete", "Data", }); - internal_static_signalservice_SyncMessage_Groups_descriptor = - internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(2); - internal_static_signalservice_SyncMessage_Groups_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_SyncMessage_Groups_descriptor, - new java.lang.String[] { "Blob", "Data", }); - internal_static_signalservice_SyncMessage_Blocked_descriptor = - internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(3); - internal_static_signalservice_SyncMessage_Blocked_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_SyncMessage_Blocked_descriptor, - new java.lang.String[] { "Numbers", "GroupIds", }); - internal_static_signalservice_SyncMessage_Request_descriptor = - internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(4); - internal_static_signalservice_SyncMessage_Request_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_SyncMessage_Request_descriptor, - new java.lang.String[] { "Type", }); - internal_static_signalservice_SyncMessage_Read_descriptor = - internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(5); - internal_static_signalservice_SyncMessage_Read_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_SyncMessage_Read_descriptor, - new java.lang.String[] { "Sender", "Timestamp", }); - internal_static_signalservice_SyncMessage_Configuration_descriptor = - internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(6); - internal_static_signalservice_SyncMessage_Configuration_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_SyncMessage_Configuration_descriptor, - new java.lang.String[] { "ReadReceipts", "UnidentifiedDeliveryIndicators", "TypingIndicators", "LinkPreviews", }); - internal_static_signalservice_SyncMessage_StickerPackOperation_descriptor = - internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(7); - internal_static_signalservice_SyncMessage_StickerPackOperation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_SyncMessage_StickerPackOperation_descriptor, - new java.lang.String[] { "PackId", "PackKey", "Type", }); - internal_static_signalservice_SyncMessage_OpenGroupDetails_descriptor = - internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(8); - internal_static_signalservice_SyncMessage_OpenGroupDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_SyncMessage_OpenGroupDetails_descriptor, - new java.lang.String[] { "Url", "ChannelID", }); - internal_static_signalservice_AttachmentPointer_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_signalservice_AttachmentPointer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_AttachmentPointer_descriptor, - new java.lang.String[] { "Id", "ContentType", "Key", "Size", "Thumbnail", "Digest", "FileName", "Flags", "Width", "Height", "Caption", "Url", }); - internal_static_signalservice_GroupContext_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_signalservice_GroupContext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_GroupContext_descriptor, - new java.lang.String[] { "Id", "Type", "Name", "Members", "Avatar", "Admins", "NewMembers", "RemovedMembers", }); - internal_static_signalservice_ContactDetails_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_signalservice_ContactDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_ContactDetails_descriptor, - new java.lang.String[] { "Number", "Name", "Avatar", "Color", "Verified", "ProfileKey", "Blocked", "ExpireTimer", "Nickname", }); - internal_static_signalservice_ContactDetails_Avatar_descriptor = - internal_static_signalservice_ContactDetails_descriptor.getNestedTypes().get(0); - internal_static_signalservice_ContactDetails_Avatar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_ContactDetails_Avatar_descriptor, - new java.lang.String[] { "ContentType", "Length", }); - internal_static_signalservice_GroupDetails_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_signalservice_GroupDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_GroupDetails_descriptor, - new java.lang.String[] { "Id", "Name", "Members", "Avatar", "Active", "ExpireTimer", "Color", "Blocked", "Admins", }); - internal_static_signalservice_GroupDetails_Avatar_descriptor = - internal_static_signalservice_GroupDetails_descriptor.getNestedTypes().get(0); - internal_static_signalservice_GroupDetails_Avatar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_signalservice_GroupDetails_Avatar_descriptor, - new java.lang.String[] { "ContentType", "Length", }); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); + defaultInstance = new GroupDetails(true); + defaultInstance.initFields(); } - // @@protoc_insertion_point(outer_class_scope) + // @@protoc_insertion_point(class_scope:signalservice.GroupDetails) + } + + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_Envelope_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_Envelope_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_Content_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_Content_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_DeviceLinkMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_DeviceLinkMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_PreKeyBundleMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_PreKeyBundleMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_CallMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_CallMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_CallMessage_Offer_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_CallMessage_Offer_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_CallMessage_Answer_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_CallMessage_Answer_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_CallMessage_IceUpdate_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_CallMessage_IceUpdate_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_CallMessage_Busy_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_CallMessage_Busy_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_CallMessage_Hangup_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_CallMessage_Hangup_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_DataMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_DataMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_DataMessage_Quote_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_DataMessage_Quote_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_DataMessage_Quote_QuotedAttachment_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_DataMessage_Quote_QuotedAttachment_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_DataMessage_Contact_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_DataMessage_Contact_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_DataMessage_Contact_Name_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_DataMessage_Contact_Name_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_DataMessage_Contact_Phone_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_DataMessage_Contact_Phone_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_DataMessage_Contact_Email_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_DataMessage_Contact_Email_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_DataMessage_Contact_PostalAddress_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_DataMessage_Contact_PostalAddress_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_DataMessage_Contact_Avatar_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_DataMessage_Contact_Avatar_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_DataMessage_Preview_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_DataMessage_Preview_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_DataMessage_Sticker_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_DataMessage_Sticker_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_LokiUserProfile_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_LokiUserProfile_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_ClosedGroupUpdateV2_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_ClosedGroupUpdateV2_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_ClosedGroupUpdate_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_ClosedGroupUpdate_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_ClosedGroupUpdate_SenderKey_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_ClosedGroupUpdate_SenderKey_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_NullMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_NullMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_ReceiptMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_ReceiptMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_TypingMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_TypingMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_Verified_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_Verified_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_SyncMessage_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_SyncMessage_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_SyncMessage_Sent_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_SyncMessage_Sent_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_SyncMessage_Contacts_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_SyncMessage_Contacts_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_SyncMessage_Groups_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_SyncMessage_Groups_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_SyncMessage_Blocked_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_SyncMessage_Blocked_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_SyncMessage_Request_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_SyncMessage_Request_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_SyncMessage_Read_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_SyncMessage_Read_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_SyncMessage_Configuration_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_SyncMessage_Configuration_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_SyncMessage_StickerPackOperation_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_SyncMessage_StickerPackOperation_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_SyncMessage_OpenGroupDetails_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_SyncMessage_OpenGroupDetails_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_AttachmentPointer_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_AttachmentPointer_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_GroupContext_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_GroupContext_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_ContactDetails_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_ContactDetails_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_ContactDetails_Avatar_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_ContactDetails_Avatar_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_GroupDetails_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_GroupDetails_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_signalservice_GroupDetails_Avatar_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_signalservice_GroupDetails_Avatar_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\023SignalService.proto\022\rsignalservice\"\367\002\n" + + "\010Envelope\022*\n\004type\030\001 \001(\0162\034.signalservice." + + "Envelope.Type\022\016\n\006source\030\002 \001(\t\022\024\n\014sourceD" + + "evice\030\007 \001(\r\022\r\n\005relay\030\003 \001(\t\022\021\n\ttimestamp\030" + + "\005 \001(\004\022\025\n\rlegacyMessage\030\006 \001(\014\022\017\n\007content\030" + + "\010 \001(\014\022\022\n\nserverGuid\030\t \001(\t\022\027\n\017serverTimes" + + "tamp\030\n \001(\004\"\241\001\n\004Type\022\013\n\007UNKNOWN\020\000\022\016\n\nCIPH" + + "ERTEXT\020\001\022\020\n\014KEY_EXCHANGE\020\002\022\021\n\rPREKEY_BUN" + + "DLE\020\003\022\013\n\007RECEIPT\020\005\022\027\n\023UNIDENTIFIED_SENDE" + + "R\020\006\022\033\n\027CLOSED_GROUP_CIPHERTEXT\020\007\022\024\n\020FALL", + "BACK_MESSAGE\020e\"\267\003\n\007Content\022/\n\013dataMessag" + + "e\030\001 \001(\0132\032.signalservice.DataMessage\022/\n\013s" + + "yncMessage\030\002 \001(\0132\032.signalservice.SyncMes" + + "sage\022/\n\013callMessage\030\003 \001(\0132\032.signalservic" + + "e.CallMessage\022/\n\013nullMessage\030\004 \001(\0132\032.sig" + + "nalservice.NullMessage\0225\n\016receiptMessage" + + "\030\005 \001(\0132\035.signalservice.ReceiptMessage\0223\n" + + "\rtypingMessage\030\006 \001(\0132\034.signalservice.Typ" + + "ingMessage\022?\n\023preKeyBundleMessage\030e \001(\0132" + + "\".signalservice.PreKeyBundleMessage\022;\n\021d", + "eviceLinkMessage\030g \001(\0132 .signalservice.D" + + "eviceLinkMessage\"\203\001\n\021DeviceLinkMessage\022\030" + + "\n\020primaryPublicKey\030\001 \001(\t\022\032\n\022secondaryPub" + + "licKey\030\002 \001(\t\022\030\n\020requestSignature\030\003 \001(\014\022\036" + + "\n\026authorizationSignature\030\004 \001(\014\"\231\001\n\023PreKe" + + "yBundleMessage\022\023\n\013identityKey\030\001 \001(\014\022\020\n\010d" + + "eviceId\030\002 \001(\r\022\020\n\010preKeyId\030\003 \001(\r\022\023\n\013signe" + + "dKeyId\030\004 \001(\r\022\016\n\006preKey\030\005 \001(\014\022\021\n\tsignedKe" + + "y\030\006 \001(\014\022\021\n\tsignature\030\007 \001(\014\"\330\003\n\013CallMessa" + + "ge\022/\n\005offer\030\001 \001(\0132 .signalservice.CallMe", + "ssage.Offer\0221\n\006answer\030\002 \001(\0132!.signalserv" + + "ice.CallMessage.Answer\0227\n\ticeUpdate\030\003 \003(" + + "\0132$.signalservice.CallMessage.IceUpdate\022" + + "1\n\006hangup\030\004 \001(\0132!.signalservice.CallMess" + + "age.Hangup\022-\n\004busy\030\005 \001(\0132\037.signalservice" + + ".CallMessage.Busy\032(\n\005Offer\022\n\n\002id\030\001 \001(\004\022\023" + + "\n\013description\030\002 \001(\t\032)\n\006Answer\022\n\n\002id\030\001 \001(" + + "\004\022\023\n\013description\030\002 \001(\t\032K\n\tIceUpdate\022\n\n\002i" + + "d\030\001 \001(\004\022\016\n\006sdpMid\030\002 \001(\t\022\025\n\rsdpMLineIndex" + + "\030\003 \001(\r\022\013\n\003sdp\030\004 \001(\t\032\022\n\004Busy\022\n\n\002id\030\001 \001(\004\032", + "\024\n\006Hangup\022\n\n\002id\030\001 \001(\004\"U\n#ClosedGroupCiph" + + "ertextMessageWrapper\022\022\n\nciphertext\030\001 \001(\014" + + "\022\032\n\022ephemeralPublicKey\030\002 \001(\014\"\260\021\n\013DataMes" + + "sage\022\014\n\004body\030\001 \001(\t\0225\n\013attachments\030\002 \003(\0132" + + " .signalservice.AttachmentPointer\022*\n\005gro" + + "up\030\003 \001(\0132\033.signalservice.GroupContext\022\r\n" + + "\005flags\030\004 \001(\r\022\023\n\013expireTimer\030\005 \001(\r\022\022\n\npro" + + "fileKey\030\006 \001(\014\022\021\n\ttimestamp\030\007 \001(\004\022/\n\005quot" + + "e\030\010 \001(\0132 .signalservice.DataMessage.Quot" + + "e\0223\n\007contact\030\t \003(\0132\".signalservice.DataM", + "essage.Contact\0223\n\007preview\030\n \003(\0132\".signal" + + "service.DataMessage.Preview\0223\n\007sticker\030\013" + + " \001(\0132\".signalservice.DataMessage.Sticker" + + "\022/\n\007profile\030e \001(\0132\036.signalservice.LokiUs" + + "erProfile\022;\n\021closedGroupUpdate\030g \001(\0132 .s" + + "ignalservice.ClosedGroupUpdate\022?\n\023closed" + + "GroupUpdateV2\030h \001(\0132\".signalservice.Clos" + + "edGroupUpdateV2\032\351\001\n\005Quote\022\n\n\002id\030\001 \001(\004\022\016\n" + + "\006author\030\002 \001(\t\022\014\n\004text\030\003 \001(\t\022F\n\013attachmen" + + "ts\030\004 \003(\01321.signalservice.DataMessage.Quo", + "te.QuotedAttachment\032n\n\020QuotedAttachment\022" + + "\023\n\013contentType\030\001 \001(\t\022\020\n\010fileName\030\002 \001(\t\0223" + + "\n\tthumbnail\030\003 \001(\0132 .signalservice.Attach" + + "mentPointer\032\304\010\n\007Contact\0225\n\004name\030\001 \001(\0132\'." + + "signalservice.DataMessage.Contact.Name\0228" + + "\n\006number\030\003 \003(\0132(.signalservice.DataMessa" + + "ge.Contact.Phone\0227\n\005email\030\004 \003(\0132(.signal" + + "service.DataMessage.Contact.Email\022A\n\007add" + + "ress\030\005 \003(\01320.signalservice.DataMessage.C" + + "ontact.PostalAddress\0229\n\006avatar\030\006 \001(\0132).s", + "ignalservice.DataMessage.Contact.Avatar\022" + + "\024\n\014organization\030\007 \001(\t\032v\n\004Name\022\021\n\tgivenNa" + + "me\030\001 \001(\t\022\022\n\nfamilyName\030\002 \001(\t\022\016\n\006prefix\030\003" + + " \001(\t\022\016\n\006suffix\030\004 \001(\t\022\022\n\nmiddleName\030\005 \001(\t" + + "\022\023\n\013displayName\030\006 \001(\t\032\226\001\n\005Phone\022\r\n\005value" + + "\030\001 \001(\t\022;\n\004type\030\002 \001(\0162-.signalservice.Dat" + + "aMessage.Contact.Phone.Type\022\r\n\005label\030\003 \001" + + "(\t\"2\n\004Type\022\010\n\004HOME\020\001\022\n\n\006MOBILE\020\002\022\010\n\004WORK" + + "\020\003\022\n\n\006CUSTOM\020\004\032\226\001\n\005Email\022\r\n\005value\030\001 \001(\t\022" + + ";\n\004type\030\002 \001(\0162-.signalservice.DataMessag", + "e.Contact.Email.Type\022\r\n\005label\030\003 \001(\t\"2\n\004T" + + "ype\022\010\n\004HOME\020\001\022\n\n\006MOBILE\020\002\022\010\n\004WORK\020\003\022\n\n\006C" + + "USTOM\020\004\032\201\002\n\rPostalAddress\022C\n\004type\030\001 \001(\0162" + + "5.signalservice.DataMessage.Contact.Post" + + "alAddress.Type\022\r\n\005label\030\002 \001(\t\022\016\n\006street\030" + + "\003 \001(\t\022\r\n\005pobox\030\004 \001(\t\022\024\n\014neighborhood\030\005 \001" + + "(\t\022\014\n\004city\030\006 \001(\t\022\016\n\006region\030\007 \001(\t\022\020\n\010post" + + "code\030\010 \001(\t\022\017\n\007country\030\t \001(\t\"&\n\004Type\022\010\n\004H" + + "OME\020\001\022\010\n\004WORK\020\002\022\n\n\006CUSTOM\020\003\032M\n\006Avatar\0220\n" + + "\006avatar\030\001 \001(\0132 .signalservice.Attachment", + "Pointer\022\021\n\tisProfile\030\002 \001(\010\032V\n\007Preview\022\013\n" + + "\003url\030\001 \001(\t\022\r\n\005title\030\002 \001(\t\022/\n\005image\030\003 \001(\013" + + "2 .signalservice.AttachmentPointer\032m\n\007St" + + "icker\022\016\n\006packId\030\001 \001(\014\022\017\n\007packKey\030\002 \001(\014\022\021" + + "\n\tstickerId\030\003 \001(\r\022.\n\004data\030\004 \001(\0132 .signal" + + "service.AttachmentPointer\"l\n\005Flags\022\017\n\013EN" + + "D_SESSION\020\001\022\033\n\027EXPIRATION_TIMER_UPDATE\020\002" + + "\022\026\n\022PROFILE_KEY_UPDATE\020\004\022\035\n\030DEVICE_UNLIN" + + "KING_REQUEST\020\200\001\"A\n\017LokiUserProfile\022\023\n\013di" + + "splayName\030\001 \001(\t\022\031\n\021profilePictureURL\030\002 \001", + "(\t\"\301\003\n\023ClosedGroupUpdateV2\0225\n\004type\030\001 \002(\016" + + "2\'.signalservice.ClosedGroupUpdateV2.Typ" + + "e\022\021\n\tpublicKey\030\002 \001(\014\022\014\n\004name\030\003 \001(\t\022E\n\021en" + + "cryptionKeyPair\030\004 \001(\0132*.signalservice.Cl" + + "osedGroupUpdateV2.KeyPair\022\017\n\007members\030\005 \003" + + "(\014\022\016\n\006admins\030\006 \003(\014\022C\n\010wrappers\030\007 \003(\01321.s" + + "ignalservice.ClosedGroupUpdateV2.KeyPair" + + "Wrapper\0320\n\007KeyPair\022\021\n\tpublicKey\030\001 \002(\014\022\022\n" + + "\nprivateKey\030\002 \002(\014\032=\n\016KeyPairWrapper\022\021\n\tp" + + "ublicKey\030\001 \002(\014\022\030\n\020encryptedKeyPair\030\002 \002(\014", + "\"4\n\004Type\022\007\n\003NEW\020\001\022\n\n\006UPDATE\020\002\022\027\n\023ENCRYPT" + + "ION_KEY_PAIR\020\003\"\357\002\n\021ClosedGroupUpdate\022\014\n\004" + + "name\030\001 \001(\t\022\026\n\016groupPublicKey\030\002 \001(\014\022\027\n\017gr" + + "oupPrivateKey\030\003 \001(\014\022>\n\nsenderKeys\030\004 \003(\0132" + + "*.signalservice.ClosedGroupUpdate.Sender" + + "Key\022\017\n\007members\030\005 \003(\014\022\016\n\006admins\030\006 \003(\014\0223\n\004" + + "type\030\007 \001(\0162%.signalservice.ClosedGroupUp" + + "date.Type\032B\n\tSenderKey\022\020\n\010chainKey\030\001 \001(\014" + + "\022\020\n\010keyIndex\030\002 \001(\r\022\021\n\tpublicKey\030\003 \001(\014\"A\n" + + "\004Type\022\007\n\003NEW\020\000\022\010\n\004INFO\020\001\022\026\n\022SENDER_KEY_R", + "EQUEST\020\002\022\016\n\nSENDER_KEY\020\003\"\036\n\013NullMessage\022" + + "\017\n\007padding\030\001 \001(\014\"u\n\016ReceiptMessage\0220\n\004ty" + + "pe\030\001 \001(\0162\".signalservice.ReceiptMessage." + + "Type\022\021\n\ttimestamp\030\002 \003(\004\"\036\n\004Type\022\014\n\010DELIV" + + "ERY\020\000\022\010\n\004READ\020\001\"\214\001\n\rTypingMessage\022\021\n\ttim" + + "estamp\030\001 \001(\004\0223\n\006action\030\002 \001(\0162#.signalser" + + "vice.TypingMessage.Action\022\017\n\007groupId\030\003 \001" + + "(\014\"\"\n\006Action\022\013\n\007STARTED\020\000\022\013\n\007STOPPED\020\001\"\253" + + "\001\n\010Verified\022\023\n\013destination\030\001 \001(\t\022\023\n\013iden" + + "tityKey\030\002 \001(\014\022,\n\005state\030\003 \001(\0162\035.signalser", + "vice.Verified.State\022\023\n\013nullMessage\030\004 \001(\014" + + "\"2\n\005State\022\013\n\007DEFAULT\020\000\022\014\n\010VERIFIED\020\001\022\016\n\n" + + "UNVERIFIED\020\002\"\325\014\n\013SyncMessage\022-\n\004sent\030\001 \001" + + "(\0132\037.signalservice.SyncMessage.Sent\0225\n\010c" + + "ontacts\030\002 \001(\0132#.signalservice.SyncMessag" + + "e.Contacts\0221\n\006groups\030\003 \001(\0132!.signalservi" + + "ce.SyncMessage.Groups\0223\n\007request\030\004 \001(\0132\"" + + ".signalservice.SyncMessage.Request\022-\n\004re" + + "ad\030\005 \003(\0132\037.signalservice.SyncMessage.Rea" + + "d\0223\n\007blocked\030\006 \001(\0132\".signalservice.SyncM", + "essage.Blocked\022)\n\010verified\030\007 \001(\0132\027.signa" + + "lservice.Verified\022?\n\rconfiguration\030\t \001(\013" + + "2(.signalservice.SyncMessage.Configurati" + + "on\022\017\n\007padding\030\010 \001(\014\022M\n\024stickerPackOperat" + + "ion\030\n \003(\0132/.signalservice.SyncMessage.St" + + "ickerPackOperation\022?\n\nopenGroups\030d \003(\0132+" + + ".signalservice.SyncMessage.OpenGroupDeta" + + "ils\032\236\002\n\004Sent\022\023\n\013destination\030\001 \001(\t\022\021\n\ttim" + + "estamp\030\002 \001(\004\022+\n\007message\030\003 \001(\0132\032.signalse" + + "rvice.DataMessage\022 \n\030expirationStartTime", + "stamp\030\004 \001(\004\022V\n\022unidentifiedStatus\030\005 \003(\0132" + + ":.signalservice.SyncMessage.Sent.Unident" + + "ifiedDeliveryStatus\032G\n\032UnidentifiedDeliv" + + "eryStatus\022\023\n\013destination\030\001 \001(\t\022\024\n\014uniden" + + "tified\030\002 \001(\010\032a\n\010Contacts\022.\n\004blob\030\001 \001(\0132 " + + ".signalservice.AttachmentPointer\022\027\n\010comp" + + "lete\030\002 \001(\010:\005false\022\014\n\004data\030e \001(\014\032F\n\006Group" + + "s\022.\n\004blob\030\001 \001(\0132 .signalservice.Attachme" + + "ntPointer\022\014\n\004data\030e \001(\014\032,\n\007Blocked\022\017\n\007nu" + + "mbers\030\001 \003(\t\022\020\n\010groupIds\030\002 \003(\014\032\217\001\n\007Reques", + "t\0225\n\004type\030\001 \001(\0162\'.signalservice.SyncMess" + + "age.Request.Type\"M\n\004Type\022\013\n\007UNKNOWN\020\000\022\014\n" + + "\010CONTACTS\020\001\022\n\n\006GROUPS\020\002\022\013\n\007BLOCKED\020\003\022\021\n\r" + + "CONFIGURATION\020\004\032)\n\004Read\022\016\n\006sender\030\001 \001(\t\022" + + "\021\n\ttimestamp\030\002 \001(\004\032}\n\rConfiguration\022\024\n\014r" + + "eadReceipts\030\001 \001(\010\022&\n\036unidentifiedDeliver" + + "yIndicators\030\002 \001(\010\022\030\n\020typingIndicators\030\003 " + + "\001(\010\022\024\n\014linkPreviews\030\004 \001(\010\032\234\001\n\024StickerPac" + + "kOperation\022\016\n\006packId\030\001 \001(\014\022\017\n\007packKey\030\002 " + + "\001(\014\022B\n\004type\030\003 \001(\01624.signalservice.SyncMe", + "ssage.StickerPackOperation.Type\"\037\n\004Type\022" + + "\013\n\007INSTALL\020\000\022\n\n\006REMOVE\020\001\0322\n\020OpenGroupDet" + + "ails\022\013\n\003url\030\001 \001(\t\022\021\n\tchannelID\030\002 \001(\r\"\354\001\n" + + "\021AttachmentPointer\022\n\n\002id\030\001 \001(\006\022\023\n\013conten" + + "tType\030\002 \001(\t\022\013\n\003key\030\003 \001(\014\022\014\n\004size\030\004 \001(\r\022\021" + + "\n\tthumbnail\030\005 \001(\014\022\016\n\006digest\030\006 \001(\014\022\020\n\010fil" + + "eName\030\007 \001(\t\022\r\n\005flags\030\010 \001(\r\022\r\n\005width\030\t \001(" + + "\r\022\016\n\006height\030\n \001(\r\022\017\n\007caption\030\013 \001(\t\022\013\n\003ur" + + "l\030e \001(\t\"\032\n\005Flags\022\021\n\rVOICE_MESSAGE\020\001\"\243\002\n\014" + + "GroupContext\022\n\n\002id\030\001 \001(\014\022.\n\004type\030\002 \001(\0162 ", + ".signalservice.GroupContext.Type\022\014\n\004name" + + "\030\003 \001(\t\022\017\n\007members\030\004 \003(\t\0220\n\006avatar\030\005 \001(\0132" + + " .signalservice.AttachmentPointer\022\016\n\006adm" + + "ins\030\006 \003(\t\022\023\n\nnewMembers\030\346\007 \003(\t\022\027\n\016remove" + + "dMembers\030\347\007 \003(\t\"H\n\004Type\022\013\n\007UNKNOWN\020\000\022\n\n\006" + + "UPDATE\020\001\022\013\n\007DELIVER\020\002\022\010\n\004QUIT\020\003\022\020\n\014REQUE" + + "ST_INFO\020\004\"\231\002\n\016ContactDetails\022\016\n\006number\030\001" + + " \001(\t\022\014\n\004name\030\002 \001(\t\0224\n\006avatar\030\003 \001(\0132$.sig" + + "nalservice.ContactDetails.Avatar\022\r\n\005colo" + + "r\030\004 \001(\t\022)\n\010verified\030\005 \001(\0132\027.signalservic", + "e.Verified\022\022\n\nprofileKey\030\006 \001(\014\022\017\n\007blocke" + + "d\030\007 \001(\010\022\023\n\013expireTimer\030\010 \001(\r\022\020\n\010nickname" + + "\030e \001(\t\032-\n\006Avatar\022\023\n\013contentType\030\001 \001(\t\022\016\n" + + "\006length\030\002 \001(\r\"\367\001\n\014GroupDetails\022\n\n\002id\030\001 \001" + + "(\014\022\014\n\004name\030\002 \001(\t\022\017\n\007members\030\003 \003(\t\0222\n\006ava" + + "tar\030\004 \001(\0132\".signalservice.GroupDetails.A" + + "vatar\022\024\n\006active\030\005 \001(\010:\004true\022\023\n\013expireTim" + + "er\030\006 \001(\r\022\r\n\005color\030\007 \001(\t\022\017\n\007blocked\030\010 \001(\010" + + "\022\016\n\006admins\030\t \003(\t\032-\n\006Avatar\022\023\n\013contentTyp" + + "e\030\001 \001(\t\022\016\n\006length\030\002 \001(\rBB\n+org.session.l", + "ibsignal.service.internal.pushB\023SignalSe" + + "rviceProtos" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + internal_static_signalservice_Envelope_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_signalservice_Envelope_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_Envelope_descriptor, + new java.lang.String[] { "Type", "Source", "SourceDevice", "Relay", "Timestamp", "LegacyMessage", "Content", "ServerGuid", "ServerTimestamp", }); + internal_static_signalservice_Content_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_signalservice_Content_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_Content_descriptor, + new java.lang.String[] { "DataMessage", "SyncMessage", "CallMessage", "NullMessage", "ReceiptMessage", "TypingMessage", "PreKeyBundleMessage", "DeviceLinkMessage", }); + internal_static_signalservice_DeviceLinkMessage_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_signalservice_DeviceLinkMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_DeviceLinkMessage_descriptor, + new java.lang.String[] { "PrimaryPublicKey", "SecondaryPublicKey", "RequestSignature", "AuthorizationSignature", }); + internal_static_signalservice_PreKeyBundleMessage_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_signalservice_PreKeyBundleMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_PreKeyBundleMessage_descriptor, + new java.lang.String[] { "IdentityKey", "DeviceId", "PreKeyId", "SignedKeyId", "PreKey", "SignedKey", "Signature", }); + internal_static_signalservice_CallMessage_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_signalservice_CallMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_CallMessage_descriptor, + new java.lang.String[] { "Offer", "Answer", "IceUpdate", "Hangup", "Busy", }); + internal_static_signalservice_CallMessage_Offer_descriptor = + internal_static_signalservice_CallMessage_descriptor.getNestedTypes().get(0); + internal_static_signalservice_CallMessage_Offer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_CallMessage_Offer_descriptor, + new java.lang.String[] { "Id", "Description", }); + internal_static_signalservice_CallMessage_Answer_descriptor = + internal_static_signalservice_CallMessage_descriptor.getNestedTypes().get(1); + internal_static_signalservice_CallMessage_Answer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_CallMessage_Answer_descriptor, + new java.lang.String[] { "Id", "Description", }); + internal_static_signalservice_CallMessage_IceUpdate_descriptor = + internal_static_signalservice_CallMessage_descriptor.getNestedTypes().get(2); + internal_static_signalservice_CallMessage_IceUpdate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_CallMessage_IceUpdate_descriptor, + new java.lang.String[] { "Id", "SdpMid", "SdpMLineIndex", "Sdp", }); + internal_static_signalservice_CallMessage_Busy_descriptor = + internal_static_signalservice_CallMessage_descriptor.getNestedTypes().get(3); + internal_static_signalservice_CallMessage_Busy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_CallMessage_Busy_descriptor, + new java.lang.String[] { "Id", }); + internal_static_signalservice_CallMessage_Hangup_descriptor = + internal_static_signalservice_CallMessage_descriptor.getNestedTypes().get(4); + internal_static_signalservice_CallMessage_Hangup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_CallMessage_Hangup_descriptor, + new java.lang.String[] { "Id", }); + internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_ClosedGroupCiphertextMessageWrapper_descriptor, + new java.lang.String[] { "Ciphertext", "EphemeralPublicKey", }); + internal_static_signalservice_DataMessage_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_signalservice_DataMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_DataMessage_descriptor, + new java.lang.String[] { "Body", "Attachments", "Group", "Flags", "ExpireTimer", "ProfileKey", "Timestamp", "Quote", "Contact", "Preview", "Sticker", "Profile", "ClosedGroupUpdate", "ClosedGroupUpdateV2", }); + internal_static_signalservice_DataMessage_Quote_descriptor = + internal_static_signalservice_DataMessage_descriptor.getNestedTypes().get(0); + internal_static_signalservice_DataMessage_Quote_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_DataMessage_Quote_descriptor, + new java.lang.String[] { "Id", "Author", "Text", "Attachments", }); + internal_static_signalservice_DataMessage_Quote_QuotedAttachment_descriptor = + internal_static_signalservice_DataMessage_Quote_descriptor.getNestedTypes().get(0); + internal_static_signalservice_DataMessage_Quote_QuotedAttachment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_DataMessage_Quote_QuotedAttachment_descriptor, + new java.lang.String[] { "ContentType", "FileName", "Thumbnail", }); + internal_static_signalservice_DataMessage_Contact_descriptor = + internal_static_signalservice_DataMessage_descriptor.getNestedTypes().get(1); + internal_static_signalservice_DataMessage_Contact_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_DataMessage_Contact_descriptor, + new java.lang.String[] { "Name", "Number", "Email", "Address", "Avatar", "Organization", }); + internal_static_signalservice_DataMessage_Contact_Name_descriptor = + internal_static_signalservice_DataMessage_Contact_descriptor.getNestedTypes().get(0); + internal_static_signalservice_DataMessage_Contact_Name_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_DataMessage_Contact_Name_descriptor, + new java.lang.String[] { "GivenName", "FamilyName", "Prefix", "Suffix", "MiddleName", "DisplayName", }); + internal_static_signalservice_DataMessage_Contact_Phone_descriptor = + internal_static_signalservice_DataMessage_Contact_descriptor.getNestedTypes().get(1); + internal_static_signalservice_DataMessage_Contact_Phone_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_DataMessage_Contact_Phone_descriptor, + new java.lang.String[] { "Value", "Type", "Label", }); + internal_static_signalservice_DataMessage_Contact_Email_descriptor = + internal_static_signalservice_DataMessage_Contact_descriptor.getNestedTypes().get(2); + internal_static_signalservice_DataMessage_Contact_Email_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_DataMessage_Contact_Email_descriptor, + new java.lang.String[] { "Value", "Type", "Label", }); + internal_static_signalservice_DataMessage_Contact_PostalAddress_descriptor = + internal_static_signalservice_DataMessage_Contact_descriptor.getNestedTypes().get(3); + internal_static_signalservice_DataMessage_Contact_PostalAddress_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_DataMessage_Contact_PostalAddress_descriptor, + new java.lang.String[] { "Type", "Label", "Street", "Pobox", "Neighborhood", "City", "Region", "Postcode", "Country", }); + internal_static_signalservice_DataMessage_Contact_Avatar_descriptor = + internal_static_signalservice_DataMessage_Contact_descriptor.getNestedTypes().get(4); + internal_static_signalservice_DataMessage_Contact_Avatar_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_DataMessage_Contact_Avatar_descriptor, + new java.lang.String[] { "Avatar", "IsProfile", }); + internal_static_signalservice_DataMessage_Preview_descriptor = + internal_static_signalservice_DataMessage_descriptor.getNestedTypes().get(2); + internal_static_signalservice_DataMessage_Preview_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_DataMessage_Preview_descriptor, + new java.lang.String[] { "Url", "Title", "Image", }); + internal_static_signalservice_DataMessage_Sticker_descriptor = + internal_static_signalservice_DataMessage_descriptor.getNestedTypes().get(3); + internal_static_signalservice_DataMessage_Sticker_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_DataMessage_Sticker_descriptor, + new java.lang.String[] { "PackId", "PackKey", "StickerId", "Data", }); + internal_static_signalservice_LokiUserProfile_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_signalservice_LokiUserProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_LokiUserProfile_descriptor, + new java.lang.String[] { "DisplayName", "ProfilePictureURL", }); + internal_static_signalservice_ClosedGroupUpdateV2_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_signalservice_ClosedGroupUpdateV2_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_ClosedGroupUpdateV2_descriptor, + new java.lang.String[] { "Type", "PublicKey", "Name", "EncryptionKeyPair", "Members", "Admins", "Wrappers", }); + internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_descriptor = + internal_static_signalservice_ClosedGroupUpdateV2_descriptor.getNestedTypes().get(0); + internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_ClosedGroupUpdateV2_KeyPair_descriptor, + new java.lang.String[] { "PublicKey", "PrivateKey", }); + internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_descriptor = + internal_static_signalservice_ClosedGroupUpdateV2_descriptor.getNestedTypes().get(1); + internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_ClosedGroupUpdateV2_KeyPairWrapper_descriptor, + new java.lang.String[] { "PublicKey", "EncryptedKeyPair", }); + internal_static_signalservice_ClosedGroupUpdate_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_signalservice_ClosedGroupUpdate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_ClosedGroupUpdate_descriptor, + new java.lang.String[] { "Name", "GroupPublicKey", "GroupPrivateKey", "SenderKeys", "Members", "Admins", "Type", }); + internal_static_signalservice_ClosedGroupUpdate_SenderKey_descriptor = + internal_static_signalservice_ClosedGroupUpdate_descriptor.getNestedTypes().get(0); + internal_static_signalservice_ClosedGroupUpdate_SenderKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_ClosedGroupUpdate_SenderKey_descriptor, + new java.lang.String[] { "ChainKey", "KeyIndex", "PublicKey", }); + internal_static_signalservice_NullMessage_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_signalservice_NullMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_NullMessage_descriptor, + new java.lang.String[] { "Padding", }); + internal_static_signalservice_ReceiptMessage_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_signalservice_ReceiptMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_ReceiptMessage_descriptor, + new java.lang.String[] { "Type", "Timestamp", }); + internal_static_signalservice_TypingMessage_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_signalservice_TypingMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_TypingMessage_descriptor, + new java.lang.String[] { "Timestamp", "Action", "GroupId", }); + internal_static_signalservice_Verified_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_signalservice_Verified_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_Verified_descriptor, + new java.lang.String[] { "Destination", "IdentityKey", "State", "NullMessage", }); + internal_static_signalservice_SyncMessage_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_signalservice_SyncMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_SyncMessage_descriptor, + new java.lang.String[] { "Sent", "Contacts", "Groups", "Request", "Read", "Blocked", "Verified", "Configuration", "Padding", "StickerPackOperation", "OpenGroups", }); + internal_static_signalservice_SyncMessage_Sent_descriptor = + internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(0); + internal_static_signalservice_SyncMessage_Sent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_SyncMessage_Sent_descriptor, + new java.lang.String[] { "Destination", "Timestamp", "Message", "ExpirationStartTimestamp", "UnidentifiedStatus", }); + internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_descriptor = + internal_static_signalservice_SyncMessage_Sent_descriptor.getNestedTypes().get(0); + internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_descriptor, + new java.lang.String[] { "Destination", "Unidentified", }); + internal_static_signalservice_SyncMessage_Contacts_descriptor = + internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(1); + internal_static_signalservice_SyncMessage_Contacts_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_SyncMessage_Contacts_descriptor, + new java.lang.String[] { "Blob", "Complete", "Data", }); + internal_static_signalservice_SyncMessage_Groups_descriptor = + internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(2); + internal_static_signalservice_SyncMessage_Groups_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_SyncMessage_Groups_descriptor, + new java.lang.String[] { "Blob", "Data", }); + internal_static_signalservice_SyncMessage_Blocked_descriptor = + internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(3); + internal_static_signalservice_SyncMessage_Blocked_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_SyncMessage_Blocked_descriptor, + new java.lang.String[] { "Numbers", "GroupIds", }); + internal_static_signalservice_SyncMessage_Request_descriptor = + internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(4); + internal_static_signalservice_SyncMessage_Request_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_SyncMessage_Request_descriptor, + new java.lang.String[] { "Type", }); + internal_static_signalservice_SyncMessage_Read_descriptor = + internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(5); + internal_static_signalservice_SyncMessage_Read_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_SyncMessage_Read_descriptor, + new java.lang.String[] { "Sender", "Timestamp", }); + internal_static_signalservice_SyncMessage_Configuration_descriptor = + internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(6); + internal_static_signalservice_SyncMessage_Configuration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_SyncMessage_Configuration_descriptor, + new java.lang.String[] { "ReadReceipts", "UnidentifiedDeliveryIndicators", "TypingIndicators", "LinkPreviews", }); + internal_static_signalservice_SyncMessage_StickerPackOperation_descriptor = + internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(7); + internal_static_signalservice_SyncMessage_StickerPackOperation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_SyncMessage_StickerPackOperation_descriptor, + new java.lang.String[] { "PackId", "PackKey", "Type", }); + internal_static_signalservice_SyncMessage_OpenGroupDetails_descriptor = + internal_static_signalservice_SyncMessage_descriptor.getNestedTypes().get(8); + internal_static_signalservice_SyncMessage_OpenGroupDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_SyncMessage_OpenGroupDetails_descriptor, + new java.lang.String[] { "Url", "ChannelID", }); + internal_static_signalservice_AttachmentPointer_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_signalservice_AttachmentPointer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_AttachmentPointer_descriptor, + new java.lang.String[] { "Id", "ContentType", "Key", "Size", "Thumbnail", "Digest", "FileName", "Flags", "Width", "Height", "Caption", "Url", }); + internal_static_signalservice_GroupContext_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_signalservice_GroupContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_GroupContext_descriptor, + new java.lang.String[] { "Id", "Type", "Name", "Members", "Avatar", "Admins", "NewMembers", "RemovedMembers", }); + internal_static_signalservice_ContactDetails_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_signalservice_ContactDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_ContactDetails_descriptor, + new java.lang.String[] { "Number", "Name", "Avatar", "Color", "Verified", "ProfileKey", "Blocked", "ExpireTimer", "Nickname", }); + internal_static_signalservice_ContactDetails_Avatar_descriptor = + internal_static_signalservice_ContactDetails_descriptor.getNestedTypes().get(0); + internal_static_signalservice_ContactDetails_Avatar_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_ContactDetails_Avatar_descriptor, + new java.lang.String[] { "ContentType", "Length", }); + internal_static_signalservice_GroupDetails_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_signalservice_GroupDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_GroupDetails_descriptor, + new java.lang.String[] { "Id", "Name", "Members", "Avatar", "Active", "ExpireTimer", "Color", "Blocked", "Admins", }); + internal_static_signalservice_GroupDetails_Avatar_descriptor = + internal_static_signalservice_GroupDetails_descriptor.getNestedTypes().get(0); + internal_static_signalservice_GroupDetails_Avatar_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_signalservice_GroupDetails_Avatar_descriptor, + new java.lang.String[] { "ContentType", "Length", }); + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/libsignal/src/main/java/org/session/libsignal/service/internal/sticker/StickerProtos.java b/libsignal/src/main/java/org/session/libsignal/service/internal/sticker/StickerProtos.java index 295d1587d3..08a818b96b 100644 --- a/libsignal/src/main/java/org/session/libsignal/service/internal/sticker/StickerProtos.java +++ b/libsignal/src/main/java/org/session/libsignal/service/internal/sticker/StickerProtos.java @@ -19,7 +19,7 @@ public final class StickerProtos { /** * optional string title = 1; */ - String getTitle(); + java.lang.String getTitle(); /** * optional string title = 1; */ @@ -34,7 +34,7 @@ public final class StickerProtos { /** * optional string author = 2; */ - String getAuthor(); + java.lang.String getAuthor(); /** * optional string author = 2; */ @@ -103,7 +103,7 @@ public final class StickerProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -199,7 +199,7 @@ public final class StickerProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -225,7 +225,7 @@ public final class StickerProtos { /** * optional string emoji = 2; */ - String getEmoji(); + java.lang.String getEmoji(); /** * optional string emoji = 2; */ @@ -255,7 +255,7 @@ public final class StickerProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -327,7 +327,7 @@ public final class StickerProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -351,7 +351,7 @@ public final class StickerProtos { // optional string emoji = 2; public static final int EMOJI_FIELD_NUMBER = 2; - private Object emoji_; + private java.lang.Object emoji_; /** * optional string emoji = 2; */ @@ -361,14 +361,14 @@ public final class StickerProtos { /** * optional string emoji = 2; */ - public String getEmoji() { - Object ref = emoji_; - if (ref instanceof String) { - return (String) ref; + 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; - String s = bs.toStringUtf8(); + java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { emoji_ = s; } @@ -380,11 +380,11 @@ public final class StickerProtos { */ public com.google.protobuf.ByteString getEmojiBytes() { - Object ref = emoji_; - if (ref instanceof String) { + java.lang.Object ref = emoji_; + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); emoji_ = b; return b; } else { @@ -437,8 +437,8 @@ public final class StickerProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -503,7 +503,7 @@ public final class StickerProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); @@ -672,7 +672,7 @@ public final class StickerProtos { } // optional string emoji = 2; - private Object emoji_ = ""; + private java.lang.Object emoji_ = ""; /** * optional string emoji = 2; */ @@ -682,15 +682,15 @@ public final class StickerProtos { /** * optional string emoji = 2; */ - public String getEmoji() { - Object ref = emoji_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref) + public java.lang.String getEmoji() { + java.lang.Object ref = emoji_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); emoji_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** @@ -698,11 +698,11 @@ public final class StickerProtos { */ public com.google.protobuf.ByteString getEmojiBytes() { - Object ref = emoji_; + java.lang.Object ref = emoji_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); emoji_ = b; return b; } else { @@ -713,7 +713,7 @@ public final class StickerProtos { * optional string emoji = 2; */ public Builder setEmoji( - String value) { + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -759,7 +759,7 @@ public final class StickerProtos { private int bitField0_; // optional string title = 1; public static final int TITLE_FIELD_NUMBER = 1; - private Object title_; + private java.lang.Object title_; /** * optional string title = 1; */ @@ -769,14 +769,14 @@ public final class StickerProtos { /** * optional string title = 1; */ - public String getTitle() { - Object ref = title_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { title_ = s; } @@ -788,11 +788,11 @@ public final class StickerProtos { */ public com.google.protobuf.ByteString getTitleBytes() { - Object ref = title_; - if (ref instanceof String) { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); title_ = b; return b; } else { @@ -802,7 +802,7 @@ public final class StickerProtos { // optional string author = 2; public static final int AUTHOR_FIELD_NUMBER = 2; - private Object author_; + private java.lang.Object author_; /** * optional string author = 2; */ @@ -812,14 +812,14 @@ public final class StickerProtos { /** * optional string author = 2; */ - public String getAuthor() { - Object ref = author_; - if (ref instanceof String) { - return (String) ref; + 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; - String s = bs.toStringUtf8(); + java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { author_ = s; } @@ -831,11 +831,11 @@ public final class StickerProtos { */ public com.google.protobuf.ByteString getAuthorBytes() { - Object ref = author_; - if (ref instanceof String) { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); author_ = b; return b; } else { @@ -962,8 +962,8 @@ public final class StickerProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -1028,7 +1028,7 @@ public final class StickerProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); @@ -1226,7 +1226,7 @@ public final class StickerProtos { private int bitField0_; // optional string title = 1; - private Object title_ = ""; + private java.lang.Object title_ = ""; /** * optional string title = 1; */ @@ -1236,15 +1236,15 @@ public final class StickerProtos { /** * optional string title = 1; */ - public String getTitle() { - Object ref = title_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref) + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); title_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** @@ -1252,11 +1252,11 @@ public final class StickerProtos { */ public com.google.protobuf.ByteString getTitleBytes() { - Object ref = title_; + java.lang.Object ref = title_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); title_ = b; return b; } else { @@ -1267,7 +1267,7 @@ public final class StickerProtos { * optional string title = 1; */ public Builder setTitle( - String value) { + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -1300,7 +1300,7 @@ public final class StickerProtos { } // optional string author = 2; - private Object author_ = ""; + private java.lang.Object author_ = ""; /** * optional string author = 2; */ @@ -1310,15 +1310,15 @@ public final class StickerProtos { /** * optional string author = 2; */ - public String getAuthor() { - Object ref = author_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref) + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); author_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** @@ -1326,11 +1326,11 @@ public final class StickerProtos { */ public com.google.protobuf.ByteString getAuthorBytes() { - Object ref = author_; + java.lang.Object ref = author_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); author_ = b; return b; } else { @@ -1341,7 +1341,7 @@ public final class StickerProtos { * optional string author = 2; */ public Builder setAuthor( - String value) { + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -1629,7 +1629,7 @@ public final class StickerProtos { * repeated .signalservice.Pack.Sticker stickers = 4; */ public Builder addAllStickers( - Iterable values) { + java.lang.Iterable values) { if (stickersBuilder_ == null) { ensureStickersIsMutable(); super.addAll(values, stickers_); @@ -1759,14 +1759,14 @@ public final class StickerProtos { private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { - String[] descriptorData = { + java.lang.String[] descriptorData = { "\n\026StickerResources.proto\022\rsignalservice\"" + "\246\001\n\004Pack\022\r\n\005title\030\001 \001(\t\022\016\n\006author\030\002 \001(\t\022" + "*\n\005cover\030\003 \001(\0132\033.signalservice.Pack.Stic" + "ker\022-\n\010stickers\030\004 \003(\0132\033.signalservice.Pa" + "ck.Sticker\032$\n\007Sticker\022\n\n\002id\030\001 \001(\r\022\r\n\005emo" + - "ji\030\002 \001(\tBB\n1org.whispersystems.signalser" + - "vice.internal.stickerB\rStickerProtos" + "ji\030\002 \001(\tB?\n.org.session.libsignal.servic" + + "e.internal.stickerB\rStickerProtos" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -1778,13 +1778,13 @@ public final class StickerProtos { internal_static_signalservice_Pack_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_signalservice_Pack_descriptor, - new String[] { "Title", "Author", "Cover", "Stickers", }); + new java.lang.String[] { "Title", "Author", "Cover", "Stickers", }); internal_static_signalservice_Pack_Sticker_descriptor = internal_static_signalservice_Pack_descriptor.getNestedTypes().get(0); internal_static_signalservice_Pack_Sticker_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_signalservice_Pack_Sticker_descriptor, - new String[] { "Id", "Emoji", }); + new java.lang.String[] { "Id", "Emoji", }); return null; } }; diff --git a/libsignal/src/main/java/org/session/libsignal/service/internal/websocket/WebSocketProtos.java b/libsignal/src/main/java/org/session/libsignal/service/internal/websocket/WebSocketProtos.java index d711e0cd0e..d123d4813b 100644 --- a/libsignal/src/main/java/org/session/libsignal/service/internal/websocket/WebSocketProtos.java +++ b/libsignal/src/main/java/org/session/libsignal/service/internal/websocket/WebSocketProtos.java @@ -19,7 +19,7 @@ public final class WebSocketProtos { /** * optional string verb = 1; */ - String getVerb(); + java.lang.String getVerb(); /** * optional string verb = 1; */ @@ -34,7 +34,7 @@ public final class WebSocketProtos { /** * optional string path = 2; */ - String getPath(); + java.lang.String getPath(); /** * optional string path = 2; */ @@ -55,7 +55,7 @@ public final class WebSocketProtos { /** * repeated string headers = 5; */ - java.util.List + java.util.List getHeadersList(); /** * repeated string headers = 5; @@ -64,7 +64,7 @@ public final class WebSocketProtos { /** * repeated string headers = 5; */ - String getHeaders(int index); + java.lang.String getHeaders(int index); /** * repeated string headers = 5; */ @@ -104,7 +104,7 @@ public final class WebSocketProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -197,7 +197,7 @@ public final class WebSocketProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -205,7 +205,7 @@ public final class WebSocketProtos { private int bitField0_; // optional string verb = 1; public static final int VERB_FIELD_NUMBER = 1; - private Object verb_; + private java.lang.Object verb_; /** * optional string verb = 1; */ @@ -215,14 +215,14 @@ public final class WebSocketProtos { /** * optional string verb = 1; */ - public String getVerb() { - Object ref = verb_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { verb_ = s; } @@ -234,11 +234,11 @@ public final class WebSocketProtos { */ public com.google.protobuf.ByteString getVerbBytes() { - Object ref = verb_; - if (ref instanceof String) { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); verb_ = b; return b; } else { @@ -248,7 +248,7 @@ public final class WebSocketProtos { // optional string path = 2; public static final int PATH_FIELD_NUMBER = 2; - private Object path_; + private java.lang.Object path_; /** * optional string path = 2; */ @@ -258,14 +258,14 @@ public final class WebSocketProtos { /** * optional string path = 2; */ - public String getPath() { - Object ref = path_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } @@ -277,11 +277,11 @@ public final class WebSocketProtos { */ public com.google.protobuf.ByteString getPathBytes() { - Object ref = path_; - if (ref instanceof String) { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); path_ = b; return b; } else { @@ -311,7 +311,7 @@ public final class WebSocketProtos { /** * repeated string headers = 5; */ - public java.util.List + public java.util.List getHeadersList() { return headers_; } @@ -324,7 +324,7 @@ public final class WebSocketProtos { /** * repeated string headers = 5; */ - public String getHeaders(int index) { + public java.lang.String getHeaders(int index) { return headers_.get(index); } /** @@ -425,8 +425,8 @@ public final class WebSocketProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -491,7 +491,7 @@ public final class WebSocketProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); @@ -665,7 +665,7 @@ public final class WebSocketProtos { private int bitField0_; // optional string verb = 1; - private Object verb_ = ""; + private java.lang.Object verb_ = ""; /** * optional string verb = 1; */ @@ -675,15 +675,15 @@ public final class WebSocketProtos { /** * optional string verb = 1; */ - public String getVerb() { - Object ref = verb_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref) + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); verb_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** @@ -691,11 +691,11 @@ public final class WebSocketProtos { */ public com.google.protobuf.ByteString getVerbBytes() { - Object ref = verb_; + java.lang.Object ref = verb_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); verb_ = b; return b; } else { @@ -706,7 +706,7 @@ public final class WebSocketProtos { * optional string verb = 1; */ public Builder setVerb( - String value) { + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -739,7 +739,7 @@ public final class WebSocketProtos { } // optional string path = 2; - private Object path_ = ""; + private java.lang.Object path_ = ""; /** * optional string path = 2; */ @@ -749,15 +749,15 @@ public final class WebSocketProtos { /** * optional string path = 2; */ - public String getPath() { - Object ref = path_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref) + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); path_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** @@ -765,11 +765,11 @@ public final class WebSocketProtos { */ public com.google.protobuf.ByteString getPathBytes() { - Object ref = path_; + java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); path_ = b; return b; } else { @@ -780,7 +780,7 @@ public final class WebSocketProtos { * optional string path = 2; */ public Builder setPath( - String value) { + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -859,7 +859,7 @@ public final class WebSocketProtos { /** * repeated string headers = 5; */ - public java.util.List + public java.util.List getHeadersList() { return java.util.Collections.unmodifiableList(headers_); } @@ -872,7 +872,7 @@ public final class WebSocketProtos { /** * repeated string headers = 5; */ - public String getHeaders(int index) { + public java.lang.String getHeaders(int index) { return headers_.get(index); } /** @@ -886,7 +886,7 @@ public final class WebSocketProtos { * repeated string headers = 5; */ public Builder setHeaders( - int index, String value) { + int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -899,7 +899,7 @@ public final class WebSocketProtos { * repeated string headers = 5; */ public Builder addHeaders( - String value) { + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -912,7 +912,7 @@ public final class WebSocketProtos { * repeated string headers = 5; */ public Builder addAllHeaders( - Iterable values) { + java.lang.Iterable values) { ensureHeadersIsMutable(); super.addAll(values, headers_); onChanged(); @@ -1016,7 +1016,7 @@ public final class WebSocketProtos { /** * optional string message = 3; */ - String getMessage(); + java.lang.String getMessage(); /** * optional string message = 3; */ @@ -1027,7 +1027,7 @@ public final class WebSocketProtos { /** * repeated string headers = 5; */ - java.util.List + java.util.List getHeadersList(); /** * repeated string headers = 5; @@ -1036,7 +1036,7 @@ public final class WebSocketProtos { /** * repeated string headers = 5; */ - String getHeaders(int index); + java.lang.String getHeaders(int index); /** * repeated string headers = 5; */ @@ -1076,7 +1076,7 @@ public final class WebSocketProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -1169,7 +1169,7 @@ public final class WebSocketProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -1209,7 +1209,7 @@ public final class WebSocketProtos { // optional string message = 3; public static final int MESSAGE_FIELD_NUMBER = 3; - private Object message_; + private java.lang.Object message_; /** * optional string message = 3; */ @@ -1219,14 +1219,14 @@ public final class WebSocketProtos { /** * optional string message = 3; */ - public String getMessage() { - Object ref = message_; - if (ref instanceof String) { - return (String) ref; + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); + java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { message_ = s; } @@ -1238,11 +1238,11 @@ public final class WebSocketProtos { */ public com.google.protobuf.ByteString getMessageBytes() { - Object ref = message_; - if (ref instanceof String) { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); message_ = b; return b; } else { @@ -1256,7 +1256,7 @@ public final class WebSocketProtos { /** * repeated string headers = 5; */ - public java.util.List + public java.util.List getHeadersList() { return headers_; } @@ -1269,7 +1269,7 @@ public final class WebSocketProtos { /** * repeated string headers = 5; */ - public String getHeaders(int index) { + public java.lang.String getHeaders(int index) { return headers_.get(index); } /** @@ -1370,8 +1370,8 @@ public final class WebSocketProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -1436,7 +1436,7 @@ public final class WebSocketProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); @@ -1674,7 +1674,7 @@ public final class WebSocketProtos { } // optional string message = 3; - private Object message_ = ""; + private java.lang.Object message_ = ""; /** * optional string message = 3; */ @@ -1684,15 +1684,15 @@ public final class WebSocketProtos { /** * optional string message = 3; */ - public String getMessage() { - Object ref = message_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref) + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); message_ = s; return s; } else { - return (String) ref; + return (java.lang.String) ref; } } /** @@ -1700,11 +1700,11 @@ public final class WebSocketProtos { */ public com.google.protobuf.ByteString getMessageBytes() { - Object ref = message_; + java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( - (String) ref); + (java.lang.String) ref); message_ = b; return b; } else { @@ -1715,7 +1715,7 @@ public final class WebSocketProtos { * optional string message = 3; */ public Builder setMessage( - String value) { + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -1758,7 +1758,7 @@ public final class WebSocketProtos { /** * repeated string headers = 5; */ - public java.util.List + public java.util.List getHeadersList() { return java.util.Collections.unmodifiableList(headers_); } @@ -1771,7 +1771,7 @@ public final class WebSocketProtos { /** * repeated string headers = 5; */ - public String getHeaders(int index) { + public java.lang.String getHeaders(int index) { return headers_.get(index); } /** @@ -1785,7 +1785,7 @@ public final class WebSocketProtos { * repeated string headers = 5; */ public Builder setHeaders( - int index, String value) { + int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -1798,7 +1798,7 @@ public final class WebSocketProtos { * repeated string headers = 5; */ public Builder addHeaders( - String value) { + java.lang.String value) { if (value == null) { throw new NullPointerException(); } @@ -1811,7 +1811,7 @@ public final class WebSocketProtos { * repeated string headers = 5; */ public Builder addAllHeaders( - Iterable values) { + java.lang.Iterable values) { ensureHeadersIsMutable(); super.addAll(values, headers_); onChanged(); @@ -1951,7 +1951,7 @@ public final class WebSocketProtos { } private final com.google.protobuf.UnknownFieldSet unknownFields; - @Override + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -2050,7 +2050,7 @@ public final class WebSocketProtos { } }; - @Override + @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @@ -2129,7 +2129,7 @@ public final class WebSocketProtos { public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new IllegalArgumentException( + throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; @@ -2260,8 +2260,8 @@ public final class WebSocketProtos { } private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @@ -2326,7 +2326,7 @@ public final class WebSocketProtos { } public Builder toBuilder() { return newBuilder(this); } - @Override + @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); @@ -2626,7 +2626,7 @@ public final class WebSocketProtos { * optional .signalservice.WebSocketRequestMessage request = 2; */ private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.websocket.WebSocketProtos.WebSocketRequestMessage, org.session.libsignal.service.internal.websocket.WebSocketProtos.WebSocketRequestMessage.Builder, org.session.libsignal.service.internal.websocket.WebSocketProtos.WebSocketRequestMessageOrBuilder> + org.session.libsignal.service.internal.websocket.WebSocketProtos.WebSocketRequestMessage, org.session.libsignal.service.internal.websocket.WebSocketProtos.WebSocketRequestMessage.Builder, org.session.libsignal.service.internal.websocket.WebSocketProtos.WebSocketRequestMessageOrBuilder> getRequestFieldBuilder() { if (requestBuilder_ == null) { requestBuilder_ = new com.google.protobuf.SingleFieldBuilder< @@ -2743,7 +2743,7 @@ public final class WebSocketProtos { * optional .signalservice.WebSocketResponseMessage response = 3; */ private com.google.protobuf.SingleFieldBuilder< - org.session.libsignal.service.internal.websocket.WebSocketProtos.WebSocketResponseMessage, org.session.libsignal.service.internal.websocket.WebSocketProtos.WebSocketResponseMessage.Builder, org.session.libsignal.service.internal.websocket.WebSocketProtos.WebSocketResponseMessageOrBuilder> + org.session.libsignal.service.internal.websocket.WebSocketProtos.WebSocketResponseMessage, org.session.libsignal.service.internal.websocket.WebSocketProtos.WebSocketResponseMessage.Builder, org.session.libsignal.service.internal.websocket.WebSocketProtos.WebSocketResponseMessageOrBuilder> getResponseFieldBuilder() { if (responseBuilder_ == null) { responseBuilder_ = new com.google.protobuf.SingleFieldBuilder< @@ -2790,7 +2790,7 @@ public final class WebSocketProtos { private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { - String[] descriptorData = { + java.lang.String[] descriptorData = { "\n\030WebSocketResources.proto\022\rsignalservic" + "e\"`\n\027WebSocketRequestMessage\022\014\n\004verb\030\001 \001" + "(\t\022\014\n\004path\030\002 \001(\t\022\014\n\004body\030\003 \001(\014\022\017\n\007header" + @@ -2803,8 +2803,8 @@ public final class WebSocketProtos { "equestMessage\0229\n\010response\030\003 \001(\0132\'.signal", "service.WebSocketResponseMessage\".\n\004Type" + "\022\013\n\007UNKNOWN\020\000\022\013\n\007REQUEST\020\001\022\014\n\010RESPONSE\020\002" + - "BF\n3org.session.libsignal.service.int" + - "ernal.websocketB\017WebSocketProtos" + "BC\n0org.session.libsignal.service.intern" + + "al.websocketB\017WebSocketProtos" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -2816,19 +2816,19 @@ public final class WebSocketProtos { internal_static_signalservice_WebSocketRequestMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_signalservice_WebSocketRequestMessage_descriptor, - new String[] { "Verb", "Path", "Body", "Headers", "Id", }); + new java.lang.String[] { "Verb", "Path", "Body", "Headers", "Id", }); internal_static_signalservice_WebSocketResponseMessage_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_signalservice_WebSocketResponseMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_signalservice_WebSocketResponseMessage_descriptor, - new String[] { "Id", "Status", "Message", "Headers", "Body", }); + new java.lang.String[] { "Id", "Status", "Message", "Headers", "Body", }); internal_static_signalservice_WebSocketMessage_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_signalservice_WebSocketMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_signalservice_WebSocketMessage_descriptor, - new String[] { "Type", "Request", "Response", }); + new java.lang.String[] { "Type", "Request", "Response", }); return null; } };