Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.whispersystems.libsignal.protocol.SignalProtos Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: WhisperTextProtocol.proto
package org.whispersystems.libsignal.protocol;
public final class SignalProtos {
private SignalProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface SignalMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bytes ratchetKey = 1;
/**
* optional bytes ratchetKey = 1;
*/
boolean hasRatchetKey();
/**
* optional bytes ratchetKey = 1;
*/
com.google.protobuf.ByteString getRatchetKey();
// optional uint32 counter = 2;
/**
* optional uint32 counter = 2;
*/
boolean hasCounter();
/**
* optional uint32 counter = 2;
*/
int getCounter();
// optional uint32 previousCounter = 3;
/**
* optional uint32 previousCounter = 3;
*/
boolean hasPreviousCounter();
/**
* optional uint32 previousCounter = 3;
*/
int getPreviousCounter();
// optional bytes ciphertext = 4;
/**
* optional bytes ciphertext = 4;
*/
boolean hasCiphertext();
/**
* optional bytes ciphertext = 4;
*/
com.google.protobuf.ByteString getCiphertext();
}
/**
* Protobuf type {@code textsecure.SignalMessage}
*/
public static final class SignalMessage extends
com.google.protobuf.GeneratedMessage
implements SignalMessageOrBuilder {
// Use SignalMessage.newBuilder() to construct.
private SignalMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SignalMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SignalMessage defaultInstance;
public static SignalMessage getDefaultInstance() {
return defaultInstance;
}
public SignalMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SignalMessage(
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;
ratchetKey_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
counter_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
previousCounter_ = input.readUInt32();
break;
}
case 34: {
bitField0_ |= 0x00000008;
ciphertext_ = 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.libsignal.protocol.SignalProtos.internal_static_textsecure_SignalMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_SignalMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage.class, org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SignalMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SignalMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional bytes ratchetKey = 1;
public static final int RATCHETKEY_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString ratchetKey_;
/**
* optional bytes ratchetKey = 1;
*/
public boolean hasRatchetKey() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional bytes ratchetKey = 1;
*/
public com.google.protobuf.ByteString getRatchetKey() {
return ratchetKey_;
}
// optional uint32 counter = 2;
public static final int COUNTER_FIELD_NUMBER = 2;
private int counter_;
/**
* optional uint32 counter = 2;
*/
public boolean hasCounter() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 counter = 2;
*/
public int getCounter() {
return counter_;
}
// optional uint32 previousCounter = 3;
public static final int PREVIOUSCOUNTER_FIELD_NUMBER = 3;
private int previousCounter_;
/**
* optional uint32 previousCounter = 3;
*/
public boolean hasPreviousCounter() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 previousCounter = 3;
*/
public int getPreviousCounter() {
return previousCounter_;
}
// optional bytes ciphertext = 4;
public static final int CIPHERTEXT_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString ciphertext_;
/**
* optional bytes ciphertext = 4;
*/
public boolean hasCiphertext() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bytes ciphertext = 4;
*/
public com.google.protobuf.ByteString getCiphertext() {
return ciphertext_;
}
private void initFields() {
ratchetKey_ = com.google.protobuf.ByteString.EMPTY;
counter_ = 0;
previousCounter_ = 0;
ciphertext_ = 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, ratchetKey_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, counter_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(3, previousCounter_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, ciphertext_);
}
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, ratchetKey_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, counter_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, previousCounter_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, ciphertext_);
}
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.libsignal.protocol.SignalProtos.SignalMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage 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.libsignal.protocol.SignalProtos.SignalMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage 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.libsignal.protocol.SignalProtos.SignalMessage 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 textsecure.SignalMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.whispersystems.libsignal.protocol.SignalProtos.SignalMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_SignalMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_SignalMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage.class, org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage.Builder.class);
}
// Construct using org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage.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();
ratchetKey_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
counter_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
previousCounter_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
ciphertext_ = 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.libsignal.protocol.SignalProtos.internal_static_textsecure_SignalMessage_descriptor;
}
public org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage getDefaultInstanceForType() {
return org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage.getDefaultInstance();
}
public org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage build() {
org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage buildPartial() {
org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage result = new org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.ratchetKey_ = ratchetKey_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.counter_ = counter_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.previousCounter_ = previousCounter_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.ciphertext_ = ciphertext_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage) {
return mergeFrom((org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage other) {
if (other == org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage.getDefaultInstance()) return this;
if (other.hasRatchetKey()) {
setRatchetKey(other.getRatchetKey());
}
if (other.hasCounter()) {
setCounter(other.getCounter());
}
if (other.hasPreviousCounter()) {
setPreviousCounter(other.getPreviousCounter());
}
if (other.hasCiphertext()) {
setCiphertext(other.getCiphertext());
}
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.libsignal.protocol.SignalProtos.SignalMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.libsignal.protocol.SignalProtos.SignalMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional bytes ratchetKey = 1;
private com.google.protobuf.ByteString ratchetKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes ratchetKey = 1;
*/
public boolean hasRatchetKey() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional bytes ratchetKey = 1;
*/
public com.google.protobuf.ByteString getRatchetKey() {
return ratchetKey_;
}
/**
* optional bytes ratchetKey = 1;
*/
public Builder setRatchetKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
ratchetKey_ = value;
onChanged();
return this;
}
/**
* optional bytes ratchetKey = 1;
*/
public Builder clearRatchetKey() {
bitField0_ = (bitField0_ & ~0x00000001);
ratchetKey_ = getDefaultInstance().getRatchetKey();
onChanged();
return this;
}
// optional uint32 counter = 2;
private int counter_ ;
/**
* optional uint32 counter = 2;
*/
public boolean hasCounter() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 counter = 2;
*/
public int getCounter() {
return counter_;
}
/**
* optional uint32 counter = 2;
*/
public Builder setCounter(int value) {
bitField0_ |= 0x00000002;
counter_ = value;
onChanged();
return this;
}
/**
* optional uint32 counter = 2;
*/
public Builder clearCounter() {
bitField0_ = (bitField0_ & ~0x00000002);
counter_ = 0;
onChanged();
return this;
}
// optional uint32 previousCounter = 3;
private int previousCounter_ ;
/**
* optional uint32 previousCounter = 3;
*/
public boolean hasPreviousCounter() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 previousCounter = 3;
*/
public int getPreviousCounter() {
return previousCounter_;
}
/**
* optional uint32 previousCounter = 3;
*/
public Builder setPreviousCounter(int value) {
bitField0_ |= 0x00000004;
previousCounter_ = value;
onChanged();
return this;
}
/**
* optional uint32 previousCounter = 3;
*/
public Builder clearPreviousCounter() {
bitField0_ = (bitField0_ & ~0x00000004);
previousCounter_ = 0;
onChanged();
return this;
}
// optional bytes ciphertext = 4;
private com.google.protobuf.ByteString ciphertext_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes ciphertext = 4;
*/
public boolean hasCiphertext() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bytes ciphertext = 4;
*/
public com.google.protobuf.ByteString getCiphertext() {
return ciphertext_;
}
/**
* optional bytes ciphertext = 4;
*/
public Builder setCiphertext(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
ciphertext_ = value;
onChanged();
return this;
}
/**
* optional bytes ciphertext = 4;
*/
public Builder clearCiphertext() {
bitField0_ = (bitField0_ & ~0x00000008);
ciphertext_ = getDefaultInstance().getCiphertext();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:textsecure.SignalMessage)
}
static {
defaultInstance = new SignalMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:textsecure.SignalMessage)
}
public interface PreKeySignalMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional uint32 registrationId = 5;
/**
* optional uint32 registrationId = 5;
*/
boolean hasRegistrationId();
/**
* optional uint32 registrationId = 5;
*/
int getRegistrationId();
// optional uint32 preKeyId = 1;
/**
* optional uint32 preKeyId = 1;
*/
boolean hasPreKeyId();
/**
* optional uint32 preKeyId = 1;
*/
int getPreKeyId();
// optional uint32 signedPreKeyId = 6;
/**
* optional uint32 signedPreKeyId = 6;
*/
boolean hasSignedPreKeyId();
/**
* optional uint32 signedPreKeyId = 6;
*/
int getSignedPreKeyId();
// optional bytes baseKey = 2;
/**
* optional bytes baseKey = 2;
*/
boolean hasBaseKey();
/**
* optional bytes baseKey = 2;
*/
com.google.protobuf.ByteString getBaseKey();
// optional bytes identityKey = 3;
/**
* optional bytes identityKey = 3;
*/
boolean hasIdentityKey();
/**
* optional bytes identityKey = 3;
*/
com.google.protobuf.ByteString getIdentityKey();
// optional bytes message = 4;
/**
* optional bytes message = 4;
*
*
* SignalMessage
*
*/
boolean hasMessage();
/**
* optional bytes message = 4;
*
*
* SignalMessage
*
*/
com.google.protobuf.ByteString getMessage();
}
/**
* Protobuf type {@code textsecure.PreKeySignalMessage}
*/
public static final class PreKeySignalMessage extends
com.google.protobuf.GeneratedMessage
implements PreKeySignalMessageOrBuilder {
// Use PreKeySignalMessage.newBuilder() to construct.
private PreKeySignalMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private PreKeySignalMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final PreKeySignalMessage defaultInstance;
public static PreKeySignalMessage getDefaultInstance() {
return defaultInstance;
}
public PreKeySignalMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PreKeySignalMessage(
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_ |= 0x00000002;
preKeyId_ = input.readUInt32();
break;
}
case 18: {
bitField0_ |= 0x00000008;
baseKey_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000010;
identityKey_ = input.readBytes();
break;
}
case 34: {
bitField0_ |= 0x00000020;
message_ = input.readBytes();
break;
}
case 40: {
bitField0_ |= 0x00000001;
registrationId_ = input.readUInt32();
break;
}
case 48: {
bitField0_ |= 0x00000004;
signedPreKeyId_ = input.readUInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_PreKeySignalMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_PreKeySignalMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage.class, org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public PreKeySignalMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PreKeySignalMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional uint32 registrationId = 5;
public static final int REGISTRATIONID_FIELD_NUMBER = 5;
private int registrationId_;
/**
* optional uint32 registrationId = 5;
*/
public boolean hasRegistrationId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 registrationId = 5;
*/
public int getRegistrationId() {
return registrationId_;
}
// optional uint32 preKeyId = 1;
public static final int PREKEYID_FIELD_NUMBER = 1;
private int preKeyId_;
/**
* optional uint32 preKeyId = 1;
*/
public boolean hasPreKeyId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 preKeyId = 1;
*/
public int getPreKeyId() {
return preKeyId_;
}
// optional uint32 signedPreKeyId = 6;
public static final int SIGNEDPREKEYID_FIELD_NUMBER = 6;
private int signedPreKeyId_;
/**
* optional uint32 signedPreKeyId = 6;
*/
public boolean hasSignedPreKeyId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 signedPreKeyId = 6;
*/
public int getSignedPreKeyId() {
return signedPreKeyId_;
}
// optional bytes baseKey = 2;
public static final int BASEKEY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString baseKey_;
/**
* optional bytes baseKey = 2;
*/
public boolean hasBaseKey() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bytes baseKey = 2;
*/
public com.google.protobuf.ByteString getBaseKey() {
return baseKey_;
}
// optional bytes identityKey = 3;
public static final int IDENTITYKEY_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString identityKey_;
/**
* optional bytes identityKey = 3;
*/
public boolean hasIdentityKey() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bytes identityKey = 3;
*/
public com.google.protobuf.ByteString getIdentityKey() {
return identityKey_;
}
// optional bytes message = 4;
public static final int MESSAGE_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString message_;
/**
* optional bytes message = 4;
*
*
* SignalMessage
*
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional bytes message = 4;
*
*
* SignalMessage
*
*/
public com.google.protobuf.ByteString getMessage() {
return message_;
}
private void initFields() {
registrationId_ = 0;
preKeyId_ = 0;
signedPreKeyId_ = 0;
baseKey_ = com.google.protobuf.ByteString.EMPTY;
identityKey_ = com.google.protobuf.ByteString.EMPTY;
message_ = 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_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(1, preKeyId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(2, baseKey_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(3, identityKey_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeBytes(4, message_);
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(5, registrationId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt32(6, signedPreKeyId_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, preKeyId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, baseKey_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, identityKey_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, message_);
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, registrationId_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, signedPreKeyId_);
}
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.libsignal.protocol.SignalProtos.PreKeySignalMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage 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.libsignal.protocol.SignalProtos.PreKeySignalMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage 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.libsignal.protocol.SignalProtos.PreKeySignalMessage 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 textsecure.PreKeySignalMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_PreKeySignalMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_PreKeySignalMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage.class, org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage.Builder.class);
}
// Construct using org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage.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();
registrationId_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
preKeyId_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
signedPreKeyId_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
baseKey_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
identityKey_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
message_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_PreKeySignalMessage_descriptor;
}
public org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage getDefaultInstanceForType() {
return org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage.getDefaultInstance();
}
public org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage build() {
org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage buildPartial() {
org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage result = new org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.registrationId_ = registrationId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.preKeyId_ = preKeyId_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.signedPreKeyId_ = signedPreKeyId_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.baseKey_ = baseKey_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.identityKey_ = identityKey_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.message_ = message_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage) {
return mergeFrom((org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage other) {
if (other == org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage.getDefaultInstance()) return this;
if (other.hasRegistrationId()) {
setRegistrationId(other.getRegistrationId());
}
if (other.hasPreKeyId()) {
setPreKeyId(other.getPreKeyId());
}
if (other.hasSignedPreKeyId()) {
setSignedPreKeyId(other.getSignedPreKeyId());
}
if (other.hasBaseKey()) {
setBaseKey(other.getBaseKey());
}
if (other.hasIdentityKey()) {
setIdentityKey(other.getIdentityKey());
}
if (other.hasMessage()) {
setMessage(other.getMessage());
}
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.libsignal.protocol.SignalProtos.PreKeySignalMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.libsignal.protocol.SignalProtos.PreKeySignalMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional uint32 registrationId = 5;
private int registrationId_ ;
/**
* optional uint32 registrationId = 5;
*/
public boolean hasRegistrationId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 registrationId = 5;
*/
public int getRegistrationId() {
return registrationId_;
}
/**
* optional uint32 registrationId = 5;
*/
public Builder setRegistrationId(int value) {
bitField0_ |= 0x00000001;
registrationId_ = value;
onChanged();
return this;
}
/**
* optional uint32 registrationId = 5;
*/
public Builder clearRegistrationId() {
bitField0_ = (bitField0_ & ~0x00000001);
registrationId_ = 0;
onChanged();
return this;
}
// optional uint32 preKeyId = 1;
private int preKeyId_ ;
/**
* optional uint32 preKeyId = 1;
*/
public boolean hasPreKeyId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 preKeyId = 1;
*/
public int getPreKeyId() {
return preKeyId_;
}
/**
* optional uint32 preKeyId = 1;
*/
public Builder setPreKeyId(int value) {
bitField0_ |= 0x00000002;
preKeyId_ = value;
onChanged();
return this;
}
/**
* optional uint32 preKeyId = 1;
*/
public Builder clearPreKeyId() {
bitField0_ = (bitField0_ & ~0x00000002);
preKeyId_ = 0;
onChanged();
return this;
}
// optional uint32 signedPreKeyId = 6;
private int signedPreKeyId_ ;
/**
* optional uint32 signedPreKeyId = 6;
*/
public boolean hasSignedPreKeyId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint32 signedPreKeyId = 6;
*/
public int getSignedPreKeyId() {
return signedPreKeyId_;
}
/**
* optional uint32 signedPreKeyId = 6;
*/
public Builder setSignedPreKeyId(int value) {
bitField0_ |= 0x00000004;
signedPreKeyId_ = value;
onChanged();
return this;
}
/**
* optional uint32 signedPreKeyId = 6;
*/
public Builder clearSignedPreKeyId() {
bitField0_ = (bitField0_ & ~0x00000004);
signedPreKeyId_ = 0;
onChanged();
return this;
}
// optional bytes baseKey = 2;
private com.google.protobuf.ByteString baseKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes baseKey = 2;
*/
public boolean hasBaseKey() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bytes baseKey = 2;
*/
public com.google.protobuf.ByteString getBaseKey() {
return baseKey_;
}
/**
* optional bytes baseKey = 2;
*/
public Builder setBaseKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
baseKey_ = value;
onChanged();
return this;
}
/**
* optional bytes baseKey = 2;
*/
public Builder clearBaseKey() {
bitField0_ = (bitField0_ & ~0x00000008);
baseKey_ = getDefaultInstance().getBaseKey();
onChanged();
return this;
}
// optional bytes identityKey = 3;
private com.google.protobuf.ByteString identityKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes identityKey = 3;
*/
public boolean hasIdentityKey() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bytes identityKey = 3;
*/
public com.google.protobuf.ByteString getIdentityKey() {
return identityKey_;
}
/**
* optional bytes identityKey = 3;
*/
public Builder setIdentityKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
identityKey_ = value;
onChanged();
return this;
}
/**
* optional bytes identityKey = 3;
*/
public Builder clearIdentityKey() {
bitField0_ = (bitField0_ & ~0x00000010);
identityKey_ = getDefaultInstance().getIdentityKey();
onChanged();
return this;
}
// optional bytes message = 4;
private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes message = 4;
*
*
* SignalMessage
*
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional bytes message = 4;
*
*
* SignalMessage
*
*/
public com.google.protobuf.ByteString getMessage() {
return message_;
}
/**
* optional bytes message = 4;
*
*
* SignalMessage
*
*/
public Builder setMessage(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
message_ = value;
onChanged();
return this;
}
/**
* optional bytes message = 4;
*
*
* SignalMessage
*
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000020);
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:textsecure.PreKeySignalMessage)
}
static {
defaultInstance = new PreKeySignalMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:textsecure.PreKeySignalMessage)
}
public interface KeyExchangeMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional uint32 id = 1;
/**
* optional uint32 id = 1;
*/
boolean hasId();
/**
* optional uint32 id = 1;
*/
int getId();
// optional bytes baseKey = 2;
/**
* optional bytes baseKey = 2;
*/
boolean hasBaseKey();
/**
* optional bytes baseKey = 2;
*/
com.google.protobuf.ByteString getBaseKey();
// optional bytes ratchetKey = 3;
/**
* optional bytes ratchetKey = 3;
*/
boolean hasRatchetKey();
/**
* optional bytes ratchetKey = 3;
*/
com.google.protobuf.ByteString getRatchetKey();
// optional bytes identityKey = 4;
/**
* optional bytes identityKey = 4;
*/
boolean hasIdentityKey();
/**
* optional bytes identityKey = 4;
*/
com.google.protobuf.ByteString getIdentityKey();
// optional bytes baseKeySignature = 5;
/**
* optional bytes baseKeySignature = 5;
*/
boolean hasBaseKeySignature();
/**
* optional bytes baseKeySignature = 5;
*/
com.google.protobuf.ByteString getBaseKeySignature();
}
/**
* Protobuf type {@code textsecure.KeyExchangeMessage}
*/
public static final class KeyExchangeMessage extends
com.google.protobuf.GeneratedMessage
implements KeyExchangeMessageOrBuilder {
// Use KeyExchangeMessage.newBuilder() to construct.
private KeyExchangeMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private KeyExchangeMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final KeyExchangeMessage defaultInstance;
public static KeyExchangeMessage getDefaultInstance() {
return defaultInstance;
}
public KeyExchangeMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private KeyExchangeMessage(
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.readUInt32();
break;
}
case 18: {
bitField0_ |= 0x00000002;
baseKey_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
ratchetKey_ = input.readBytes();
break;
}
case 34: {
bitField0_ |= 0x00000008;
identityKey_ = input.readBytes();
break;
}
case 42: {
bitField0_ |= 0x00000010;
baseKeySignature_ = 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.libsignal.protocol.SignalProtos.internal_static_textsecure_KeyExchangeMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_KeyExchangeMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage.class, org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public KeyExchangeMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new KeyExchangeMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional uint32 id = 1;
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* optional uint32 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 id = 1;
*/
public int getId() {
return id_;
}
// optional bytes baseKey = 2;
public static final int BASEKEY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString baseKey_;
/**
* optional bytes baseKey = 2;
*/
public boolean hasBaseKey() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bytes baseKey = 2;
*/
public com.google.protobuf.ByteString getBaseKey() {
return baseKey_;
}
// optional bytes ratchetKey = 3;
public static final int RATCHETKEY_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString ratchetKey_;
/**
* optional bytes ratchetKey = 3;
*/
public boolean hasRatchetKey() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bytes ratchetKey = 3;
*/
public com.google.protobuf.ByteString getRatchetKey() {
return ratchetKey_;
}
// optional bytes identityKey = 4;
public static final int IDENTITYKEY_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString identityKey_;
/**
* optional bytes identityKey = 4;
*/
public boolean hasIdentityKey() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bytes identityKey = 4;
*/
public com.google.protobuf.ByteString getIdentityKey() {
return identityKey_;
}
// optional bytes baseKeySignature = 5;
public static final int BASEKEYSIGNATURE_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString baseKeySignature_;
/**
* optional bytes baseKeySignature = 5;
*/
public boolean hasBaseKeySignature() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bytes baseKeySignature = 5;
*/
public com.google.protobuf.ByteString getBaseKeySignature() {
return baseKeySignature_;
}
private void initFields() {
id_ = 0;
baseKey_ = com.google.protobuf.ByteString.EMPTY;
ratchetKey_ = com.google.protobuf.ByteString.EMPTY;
identityKey_ = com.google.protobuf.ByteString.EMPTY;
baseKeySignature_ = 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.writeUInt32(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, baseKey_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, ratchetKey_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, identityKey_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, baseKeySignature_);
}
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
.computeUInt32Size(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, baseKey_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, ratchetKey_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, identityKey_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, baseKeySignature_);
}
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.libsignal.protocol.SignalProtos.KeyExchangeMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage 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.libsignal.protocol.SignalProtos.KeyExchangeMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage 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.libsignal.protocol.SignalProtos.KeyExchangeMessage 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 textsecure.KeyExchangeMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_KeyExchangeMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_KeyExchangeMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage.class, org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage.Builder.class);
}
// Construct using org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage.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_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
baseKey_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
ratchetKey_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
identityKey_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
baseKeySignature_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_KeyExchangeMessage_descriptor;
}
public org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage getDefaultInstanceForType() {
return org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage.getDefaultInstance();
}
public org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage build() {
org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage buildPartial() {
org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage result = new org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage(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.baseKey_ = baseKey_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.ratchetKey_ = ratchetKey_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.identityKey_ = identityKey_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.baseKeySignature_ = baseKeySignature_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage) {
return mergeFrom((org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage other) {
if (other == org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasBaseKey()) {
setBaseKey(other.getBaseKey());
}
if (other.hasRatchetKey()) {
setRatchetKey(other.getRatchetKey());
}
if (other.hasIdentityKey()) {
setIdentityKey(other.getIdentityKey());
}
if (other.hasBaseKeySignature()) {
setBaseKeySignature(other.getBaseKeySignature());
}
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.libsignal.protocol.SignalProtos.KeyExchangeMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.libsignal.protocol.SignalProtos.KeyExchangeMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional uint32 id = 1;
private int id_ ;
/**
* optional uint32 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 id = 1;
*/
public int getId() {
return id_;
}
/**
* optional uint32 id = 1;
*/
public Builder setId(int value) {
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* optional uint32 id = 1;
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0;
onChanged();
return this;
}
// optional bytes baseKey = 2;
private com.google.protobuf.ByteString baseKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes baseKey = 2;
*/
public boolean hasBaseKey() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bytes baseKey = 2;
*/
public com.google.protobuf.ByteString getBaseKey() {
return baseKey_;
}
/**
* optional bytes baseKey = 2;
*/
public Builder setBaseKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
baseKey_ = value;
onChanged();
return this;
}
/**
* optional bytes baseKey = 2;
*/
public Builder clearBaseKey() {
bitField0_ = (bitField0_ & ~0x00000002);
baseKey_ = getDefaultInstance().getBaseKey();
onChanged();
return this;
}
// optional bytes ratchetKey = 3;
private com.google.protobuf.ByteString ratchetKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes ratchetKey = 3;
*/
public boolean hasRatchetKey() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bytes ratchetKey = 3;
*/
public com.google.protobuf.ByteString getRatchetKey() {
return ratchetKey_;
}
/**
* optional bytes ratchetKey = 3;
*/
public Builder setRatchetKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
ratchetKey_ = value;
onChanged();
return this;
}
/**
* optional bytes ratchetKey = 3;
*/
public Builder clearRatchetKey() {
bitField0_ = (bitField0_ & ~0x00000004);
ratchetKey_ = getDefaultInstance().getRatchetKey();
onChanged();
return this;
}
// optional bytes identityKey = 4;
private com.google.protobuf.ByteString identityKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes identityKey = 4;
*/
public boolean hasIdentityKey() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bytes identityKey = 4;
*/
public com.google.protobuf.ByteString getIdentityKey() {
return identityKey_;
}
/**
* optional bytes identityKey = 4;
*/
public Builder setIdentityKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
identityKey_ = value;
onChanged();
return this;
}
/**
* optional bytes identityKey = 4;
*/
public Builder clearIdentityKey() {
bitField0_ = (bitField0_ & ~0x00000008);
identityKey_ = getDefaultInstance().getIdentityKey();
onChanged();
return this;
}
// optional bytes baseKeySignature = 5;
private com.google.protobuf.ByteString baseKeySignature_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes baseKeySignature = 5;
*/
public boolean hasBaseKeySignature() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional bytes baseKeySignature = 5;
*/
public com.google.protobuf.ByteString getBaseKeySignature() {
return baseKeySignature_;
}
/**
* optional bytes baseKeySignature = 5;
*/
public Builder setBaseKeySignature(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
baseKeySignature_ = value;
onChanged();
return this;
}
/**
* optional bytes baseKeySignature = 5;
*/
public Builder clearBaseKeySignature() {
bitField0_ = (bitField0_ & ~0x00000010);
baseKeySignature_ = getDefaultInstance().getBaseKeySignature();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:textsecure.KeyExchangeMessage)
}
static {
defaultInstance = new KeyExchangeMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:textsecure.KeyExchangeMessage)
}
public interface SenderKeyMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional uint32 id = 1;
/**
* optional uint32 id = 1;
*/
boolean hasId();
/**
* optional uint32 id = 1;
*/
int getId();
// optional uint32 iteration = 2;
/**
* optional uint32 iteration = 2;
*/
boolean hasIteration();
/**
* optional uint32 iteration = 2;
*/
int getIteration();
// optional bytes ciphertext = 3;
/**
* optional bytes ciphertext = 3;
*/
boolean hasCiphertext();
/**
* optional bytes ciphertext = 3;
*/
com.google.protobuf.ByteString getCiphertext();
}
/**
* Protobuf type {@code textsecure.SenderKeyMessage}
*/
public static final class SenderKeyMessage extends
com.google.protobuf.GeneratedMessage
implements SenderKeyMessageOrBuilder {
// Use SenderKeyMessage.newBuilder() to construct.
private SenderKeyMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SenderKeyMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SenderKeyMessage defaultInstance;
public static SenderKeyMessage getDefaultInstance() {
return defaultInstance;
}
public SenderKeyMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SenderKeyMessage(
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.readUInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
iteration_ = input.readUInt32();
break;
}
case 26: {
bitField0_ |= 0x00000004;
ciphertext_ = 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.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage.class, org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SenderKeyMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SenderKeyMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional uint32 id = 1;
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* optional uint32 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 id = 1;
*/
public int getId() {
return id_;
}
// optional uint32 iteration = 2;
public static final int ITERATION_FIELD_NUMBER = 2;
private int iteration_;
/**
* optional uint32 iteration = 2;
*/
public boolean hasIteration() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 iteration = 2;
*/
public int getIteration() {
return iteration_;
}
// optional bytes ciphertext = 3;
public static final int CIPHERTEXT_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString ciphertext_;
/**
* optional bytes ciphertext = 3;
*/
public boolean hasCiphertext() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bytes ciphertext = 3;
*/
public com.google.protobuf.ByteString getCiphertext() {
return ciphertext_;
}
private void initFields() {
id_ = 0;
iteration_ = 0;
ciphertext_ = 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.writeUInt32(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, iteration_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, ciphertext_);
}
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
.computeUInt32Size(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, iteration_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, ciphertext_);
}
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.libsignal.protocol.SignalProtos.SenderKeyMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage 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.libsignal.protocol.SignalProtos.SenderKeyMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage 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.libsignal.protocol.SignalProtos.SenderKeyMessage 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 textsecure.SenderKeyMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage.class, org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage.Builder.class);
}
// Construct using org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage.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_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
iteration_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
ciphertext_ = 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.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyMessage_descriptor;
}
public org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage getDefaultInstanceForType() {
return org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage.getDefaultInstance();
}
public org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage build() {
org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage buildPartial() {
org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage result = new org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage(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.iteration_ = iteration_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.ciphertext_ = ciphertext_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage) {
return mergeFrom((org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage other) {
if (other == org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasIteration()) {
setIteration(other.getIteration());
}
if (other.hasCiphertext()) {
setCiphertext(other.getCiphertext());
}
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.libsignal.protocol.SignalProtos.SenderKeyMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional uint32 id = 1;
private int id_ ;
/**
* optional uint32 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 id = 1;
*/
public int getId() {
return id_;
}
/**
* optional uint32 id = 1;
*/
public Builder setId(int value) {
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* optional uint32 id = 1;
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0;
onChanged();
return this;
}
// optional uint32 iteration = 2;
private int iteration_ ;
/**
* optional uint32 iteration = 2;
*/
public boolean hasIteration() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 iteration = 2;
*/
public int getIteration() {
return iteration_;
}
/**
* optional uint32 iteration = 2;
*/
public Builder setIteration(int value) {
bitField0_ |= 0x00000002;
iteration_ = value;
onChanged();
return this;
}
/**
* optional uint32 iteration = 2;
*/
public Builder clearIteration() {
bitField0_ = (bitField0_ & ~0x00000002);
iteration_ = 0;
onChanged();
return this;
}
// optional bytes ciphertext = 3;
private com.google.protobuf.ByteString ciphertext_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes ciphertext = 3;
*/
public boolean hasCiphertext() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bytes ciphertext = 3;
*/
public com.google.protobuf.ByteString getCiphertext() {
return ciphertext_;
}
/**
* optional bytes ciphertext = 3;
*/
public Builder setCiphertext(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
ciphertext_ = value;
onChanged();
return this;
}
/**
* optional bytes ciphertext = 3;
*/
public Builder clearCiphertext() {
bitField0_ = (bitField0_ & ~0x00000004);
ciphertext_ = getDefaultInstance().getCiphertext();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:textsecure.SenderKeyMessage)
}
static {
defaultInstance = new SenderKeyMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:textsecure.SenderKeyMessage)
}
public interface SenderKeyDistributionMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional uint32 id = 1;
/**
* optional uint32 id = 1;
*/
boolean hasId();
/**
* optional uint32 id = 1;
*/
int getId();
// optional uint32 iteration = 2;
/**
* optional uint32 iteration = 2;
*/
boolean hasIteration();
/**
* optional uint32 iteration = 2;
*/
int getIteration();
// optional bytes chainKey = 3;
/**
* optional bytes chainKey = 3;
*/
boolean hasChainKey();
/**
* optional bytes chainKey = 3;
*/
com.google.protobuf.ByteString getChainKey();
// optional bytes signingKey = 4;
/**
* optional bytes signingKey = 4;
*/
boolean hasSigningKey();
/**
* optional bytes signingKey = 4;
*/
com.google.protobuf.ByteString getSigningKey();
}
/**
* Protobuf type {@code textsecure.SenderKeyDistributionMessage}
*/
public static final class SenderKeyDistributionMessage extends
com.google.protobuf.GeneratedMessage
implements SenderKeyDistributionMessageOrBuilder {
// Use SenderKeyDistributionMessage.newBuilder() to construct.
private SenderKeyDistributionMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SenderKeyDistributionMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SenderKeyDistributionMessage defaultInstance;
public static SenderKeyDistributionMessage getDefaultInstance() {
return defaultInstance;
}
public SenderKeyDistributionMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SenderKeyDistributionMessage(
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.readUInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
iteration_ = input.readUInt32();
break;
}
case 26: {
bitField0_ |= 0x00000004;
chainKey_ = input.readBytes();
break;
}
case 34: {
bitField0_ |= 0x00000008;
signingKey_ = 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.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyDistributionMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyDistributionMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage.class, org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SenderKeyDistributionMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SenderKeyDistributionMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional uint32 id = 1;
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* optional uint32 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 id = 1;
*/
public int getId() {
return id_;
}
// optional uint32 iteration = 2;
public static final int ITERATION_FIELD_NUMBER = 2;
private int iteration_;
/**
* optional uint32 iteration = 2;
*/
public boolean hasIteration() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 iteration = 2;
*/
public int getIteration() {
return iteration_;
}
// optional bytes chainKey = 3;
public static final int CHAINKEY_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString chainKey_;
/**
* optional bytes chainKey = 3;
*/
public boolean hasChainKey() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bytes chainKey = 3;
*/
public com.google.protobuf.ByteString getChainKey() {
return chainKey_;
}
// optional bytes signingKey = 4;
public static final int SIGNINGKEY_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString signingKey_;
/**
* optional bytes signingKey = 4;
*/
public boolean hasSigningKey() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bytes signingKey = 4;
*/
public com.google.protobuf.ByteString getSigningKey() {
return signingKey_;
}
private void initFields() {
id_ = 0;
iteration_ = 0;
chainKey_ = com.google.protobuf.ByteString.EMPTY;
signingKey_ = 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.writeUInt32(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, iteration_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, chainKey_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, signingKey_);
}
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
.computeUInt32Size(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, iteration_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, chainKey_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, signingKey_);
}
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.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage 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.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage 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.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage 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 textsecure.SenderKeyDistributionMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyDistributionMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyDistributionMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage.class, org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage.Builder.class);
}
// Construct using org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage.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_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
iteration_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
chainKey_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
signingKey_ = 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.libsignal.protocol.SignalProtos.internal_static_textsecure_SenderKeyDistributionMessage_descriptor;
}
public org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage getDefaultInstanceForType() {
return org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage.getDefaultInstance();
}
public org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage build() {
org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage buildPartial() {
org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage result = new org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage(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.iteration_ = iteration_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.chainKey_ = chainKey_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.signingKey_ = signingKey_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage) {
return mergeFrom((org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage other) {
if (other == org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasIteration()) {
setIteration(other.getIteration());
}
if (other.hasChainKey()) {
setChainKey(other.getChainKey());
}
if (other.hasSigningKey()) {
setSigningKey(other.getSigningKey());
}
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.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.libsignal.protocol.SignalProtos.SenderKeyDistributionMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional uint32 id = 1;
private int id_ ;
/**
* optional uint32 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 id = 1;
*/
public int getId() {
return id_;
}
/**
* optional uint32 id = 1;
*/
public Builder setId(int value) {
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* optional uint32 id = 1;
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0;
onChanged();
return this;
}
// optional uint32 iteration = 2;
private int iteration_ ;
/**
* optional uint32 iteration = 2;
*/
public boolean hasIteration() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 iteration = 2;
*/
public int getIteration() {
return iteration_;
}
/**
* optional uint32 iteration = 2;
*/
public Builder setIteration(int value) {
bitField0_ |= 0x00000002;
iteration_ = value;
onChanged();
return this;
}
/**
* optional uint32 iteration = 2;
*/
public Builder clearIteration() {
bitField0_ = (bitField0_ & ~0x00000002);
iteration_ = 0;
onChanged();
return this;
}
// optional bytes chainKey = 3;
private com.google.protobuf.ByteString chainKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes chainKey = 3;
*/
public boolean hasChainKey() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bytes chainKey = 3;
*/
public com.google.protobuf.ByteString getChainKey() {
return chainKey_;
}
/**
* optional bytes chainKey = 3;
*/
public Builder setChainKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
chainKey_ = value;
onChanged();
return this;
}
/**
* optional bytes chainKey = 3;
*/
public Builder clearChainKey() {
bitField0_ = (bitField0_ & ~0x00000004);
chainKey_ = getDefaultInstance().getChainKey();
onChanged();
return this;
}
// optional bytes signingKey = 4;
private com.google.protobuf.ByteString signingKey_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes signingKey = 4;
*/
public boolean hasSigningKey() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bytes signingKey = 4;
*/
public com.google.protobuf.ByteString getSigningKey() {
return signingKey_;
}
/**
* optional bytes signingKey = 4;
*/
public Builder setSigningKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
signingKey_ = value;
onChanged();
return this;
}
/**
* optional bytes signingKey = 4;
*/
public Builder clearSigningKey() {
bitField0_ = (bitField0_ & ~0x00000008);
signingKey_ = getDefaultInstance().getSigningKey();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:textsecure.SenderKeyDistributionMessage)
}
static {
defaultInstance = new SenderKeyDistributionMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:textsecure.SenderKeyDistributionMessage)
}
public interface DeviceConsistencyCodeMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional uint32 generation = 1;
/**
* optional uint32 generation = 1;
*/
boolean hasGeneration();
/**
* optional uint32 generation = 1;
*/
int getGeneration();
// optional bytes signature = 2;
/**
* optional bytes signature = 2;
*/
boolean hasSignature();
/**
* optional bytes signature = 2;
*/
com.google.protobuf.ByteString getSignature();
}
/**
* Protobuf type {@code textsecure.DeviceConsistencyCodeMessage}
*/
public static final class DeviceConsistencyCodeMessage extends
com.google.protobuf.GeneratedMessage
implements DeviceConsistencyCodeMessageOrBuilder {
// Use DeviceConsistencyCodeMessage.newBuilder() to construct.
private DeviceConsistencyCodeMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private DeviceConsistencyCodeMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final DeviceConsistencyCodeMessage defaultInstance;
public static DeviceConsistencyCodeMessage getDefaultInstance() {
return defaultInstance;
}
public DeviceConsistencyCodeMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeviceConsistencyCodeMessage(
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;
generation_ = input.readUInt32();
break;
}
case 18: {
bitField0_ |= 0x00000002;
signature_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_DeviceConsistencyCodeMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_DeviceConsistencyCodeMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage.class, org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public DeviceConsistencyCodeMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeviceConsistencyCodeMessage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional uint32 generation = 1;
public static final int GENERATION_FIELD_NUMBER = 1;
private int generation_;
/**
* optional uint32 generation = 1;
*/
public boolean hasGeneration() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 generation = 1;
*/
public int getGeneration() {
return generation_;
}
// optional bytes signature = 2;
public static final int SIGNATURE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString signature_;
/**
* optional bytes signature = 2;
*/
public boolean hasSignature() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bytes signature = 2;
*/
public com.google.protobuf.ByteString getSignature() {
return signature_;
}
private void initFields() {
generation_ = 0;
signature_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(1, generation_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, signature_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, generation_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, signature_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage 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.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage 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.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage 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 textsecure.DeviceConsistencyCodeMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_DeviceConsistencyCodeMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_DeviceConsistencyCodeMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage.class, org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage.Builder.class);
}
// Construct using org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage.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();
generation_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
signature_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.whispersystems.libsignal.protocol.SignalProtos.internal_static_textsecure_DeviceConsistencyCodeMessage_descriptor;
}
public org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage getDefaultInstanceForType() {
return org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage.getDefaultInstance();
}
public org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage build() {
org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage buildPartial() {
org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage result = new org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.generation_ = generation_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.signature_ = signature_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage) {
return mergeFrom((org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage other) {
if (other == org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage.getDefaultInstance()) return this;
if (other.hasGeneration()) {
setGeneration(other.getGeneration());
}
if (other.hasSignature()) {
setSignature(other.getSignature());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.whispersystems.libsignal.protocol.SignalProtos.DeviceConsistencyCodeMessage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional uint32 generation = 1;
private int generation_ ;
/**
* optional uint32 generation = 1;
*/
public boolean hasGeneration() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 generation = 1;
*/
public int getGeneration() {
return generation_;
}
/**
* optional uint32 generation = 1;
*/
public Builder setGeneration(int value) {
bitField0_ |= 0x00000001;
generation_ = value;
onChanged();
return this;
}
/**
* optional uint32 generation = 1;
*/
public Builder clearGeneration() {
bitField0_ = (bitField0_ & ~0x00000001);
generation_ = 0;
onChanged();
return this;
}
// optional bytes signature = 2;
private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes signature = 2;
*/
public boolean hasSignature() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bytes signature = 2;
*/
public com.google.protobuf.ByteString getSignature() {
return signature_;
}
/**
* optional bytes signature = 2;
*/
public Builder setSignature(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
signature_ = value;
onChanged();
return this;
}
/**
* optional bytes signature = 2;
*/
public Builder clearSignature() {
bitField0_ = (bitField0_ & ~0x00000002);
signature_ = getDefaultInstance().getSignature();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:textsecure.DeviceConsistencyCodeMessage)
}
static {
defaultInstance = new DeviceConsistencyCodeMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:textsecure.DeviceConsistencyCodeMessage)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_textsecure_SignalMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_textsecure_SignalMessage_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_textsecure_PreKeySignalMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_textsecure_PreKeySignalMessage_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_textsecure_KeyExchangeMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_textsecure_KeyExchangeMessage_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_textsecure_SenderKeyMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_textsecure_SenderKeyMessage_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_textsecure_SenderKeyDistributionMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_textsecure_SenderKeyDistributionMessage_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_textsecure_DeviceConsistencyCodeMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_textsecure_DeviceConsistencyCodeMessage_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\031WhisperTextProtocol.proto\022\ntextsecure\"" +
"a\n\rSignalMessage\022\022\n\nratchetKey\030\001 \001(\014\022\017\n\007" +
"counter\030\002 \001(\r\022\027\n\017previousCounter\030\003 \001(\r\022\022" +
"\n\nciphertext\030\004 \001(\014\"\216\001\n\023PreKeySignalMessa" +
"ge\022\026\n\016registrationId\030\005 \001(\r\022\020\n\010preKeyId\030\001" +
" \001(\r\022\026\n\016signedPreKeyId\030\006 \001(\r\022\017\n\007baseKey\030" +
"\002 \001(\014\022\023\n\013identityKey\030\003 \001(\014\022\017\n\007message\030\004 " +
"\001(\014\"t\n\022KeyExchangeMessage\022\n\n\002id\030\001 \001(\r\022\017\n" +
"\007baseKey\030\002 \001(\014\022\022\n\nratchetKey\030\003 \001(\014\022\023\n\013id" +
"entityKey\030\004 \001(\014\022\030\n\020baseKeySignature\030\005 \001(",
"\014\"E\n\020SenderKeyMessage\022\n\n\002id\030\001 \001(\r\022\021\n\tite" +
"ration\030\002 \001(\r\022\022\n\nciphertext\030\003 \001(\014\"c\n\034Send" +
"erKeyDistributionMessage\022\n\n\002id\030\001 \001(\r\022\021\n\t" +
"iteration\030\002 \001(\r\022\020\n\010chainKey\030\003 \001(\014\022\022\n\nsig" +
"ningKey\030\004 \001(\014\"E\n\034DeviceConsistencyCodeMe" +
"ssage\022\022\n\ngeneration\030\001 \001(\r\022\021\n\tsignature\030\002" +
" \001(\014B5\n%org.whispersystems.libsignal.pro" +
"tocolB\014SignalProtos"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_textsecure_SignalMessage_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_textsecure_SignalMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_textsecure_SignalMessage_descriptor,
new java.lang.String[] { "RatchetKey", "Counter", "PreviousCounter", "Ciphertext", });
internal_static_textsecure_PreKeySignalMessage_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_textsecure_PreKeySignalMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_textsecure_PreKeySignalMessage_descriptor,
new java.lang.String[] { "RegistrationId", "PreKeyId", "SignedPreKeyId", "BaseKey", "IdentityKey", "Message", });
internal_static_textsecure_KeyExchangeMessage_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_textsecure_KeyExchangeMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_textsecure_KeyExchangeMessage_descriptor,
new java.lang.String[] { "Id", "BaseKey", "RatchetKey", "IdentityKey", "BaseKeySignature", });
internal_static_textsecure_SenderKeyMessage_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_textsecure_SenderKeyMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_textsecure_SenderKeyMessage_descriptor,
new java.lang.String[] { "Id", "Iteration", "Ciphertext", });
internal_static_textsecure_SenderKeyDistributionMessage_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_textsecure_SenderKeyDistributionMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_textsecure_SenderKeyDistributionMessage_descriptor,
new java.lang.String[] { "Id", "Iteration", "ChainKey", "SigningKey", });
internal_static_textsecure_DeviceConsistencyCodeMessage_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_textsecure_DeviceConsistencyCodeMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_textsecure_DeviceConsistencyCodeMessage_descriptor,
new java.lang.String[] { "Generation", "Signature", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}