org.xmtp.proto.message.contents.CiphertextOuterClass Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message_contents/ciphertext.proto
package org.xmtp.proto.message.contents;
public final class CiphertextOuterClass {
private CiphertextOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public interface CiphertextOrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.message_contents.Ciphertext)
com.google.protobuf.MessageLiteOrBuilder {
/**
* .xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256 aes256_gcm_hkdf_sha256 = 1;
* @return Whether the aes256GcmHkdfSha256 field is set.
*/
boolean hasAes256GcmHkdfSha256();
/**
* .xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256 aes256_gcm_hkdf_sha256 = 1;
* @return The aes256GcmHkdfSha256.
*/
org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 getAes256GcmHkdfSha256();
public org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.UnionCase getUnionCase();
}
/**
*
* Ciphertext represents encrypted payload.
* It is definited as a union to support cryptographic algorithm agility.
* The payload is accompanied by the cryptographic parameters
* required by the chosen encryption scheme.
*
*
* Protobuf type {@code xmtp.message_contents.Ciphertext}
*/
public static final class Ciphertext extends
com.google.protobuf.GeneratedMessageLite<
Ciphertext, Ciphertext.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.message_contents.Ciphertext)
CiphertextOrBuilder {
private Ciphertext() {
}
public interface Aes256gcmHkdfsha256OrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256)
com.google.protobuf.MessageLiteOrBuilder {
/**
*
* 32 bytes
*
*
* bytes hkdf_salt = 1;
* @return The hkdfSalt.
*/
com.google.protobuf.ByteString getHkdfSalt();
/**
*
* 12 bytes
*
*
* bytes gcm_nonce = 2;
* @return The gcmNonce.
*/
com.google.protobuf.ByteString getGcmNonce();
/**
*
* encrypted payload
*
*
* bytes payload = 3;
* @return The payload.
*/
com.google.protobuf.ByteString getPayload();
}
/**
*
* Encryption: AES256-GCM
* Key derivation function: HKDF-SHA256
*
*
* Protobuf type {@code xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256}
*/
public static final class Aes256gcmHkdfsha256 extends
com.google.protobuf.GeneratedMessageLite<
Aes256gcmHkdfsha256, Aes256gcmHkdfsha256.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256)
Aes256gcmHkdfsha256OrBuilder {
private Aes256gcmHkdfsha256() {
hkdfSalt_ = com.google.protobuf.ByteString.EMPTY;
gcmNonce_ = com.google.protobuf.ByteString.EMPTY;
payload_ = com.google.protobuf.ByteString.EMPTY;
}
public static final int HKDF_SALT_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString hkdfSalt_;
/**
*
* 32 bytes
*
*
* bytes hkdf_salt = 1;
* @return The hkdfSalt.
*/
@java.lang.Override
public com.google.protobuf.ByteString getHkdfSalt() {
return hkdfSalt_;
}
/**
*
* 32 bytes
*
*
* bytes hkdf_salt = 1;
* @param value The hkdfSalt to set.
*/
private void setHkdfSalt(com.google.protobuf.ByteString value) {
java.lang.Class valueClass = value.getClass();
hkdfSalt_ = value;
}
/**
*
* 32 bytes
*
*
* bytes hkdf_salt = 1;
*/
private void clearHkdfSalt() {
hkdfSalt_ = getDefaultInstance().getHkdfSalt();
}
public static final int GCM_NONCE_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString gcmNonce_;
/**
*
* 12 bytes
*
*
* bytes gcm_nonce = 2;
* @return The gcmNonce.
*/
@java.lang.Override
public com.google.protobuf.ByteString getGcmNonce() {
return gcmNonce_;
}
/**
*
* 12 bytes
*
*
* bytes gcm_nonce = 2;
* @param value The gcmNonce to set.
*/
private void setGcmNonce(com.google.protobuf.ByteString value) {
java.lang.Class valueClass = value.getClass();
gcmNonce_ = value;
}
/**
*
* 12 bytes
*
*
* bytes gcm_nonce = 2;
*/
private void clearGcmNonce() {
gcmNonce_ = getDefaultInstance().getGcmNonce();
}
public static final int PAYLOAD_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString payload_;
/**
*
* encrypted payload
*
*
* bytes payload = 3;
* @return The payload.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPayload() {
return payload_;
}
/**
*
* encrypted payload
*
*
* bytes payload = 3;
* @param value The payload to set.
*/
private void setPayload(com.google.protobuf.ByteString value) {
java.lang.Class valueClass = value.getClass();
payload_ = value;
}
/**
*
* encrypted payload
*
*
* bytes payload = 3;
*/
private void clearPayload() {
payload_ = getDefaultInstance().getPayload();
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* Encryption: AES256-GCM
* Key derivation function: HKDF-SHA256
*
*
* Protobuf type {@code xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256)
org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256OrBuilder {
// Construct using org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* 32 bytes
*
*
* bytes hkdf_salt = 1;
* @return The hkdfSalt.
*/
@java.lang.Override
public com.google.protobuf.ByteString getHkdfSalt() {
return instance.getHkdfSalt();
}
/**
*
* 32 bytes
*
*
* bytes hkdf_salt = 1;
* @param value The hkdfSalt to set.
* @return This builder for chaining.
*/
public Builder setHkdfSalt(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setHkdfSalt(value);
return this;
}
/**
*
* 32 bytes
*
*
* bytes hkdf_salt = 1;
* @return This builder for chaining.
*/
public Builder clearHkdfSalt() {
copyOnWrite();
instance.clearHkdfSalt();
return this;
}
/**
*
* 12 bytes
*
*
* bytes gcm_nonce = 2;
* @return The gcmNonce.
*/
@java.lang.Override
public com.google.protobuf.ByteString getGcmNonce() {
return instance.getGcmNonce();
}
/**
*
* 12 bytes
*
*
* bytes gcm_nonce = 2;
* @param value The gcmNonce to set.
* @return This builder for chaining.
*/
public Builder setGcmNonce(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setGcmNonce(value);
return this;
}
/**
*
* 12 bytes
*
*
* bytes gcm_nonce = 2;
* @return This builder for chaining.
*/
public Builder clearGcmNonce() {
copyOnWrite();
instance.clearGcmNonce();
return this;
}
/**
*
* encrypted payload
*
*
* bytes payload = 3;
* @return The payload.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPayload() {
return instance.getPayload();
}
/**
*
* encrypted payload
*
*
* bytes payload = 3;
* @param value The payload to set.
* @return This builder for chaining.
*/
public Builder setPayload(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setPayload(value);
return this;
}
/**
*
* encrypted payload
*
*
* bytes payload = 3;
* @return This builder for chaining.
*/
public Builder clearPayload() {
copyOnWrite();
instance.clearPayload();
return this;
}
// @@protoc_insertion_point(builder_scope:xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"hkdfSalt_",
"gcmNonce_",
"payload_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\n\u0002\n\u0003" +
"\n";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256)
private static final org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 DEFAULT_INSTANCE;
static {
Aes256gcmHkdfsha256 defaultInstance = new Aes256gcmHkdfsha256();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Aes256gcmHkdfsha256.class, defaultInstance);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
private int unionCase_ = 0;
private java.lang.Object union_;
public enum UnionCase {
AES256_GCM_HKDF_SHA256(1),
UNION_NOT_SET(0);
private final int value;
private UnionCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static UnionCase valueOf(int value) {
return forNumber(value);
}
public static UnionCase forNumber(int value) {
switch (value) {
case 1: return AES256_GCM_HKDF_SHA256;
case 0: return UNION_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
@java.lang.Override
public UnionCase
getUnionCase() {
return UnionCase.forNumber(
unionCase_);
}
private void clearUnion() {
unionCase_ = 0;
union_ = null;
}
public static final int AES256_GCM_HKDF_SHA256_FIELD_NUMBER = 1;
/**
* .xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256 aes256_gcm_hkdf_sha256 = 1;
*/
@java.lang.Override
public boolean hasAes256GcmHkdfSha256() {
return unionCase_ == 1;
}
/**
* .xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256 aes256_gcm_hkdf_sha256 = 1;
*/
@java.lang.Override
public org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 getAes256GcmHkdfSha256() {
if (unionCase_ == 1) {
return (org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256) union_;
}
return org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256.getDefaultInstance();
}
/**
* .xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256 aes256_gcm_hkdf_sha256 = 1;
*/
private void setAes256GcmHkdfSha256(org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 value) {
value.getClass();
union_ = value;
unionCase_ = 1;
}
/**
* .xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256 aes256_gcm_hkdf_sha256 = 1;
*/
private void mergeAes256GcmHkdfSha256(org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 value) {
value.getClass();
if (unionCase_ == 1 &&
union_ != org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256.getDefaultInstance()) {
union_ = org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256.newBuilder((org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256) union_)
.mergeFrom(value).buildPartial();
} else {
union_ = value;
}
unionCase_ = 1;
}
/**
* .xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256 aes256_gcm_hkdf_sha256 = 1;
*/
private void clearAes256GcmHkdfSha256() {
if (unionCase_ == 1) {
unionCase_ = 0;
union_ = null;
}
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* Ciphertext represents encrypted payload.
* It is definited as a union to support cryptographic algorithm agility.
* The payload is accompanied by the cryptographic parameters
* required by the chosen encryption scheme.
*
*
* Protobuf type {@code xmtp.message_contents.Ciphertext}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.message_contents.Ciphertext)
org.xmtp.proto.message.contents.CiphertextOuterClass.CiphertextOrBuilder {
// Construct using org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
@java.lang.Override
public UnionCase
getUnionCase() {
return instance.getUnionCase();
}
public Builder clearUnion() {
copyOnWrite();
instance.clearUnion();
return this;
}
/**
* .xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256 aes256_gcm_hkdf_sha256 = 1;
*/
@java.lang.Override
public boolean hasAes256GcmHkdfSha256() {
return instance.hasAes256GcmHkdfSha256();
}
/**
* .xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256 aes256_gcm_hkdf_sha256 = 1;
*/
@java.lang.Override
public org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 getAes256GcmHkdfSha256() {
return instance.getAes256GcmHkdfSha256();
}
/**
* .xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256 aes256_gcm_hkdf_sha256 = 1;
*/
public Builder setAes256GcmHkdfSha256(org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 value) {
copyOnWrite();
instance.setAes256GcmHkdfSha256(value);
return this;
}
/**
* .xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256 aes256_gcm_hkdf_sha256 = 1;
*/
public Builder setAes256GcmHkdfSha256(
org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256.Builder builderForValue) {
copyOnWrite();
instance.setAes256GcmHkdfSha256(builderForValue.build());
return this;
}
/**
* .xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256 aes256_gcm_hkdf_sha256 = 1;
*/
public Builder mergeAes256GcmHkdfSha256(org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256 value) {
copyOnWrite();
instance.mergeAes256GcmHkdfSha256(value);
return this;
}
/**
* .xmtp.message_contents.Ciphertext.Aes256gcmHkdfsha256 aes256_gcm_hkdf_sha256 = 1;
*/
public Builder clearAes256GcmHkdfSha256() {
copyOnWrite();
instance.clearAes256GcmHkdfSha256();
return this;
}
// @@protoc_insertion_point(builder_scope:xmtp.message_contents.Ciphertext)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"union_",
"unionCase_",
org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Aes256gcmHkdfsha256.class,
};
java.lang.String info =
"\u0000\u0001\u0001\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001<\u0000";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:xmtp.message_contents.Ciphertext)
private static final org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext DEFAULT_INSTANCE;
static {
Ciphertext defaultInstance = new Ciphertext();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Ciphertext.class, defaultInstance);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
public interface SignedEciesCiphertextOrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.message_contents.SignedEciesCiphertext)
com.google.protobuf.MessageLiteOrBuilder {
/**
*
* serialized Ecies message
*
*
* bytes ecies_bytes = 1;
* @return The eciesBytes.
*/
com.google.protobuf.ByteString getEciesBytes();
/**
*
* signature of sha256(ecies_bytes) signed with the IdentityKey
*
*
* .xmtp.message_contents.Signature signature = 2;
* @return Whether the signature field is set.
*/
boolean hasSignature();
/**
*
* signature of sha256(ecies_bytes) signed with the IdentityKey
*
*
* .xmtp.message_contents.Signature signature = 2;
* @return The signature.
*/
org.xmtp.proto.message.contents.SignatureOuterClass.Signature getSignature();
}
/**
*
* SignedEciesCiphertext represents an ECIES encrypted payload and a signature
*
*
* Protobuf type {@code xmtp.message_contents.SignedEciesCiphertext}
*/
public static final class SignedEciesCiphertext extends
com.google.protobuf.GeneratedMessageLite<
SignedEciesCiphertext, SignedEciesCiphertext.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.message_contents.SignedEciesCiphertext)
SignedEciesCiphertextOrBuilder {
private SignedEciesCiphertext() {
eciesBytes_ = com.google.protobuf.ByteString.EMPTY;
}
public interface EciesOrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.message_contents.SignedEciesCiphertext.Ecies)
com.google.protobuf.MessageLiteOrBuilder {
/**
*
* 65 bytes
*
*
* bytes ephemeral_public_key = 1;
* @return The ephemeralPublicKey.
*/
com.google.protobuf.ByteString getEphemeralPublicKey();
/**
*
* 16 bytes
*
*
* bytes iv = 2;
* @return The iv.
*/
com.google.protobuf.ByteString getIv();
/**
*
* 32 bytes
*
*
* bytes mac = 3;
* @return The mac.
*/
com.google.protobuf.ByteString getMac();
/**
*
* encrypted payload with block size of 16
*
*
* bytes ciphertext = 4;
* @return The ciphertext.
*/
com.google.protobuf.ByteString getCiphertext();
}
/**
*
* Ecies is ciphertext encrypted using ECIES with a MAC
*
*
* Protobuf type {@code xmtp.message_contents.SignedEciesCiphertext.Ecies}
*/
public static final class Ecies extends
com.google.protobuf.GeneratedMessageLite<
Ecies, Ecies.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.message_contents.SignedEciesCiphertext.Ecies)
EciesOrBuilder {
private Ecies() {
ephemeralPublicKey_ = com.google.protobuf.ByteString.EMPTY;
iv_ = com.google.protobuf.ByteString.EMPTY;
mac_ = com.google.protobuf.ByteString.EMPTY;
ciphertext_ = com.google.protobuf.ByteString.EMPTY;
}
public static final int EPHEMERAL_PUBLIC_KEY_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString ephemeralPublicKey_;
/**
*
* 65 bytes
*
*
* bytes ephemeral_public_key = 1;
* @return The ephemeralPublicKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEphemeralPublicKey() {
return ephemeralPublicKey_;
}
/**
*
* 65 bytes
*
*
* bytes ephemeral_public_key = 1;
* @param value The ephemeralPublicKey to set.
*/
private void setEphemeralPublicKey(com.google.protobuf.ByteString value) {
java.lang.Class valueClass = value.getClass();
ephemeralPublicKey_ = value;
}
/**
*
* 65 bytes
*
*
* bytes ephemeral_public_key = 1;
*/
private void clearEphemeralPublicKey() {
ephemeralPublicKey_ = getDefaultInstance().getEphemeralPublicKey();
}
public static final int IV_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString iv_;
/**
*
* 16 bytes
*
*
* bytes iv = 2;
* @return The iv.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIv() {
return iv_;
}
/**
*
* 16 bytes
*
*
* bytes iv = 2;
* @param value The iv to set.
*/
private void setIv(com.google.protobuf.ByteString value) {
java.lang.Class valueClass = value.getClass();
iv_ = value;
}
/**
*
* 16 bytes
*
*
* bytes iv = 2;
*/
private void clearIv() {
iv_ = getDefaultInstance().getIv();
}
public static final int MAC_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString mac_;
/**
*
* 32 bytes
*
*
* bytes mac = 3;
* @return The mac.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMac() {
return mac_;
}
/**
*
* 32 bytes
*
*
* bytes mac = 3;
* @param value The mac to set.
*/
private void setMac(com.google.protobuf.ByteString value) {
java.lang.Class valueClass = value.getClass();
mac_ = value;
}
/**
*
* 32 bytes
*
*
* bytes mac = 3;
*/
private void clearMac() {
mac_ = getDefaultInstance().getMac();
}
public static final int CIPHERTEXT_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString ciphertext_;
/**
*
* encrypted payload with block size of 16
*
*
* bytes ciphertext = 4;
* @return The ciphertext.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCiphertext() {
return ciphertext_;
}
/**
*
* encrypted payload with block size of 16
*
*
* bytes ciphertext = 4;
* @param value The ciphertext to set.
*/
private void setCiphertext(com.google.protobuf.ByteString value) {
java.lang.Class valueClass = value.getClass();
ciphertext_ = value;
}
/**
*
* encrypted payload with block size of 16
*
*
* bytes ciphertext = 4;
*/
private void clearCiphertext() {
ciphertext_ = getDefaultInstance().getCiphertext();
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* Ecies is ciphertext encrypted using ECIES with a MAC
*
*
* Protobuf type {@code xmtp.message_contents.SignedEciesCiphertext.Ecies}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.message_contents.SignedEciesCiphertext.Ecies)
org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.EciesOrBuilder {
// Construct using org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* 65 bytes
*
*
* bytes ephemeral_public_key = 1;
* @return The ephemeralPublicKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEphemeralPublicKey() {
return instance.getEphemeralPublicKey();
}
/**
*
* 65 bytes
*
*
* bytes ephemeral_public_key = 1;
* @param value The ephemeralPublicKey to set.
* @return This builder for chaining.
*/
public Builder setEphemeralPublicKey(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setEphemeralPublicKey(value);
return this;
}
/**
*
* 65 bytes
*
*
* bytes ephemeral_public_key = 1;
* @return This builder for chaining.
*/
public Builder clearEphemeralPublicKey() {
copyOnWrite();
instance.clearEphemeralPublicKey();
return this;
}
/**
*
* 16 bytes
*
*
* bytes iv = 2;
* @return The iv.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIv() {
return instance.getIv();
}
/**
*
* 16 bytes
*
*
* bytes iv = 2;
* @param value The iv to set.
* @return This builder for chaining.
*/
public Builder setIv(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setIv(value);
return this;
}
/**
*
* 16 bytes
*
*
* bytes iv = 2;
* @return This builder for chaining.
*/
public Builder clearIv() {
copyOnWrite();
instance.clearIv();
return this;
}
/**
*
* 32 bytes
*
*
* bytes mac = 3;
* @return The mac.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMac() {
return instance.getMac();
}
/**
*
* 32 bytes
*
*
* bytes mac = 3;
* @param value The mac to set.
* @return This builder for chaining.
*/
public Builder setMac(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setMac(value);
return this;
}
/**
*
* 32 bytes
*
*
* bytes mac = 3;
* @return This builder for chaining.
*/
public Builder clearMac() {
copyOnWrite();
instance.clearMac();
return this;
}
/**
*
* encrypted payload with block size of 16
*
*
* bytes ciphertext = 4;
* @return The ciphertext.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCiphertext() {
return instance.getCiphertext();
}
/**
*
* encrypted payload with block size of 16
*
*
* bytes ciphertext = 4;
* @param value The ciphertext to set.
* @return This builder for chaining.
*/
public Builder setCiphertext(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setCiphertext(value);
return this;
}
/**
*
* encrypted payload with block size of 16
*
*
* bytes ciphertext = 4;
* @return This builder for chaining.
*/
public Builder clearCiphertext() {
copyOnWrite();
instance.clearCiphertext();
return this;
}
// @@protoc_insertion_point(builder_scope:xmtp.message_contents.SignedEciesCiphertext.Ecies)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"ephemeralPublicKey_",
"iv_",
"mac_",
"ciphertext_",
};
java.lang.String info =
"\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\n\u0002\n\u0003" +
"\n\u0004\n";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:xmtp.message_contents.SignedEciesCiphertext.Ecies)
private static final org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies DEFAULT_INSTANCE;
static {
Ecies defaultInstance = new Ecies();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Ecies.class, defaultInstance);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.Ecies getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
public static final int ECIES_BYTES_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString eciesBytes_;
/**
*
* serialized Ecies message
*
*
* bytes ecies_bytes = 1;
* @return The eciesBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEciesBytes() {
return eciesBytes_;
}
/**
*
* serialized Ecies message
*
*
* bytes ecies_bytes = 1;
* @param value The eciesBytes to set.
*/
private void setEciesBytes(com.google.protobuf.ByteString value) {
java.lang.Class valueClass = value.getClass();
eciesBytes_ = value;
}
/**
*
* serialized Ecies message
*
*
* bytes ecies_bytes = 1;
*/
private void clearEciesBytes() {
eciesBytes_ = getDefaultInstance().getEciesBytes();
}
public static final int SIGNATURE_FIELD_NUMBER = 2;
private org.xmtp.proto.message.contents.SignatureOuterClass.Signature signature_;
/**
*
* signature of sha256(ecies_bytes) signed with the IdentityKey
*
*
* .xmtp.message_contents.Signature signature = 2;
*/
@java.lang.Override
public boolean hasSignature() {
return signature_ != null;
}
/**
*
* signature of sha256(ecies_bytes) signed with the IdentityKey
*
*
* .xmtp.message_contents.Signature signature = 2;
*/
@java.lang.Override
public org.xmtp.proto.message.contents.SignatureOuterClass.Signature getSignature() {
return signature_ == null ? org.xmtp.proto.message.contents.SignatureOuterClass.Signature.getDefaultInstance() : signature_;
}
/**
*
* signature of sha256(ecies_bytes) signed with the IdentityKey
*
*
* .xmtp.message_contents.Signature signature = 2;
*/
private void setSignature(org.xmtp.proto.message.contents.SignatureOuterClass.Signature value) {
value.getClass();
signature_ = value;
}
/**
*
* signature of sha256(ecies_bytes) signed with the IdentityKey
*
*
* .xmtp.message_contents.Signature signature = 2;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeSignature(org.xmtp.proto.message.contents.SignatureOuterClass.Signature value) {
value.getClass();
if (signature_ != null &&
signature_ != org.xmtp.proto.message.contents.SignatureOuterClass.Signature.getDefaultInstance()) {
signature_ =
org.xmtp.proto.message.contents.SignatureOuterClass.Signature.newBuilder(signature_).mergeFrom(value).buildPartial();
} else {
signature_ = value;
}
}
/**
*
* signature of sha256(ecies_bytes) signed with the IdentityKey
*
*
* .xmtp.message_contents.Signature signature = 2;
*/
private void clearSignature() { signature_ = null;
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* SignedEciesCiphertext represents an ECIES encrypted payload and a signature
*
*
* Protobuf type {@code xmtp.message_contents.SignedEciesCiphertext}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.message_contents.SignedEciesCiphertext)
org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertextOrBuilder {
// Construct using org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* serialized Ecies message
*
*
* bytes ecies_bytes = 1;
* @return The eciesBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEciesBytes() {
return instance.getEciesBytes();
}
/**
*
* serialized Ecies message
*
*
* bytes ecies_bytes = 1;
* @param value The eciesBytes to set.
* @return This builder for chaining.
*/
public Builder setEciesBytes(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setEciesBytes(value);
return this;
}
/**
*
* serialized Ecies message
*
*
* bytes ecies_bytes = 1;
* @return This builder for chaining.
*/
public Builder clearEciesBytes() {
copyOnWrite();
instance.clearEciesBytes();
return this;
}
/**
*
* signature of sha256(ecies_bytes) signed with the IdentityKey
*
*
* .xmtp.message_contents.Signature signature = 2;
*/
@java.lang.Override
public boolean hasSignature() {
return instance.hasSignature();
}
/**
*
* signature of sha256(ecies_bytes) signed with the IdentityKey
*
*
* .xmtp.message_contents.Signature signature = 2;
*/
@java.lang.Override
public org.xmtp.proto.message.contents.SignatureOuterClass.Signature getSignature() {
return instance.getSignature();
}
/**
*
* signature of sha256(ecies_bytes) signed with the IdentityKey
*
*
* .xmtp.message_contents.Signature signature = 2;
*/
public Builder setSignature(org.xmtp.proto.message.contents.SignatureOuterClass.Signature value) {
copyOnWrite();
instance.setSignature(value);
return this;
}
/**
*
* signature of sha256(ecies_bytes) signed with the IdentityKey
*
*
* .xmtp.message_contents.Signature signature = 2;
*/
public Builder setSignature(
org.xmtp.proto.message.contents.SignatureOuterClass.Signature.Builder builderForValue) {
copyOnWrite();
instance.setSignature(builderForValue.build());
return this;
}
/**
*
* signature of sha256(ecies_bytes) signed with the IdentityKey
*
*
* .xmtp.message_contents.Signature signature = 2;
*/
public Builder mergeSignature(org.xmtp.proto.message.contents.SignatureOuterClass.Signature value) {
copyOnWrite();
instance.mergeSignature(value);
return this;
}
/**
*
* signature of sha256(ecies_bytes) signed with the IdentityKey
*
*
* .xmtp.message_contents.Signature signature = 2;
*/
public Builder clearSignature() { copyOnWrite();
instance.clearSignature();
return this;
}
// @@protoc_insertion_point(builder_scope:xmtp.message_contents.SignedEciesCiphertext)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"eciesBytes_",
"signature_",
};
java.lang.String info =
"\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\n\u0002\t";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:xmtp.message_contents.SignedEciesCiphertext)
private static final org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext DEFAULT_INSTANCE;
static {
SignedEciesCiphertext defaultInstance = new SignedEciesCiphertext();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
SignedEciesCiphertext.class, defaultInstance);
}
public static org.xmtp.proto.message.contents.CiphertextOuterClass.SignedEciesCiphertext getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
static {
}
// @@protoc_insertion_point(outer_class_scope)
}