org.whispersystems.signalservice.internal.push.SignalServiceProtos Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signal-service-java Show documentation
Show all versions of signal-service-java Show documentation
Signal Service communication library for Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: SignalService.proto
package org.whispersystems.signalservice.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 {
// optional .signalservice.Envelope.Type type = 1;
/**
* optional .signalservice.Envelope.Type type = 1;
*/
boolean hasType();
/**
* optional .signalservice.Envelope.Type type = 1;
*/
org.whispersystems.signalservice.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
getSourceBytes();
// 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
getRelayBytes();
// 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 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
getServerGuidBytes();
// 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.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope.Type value = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_Envelope_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_Envelope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope.class, org.whispersystems.signalservice.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),
;
/**
* 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;
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;
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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.EnvelopeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_Envelope_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_Envelope_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_Envelope_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope.Type type_ = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Envelope.Type getType() {
return type_;
}
/**
* optional .signalservice.Envelope.Type type = 1;
*/
public Builder setType(org.whispersystems.signalservice.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.whispersystems.signalservice.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)
}
public interface ContentOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .signalservice.DataMessage dataMessage = 1;
/**
* optional .signalservice.DataMessage dataMessage = 1;
*/
boolean hasDataMessage();
/**
* optional .signalservice.DataMessage dataMessage = 1;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage getDataMessage();
/**
* optional .signalservice.DataMessage dataMessage = 1;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessageOrBuilder getDataMessageOrBuilder();
// optional .signalservice.SyncMessage syncMessage = 2;
/**
* optional .signalservice.SyncMessage syncMessage = 2;
*/
boolean hasSyncMessage();
/**
* optional .signalservice.SyncMessage syncMessage = 2;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage getSyncMessage();
/**
* optional .signalservice.SyncMessage syncMessage = 2;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessageOrBuilder getSyncMessageOrBuilder();
// optional .signalservice.CallMessage callMessage = 3;
/**
* optional .signalservice.CallMessage callMessage = 3;
*/
boolean hasCallMessage();
/**
* optional .signalservice.CallMessage callMessage = 3;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage getCallMessage();
/**
* optional .signalservice.CallMessage callMessage = 3;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessageOrBuilder getCallMessageOrBuilder();
// optional .signalservice.NullMessage nullMessage = 4;
/**
* optional .signalservice.NullMessage nullMessage = 4;
*/
boolean hasNullMessage();
/**
* optional .signalservice.NullMessage nullMessage = 4;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage getNullMessage();
/**
* optional .signalservice.NullMessage nullMessage = 4;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessageOrBuilder getNullMessageOrBuilder();
// optional .signalservice.ReceiptMessage receiptMessage = 5;
/**
* optional .signalservice.ReceiptMessage receiptMessage = 5;
*/
boolean hasReceiptMessage();
/**
* optional .signalservice.ReceiptMessage receiptMessage = 5;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage getReceiptMessage();
/**
* optional .signalservice.ReceiptMessage receiptMessage = 5;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder getReceiptMessageOrBuilder();
// optional .signalservice.TypingMessage typingMessage = 6;
/**
* optional .signalservice.TypingMessage typingMessage = 6;
*/
boolean hasTypingMessage();
/**
* optional .signalservice.TypingMessage typingMessage = 6;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage getTypingMessage();
/**
* optional .signalservice.TypingMessage typingMessage = 6;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessageOrBuilder getTypingMessageOrBuilder();
}
/**
* 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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = dataMessage_.toBuilder();
}
dataMessage_ = input.readMessage(org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dataMessage_);
dataMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = syncMessage_.toBuilder();
}
syncMessage_ = input.readMessage(org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(syncMessage_);
syncMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = callMessage_.toBuilder();
}
callMessage_ = input.readMessage(org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(callMessage_);
callMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = nullMessage_.toBuilder();
}
nullMessage_ = input.readMessage(org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nullMessage_);
nullMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = receiptMessage_.toBuilder();
}
receiptMessage_ = input.readMessage(org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(receiptMessage_);
receiptMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = typingMessage_.toBuilder();
}
typingMessage_ = input.readMessage(org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(typingMessage_);
typingMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_Content_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_Content_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.Content.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage dataMessage_;
/**
* optional .signalservice.DataMessage dataMessage = 1;
*/
public boolean hasDataMessage() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .signalservice.DataMessage dataMessage = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage getDataMessage() {
return dataMessage_;
}
/**
* optional .signalservice.DataMessage dataMessage = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessageOrBuilder getDataMessageOrBuilder() {
return dataMessage_;
}
// optional .signalservice.SyncMessage syncMessage = 2;
public static final int SYNCMESSAGE_FIELD_NUMBER = 2;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage syncMessage_;
/**
* optional .signalservice.SyncMessage syncMessage = 2;
*/
public boolean hasSyncMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .signalservice.SyncMessage syncMessage = 2;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage getSyncMessage() {
return syncMessage_;
}
/**
* optional .signalservice.SyncMessage syncMessage = 2;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessageOrBuilder getSyncMessageOrBuilder() {
return syncMessage_;
}
// optional .signalservice.CallMessage callMessage = 3;
public static final int CALLMESSAGE_FIELD_NUMBER = 3;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage callMessage_;
/**
* optional .signalservice.CallMessage callMessage = 3;
*/
public boolean hasCallMessage() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .signalservice.CallMessage callMessage = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage getCallMessage() {
return callMessage_;
}
/**
* optional .signalservice.CallMessage callMessage = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessageOrBuilder getCallMessageOrBuilder() {
return callMessage_;
}
// optional .signalservice.NullMessage nullMessage = 4;
public static final int NULLMESSAGE_FIELD_NUMBER = 4;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage nullMessage_;
/**
* optional .signalservice.NullMessage nullMessage = 4;
*/
public boolean hasNullMessage() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .signalservice.NullMessage nullMessage = 4;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage getNullMessage() {
return nullMessage_;
}
/**
* optional .signalservice.NullMessage nullMessage = 4;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessageOrBuilder getNullMessageOrBuilder() {
return nullMessage_;
}
// optional .signalservice.ReceiptMessage receiptMessage = 5;
public static final int RECEIPTMESSAGE_FIELD_NUMBER = 5;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage receiptMessage_;
/**
* optional .signalservice.ReceiptMessage receiptMessage = 5;
*/
public boolean hasReceiptMessage() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .signalservice.ReceiptMessage receiptMessage = 5;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage getReceiptMessage() {
return receiptMessage_;
}
/**
* optional .signalservice.ReceiptMessage receiptMessage = 5;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder getReceiptMessageOrBuilder() {
return receiptMessage_;
}
// optional .signalservice.TypingMessage typingMessage = 6;
public static final int TYPINGMESSAGE_FIELD_NUMBER = 6;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage typingMessage_;
/**
* optional .signalservice.TypingMessage typingMessage = 6;
*/
public boolean hasTypingMessage() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .signalservice.TypingMessage typingMessage = 6;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage getTypingMessage() {
return typingMessage_;
}
/**
* optional .signalservice.TypingMessage typingMessage = 6;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessageOrBuilder getTypingMessageOrBuilder() {
return typingMessage_;
}
private void initFields() {
dataMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance();
syncMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance();
callMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance();
nullMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance();
receiptMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance();
typingMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.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, 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_);
}
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_);
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.Content parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Content parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Content parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Content parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Content parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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 Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.whispersystems.signalservice.internal.push.SignalServiceProtos.ContentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_Content_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_Content_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.Content.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.Content.Builder.class);
}
// Construct using org.whispersystems.signalservice.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();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (dataMessageBuilder_ == null) {
dataMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance();
} else {
dataMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (syncMessageBuilder_ == null) {
syncMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance();
} else {
syncMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (callMessageBuilder_ == null) {
callMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance();
} else {
callMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (nullMessageBuilder_ == null) {
nullMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance();
} else {
nullMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (receiptMessageBuilder_ == null) {
receiptMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance();
} else {
receiptMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (typingMessageBuilder_ == null) {
typingMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance();
} else {
typingMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_Content_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.Content getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.Content.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.Content build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.Content result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.Content buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.Content result = new org.whispersystems.signalservice.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();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.whispersystems.signalservice.internal.push.SignalServiceProtos.Content) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.Content)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.Content other) {
if (other == org.whispersystems.signalservice.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());
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.Content parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage dataMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessageOrBuilder> dataMessageBuilder_;
/**
* optional .signalservice.DataMessage dataMessage = 1;
*/
public boolean hasDataMessage() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .signalservice.DataMessage dataMessage = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage getDataMessage() {
if (dataMessageBuilder_ == null) {
return dataMessage_;
} else {
return dataMessageBuilder_.getMessage();
}
}
/**
* optional .signalservice.DataMessage dataMessage = 1;
*/
public Builder setDataMessage(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage value) {
if (dataMessageBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
dataMessage_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance()) {
dataMessage_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance();
onChanged();
} else {
dataMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .signalservice.DataMessage dataMessage = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Builder getDataMessageBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getDataMessageFieldBuilder().getBuilder();
}
/**
* optional .signalservice.DataMessage dataMessage = 1;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessageOrBuilder>
getDataMessageFieldBuilder() {
if (dataMessageBuilder_ == null) {
dataMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessageOrBuilder>(
dataMessage_,
getParentForChildren(),
isClean());
dataMessage_ = null;
}
return dataMessageBuilder_;
}
// optional .signalservice.SyncMessage syncMessage = 2;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage syncMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessageOrBuilder> syncMessageBuilder_;
/**
* optional .signalservice.SyncMessage syncMessage = 2;
*/
public boolean hasSyncMessage() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .signalservice.SyncMessage syncMessage = 2;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage getSyncMessage() {
if (syncMessageBuilder_ == null) {
return syncMessage_;
} else {
return syncMessageBuilder_.getMessage();
}
}
/**
* optional .signalservice.SyncMessage syncMessage = 2;
*/
public Builder setSyncMessage(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage value) {
if (syncMessageBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
syncMessage_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance()) {
syncMessage_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance();
onChanged();
} else {
syncMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .signalservice.SyncMessage syncMessage = 2;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Builder getSyncMessageBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSyncMessageFieldBuilder().getBuilder();
}
/**
* optional .signalservice.SyncMessage syncMessage = 2;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessageOrBuilder>
getSyncMessageFieldBuilder() {
if (syncMessageBuilder_ == null) {
syncMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessageOrBuilder>(
syncMessage_,
getParentForChildren(),
isClean());
syncMessage_ = null;
}
return syncMessageBuilder_;
}
// optional .signalservice.CallMessage callMessage = 3;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage callMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessageOrBuilder> callMessageBuilder_;
/**
* optional .signalservice.CallMessage callMessage = 3;
*/
public boolean hasCallMessage() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .signalservice.CallMessage callMessage = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage getCallMessage() {
if (callMessageBuilder_ == null) {
return callMessage_;
} else {
return callMessageBuilder_.getMessage();
}
}
/**
* optional .signalservice.CallMessage callMessage = 3;
*/
public Builder setCallMessage(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage value) {
if (callMessageBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
callMessage_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance()) {
callMessage_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance();
onChanged();
} else {
callMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .signalservice.CallMessage callMessage = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Builder getCallMessageBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getCallMessageFieldBuilder().getBuilder();
}
/**
* optional .signalservice.CallMessage callMessage = 3;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessageOrBuilder>
getCallMessageFieldBuilder() {
if (callMessageBuilder_ == null) {
callMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessageOrBuilder>(
callMessage_,
getParentForChildren(),
isClean());
callMessage_ = null;
}
return callMessageBuilder_;
}
// optional .signalservice.NullMessage nullMessage = 4;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage nullMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessageOrBuilder> nullMessageBuilder_;
/**
* optional .signalservice.NullMessage nullMessage = 4;
*/
public boolean hasNullMessage() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .signalservice.NullMessage nullMessage = 4;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage getNullMessage() {
if (nullMessageBuilder_ == null) {
return nullMessage_;
} else {
return nullMessageBuilder_.getMessage();
}
}
/**
* optional .signalservice.NullMessage nullMessage = 4;
*/
public Builder setNullMessage(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage value) {
if (nullMessageBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
nullMessage_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance()) {
nullMessage_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance();
onChanged();
} else {
nullMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .signalservice.NullMessage nullMessage = 4;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage.Builder getNullMessageBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getNullMessageFieldBuilder().getBuilder();
}
/**
* optional .signalservice.NullMessage nullMessage = 4;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessageOrBuilder>
getNullMessageFieldBuilder() {
if (nullMessageBuilder_ == null) {
nullMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessageOrBuilder>(
nullMessage_,
getParentForChildren(),
isClean());
nullMessage_ = null;
}
return nullMessageBuilder_;
}
// optional .signalservice.ReceiptMessage receiptMessage = 5;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage receiptMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder> receiptMessageBuilder_;
/**
* optional .signalservice.ReceiptMessage receiptMessage = 5;
*/
public boolean hasReceiptMessage() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .signalservice.ReceiptMessage receiptMessage = 5;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage getReceiptMessage() {
if (receiptMessageBuilder_ == null) {
return receiptMessage_;
} else {
return receiptMessageBuilder_.getMessage();
}
}
/**
* optional .signalservice.ReceiptMessage receiptMessage = 5;
*/
public Builder setReceiptMessage(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage value) {
if (receiptMessageBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
receiptMessage_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance()) {
receiptMessage_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance();
onChanged();
} else {
receiptMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .signalservice.ReceiptMessage receiptMessage = 5;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.Builder getReceiptMessageBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getReceiptMessageFieldBuilder().getBuilder();
}
/**
* optional .signalservice.ReceiptMessage receiptMessage = 5;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder>
getReceiptMessageFieldBuilder() {
if (receiptMessageBuilder_ == null) {
receiptMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder>(
receiptMessage_,
getParentForChildren(),
isClean());
receiptMessage_ = null;
}
return receiptMessageBuilder_;
}
// optional .signalservice.TypingMessage typingMessage = 6;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage typingMessage_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessageOrBuilder> typingMessageBuilder_;
/**
* optional .signalservice.TypingMessage typingMessage = 6;
*/
public boolean hasTypingMessage() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .signalservice.TypingMessage typingMessage = 6;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage getTypingMessage() {
if (typingMessageBuilder_ == null) {
return typingMessage_;
} else {
return typingMessageBuilder_.getMessage();
}
}
/**
* optional .signalservice.TypingMessage typingMessage = 6;
*/
public Builder setTypingMessage(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage value) {
if (typingMessageBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
typingMessage_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance()) {
typingMessage_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance();
onChanged();
} else {
typingMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* optional .signalservice.TypingMessage typingMessage = 6;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.Builder getTypingMessageBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getTypingMessageFieldBuilder().getBuilder();
}
/**
* optional .signalservice.TypingMessage typingMessage = 6;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessageOrBuilder>
getTypingMessageFieldBuilder() {
if (typingMessageBuilder_ == null) {
typingMessageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessageOrBuilder>(
typingMessage_,
getParentForChildren(),
isClean());
typingMessage_ = null;
}
return typingMessageBuilder_;
}
// @@protoc_insertion_point(builder_scope:signalservice.Content)
}
static {
defaultInstance = new Content(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:signalservice.Content)
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer getOffer();
/**
* optional .signalservice.CallMessage.Offer offer = 1;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer getAnswer();
/**
* optional .signalservice.CallMessage.Answer answer = 2;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder>
getIceUpdateOrBuilderList();
/**
* repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup getHangup();
/**
* optional .signalservice.CallMessage.Hangup hangup = 4;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy getBusy();
/**
* optional .signalservice.CallMessage.Busy busy = 5;
*/
org.whispersystems.signalservice.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 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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = offer_.toBuilder();
}
offer_ = input.readMessage(org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(offer_);
offer_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = answer_.toBuilder();
}
answer_ = input.readMessage(org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate.PARSER, extensionRegistry));
break;
}
case 34: {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = hangup_.toBuilder();
}
hangup_ = input.readMessage(org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(hangup_);
hangup_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 42: {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = busy_.toBuilder();
}
busy_ = input.readMessage(org.whispersystems.signalservice.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();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Offer_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Offer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Offer_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Offer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Offer_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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 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();
}
/**
* 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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Answer_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Answer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.AnswerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Answer_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Answer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Answer_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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)
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_IceUpdate_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_IceUpdate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_IceUpdate_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_IceUpdate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_IceUpdate_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Busy_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Busy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Busy_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Busy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Busy_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Hangup_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Hangup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Hangup_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Hangup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_Hangup_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer getOffer() {
return offer_;
}
/**
* optional .signalservice.CallMessage.Offer offer = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder getOfferOrBuilder() {
return offer_;
}
// optional .signalservice.CallMessage.Answer answer = 2;
public static final int ANSWER_FIELD_NUMBER = 2;
private org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer getAnswer() {
return answer_;
}
/**
* optional .signalservice.CallMessage.Answer answer = 2;
*/
public org.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder>
getIceUpdateOrBuilderList() {
return iceUpdate_;
}
/**
* repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3;
*/
public int getIceUpdateCount() {
return iceUpdate_.size();
}
/**
* repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate getIceUpdate(int index) {
return iceUpdate_.get(index);
}
/**
* repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup getHangup() {
return hangup_;
}
/**
* optional .signalservice.CallMessage.Hangup hangup = 4;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder getHangupOrBuilder() {
return hangup_;
}
// optional .signalservice.CallMessage.Busy busy = 5;
public static final int BUSY_FIELD_NUMBER = 5;
private org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy getBusy() {
return busy_;
}
/**
* optional .signalservice.CallMessage.Busy busy = 5;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder getBusyOrBuilder() {
return busy_;
}
private void initFields() {
offer_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance();
answer_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance();
iceUpdate_ = java.util.Collections.emptyList();
hangup_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance();
busy_ = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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 Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance();
} else {
offerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (answerBuilder_ == null) {
answer_ = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance();
} else {
hangupBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (busyBuilder_ == null) {
busy_ = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_CallMessage_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer offer_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer value) {
if (offerBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
offer_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance()) {
offer_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer.getDefaultInstance();
onChanged();
} else {
offerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .signalservice.CallMessage.Offer offer = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer.Builder getOfferBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getOfferFieldBuilder().getBuilder();
}
/**
* optional .signalservice.CallMessage.Offer offer = 1;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder>
getOfferFieldBuilder() {
if (offerBuilder_ == null) {
offerBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Offer.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.OfferOrBuilder>(
offer_,
getParentForChildren(),
isClean());
offer_ = null;
}
return offerBuilder_;
}
// optional .signalservice.CallMessage.Answer answer = 2;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer answer_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer value) {
if (answerBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
answer_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance()) {
answer_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer.getDefaultInstance();
onChanged();
} else {
answerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .signalservice.CallMessage.Answer answer = 2;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer.Builder getAnswerBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getAnswerFieldBuilder().getBuilder();
}
/**
* optional .signalservice.CallMessage.Answer answer = 2;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.AnswerOrBuilder>
getAnswerFieldBuilder() {
if (answerBuilder_ == null) {
answerBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Answer.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate> 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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder getIceUpdateBuilder(
int index) {
return getIceUpdateFieldBuilder().getBuilder(index);
}
/**
* repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3;
*/
public org.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder>
getIceUpdateOrBuilderList() {
if (iceUpdateBuilder_ != null) {
return iceUpdateBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(iceUpdate_);
}
}
/**
* repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder addIceUpdateBuilder() {
return getIceUpdateFieldBuilder().addBuilder(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate.getDefaultInstance());
}
/**
* repeated .signalservice.CallMessage.IceUpdate iceUpdate = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder addIceUpdateBuilder(
int index) {
return getIceUpdateFieldBuilder().addBuilder(
index, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder>
getIceUpdateFieldBuilder() {
if (iceUpdateBuilder_ == null) {
iceUpdateBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdate.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.IceUpdateOrBuilder>(
iceUpdate_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
iceUpdate_ = null;
}
return iceUpdateBuilder_;
}
// optional .signalservice.CallMessage.Hangup hangup = 4;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup hangup_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup value) {
if (hangupBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
hangup_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance()) {
hangup_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup.getDefaultInstance();
onChanged();
} else {
hangupBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .signalservice.CallMessage.Hangup hangup = 4;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder getHangupBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getHangupFieldBuilder().getBuilder();
}
/**
* optional .signalservice.CallMessage.Hangup hangup = 4;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder>
getHangupFieldBuilder() {
if (hangupBuilder_ == null) {
hangupBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Hangup.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.HangupOrBuilder>(
hangup_,
getParentForChildren(),
isClean());
hangup_ = null;
}
return hangupBuilder_;
}
// optional .signalservice.CallMessage.Busy busy = 5;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy busy_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy value) {
if (busyBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
busy_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance()) {
busy_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy.getDefaultInstance();
onChanged();
} else {
busyBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .signalservice.CallMessage.Busy busy = 5;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy.Builder getBusyBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getBusyFieldBuilder().getBuilder();
}
/**
* optional .signalservice.CallMessage.Busy busy = 5;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder>
getBusyFieldBuilder() {
if (busyBuilder_ == null) {
busyBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.Busy.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.CallMessage.BusyOrBuilder>(
busy_,
getParentForChildren(),
isClean());
busy_ = null;
}
return busyBuilder_;
}
// @@protoc_insertion_point(builder_scope:signalservice.CallMessage)
}
static {
defaultInstance = new CallMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:signalservice.CallMessage)
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer getAttachments(int index);
/**
* repeated .signalservice.AttachmentPointer attachments = 2;
*/
int getAttachmentsCount();
/**
* repeated .signalservice.AttachmentPointer attachments = 2;
*/
java.util.List extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>
getAttachmentsOrBuilderList();
/**
* repeated .signalservice.AttachmentPointer attachments = 2;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext getGroup();
/**
* optional .signalservice.GroupContext group = 3;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote getQuote();
/**
* optional .signalservice.DataMessage.Quote quote = 8;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder>
getContactOrBuilderList();
/**
* repeated .signalservice.DataMessage.Contact contact = 9;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder getContactOrBuilder(
int index);
}
/**
* 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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry));
break;
}
case 26: {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = group_.toBuilder();
}
group_ = input.readMessage(org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = quote_.toBuilder();
}
quote_ = input.readMessage(org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.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_ & 0x00000002) == 0x00000002)) {
attachments_ = java.util.Collections.unmodifiableList(attachments_);
}
if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
contact_ = java.util.Collections.unmodifiableList(contact_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.class, org.whispersystems.signalservice.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),
;
/**
* 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;
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;
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.whispersystems.signalservice.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.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder>
getAttachmentsOrBuilderList();
/**
* repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer getThumbnail();
/**
* optional .signalservice.AttachmentPointer thumbnail = 3;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = thumbnail_.toBuilder();
}
thumbnail_ = input.readMessage(org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_QuotedAttachment_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_QuotedAttachment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer thumbnail_;
/**
* optional .signalservice.AttachmentPointer thumbnail = 3;
*/
public boolean hasThumbnail() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .signalservice.AttachmentPointer thumbnail = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer getThumbnail() {
return thumbnail_;
}
/**
* optional .signalservice.AttachmentPointer thumbnail = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getThumbnailOrBuilder() {
return thumbnail_;
}
private void initFields() {
contentType_ = "";
fileName_ = "";
thumbnail_ = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_QuotedAttachment_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_QuotedAttachment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_QuotedAttachment_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer thumbnail_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> thumbnailBuilder_;
/**
* optional .signalservice.AttachmentPointer thumbnail = 3;
*/
public boolean hasThumbnail() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .signalservice.AttachmentPointer thumbnail = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer getThumbnail() {
if (thumbnailBuilder_ == null) {
return thumbnail_;
} else {
return thumbnailBuilder_.getMessage();
}
}
/**
* optional .signalservice.AttachmentPointer thumbnail = 3;
*/
public Builder setThumbnail(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer value) {
if (thumbnailBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
thumbnail_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) {
thumbnail_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance();
onChanged();
} else {
thumbnailBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .signalservice.AttachmentPointer thumbnail = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder getThumbnailBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getThumbnailFieldBuilder().getBuilder();
}
/**
* optional .signalservice.AttachmentPointer thumbnail = 3;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>
getThumbnailFieldBuilder() {
if (thumbnailBuilder_ == null) {
thumbnailBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder>
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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment getAttachments(int index) {
return attachments_.get(index);
}
/**
* repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.QuoteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Quote_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment> 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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder getAttachmentsBuilder(
int index) {
return getAttachmentsFieldBuilder().getBuilder(index);
}
/**
* repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4;
*/
public org.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder>
getAttachmentsOrBuilderList() {
if (attachmentsBuilder_ != null) {
return attachmentsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(attachments_);
}
}
/**
* repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder addAttachmentsBuilder() {
return getAttachmentsFieldBuilder().addBuilder(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.getDefaultInstance());
}
/**
* repeated .signalservice.DataMessage.Quote.QuotedAttachment attachments = 4;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder addAttachmentsBuilder(
int index) {
return getAttachmentsFieldBuilder().addBuilder(
index, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachmentOrBuilder>
getAttachmentsFieldBuilder() {
if (attachmentsBuilder_ == null) {
attachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.QuotedAttachment.Builder, org.whispersystems.signalservice.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 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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name getName();
/**
* optional .signalservice.DataMessage.Contact.Name name = 1;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder>
getNumberOrBuilderList();
/**
* repeated .signalservice.DataMessage.Contact.Phone number = 3;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder>
getEmailOrBuilderList();
/**
* repeated .signalservice.DataMessage.Contact.Email email = 4;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder>
getAddressOrBuilderList();
/**
* repeated .signalservice.DataMessage.Contact.PostalAddress address = 5;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar getAvatar();
/**
* optional .signalservice.DataMessage.Contact.Avatar avatar = 6;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = name_.toBuilder();
}
name_ = input.readMessage(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.PARSER, extensionRegistry));
break;
}
case 50: {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = avatar_.toBuilder();
}
avatar_ = input.readMessage(org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Name_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Name_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.NameOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Name_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Name_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Name_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type value = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Phone_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Phone_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.class, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Phone_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Phone_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Phone_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type type_ = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Type getType() {
return type_;
}
/**
* optional .signalservice.DataMessage.Contact.Phone.Type type = 2;
*/
public Builder setType(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type value = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Email_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Email_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email.class, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Email_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Email_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Email_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type type_ = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Type getType() {
return type_;
}
/**
* optional .signalservice.DataMessage.Contact.Email.Type type = 2;
*/
public Builder setType(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type value = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_PostalAddress_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_PostalAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.class, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_PostalAddress_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_PostalAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_PostalAddress_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type type_ = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Type getType() {
return type_;
}
/**
* optional .signalservice.DataMessage.Contact.PostalAddress.Type type = 1;
*/
public Builder setType(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer getAvatar();
/**
* optional .signalservice.AttachmentPointer avatar = 1;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = avatar_.toBuilder();
}
avatar_ = input.readMessage(org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Avatar_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Avatar_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer avatar_;
/**
* optional .signalservice.AttachmentPointer avatar = 1;
*/
public boolean hasAvatar() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .signalservice.AttachmentPointer avatar = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer getAvatar() {
return avatar_;
}
/**
* optional .signalservice.AttachmentPointer avatar = 1;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.AvatarOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Avatar_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Avatar_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_Avatar_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer avatar_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> avatarBuilder_;
/**
* optional .signalservice.AttachmentPointer avatar = 1;
*/
public boolean hasAvatar() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .signalservice.AttachmentPointer avatar = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer getAvatar() {
if (avatarBuilder_ == null) {
return avatar_;
} else {
return avatarBuilder_.getMessage();
}
}
/**
* optional .signalservice.AttachmentPointer avatar = 1;
*/
public Builder setAvatar(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer value) {
if (avatarBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
avatar_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) {
avatar_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance();
onChanged();
} else {
avatarBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .signalservice.AttachmentPointer avatar = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder getAvatarBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAvatarFieldBuilder().getBuilder();
}
/**
* optional .signalservice.AttachmentPointer avatar = 1;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>
getAvatarFieldBuilder() {
if (avatarBuilder_ == null) {
avatarBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name getName() {
return name_;
}
/**
* optional .signalservice.DataMessage.Contact.Name name = 1;
*/
public org.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder>
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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone getNumber(int index) {
return number_.get(index);
}
/**
* repeated .signalservice.DataMessage.Contact.Phone number = 3;
*/
public org.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder>
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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email getEmail(int index) {
return email_.get(index);
}
/**
* repeated .signalservice.DataMessage.Contact.Email email = 4;
*/
public org.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder>
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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress getAddress(int index) {
return address_.get(index);
}
/**
* repeated .signalservice.DataMessage.Contact.PostalAddress address = 5;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar getAvatar() {
return avatar_;
}
/**
* optional .signalservice.DataMessage.Contact.Avatar avatar = 6;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance();
number_ = java.util.Collections.emptyList();
email_ = java.util.Collections.emptyList();
address_ = java.util.Collections.emptyList();
avatar_ = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_Contact_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name name_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name value) {
if (nameBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
name_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name.getDefaultInstance()) {
name_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder getNameBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getNameFieldBuilder().getBuilder();
}
/**
* optional .signalservice.DataMessage.Contact.Name name = 1;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.NameOrBuilder>
getNameFieldBuilder() {
if (nameBuilder_ == null) {
nameBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Name.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone> 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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder getNumberBuilder(
int index) {
return getNumberFieldBuilder().getBuilder(index);
}
/**
* repeated .signalservice.DataMessage.Contact.Phone number = 3;
*/
public org.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder>
getNumberOrBuilderList() {
if (numberBuilder_ != null) {
return numberBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(number_);
}
}
/**
* repeated .signalservice.DataMessage.Contact.Phone number = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder addNumberBuilder() {
return getNumberFieldBuilder().addBuilder(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.getDefaultInstance());
}
/**
* repeated .signalservice.DataMessage.Contact.Phone number = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder addNumberBuilder(
int index) {
return getNumberFieldBuilder().addBuilder(
index, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PhoneOrBuilder>
getNumberFieldBuilder() {
if (numberBuilder_ == null) {
numberBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Phone.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email> 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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder getEmailBuilder(
int index) {
return getEmailFieldBuilder().getBuilder(index);
}
/**
* repeated .signalservice.DataMessage.Contact.Email email = 4;
*/
public org.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder>
getEmailOrBuilderList() {
if (emailBuilder_ != null) {
return emailBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(email_);
}
}
/**
* repeated .signalservice.DataMessage.Contact.Email email = 4;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder addEmailBuilder() {
return getEmailFieldBuilder().addBuilder(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email.getDefaultInstance());
}
/**
* repeated .signalservice.DataMessage.Contact.Email email = 4;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder addEmailBuilder(
int index) {
return getEmailFieldBuilder().addBuilder(
index, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.EmailOrBuilder>
getEmailFieldBuilder() {
if (emailBuilder_ == null) {
emailBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Email.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress> 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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder getAddressBuilder(
int index) {
return getAddressFieldBuilder().getBuilder(index);
}
/**
* repeated .signalservice.DataMessage.Contact.PostalAddress address = 5;
*/
public org.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder>
getAddressOrBuilderList() {
if (addressBuilder_ != null) {
return addressBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(address_);
}
}
/**
* repeated .signalservice.DataMessage.Contact.PostalAddress address = 5;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder addAddressBuilder() {
return getAddressFieldBuilder().addBuilder(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.getDefaultInstance());
}
/**
* repeated .signalservice.DataMessage.Contact.PostalAddress address = 5;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder addAddressBuilder(
int index) {
return getAddressFieldBuilder().addBuilder(
index, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddressOrBuilder>
getAddressFieldBuilder() {
if (addressBuilder_ == null) {
addressBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.PostalAddress.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar avatar_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar value) {
if (avatarBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
avatar_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.getDefaultInstance()) {
avatar_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder getAvatarBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getAvatarFieldBuilder().getBuilder();
}
/**
* optional .signalservice.DataMessage.Contact.Avatar avatar = 6;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.AvatarOrBuilder>
getAvatarFieldBuilder() {
if (avatarBuilder_ == null) {
avatarBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Avatar.Builder, org.whispersystems.signalservice.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)
}
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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>
getAttachmentsOrBuilderList() {
return attachments_;
}
/**
* repeated .signalservice.AttachmentPointer attachments = 2;
*/
public int getAttachmentsCount() {
return attachments_.size();
}
/**
* repeated .signalservice.AttachmentPointer attachments = 2;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer getAttachments(int index) {
return attachments_.get(index);
}
/**
* repeated .signalservice.AttachmentPointer attachments = 2;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext group_;
/**
* optional .signalservice.GroupContext group = 3;
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .signalservice.GroupContext group = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext getGroup() {
return group_;
}
/**
* optional .signalservice.GroupContext group = 3;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote getQuote() {
return quote_;
}
/**
* optional .signalservice.DataMessage.Quote quote = 8;
*/
public org.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder>
getContactOrBuilderList() {
return contact_;
}
/**
* repeated .signalservice.DataMessage.Contact contact = 9;
*/
public int getContactCount() {
return contact_.size();
}
/**
* repeated .signalservice.DataMessage.Contact contact = 9;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact getContact(int index) {
return contact_.get(index);
}
/**
* repeated .signalservice.DataMessage.Contact contact = 9;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder getContactOrBuilder(
int index) {
return contact_.get(index);
}
private void initFields() {
body_ = "";
attachments_ = java.util.Collections.emptyList();
group_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance();
flags_ = 0;
expireTimer_ = 0;
profileKey_ = com.google.protobuf.ByteString.EMPTY;
timestamp_ = 0L;
quote_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance();
contact_ = 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.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));
}
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));
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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 Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Builder.class);
}
// Construct using org.whispersystems.signalservice.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();
}
}
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.whispersystems.signalservice.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.whispersystems.signalservice.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();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_DataMessage_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage result = new org.whispersystems.signalservice.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();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage other) {
if (other == org.whispersystems.signalservice.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_);
}
}
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer> 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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder getAttachmentsBuilder(
int index) {
return getAttachmentsFieldBuilder().getBuilder(index);
}
/**
* repeated .signalservice.AttachmentPointer attachments = 2;
*/
public org.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>
getAttachmentsOrBuilderList() {
if (attachmentsBuilder_ != null) {
return attachmentsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(attachments_);
}
}
/**
* repeated .signalservice.AttachmentPointer attachments = 2;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder addAttachmentsBuilder() {
return getAttachmentsFieldBuilder().addBuilder(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance());
}
/**
* repeated .signalservice.AttachmentPointer attachments = 2;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder addAttachmentsBuilder(
int index) {
return getAttachmentsFieldBuilder().addBuilder(
index, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance());
}
/**
* repeated .signalservice.AttachmentPointer attachments = 2;
*/
public java.util.List
getAttachmentsBuilderList() {
return getAttachmentsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>
getAttachmentsFieldBuilder() {
if (attachmentsBuilder_ == null) {
attachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>(
attachments_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
attachments_ = null;
}
return attachmentsBuilder_;
}
// optional .signalservice.GroupContext group = 3;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext group_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext, org.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContextOrBuilder> groupBuilder_;
/**
* optional .signalservice.GroupContext group = 3;
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .signalservice.GroupContext group = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext getGroup() {
if (groupBuilder_ == null) {
return group_;
} else {
return groupBuilder_.getMessage();
}
}
/**
* optional .signalservice.GroupContext group = 3;
*/
public Builder setGroup(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext value) {
if (groupBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
group_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance()) {
group_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext.getDefaultInstance();
onChanged();
} else {
groupBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .signalservice.GroupContext group = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext.Builder getGroupBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getGroupFieldBuilder().getBuilder();
}
/**
* optional .signalservice.GroupContext group = 3;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext, org.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContextOrBuilder>
getGroupFieldBuilder() {
if (groupBuilder_ == null) {
groupBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext, org.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote quote_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote value) {
if (quoteBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080) &&
quote_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance()) {
quote_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.getDefaultInstance();
onChanged();
} else {
quoteBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* optional .signalservice.DataMessage.Quote quote = 8;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.Builder getQuoteBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getQuoteFieldBuilder().getBuilder();
}
/**
* optional .signalservice.DataMessage.Quote quote = 8;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.QuoteOrBuilder>
getQuoteFieldBuilder() {
if (quoteBuilder_ == null) {
quoteBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Quote.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact> 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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Builder getContactBuilder(
int index) {
return getContactFieldBuilder().getBuilder(index);
}
/**
* repeated .signalservice.DataMessage.Contact contact = 9;
*/
public org.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder>
getContactOrBuilderList() {
if (contactBuilder_ != null) {
return contactBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contact_);
}
}
/**
* repeated .signalservice.DataMessage.Contact contact = 9;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Builder addContactBuilder() {
return getContactFieldBuilder().addBuilder(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.getDefaultInstance());
}
/**
* repeated .signalservice.DataMessage.Contact contact = 9;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Builder addContactBuilder(
int index) {
return getContactFieldBuilder().addBuilder(
index, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder>
getContactFieldBuilder() {
if (contactBuilder_ == null) {
contactBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Contact.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.ContactOrBuilder>(
contact_,
((bitField0_ & 0x00000100) == 0x00000100),
getParentForChildren(),
isClean());
contact_ = null;
}
return contactBuilder_;
}
// @@protoc_insertion_point(builder_scope:signalservice.DataMessage)
}
static {
defaultInstance = new DataMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:signalservice.DataMessage)
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_NullMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_NullMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_NullMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_NullMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_NullMessage_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.NullMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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)
}
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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.Type value = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_ReceiptMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_ReceiptMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.class, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_ReceiptMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_ReceiptMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_ReceiptMessage_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.Type type_ = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.ReceiptMessage.Type getType() {
return type_;
}
/**
* optional .signalservice.ReceiptMessage.Type type = 1;
*/
public Builder setType(org.whispersystems.signalservice.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.whispersystems.signalservice.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 extends java.lang.Long> 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)
}
public interface TypingMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// 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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.Action value = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_TypingMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_TypingMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.class, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_TypingMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_TypingMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_TypingMessage_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.Action action_ = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.TypingMessage.Action getAction() {
return action_;
}
/**
* optional .signalservice.TypingMessage.Action action = 2;
*/
public Builder setAction(org.whispersystems.signalservice.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.whispersystems.signalservice.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)
}
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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified.State value = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_Verified_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_Verified_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified.class, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.VerifiedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_Verified_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_Verified_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_Verified_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified.State state_ = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified.State getState() {
return state_;
}
/**
* optional .signalservice.Verified.State state = 3;
*/
public Builder setState(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent getSent();
/**
* optional .signalservice.SyncMessage.Sent sent = 1;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts getContacts();
/**
* optional .signalservice.SyncMessage.Contacts contacts = 2;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups getGroups();
/**
* optional .signalservice.SyncMessage.Groups groups = 3;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request getRequest();
/**
* optional .signalservice.SyncMessage.Request request = 4;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder>
getReadOrBuilderList();
/**
* repeated .signalservice.SyncMessage.Read read = 5;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked getBlocked();
/**
* optional .signalservice.SyncMessage.Blocked blocked = 6;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder getBlockedOrBuilder();
// optional .signalservice.Verified verified = 7;
/**
* optional .signalservice.Verified verified = 7;
*/
boolean hasVerified();
/**
* optional .signalservice.Verified verified = 7;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified getVerified();
/**
* optional .signalservice.Verified verified = 7;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration getConfiguration();
/**
* optional .signalservice.SyncMessage.Configuration configuration = 9;
*/
org.whispersystems.signalservice.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();
}
/**
* 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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = sent_.toBuilder();
}
sent_ = input.readMessage(org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sent_);
sent_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = contacts_.toBuilder();
}
contacts_ = input.readMessage(org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(contacts_);
contacts_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = groups_.toBuilder();
}
groups_ = input.readMessage(org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(groups_);
groups_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = request_.toBuilder();
}
request_ = input.readMessage(org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read.PARSER, extensionRegistry));
break;
}
case 50: {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = blocked_.toBuilder();
}
blocked_ = input.readMessage(org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(blocked_);
blocked_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 58: {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = verified_.toBuilder();
}
verified_ = input.readMessage(org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = configuration_.toBuilder();
}
configuration_ = input.readMessage(org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(configuration_);
configuration_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
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_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage getMessage();
/**
* optional .signalservice.DataMessage message = 3;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder>
getUnidentifiedStatusOrBuilderList();
/**
* repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5;
*/
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = message_.toBuilder();
}
message_ = input.readMessage(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_UnidentifiedDeliveryStatus_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage message_;
/**
* optional .signalservice.DataMessage message = 3;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .signalservice.DataMessage message = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage getMessage() {
return message_;
}
/**
* optional .signalservice.DataMessage message = 3;
*/
public org.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder>
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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus getUnidentifiedStatus(int index) {
return unidentifiedStatus_.get(index);
}
/**
* repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder getUnidentifiedStatusOrBuilder(
int index) {
return unidentifiedStatus_.get(index);
}
private void initFields() {
destination_ = "";
timestamp_ = 0L;
message_ = org.whispersystems.signalservice.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;
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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Sent_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent other) {
if (other == org.whispersystems.signalservice.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() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage message_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessageOrBuilder> messageBuilder_;
/**
* optional .signalservice.DataMessage message = 3;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .signalservice.DataMessage message = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage getMessage() {
if (messageBuilder_ == null) {
return message_;
} else {
return messageBuilder_.getMessage();
}
}
/**
* optional .signalservice.DataMessage message = 3;
*/
public Builder setMessage(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage value) {
if (messageBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
message_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance()) {
message_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.getDefaultInstance();
onChanged();
} else {
messageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .signalservice.DataMessage message = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Builder getMessageBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getMessageFieldBuilder().getBuilder();
}
/**
* optional .signalservice.DataMessage message = 3;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessageOrBuilder>
getMessageFieldBuilder() {
if (messageBuilder_ == null) {
messageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage, org.whispersystems.signalservice.internal.push.SignalServiceProtos.DataMessage.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus> 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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder getUnidentifiedStatusBuilder(
int index) {
return getUnidentifiedStatusFieldBuilder().getBuilder(index);
}
/**
* repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5;
*/
public org.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder>
getUnidentifiedStatusOrBuilderList() {
if (unidentifiedStatusBuilder_ != null) {
return unidentifiedStatusBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(unidentifiedStatus_);
}
}
/**
* repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder addUnidentifiedStatusBuilder() {
return getUnidentifiedStatusFieldBuilder().addBuilder(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.getDefaultInstance());
}
/**
* repeated .signalservice.SyncMessage.Sent.UnidentifiedDeliveryStatus unidentifiedStatus = 5;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder addUnidentifiedStatusBuilder(
int index) {
return getUnidentifiedStatusFieldBuilder().addBuilder(
index, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatusOrBuilder>
getUnidentifiedStatusFieldBuilder() {
if (unidentifiedStatusBuilder_ == null) {
unidentifiedStatusBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.UnidentifiedDeliveryStatus.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer getBlob();
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
org.whispersystems.signalservice.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();
}
/**
* 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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = blob_.toBuilder();
}
blob_ = input.readMessage(org.whispersystems.signalservice.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;
}
}
}
} 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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Contacts_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Contacts_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer blob_;
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
public boolean hasBlob() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer getBlob() {
return blob_;
}
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
public org.whispersystems.signalservice.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_;
}
private void initFields() {
blob_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance();
complete_ = 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, blob_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, complete_);
}
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_);
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Contacts_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Contacts_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance();
} else {
blobBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
complete_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Contacts_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts result = new org.whispersystems.signalservice.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_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts other) {
if (other == org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance()) return this;
if (other.hasBlob()) {
mergeBlob(other.getBlob());
}
if (other.hasComplete()) {
setComplete(other.getComplete());
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer blob_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> blobBuilder_;
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
public boolean hasBlob() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer getBlob() {
if (blobBuilder_ == null) {
return blob_;
} else {
return blobBuilder_.getMessage();
}
}
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
public Builder setBlob(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer value) {
if (blobBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
blob_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) {
blob_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance();
onChanged();
} else {
blobBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder getBlobBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBlobFieldBuilder().getBuilder();
}
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>
getBlobFieldBuilder() {
if (blobBuilder_ == null) {
blobBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.whispersystems.signalservice.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;
}
// @@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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer getBlob();
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getBlobOrBuilder();
}
/**
* 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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = blob_.toBuilder();
}
blob_ = input.readMessage(org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(blob_);
blob_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Groups_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Groups_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer blob_;
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
public boolean hasBlob() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer getBlob() {
return blob_;
}
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getBlobOrBuilder() {
return blob_;
}
private void initFields() {
blob_ = org.whispersystems.signalservice.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.writeMessage(1, blob_);
}
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_);
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Groups_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Groups_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance();
} else {
blobBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Groups_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups result = new org.whispersystems.signalservice.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();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups other) {
if (other == org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance()) return this;
if (other.hasBlob()) {
mergeBlob(other.getBlob());
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer blob_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder> blobBuilder_;
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
public boolean hasBlob() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer getBlob() {
if (blobBuilder_ == null) {
return blob_;
} else {
return blobBuilder_.getMessage();
}
}
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
public Builder setBlob(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer value) {
if (blobBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
blob_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance()) {
blob_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance();
onChanged();
} else {
blobBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder getBlobBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBlobFieldBuilder().getBuilder();
}
/**
* optional .signalservice.AttachmentPointer blob = 1;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>
getBlobFieldBuilder() {
if (blobBuilder_ == null) {
blobBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder>(
blob_,
getParentForChildren(),
isClean());
blob_ = null;
}
return blobBuilder_;
}
// @@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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Blocked_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Blocked_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Blocked_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Blocked_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Blocked_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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 extends com.google.protobuf.ByteString> 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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request.Type value = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request.class, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request.Type getType() {
return type_;
}
private void initFields() {
type_ = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Request_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request.Type type_ = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request.Type getType() {
return type_;
}
/**
* optional .signalservice.SyncMessage.Request.Type type = 1;
*/
public Builder setType(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Read_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Read_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read.class, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Read_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Read_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read.Builder.class);
}
// Construct using org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Read_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read result = new org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read other) {
if (other == org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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();
}
/**
* 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;
}
}
}
} 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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Configuration_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Configuration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration.class, org.whispersystems.signalservice.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_;
}
private void initFields() {
readReceipts_ = false;
unidentifiedDeliveryIndicators_ = false;
typingIndicators_ = 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_);
}
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_);
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.ConfigurationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Configuration_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Configuration_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder.class);
}
// Construct using org.whispersystems.signalservice.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);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_Configuration_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration result = new org.whispersystems.signalservice.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_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration other) {
if (other == org.whispersystems.signalservice.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());
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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;
}
// @@protoc_insertion_point(builder_scope:signalservice.SyncMessage.Configuration)
}
static {
defaultInstance = new Configuration(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:signalservice.SyncMessage.Configuration)
}
private int bitField0_;
// optional .signalservice.SyncMessage.Sent sent = 1;
public static final int SENT_FIELD_NUMBER = 1;
private org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent getSent() {
return sent_;
}
/**
* optional .signalservice.SyncMessage.Sent sent = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder getSentOrBuilder() {
return sent_;
}
// optional .signalservice.SyncMessage.Contacts contacts = 2;
public static final int CONTACTS_FIELD_NUMBER = 2;
private org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts getContacts() {
return contacts_;
}
/**
* optional .signalservice.SyncMessage.Contacts contacts = 2;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder getContactsOrBuilder() {
return contacts_;
}
// optional .signalservice.SyncMessage.Groups groups = 3;
public static final int GROUPS_FIELD_NUMBER = 3;
private org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups getGroups() {
return groups_;
}
/**
* optional .signalservice.SyncMessage.Groups groups = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder getGroupsOrBuilder() {
return groups_;
}
// optional .signalservice.SyncMessage.Request request = 4;
public static final int REQUEST_FIELD_NUMBER = 4;
private org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request getRequest() {
return request_;
}
/**
* optional .signalservice.SyncMessage.Request request = 4;
*/
public org.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder>
getReadOrBuilderList() {
return read_;
}
/**
* repeated .signalservice.SyncMessage.Read read = 5;
*/
public int getReadCount() {
return read_.size();
}
/**
* repeated .signalservice.SyncMessage.Read read = 5;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read getRead(int index) {
return read_.get(index);
}
/**
* repeated .signalservice.SyncMessage.Read read = 5;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked getBlocked() {
return blocked_;
}
/**
* optional .signalservice.SyncMessage.Blocked blocked = 6;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder getBlockedOrBuilder() {
return blocked_;
}
// optional .signalservice.Verified verified = 7;
public static final int VERIFIED_FIELD_NUMBER = 7;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified verified_;
/**
* optional .signalservice.Verified verified = 7;
*/
public boolean hasVerified() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .signalservice.Verified verified = 7;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified getVerified() {
return verified_;
}
/**
* optional .signalservice.Verified verified = 7;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.VerifiedOrBuilder getVerifiedOrBuilder() {
return verified_;
}
// optional .signalservice.SyncMessage.Configuration configuration = 9;
public static final int CONFIGURATION_FIELD_NUMBER = 9;
private org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration getConfiguration() {
return configuration_;
}
/**
* optional .signalservice.SyncMessage.Configuration configuration = 9;
*/
public org.whispersystems.signalservice.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_;
}
private void initFields() {
sent_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance();
contacts_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance();
groups_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance();
request_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance();
read_ = java.util.Collections.emptyList();
blocked_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance();
verified_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified.getDefaultInstance();
configuration_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance();
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.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_);
}
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_);
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Builder.class);
}
// Construct using org.whispersystems.signalservice.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();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (sentBuilder_ == null) {
sent_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance();
} else {
sentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (contactsBuilder_ == null) {
contacts_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance();
} else {
contactsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (groupsBuilder_ == null) {
groups_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance();
} else {
groupsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (requestBuilder_ == null) {
request_ = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance();
} else {
blockedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (verifiedBuilder_ == null) {
verified_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified.getDefaultInstance();
} else {
verifiedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (configurationBuilder_ == null) {
configuration_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance();
} else {
configurationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
padding_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_SyncMessage_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage result = new org.whispersystems.signalservice.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_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage other) {
if (other == org.whispersystems.signalservice.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());
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent sent_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent value) {
if (sentBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
sent_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance()) {
sent_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.getDefaultInstance();
onChanged();
} else {
sentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .signalservice.SyncMessage.Sent sent = 1;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder getSentBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getSentFieldBuilder().getBuilder();
}
/**
* optional .signalservice.SyncMessage.Sent sent = 1;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder>
getSentFieldBuilder() {
if (sentBuilder_ == null) {
sentBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Sent.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.SentOrBuilder>(
sent_,
getParentForChildren(),
isClean());
sent_ = null;
}
return sentBuilder_;
}
// optional .signalservice.SyncMessage.Contacts contacts = 2;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts contacts_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts value) {
if (contactsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
contacts_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance()) {
contacts_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts.getDefaultInstance();
onChanged();
} else {
contactsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .signalservice.SyncMessage.Contacts contacts = 2;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder getContactsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getContactsFieldBuilder().getBuilder();
}
/**
* optional .signalservice.SyncMessage.Contacts contacts = 2;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder>
getContactsFieldBuilder() {
if (contactsBuilder_ == null) {
contactsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Contacts.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.ContactsOrBuilder>(
contacts_,
getParentForChildren(),
isClean());
contacts_ = null;
}
return contactsBuilder_;
}
// optional .signalservice.SyncMessage.Groups groups = 3;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups groups_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups value) {
if (groupsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
groups_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance()) {
groups_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups.getDefaultInstance();
onChanged();
} else {
groupsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .signalservice.SyncMessage.Groups groups = 3;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder getGroupsBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getGroupsFieldBuilder().getBuilder();
}
/**
* optional .signalservice.SyncMessage.Groups groups = 3;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder>
getGroupsFieldBuilder() {
if (groupsBuilder_ == null) {
groupsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Groups.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.GroupsOrBuilder>(
groups_,
getParentForChildren(),
isClean());
groups_ = null;
}
return groupsBuilder_;
}
// optional .signalservice.SyncMessage.Request request = 4;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request request_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request value) {
if (requestBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
request_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance()) {
request_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request.getDefaultInstance();
onChanged();
} else {
requestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .signalservice.SyncMessage.Request request = 4;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request.Builder getRequestBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getRequestFieldBuilder().getBuilder();
}
/**
* optional .signalservice.SyncMessage.Request request = 4;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.RequestOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Request.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read> 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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read.Builder getReadBuilder(
int index) {
return getReadFieldBuilder().getBuilder(index);
}
/**
* repeated .signalservice.SyncMessage.Read read = 5;
*/
public org.whispersystems.signalservice.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 extends org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder>
getReadOrBuilderList() {
if (readBuilder_ != null) {
return readBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(read_);
}
}
/**
* repeated .signalservice.SyncMessage.Read read = 5;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read.Builder addReadBuilder() {
return getReadFieldBuilder().addBuilder(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read.getDefaultInstance());
}
/**
* repeated .signalservice.SyncMessage.Read read = 5;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read.Builder addReadBuilder(
int index) {
return getReadFieldBuilder().addBuilder(
index, org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder>
getReadFieldBuilder() {
if (readBuilder_ == null) {
readBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Read.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.ReadOrBuilder>(
read_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
read_ = null;
}
return readBuilder_;
}
// optional .signalservice.SyncMessage.Blocked blocked = 6;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked blocked_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked value) {
if (blockedBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
blocked_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance()) {
blocked_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked.getDefaultInstance();
onChanged();
} else {
blockedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* optional .signalservice.SyncMessage.Blocked blocked = 6;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder getBlockedBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getBlockedFieldBuilder().getBuilder();
}
/**
* optional .signalservice.SyncMessage.Blocked blocked = 6;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder>
getBlockedFieldBuilder() {
if (blockedBuilder_ == null) {
blockedBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Blocked.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.BlockedOrBuilder>(
blocked_,
getParentForChildren(),
isClean());
blocked_ = null;
}
return blockedBuilder_;
}
// optional .signalservice.Verified verified = 7;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified verified_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified, org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.VerifiedOrBuilder> verifiedBuilder_;
/**
* optional .signalservice.Verified verified = 7;
*/
public boolean hasVerified() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional .signalservice.Verified verified = 7;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified getVerified() {
if (verifiedBuilder_ == null) {
return verified_;
} else {
return verifiedBuilder_.getMessage();
}
}
/**
* optional .signalservice.Verified verified = 7;
*/
public Builder setVerified(org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified value) {
if (verifiedBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
verified_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified.getDefaultInstance()) {
verified_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified.getDefaultInstance();
onChanged();
} else {
verifiedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* optional .signalservice.Verified verified = 7;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified.Builder getVerifiedBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getVerifiedFieldBuilder().getBuilder();
}
/**
* optional .signalservice.Verified verified = 7;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified, org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.VerifiedOrBuilder>
getVerifiedFieldBuilder() {
if (verifiedBuilder_ == null) {
verifiedBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified, org.whispersystems.signalservice.internal.push.SignalServiceProtos.Verified.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.VerifiedOrBuilder>(
verified_,
getParentForChildren(),
isClean());
verified_ = null;
}
return verifiedBuilder_;
}
// optional .signalservice.SyncMessage.Configuration configuration = 9;
private org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration configuration_ = org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder, org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration value) {
if (configurationBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080) &&
configuration_ != org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance()) {
configuration_ =
org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration.getDefaultInstance();
onChanged();
} else {
configurationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* optional .signalservice.SyncMessage.Configuration configuration = 9;
*/
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder getConfigurationBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getConfigurationFieldBuilder().getBuilder();
}
/**
* optional .signalservice.SyncMessage.Configuration configuration = 9;
*/
public org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.ConfigurationOrBuilder>
getConfigurationFieldBuilder() {
if (configurationBuilder_ == null) {
configurationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration, org.whispersystems.signalservice.internal.push.SignalServiceProtos.SyncMessage.Configuration.Builder, org.whispersystems.signalservice.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;
}
// @@protoc_insertion_point(builder_scope:signalservice.SyncMessage)
}
static {
defaultInstance = new SyncMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:signalservice.SyncMessage)
}
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 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 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
getFileNameBytes();
// 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 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
getCaptionBytes();
}
/**
* 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;
}
}
}
} 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.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_AttachmentPointer_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_AttachmentPointer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.class, org.whispersystems.signalservice.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.whispersystems.signalservice.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;
}
}
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_ = "";
}
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());
}
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());
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.signalservice.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.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_AttachmentPointer_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_AttachmentPointer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.class, org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder.class);
}
// Construct using org.whispersystems.signalservice.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);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_AttachmentPointer_descriptor;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer getDefaultInstanceForType() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.getDefaultInstance();
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer build() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer buildPartial() {
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer result = new org.whispersystems.signalservice.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_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer) {
return mergeFrom((org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer other) {
if (other == org.whispersystems.signalservice.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();
}
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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.signalservice.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;
}
// @@protoc_insertion_point(builder_scope:signalservice.AttachmentPointer)
}
static {
defaultInstance = new AttachmentPointer(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:signalservice.AttachmentPointer)
}
public interface GroupContextOrBuilder
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 .signalservice.GroupContext.Type type = 2;
/**
* optional .signalservice.GroupContext.Type type = 2;
*/
boolean hasType();
/**
* optional .signalservice.GroupContext.Type type = 2;
*/
org.whispersystems.signalservice.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
getMembersBytes(int index);
// optional .signalservice.AttachmentPointer avatar = 5;
/**
* optional .signalservice.AttachmentPointer avatar = 5;
*/
boolean hasAvatar();
/**
* optional .signalservice.AttachmentPointer avatar = 5;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer getAvatar();
/**
* optional .signalservice.AttachmentPointer avatar = 5;
*/
org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointerOrBuilder getAvatarOrBuilder();
}
/**
* 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.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext.Type value = org.whispersystems.signalservice.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.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = avatar_.toBuilder();
}
avatar_ = input.readMessage(org.whispersystems.signalservice.internal.push.SignalServiceProtos.AttachmentPointer.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(avatar_);
avatar_ = 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_ & 0x00000008) == 0x00000008)) {
members_ = new com.google.protobuf.UnmodifiableLazyStringList(members_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_GroupContext_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.signalservice.internal.push.SignalServiceProtos.internal_static_signalservice_GroupContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.signalservice.internal.push.SignalServiceProtos.GroupContext.class, org.whispersystems.signalservice.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