// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Provisioning.proto
package org.whispersystems.textsecure.internal.push;
public final class ProvisioningProtos {
private ProvisioningProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface ProvisionEnvelopeOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional bytes publicKey = 1;
/**
* optional bytes publicKey = 1;
*/
boolean hasPublicKey();
/**
* optional bytes publicKey = 1;
*/
com.google.protobuf.ByteString getPublicKey();
// optional bytes body = 2;
/**
* optional bytes body = 2;
*
*
* Encrypted ProvisionMessage **/ boolean hasBody(); /** *
optional bytes body = 2;
*
* * Encrypted ProvisionMessage **/ com.google.protobuf.ByteString getBody(); } /** * Protobuf type {@code textsecure.ProvisionEnvelope} */ public static final class ProvisionEnvelope extends com.google.protobuf.GeneratedMessage implements ProvisionEnvelopeOrBuilder { // Use ProvisionEnvelope.newBuilder() to construct. private ProvisionEnvelope(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ProvisionEnvelope(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ProvisionEnvelope defaultInstance; public static ProvisionEnvelope getDefaultInstance() { return defaultInstance; } public ProvisionEnvelope getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProvisionEnvelope( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; publicKey_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; body_ = 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.textsecure.internal.push.ProvisioningProtos.internal_static_textsecure_ProvisionEnvelope_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.whispersystems.textsecure.internal.push.ProvisioningProtos.internal_static_textsecure_ProvisionEnvelope_fieldAccessorTable .ensureFieldAccessorsInitialized( org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionEnvelope.class, org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionEnvelope.Builder.class); } public static com.google.protobuf.Parser
optional bytes publicKey = 1;
*/
public boolean hasPublicKey() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional bytes publicKey = 1;
*/
public com.google.protobuf.ByteString getPublicKey() {
return publicKey_;
}
// optional bytes body = 2;
public static final int BODY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString body_;
/**
* optional bytes body = 2;
*
* * Encrypted ProvisionMessage **/ public boolean hasBody() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
optional bytes body = 2;
*
* * Encrypted ProvisionMessage **/ public com.google.protobuf.ByteString getBody() { return body_; } private void initFields() { publicKey_ = com.google.protobuf.ByteString.EMPTY; body_ = 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, publicKey_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, body_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, publicKey_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, body_); } 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.textsecure.internal.push.ProvisioningProtos.ProvisionEnvelope parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionEnvelope 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.textsecure.internal.push.ProvisioningProtos.ProvisionEnvelope parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionEnvelope parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionEnvelope parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionEnvelope parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionEnvelope parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionEnvelope parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionEnvelope parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionEnvelope 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.textsecure.internal.push.ProvisioningProtos.ProvisionEnvelope 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.ProvisionEnvelope} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
optional bytes publicKey = 1;
*/
public boolean hasPublicKey() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional bytes publicKey = 1;
*/
public com.google.protobuf.ByteString getPublicKey() {
return publicKey_;
}
/**
* optional bytes publicKey = 1;
*/
public Builder setPublicKey(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
publicKey_ = value;
onChanged();
return this;
}
/**
* optional bytes publicKey = 1;
*/
public Builder clearPublicKey() {
bitField0_ = (bitField0_ & ~0x00000001);
publicKey_ = getDefaultInstance().getPublicKey();
onChanged();
return this;
}
// optional bytes body = 2;
private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes body = 2;
*
* * Encrypted ProvisionMessage **/ public boolean hasBody() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
optional bytes body = 2;
*
* * Encrypted ProvisionMessage **/ public com.google.protobuf.ByteString getBody() { return body_; } /** *
optional bytes body = 2;
*
* * Encrypted ProvisionMessage **/ public Builder setBody(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; body_ = value; onChanged(); return this; } /** *
optional bytes body = 2;
*
* * Encrypted ProvisionMessage **/ public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000002); body_ = getDefaultInstance().getBody(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:textsecure.ProvisionEnvelope) } static { defaultInstance = new ProvisionEnvelope(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:textsecure.ProvisionEnvelope) } public interface ProvisionMessageOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional bytes identityKeyPublic = 1; /** *
optional bytes identityKeyPublic = 1;
*/
boolean hasIdentityKeyPublic();
/**
* optional bytes identityKeyPublic = 1;
*/
com.google.protobuf.ByteString getIdentityKeyPublic();
// optional bytes identityKeyPrivate = 2;
/**
* optional bytes identityKeyPrivate = 2;
*/
boolean hasIdentityKeyPrivate();
/**
* optional bytes identityKeyPrivate = 2;
*/
com.google.protobuf.ByteString getIdentityKeyPrivate();
// optional string number = 3;
/**
* optional string number = 3;
*/
boolean hasNumber();
/**
* optional string number = 3;
*/
java.lang.String getNumber();
/**
* optional string number = 3;
*/
com.google.protobuf.ByteString
getNumberBytes();
// optional string provisioningCode = 4;
/**
* optional string provisioningCode = 4;
*/
boolean hasProvisioningCode();
/**
* optional string provisioningCode = 4;
*/
java.lang.String getProvisioningCode();
/**
* optional string provisioningCode = 4;
*/
com.google.protobuf.ByteString
getProvisioningCodeBytes();
}
/**
* Protobuf type {@code textsecure.ProvisionMessage}
*/
public static final class ProvisionMessage extends
com.google.protobuf.GeneratedMessage
implements ProvisionMessageOrBuilder {
// Use ProvisionMessage.newBuilder() to construct.
private ProvisionMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ProvisionMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ProvisionMessage defaultInstance;
public static ProvisionMessage getDefaultInstance() {
return defaultInstance;
}
public ProvisionMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProvisionMessage(
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;
identityKeyPublic_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
identityKeyPrivate_ = input.readBytes();
break;
}
case 26: {
bitField0_ |= 0x00000004;
number_ = input.readBytes();
break;
}
case 34: {
bitField0_ |= 0x00000008;
provisioningCode_ = 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.textsecure.internal.push.ProvisioningProtos.internal_static_textsecure_ProvisionMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.whispersystems.textsecure.internal.push.ProvisioningProtos.internal_static_textsecure_ProvisionMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionMessage.class, org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionMessage.Builder.class);
}
public static com.google.protobuf.Parseroptional bytes identityKeyPublic = 1;
*/
public boolean hasIdentityKeyPublic() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional bytes identityKeyPublic = 1;
*/
public com.google.protobuf.ByteString getIdentityKeyPublic() {
return identityKeyPublic_;
}
// optional bytes identityKeyPrivate = 2;
public static final int IDENTITYKEYPRIVATE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString identityKeyPrivate_;
/**
* optional bytes identityKeyPrivate = 2;
*/
public boolean hasIdentityKeyPrivate() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bytes identityKeyPrivate = 2;
*/
public com.google.protobuf.ByteString getIdentityKeyPrivate() {
return identityKeyPrivate_;
}
// optional string number = 3;
public static final int NUMBER_FIELD_NUMBER = 3;
private java.lang.Object number_;
/**
* optional string number = 3;
*/
public boolean hasNumber() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string number = 3;
*/
public java.lang.String getNumber() {
java.lang.Object ref = number_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
number_ = s;
}
return s;
}
}
/**
* optional string number = 3;
*/
public com.google.protobuf.ByteString
getNumberBytes() {
java.lang.Object ref = number_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
number_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string provisioningCode = 4;
public static final int PROVISIONINGCODE_FIELD_NUMBER = 4;
private java.lang.Object provisioningCode_;
/**
* optional string provisioningCode = 4;
*/
public boolean hasProvisioningCode() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string provisioningCode = 4;
*/
public java.lang.String getProvisioningCode() {
java.lang.Object ref = provisioningCode_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
provisioningCode_ = s;
}
return s;
}
}
/**
* optional string provisioningCode = 4;
*/
public com.google.protobuf.ByteString
getProvisioningCodeBytes() {
java.lang.Object ref = provisioningCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
provisioningCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
identityKeyPublic_ = com.google.protobuf.ByteString.EMPTY;
identityKeyPrivate_ = com.google.protobuf.ByteString.EMPTY;
number_ = "";
provisioningCode_ = "";
}
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, identityKeyPublic_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, identityKeyPrivate_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getNumberBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getProvisioningCodeBytes());
}
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, identityKeyPublic_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, identityKeyPrivate_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getNumberBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getProvisioningCodeBytes());
}
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.textsecure.internal.push.ProvisioningProtos.ProvisionMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionMessage 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.textsecure.internal.push.ProvisioningProtos.ProvisionMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.whispersystems.textsecure.internal.push.ProvisioningProtos.ProvisionMessage 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.textsecure.internal.push.ProvisioningProtos.ProvisionMessage 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.ProvisionMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builderoptional bytes identityKeyPublic = 1;
*/
public boolean hasIdentityKeyPublic() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional bytes identityKeyPublic = 1;
*/
public com.google.protobuf.ByteString getIdentityKeyPublic() {
return identityKeyPublic_;
}
/**
* optional bytes identityKeyPublic = 1;
*/
public Builder setIdentityKeyPublic(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
identityKeyPublic_ = value;
onChanged();
return this;
}
/**
* optional bytes identityKeyPublic = 1;
*/
public Builder clearIdentityKeyPublic() {
bitField0_ = (bitField0_ & ~0x00000001);
identityKeyPublic_ = getDefaultInstance().getIdentityKeyPublic();
onChanged();
return this;
}
// optional bytes identityKeyPrivate = 2;
private com.google.protobuf.ByteString identityKeyPrivate_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes identityKeyPrivate = 2;
*/
public boolean hasIdentityKeyPrivate() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bytes identityKeyPrivate = 2;
*/
public com.google.protobuf.ByteString getIdentityKeyPrivate() {
return identityKeyPrivate_;
}
/**
* optional bytes identityKeyPrivate = 2;
*/
public Builder setIdentityKeyPrivate(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
identityKeyPrivate_ = value;
onChanged();
return this;
}
/**
* optional bytes identityKeyPrivate = 2;
*/
public Builder clearIdentityKeyPrivate() {
bitField0_ = (bitField0_ & ~0x00000002);
identityKeyPrivate_ = getDefaultInstance().getIdentityKeyPrivate();
onChanged();
return this;
}
// optional string number = 3;
private java.lang.Object number_ = "";
/**
* optional string number = 3;
*/
public boolean hasNumber() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string number = 3;
*/
public java.lang.String getNumber() {
java.lang.Object ref = number_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
number_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string number = 3;
*/
public com.google.protobuf.ByteString
getNumberBytes() {
java.lang.Object ref = number_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
number_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string number = 3;
*/
public Builder setNumber(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
number_ = value;
onChanged();
return this;
}
/**
* optional string number = 3;
*/
public Builder clearNumber() {
bitField0_ = (bitField0_ & ~0x00000004);
number_ = getDefaultInstance().getNumber();
onChanged();
return this;
}
/**
* optional string number = 3;
*/
public Builder setNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
number_ = value;
onChanged();
return this;
}
// optional string provisioningCode = 4;
private java.lang.Object provisioningCode_ = "";
/**
* optional string provisioningCode = 4;
*/
public boolean hasProvisioningCode() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string provisioningCode = 4;
*/
public java.lang.String getProvisioningCode() {
java.lang.Object ref = provisioningCode_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
provisioningCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string provisioningCode = 4;
*/
public com.google.protobuf.ByteString
getProvisioningCodeBytes() {
java.lang.Object ref = provisioningCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
provisioningCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string provisioningCode = 4;
*/
public Builder setProvisioningCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
provisioningCode_ = value;
onChanged();
return this;
}
/**
* optional string provisioningCode = 4;
*/
public Builder clearProvisioningCode() {
bitField0_ = (bitField0_ & ~0x00000008);
provisioningCode_ = getDefaultInstance().getProvisioningCode();
onChanged();
return this;
}
/**
* optional string provisioningCode = 4;
*/
public Builder setProvisioningCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
provisioningCode_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:textsecure.ProvisionMessage)
}
static {
defaultInstance = new ProvisionMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:textsecure.ProvisionMessage)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_textsecure_ProvisionEnvelope_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_textsecure_ProvisionEnvelope_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_textsecure_ProvisionMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_textsecure_ProvisionMessage_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\022Provisioning.proto\022\ntextsecure\"4\n\021Prov" +
"isionEnvelope\022\021\n\tpublicKey\030\001 \001(\014\022\014\n\004body" +
"\030\002 \001(\014\"s\n\020ProvisionMessage\022\031\n\021identityKe" +
"yPublic\030\001 \001(\014\022\032\n\022identityKeyPrivate\030\002 \001(" +
"\014\022\016\n\006number\030\003 \001(\t\022\030\n\020provisioningCode\030\004 " +
"\001(\tBA\n+org.whispersystems.textsecure.int" +
"ernal.pushB\022ProvisioningProtos"
};
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_ProvisionEnvelope_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_textsecure_ProvisionEnvelope_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_textsecure_ProvisionEnvelope_descriptor,
new java.lang.String[] { "PublicKey", "Body", });
internal_static_textsecure_ProvisionMessage_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_textsecure_ProvisionMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_textsecure_ProvisionMessage_descriptor,
new java.lang.String[] { "IdentityKeyPublic", "IdentityKeyPrivate", "Number", "ProvisioningCode", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}