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.xmtp.proto.mls.message.contents.Association Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mls/message_contents/association.proto
package org.xmtp.proto.mls.message.contents;
public final class Association {
private Association() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
/**
*
* Allows for us to update the format of the association text without
* incrementing the entire proto
*
*
* Protobuf enum {@code xmtp.mls.message_contents.AssociationTextVersion}
*/
public enum AssociationTextVersion
implements com.google.protobuf.Internal.EnumLite {
/**
* ASSOCIATION_TEXT_VERSION_UNSPECIFIED = 0;
*/
ASSOCIATION_TEXT_VERSION_UNSPECIFIED(0),
/**
* ASSOCIATION_TEXT_VERSION_1 = 1;
*/
ASSOCIATION_TEXT_VERSION_1(1),
UNRECOGNIZED(-1),
;
/**
* ASSOCIATION_TEXT_VERSION_UNSPECIFIED = 0;
*/
public static final int ASSOCIATION_TEXT_VERSION_UNSPECIFIED_VALUE = 0;
/**
* ASSOCIATION_TEXT_VERSION_1 = 1;
*/
public static final int ASSOCIATION_TEXT_VERSION_1_VALUE = 1;
@java.lang.Override
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AssociationTextVersion valueOf(int value) {
return forNumber(value);
}
public static AssociationTextVersion forNumber(int value) {
switch (value) {
case 0: return ASSOCIATION_TEXT_VERSION_UNSPECIFIED;
case 1: return ASSOCIATION_TEXT_VERSION_1;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AssociationTextVersion> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public AssociationTextVersion findValueByNumber(int number) {
return AssociationTextVersion.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return AssociationTextVersionVerifier.INSTANCE;
}
private static final class AssociationTextVersionVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new AssociationTextVersionVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return AssociationTextVersion.forNumber(number) != null;
}
};
private final int value;
private AssociationTextVersion(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:xmtp.mls.message_contents.AssociationTextVersion)
}
public interface GrantMessagingAccessAssociationOrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.mls.message_contents.GrantMessagingAccessAssociation)
com.google.protobuf.MessageLiteOrBuilder {
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @return The enum numeric value on the wire for associationTextVersion.
*/
int getAssociationTextVersionValue();
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @return The associationTextVersion.
*/
org.xmtp.proto.mls.message.contents.Association.AssociationTextVersion getAssociationTextVersion();
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
* @return Whether the signature field is set.
*/
boolean hasSignature();
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
* @return The signature.
*/
org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature getSignature();
/**
* string account_address = 3;
* @return The accountAddress.
*/
java.lang.String getAccountAddress();
/**
* string account_address = 3;
* @return The bytes for accountAddress.
*/
com.google.protobuf.ByteString
getAccountAddressBytes();
/**
* uint64 created_ns = 4;
* @return The createdNs.
*/
long getCreatedNs();
}
/**
*
* Used for "Grant Messaging Access" associations
*
*
* Protobuf type {@code xmtp.mls.message_contents.GrantMessagingAccessAssociation}
*/
public static final class GrantMessagingAccessAssociation extends
com.google.protobuf.GeneratedMessageLite<
GrantMessagingAccessAssociation, GrantMessagingAccessAssociation.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.mls.message_contents.GrantMessagingAccessAssociation)
GrantMessagingAccessAssociationOrBuilder {
private GrantMessagingAccessAssociation() {
accountAddress_ = "";
}
public static final int ASSOCIATION_TEXT_VERSION_FIELD_NUMBER = 1;
private int associationTextVersion_;
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @return The enum numeric value on the wire for associationTextVersion.
*/
@java.lang.Override
public int getAssociationTextVersionValue() {
return associationTextVersion_;
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @return The associationTextVersion.
*/
@java.lang.Override
public org.xmtp.proto.mls.message.contents.Association.AssociationTextVersion getAssociationTextVersion() {
org.xmtp.proto.mls.message.contents.Association.AssociationTextVersion result = org.xmtp.proto.mls.message.contents.Association.AssociationTextVersion.forNumber(associationTextVersion_);
return result == null ? org.xmtp.proto.mls.message.contents.Association.AssociationTextVersion.UNRECOGNIZED : result;
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @param value The enum numeric value on the wire for associationTextVersion to set.
*/
private void setAssociationTextVersionValue(int value) {
associationTextVersion_ = value;
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @param value The associationTextVersion to set.
*/
private void setAssociationTextVersion(org.xmtp.proto.mls.message.contents.Association.AssociationTextVersion value) {
associationTextVersion_ = value.getNumber();
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
*/
private void clearAssociationTextVersion() {
associationTextVersion_ = 0;
}
public static final int SIGNATURE_FIELD_NUMBER = 2;
private org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature signature_;
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
@java.lang.Override
public boolean hasSignature() {
return signature_ != null;
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
@java.lang.Override
public org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature getSignature() {
return signature_ == null ? org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature.getDefaultInstance() : signature_;
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
private void setSignature(org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature value) {
value.getClass();
signature_ = value;
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeSignature(org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature value) {
value.getClass();
if (signature_ != null &&
signature_ != org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature.getDefaultInstance()) {
signature_ =
org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature.newBuilder(signature_).mergeFrom(value).buildPartial();
} else {
signature_ = value;
}
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
private void clearSignature() { signature_ = null;
}
public static final int ACCOUNT_ADDRESS_FIELD_NUMBER = 3;
private java.lang.String accountAddress_;
/**
* string account_address = 3;
* @return The accountAddress.
*/
@java.lang.Override
public java.lang.String getAccountAddress() {
return accountAddress_;
}
/**
* string account_address = 3;
* @return The bytes for accountAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAccountAddressBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(accountAddress_);
}
/**
* string account_address = 3;
* @param value The accountAddress to set.
*/
private void setAccountAddress(
java.lang.String value) {
java.lang.Class valueClass = value.getClass();
accountAddress_ = value;
}
/**
* string account_address = 3;
*/
private void clearAccountAddress() {
accountAddress_ = getDefaultInstance().getAccountAddress();
}
/**
* string account_address = 3;
* @param value The bytes for accountAddress to set.
*/
private void setAccountAddressBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
accountAddress_ = value.toStringUtf8();
}
public static final int CREATED_NS_FIELD_NUMBER = 4;
private long createdNs_;
/**
* uint64 created_ns = 4;
* @return The createdNs.
*/
@java.lang.Override
public long getCreatedNs() {
return createdNs_;
}
/**
* uint64 created_ns = 4;
* @param value The createdNs to set.
*/
private void setCreatedNs(long value) {
createdNs_ = value;
}
/**
* uint64 created_ns = 4;
*/
private void clearCreatedNs() {
createdNs_ = 0L;
}
public static org.xmtp.proto.mls.message.contents.Association.GrantMessagingAccessAssociation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.mls.message.contents.Association.GrantMessagingAccessAssociation 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.mls.message.contents.Association.GrantMessagingAccessAssociation 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.mls.message.contents.Association.GrantMessagingAccessAssociation 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.mls.message.contents.Association.GrantMessagingAccessAssociation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.mls.message.contents.Association.GrantMessagingAccessAssociation 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.mls.message.contents.Association.GrantMessagingAccessAssociation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.mls.message.contents.Association.GrantMessagingAccessAssociation 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.mls.message.contents.Association.GrantMessagingAccessAssociation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.mls.message.contents.Association.GrantMessagingAccessAssociation 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.mls.message.contents.Association.GrantMessagingAccessAssociation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.mls.message.contents.Association.GrantMessagingAccessAssociation 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.mls.message.contents.Association.GrantMessagingAccessAssociation prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* Used for "Grant Messaging Access" associations
*
*
* Protobuf type {@code xmtp.mls.message_contents.GrantMessagingAccessAssociation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.mls.message.contents.Association.GrantMessagingAccessAssociation, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.mls.message_contents.GrantMessagingAccessAssociation)
org.xmtp.proto.mls.message.contents.Association.GrantMessagingAccessAssociationOrBuilder {
// Construct using org.xmtp.proto.mls.message.contents.Association.GrantMessagingAccessAssociation.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @return The enum numeric value on the wire for associationTextVersion.
*/
@java.lang.Override
public int getAssociationTextVersionValue() {
return instance.getAssociationTextVersionValue();
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @param value The associationTextVersion to set.
* @return This builder for chaining.
*/
public Builder setAssociationTextVersionValue(int value) {
copyOnWrite();
instance.setAssociationTextVersionValue(value);
return this;
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @return The associationTextVersion.
*/
@java.lang.Override
public org.xmtp.proto.mls.message.contents.Association.AssociationTextVersion getAssociationTextVersion() {
return instance.getAssociationTextVersion();
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @param value The enum numeric value on the wire for associationTextVersion to set.
* @return This builder for chaining.
*/
public Builder setAssociationTextVersion(org.xmtp.proto.mls.message.contents.Association.AssociationTextVersion value) {
copyOnWrite();
instance.setAssociationTextVersion(value);
return this;
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @return This builder for chaining.
*/
public Builder clearAssociationTextVersion() {
copyOnWrite();
instance.clearAssociationTextVersion();
return this;
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
@java.lang.Override
public boolean hasSignature() {
return instance.hasSignature();
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
@java.lang.Override
public org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature getSignature() {
return instance.getSignature();
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
public Builder setSignature(org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature value) {
copyOnWrite();
instance.setSignature(value);
return this;
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
public Builder setSignature(
org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature.Builder builderForValue) {
copyOnWrite();
instance.setSignature(builderForValue.build());
return this;
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
public Builder mergeSignature(org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature value) {
copyOnWrite();
instance.mergeSignature(value);
return this;
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
public Builder clearSignature() { copyOnWrite();
instance.clearSignature();
return this;
}
/**
* string account_address = 3;
* @return The accountAddress.
*/
@java.lang.Override
public java.lang.String getAccountAddress() {
return instance.getAccountAddress();
}
/**
* string account_address = 3;
* @return The bytes for accountAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAccountAddressBytes() {
return instance.getAccountAddressBytes();
}
/**
* string account_address = 3;
* @param value The accountAddress to set.
* @return This builder for chaining.
*/
public Builder setAccountAddress(
java.lang.String value) {
copyOnWrite();
instance.setAccountAddress(value);
return this;
}
/**
* string account_address = 3;
* @return This builder for chaining.
*/
public Builder clearAccountAddress() {
copyOnWrite();
instance.clearAccountAddress();
return this;
}
/**
* string account_address = 3;
* @param value The bytes for accountAddress to set.
* @return This builder for chaining.
*/
public Builder setAccountAddressBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setAccountAddressBytes(value);
return this;
}
/**
* uint64 created_ns = 4;
* @return The createdNs.
*/
@java.lang.Override
public long getCreatedNs() {
return instance.getCreatedNs();
}
/**
* uint64 created_ns = 4;
* @param value The createdNs to set.
* @return This builder for chaining.
*/
public Builder setCreatedNs(long value) {
copyOnWrite();
instance.setCreatedNs(value);
return this;
}
/**
* uint64 created_ns = 4;
* @return This builder for chaining.
*/
public Builder clearCreatedNs() {
copyOnWrite();
instance.clearCreatedNs();
return this;
}
// @@protoc_insertion_point(builder_scope:xmtp.mls.message_contents.GrantMessagingAccessAssociation)
}
@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.mls.message.contents.Association.GrantMessagingAccessAssociation();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"associationTextVersion_",
"signature_",
"accountAddress_",
"createdNs_",
};
java.lang.String info =
"\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\f\u0002\t\u0003" +
"\u0208\u0004\u0003";
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.mls.message.contents.Association.GrantMessagingAccessAssociation.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.mls.message_contents.GrantMessagingAccessAssociation)
private static final org.xmtp.proto.mls.message.contents.Association.GrantMessagingAccessAssociation DEFAULT_INSTANCE;
static {
GrantMessagingAccessAssociation defaultInstance = new GrantMessagingAccessAssociation();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
GrantMessagingAccessAssociation.class, defaultInstance);
}
public static org.xmtp.proto.mls.message.contents.Association.GrantMessagingAccessAssociation 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 RevokeMessagingAccessAssociationOrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.mls.message_contents.RevokeMessagingAccessAssociation)
com.google.protobuf.MessageLiteOrBuilder {
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @return The enum numeric value on the wire for associationTextVersion.
*/
int getAssociationTextVersionValue();
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @return The associationTextVersion.
*/
org.xmtp.proto.mls.message.contents.Association.AssociationTextVersion getAssociationTextVersion();
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
* @return Whether the signature field is set.
*/
boolean hasSignature();
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
* @return The signature.
*/
org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature getSignature();
/**
* string account_address = 3;
* @return The accountAddress.
*/
java.lang.String getAccountAddress();
/**
* string account_address = 3;
* @return The bytes for accountAddress.
*/
com.google.protobuf.ByteString
getAccountAddressBytes();
/**
* uint64 created_ns = 4;
* @return The createdNs.
*/
long getCreatedNs();
}
/**
*
* Used for "Revoke Messaging Access" associations
*
*
* Protobuf type {@code xmtp.mls.message_contents.RevokeMessagingAccessAssociation}
*/
public static final class RevokeMessagingAccessAssociation extends
com.google.protobuf.GeneratedMessageLite<
RevokeMessagingAccessAssociation, RevokeMessagingAccessAssociation.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.mls.message_contents.RevokeMessagingAccessAssociation)
RevokeMessagingAccessAssociationOrBuilder {
private RevokeMessagingAccessAssociation() {
accountAddress_ = "";
}
public static final int ASSOCIATION_TEXT_VERSION_FIELD_NUMBER = 1;
private int associationTextVersion_;
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @return The enum numeric value on the wire for associationTextVersion.
*/
@java.lang.Override
public int getAssociationTextVersionValue() {
return associationTextVersion_;
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @return The associationTextVersion.
*/
@java.lang.Override
public org.xmtp.proto.mls.message.contents.Association.AssociationTextVersion getAssociationTextVersion() {
org.xmtp.proto.mls.message.contents.Association.AssociationTextVersion result = org.xmtp.proto.mls.message.contents.Association.AssociationTextVersion.forNumber(associationTextVersion_);
return result == null ? org.xmtp.proto.mls.message.contents.Association.AssociationTextVersion.UNRECOGNIZED : result;
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @param value The enum numeric value on the wire for associationTextVersion to set.
*/
private void setAssociationTextVersionValue(int value) {
associationTextVersion_ = value;
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @param value The associationTextVersion to set.
*/
private void setAssociationTextVersion(org.xmtp.proto.mls.message.contents.Association.AssociationTextVersion value) {
associationTextVersion_ = value.getNumber();
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
*/
private void clearAssociationTextVersion() {
associationTextVersion_ = 0;
}
public static final int SIGNATURE_FIELD_NUMBER = 2;
private org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature signature_;
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
@java.lang.Override
public boolean hasSignature() {
return signature_ != null;
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
@java.lang.Override
public org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature getSignature() {
return signature_ == null ? org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature.getDefaultInstance() : signature_;
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
private void setSignature(org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature value) {
value.getClass();
signature_ = value;
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeSignature(org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature value) {
value.getClass();
if (signature_ != null &&
signature_ != org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature.getDefaultInstance()) {
signature_ =
org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature.newBuilder(signature_).mergeFrom(value).buildPartial();
} else {
signature_ = value;
}
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
private void clearSignature() { signature_ = null;
}
public static final int ACCOUNT_ADDRESS_FIELD_NUMBER = 3;
private java.lang.String accountAddress_;
/**
* string account_address = 3;
* @return The accountAddress.
*/
@java.lang.Override
public java.lang.String getAccountAddress() {
return accountAddress_;
}
/**
* string account_address = 3;
* @return The bytes for accountAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAccountAddressBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(accountAddress_);
}
/**
* string account_address = 3;
* @param value The accountAddress to set.
*/
private void setAccountAddress(
java.lang.String value) {
java.lang.Class valueClass = value.getClass();
accountAddress_ = value;
}
/**
* string account_address = 3;
*/
private void clearAccountAddress() {
accountAddress_ = getDefaultInstance().getAccountAddress();
}
/**
* string account_address = 3;
* @param value The bytes for accountAddress to set.
*/
private void setAccountAddressBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
accountAddress_ = value.toStringUtf8();
}
public static final int CREATED_NS_FIELD_NUMBER = 4;
private long createdNs_;
/**
* uint64 created_ns = 4;
* @return The createdNs.
*/
@java.lang.Override
public long getCreatedNs() {
return createdNs_;
}
/**
* uint64 created_ns = 4;
* @param value The createdNs to set.
*/
private void setCreatedNs(long value) {
createdNs_ = value;
}
/**
* uint64 created_ns = 4;
*/
private void clearCreatedNs() {
createdNs_ = 0L;
}
public static org.xmtp.proto.mls.message.contents.Association.RevokeMessagingAccessAssociation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.mls.message.contents.Association.RevokeMessagingAccessAssociation 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.mls.message.contents.Association.RevokeMessagingAccessAssociation 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.mls.message.contents.Association.RevokeMessagingAccessAssociation 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.mls.message.contents.Association.RevokeMessagingAccessAssociation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.mls.message.contents.Association.RevokeMessagingAccessAssociation 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.mls.message.contents.Association.RevokeMessagingAccessAssociation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.mls.message.contents.Association.RevokeMessagingAccessAssociation 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.mls.message.contents.Association.RevokeMessagingAccessAssociation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.mls.message.contents.Association.RevokeMessagingAccessAssociation 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.mls.message.contents.Association.RevokeMessagingAccessAssociation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.mls.message.contents.Association.RevokeMessagingAccessAssociation 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.mls.message.contents.Association.RevokeMessagingAccessAssociation prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* Used for "Revoke Messaging Access" associations
*
*
* Protobuf type {@code xmtp.mls.message_contents.RevokeMessagingAccessAssociation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.mls.message.contents.Association.RevokeMessagingAccessAssociation, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.mls.message_contents.RevokeMessagingAccessAssociation)
org.xmtp.proto.mls.message.contents.Association.RevokeMessagingAccessAssociationOrBuilder {
// Construct using org.xmtp.proto.mls.message.contents.Association.RevokeMessagingAccessAssociation.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @return The enum numeric value on the wire for associationTextVersion.
*/
@java.lang.Override
public int getAssociationTextVersionValue() {
return instance.getAssociationTextVersionValue();
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @param value The associationTextVersion to set.
* @return This builder for chaining.
*/
public Builder setAssociationTextVersionValue(int value) {
copyOnWrite();
instance.setAssociationTextVersionValue(value);
return this;
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @return The associationTextVersion.
*/
@java.lang.Override
public org.xmtp.proto.mls.message.contents.Association.AssociationTextVersion getAssociationTextVersion() {
return instance.getAssociationTextVersion();
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @param value The enum numeric value on the wire for associationTextVersion to set.
* @return This builder for chaining.
*/
public Builder setAssociationTextVersion(org.xmtp.proto.mls.message.contents.Association.AssociationTextVersion value) {
copyOnWrite();
instance.setAssociationTextVersion(value);
return this;
}
/**
* .xmtp.mls.message_contents.AssociationTextVersion association_text_version = 1;
* @return This builder for chaining.
*/
public Builder clearAssociationTextVersion() {
copyOnWrite();
instance.clearAssociationTextVersion();
return this;
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
@java.lang.Override
public boolean hasSignature() {
return instance.hasSignature();
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
@java.lang.Override
public org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature getSignature() {
return instance.getSignature();
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
public Builder setSignature(org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature value) {
copyOnWrite();
instance.setSignature(value);
return this;
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
public Builder setSignature(
org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature.Builder builderForValue) {
copyOnWrite();
instance.setSignature(builderForValue.build());
return this;
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
public Builder mergeSignature(org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature value) {
copyOnWrite();
instance.mergeSignature(value);
return this;
}
/**
*
* EIP-191 signature
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 2;
*/
public Builder clearSignature() { copyOnWrite();
instance.clearSignature();
return this;
}
/**
* string account_address = 3;
* @return The accountAddress.
*/
@java.lang.Override
public java.lang.String getAccountAddress() {
return instance.getAccountAddress();
}
/**
* string account_address = 3;
* @return The bytes for accountAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAccountAddressBytes() {
return instance.getAccountAddressBytes();
}
/**
* string account_address = 3;
* @param value The accountAddress to set.
* @return This builder for chaining.
*/
public Builder setAccountAddress(
java.lang.String value) {
copyOnWrite();
instance.setAccountAddress(value);
return this;
}
/**
* string account_address = 3;
* @return This builder for chaining.
*/
public Builder clearAccountAddress() {
copyOnWrite();
instance.clearAccountAddress();
return this;
}
/**
* string account_address = 3;
* @param value The bytes for accountAddress to set.
* @return This builder for chaining.
*/
public Builder setAccountAddressBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setAccountAddressBytes(value);
return this;
}
/**
* uint64 created_ns = 4;
* @return The createdNs.
*/
@java.lang.Override
public long getCreatedNs() {
return instance.getCreatedNs();
}
/**
* uint64 created_ns = 4;
* @param value The createdNs to set.
* @return This builder for chaining.
*/
public Builder setCreatedNs(long value) {
copyOnWrite();
instance.setCreatedNs(value);
return this;
}
/**
* uint64 created_ns = 4;
* @return This builder for chaining.
*/
public Builder clearCreatedNs() {
copyOnWrite();
instance.clearCreatedNs();
return this;
}
// @@protoc_insertion_point(builder_scope:xmtp.mls.message_contents.RevokeMessagingAccessAssociation)
}
@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.mls.message.contents.Association.RevokeMessagingAccessAssociation();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"associationTextVersion_",
"signature_",
"accountAddress_",
"createdNs_",
};
java.lang.String info =
"\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\f\u0002\t\u0003" +
"\u0208\u0004\u0003";
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.mls.message.contents.Association.RevokeMessagingAccessAssociation.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.mls.message_contents.RevokeMessagingAccessAssociation)
private static final org.xmtp.proto.mls.message.contents.Association.RevokeMessagingAccessAssociation DEFAULT_INSTANCE;
static {
RevokeMessagingAccessAssociation defaultInstance = new RevokeMessagingAccessAssociation();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
RevokeMessagingAccessAssociation.class, defaultInstance);
}
public static org.xmtp.proto.mls.message.contents.Association.RevokeMessagingAccessAssociation 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 LegacyCreateIdentityAssociationOrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.mls.message_contents.LegacyCreateIdentityAssociation)
com.google.protobuf.MessageLiteOrBuilder {
/**
*
* Signs SHA-256 hash of installation key
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 1;
* @return Whether the signature field is set.
*/
boolean hasSignature();
/**
*
* Signs SHA-256 hash of installation key
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 1;
* @return The signature.
*/
org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature getSignature();
/**
*
* created_ns is encoded inside serialized key, account_address is recoverable
* from the SignedPublicKey signature
*
*
* .xmtp.message_contents.SignedPublicKey signed_legacy_create_identity_key = 2;
* @return Whether the signedLegacyCreateIdentityKey field is set.
*/
boolean hasSignedLegacyCreateIdentityKey();
/**
*
* created_ns is encoded inside serialized key, account_address is recoverable
* from the SignedPublicKey signature
*
*
* .xmtp.message_contents.SignedPublicKey signed_legacy_create_identity_key = 2;
* @return The signedLegacyCreateIdentityKey.
*/
org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKey getSignedLegacyCreateIdentityKey();
}
/**
*
* LegacyCreateIdentityAssociation is used when a v3 installation key
* is signed by a v2 identity key, which in turn is signed via a
* 'CreateIdentity' wallet signature
*
*
* Protobuf type {@code xmtp.mls.message_contents.LegacyCreateIdentityAssociation}
*/
public static final class LegacyCreateIdentityAssociation extends
com.google.protobuf.GeneratedMessageLite<
LegacyCreateIdentityAssociation, LegacyCreateIdentityAssociation.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.mls.message_contents.LegacyCreateIdentityAssociation)
LegacyCreateIdentityAssociationOrBuilder {
private LegacyCreateIdentityAssociation() {
}
public static final int SIGNATURE_FIELD_NUMBER = 1;
private org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature signature_;
/**
*
* Signs SHA-256 hash of installation key
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 1;
*/
@java.lang.Override
public boolean hasSignature() {
return signature_ != null;
}
/**
*
* Signs SHA-256 hash of installation key
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 1;
*/
@java.lang.Override
public org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature getSignature() {
return signature_ == null ? org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature.getDefaultInstance() : signature_;
}
/**
*
* Signs SHA-256 hash of installation key
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 1;
*/
private void setSignature(org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature value) {
value.getClass();
signature_ = value;
}
/**
*
* Signs SHA-256 hash of installation key
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 1;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeSignature(org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature value) {
value.getClass();
if (signature_ != null &&
signature_ != org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature.getDefaultInstance()) {
signature_ =
org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature.newBuilder(signature_).mergeFrom(value).buildPartial();
} else {
signature_ = value;
}
}
/**
*
* Signs SHA-256 hash of installation key
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 1;
*/
private void clearSignature() { signature_ = null;
}
public static final int SIGNED_LEGACY_CREATE_IDENTITY_KEY_FIELD_NUMBER = 2;
private org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKey signedLegacyCreateIdentityKey_;
/**
*
* created_ns is encoded inside serialized key, account_address is recoverable
* from the SignedPublicKey signature
*
*
* .xmtp.message_contents.SignedPublicKey signed_legacy_create_identity_key = 2;
*/
@java.lang.Override
public boolean hasSignedLegacyCreateIdentityKey() {
return signedLegacyCreateIdentityKey_ != null;
}
/**
*
* created_ns is encoded inside serialized key, account_address is recoverable
* from the SignedPublicKey signature
*
*
* .xmtp.message_contents.SignedPublicKey signed_legacy_create_identity_key = 2;
*/
@java.lang.Override
public org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKey getSignedLegacyCreateIdentityKey() {
return signedLegacyCreateIdentityKey_ == null ? org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKey.getDefaultInstance() : signedLegacyCreateIdentityKey_;
}
/**
*
* created_ns is encoded inside serialized key, account_address is recoverable
* from the SignedPublicKey signature
*
*
* .xmtp.message_contents.SignedPublicKey signed_legacy_create_identity_key = 2;
*/
private void setSignedLegacyCreateIdentityKey(org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKey value) {
value.getClass();
signedLegacyCreateIdentityKey_ = value;
}
/**
*
* created_ns is encoded inside serialized key, account_address is recoverable
* from the SignedPublicKey signature
*
*
* .xmtp.message_contents.SignedPublicKey signed_legacy_create_identity_key = 2;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeSignedLegacyCreateIdentityKey(org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKey value) {
value.getClass();
if (signedLegacyCreateIdentityKey_ != null &&
signedLegacyCreateIdentityKey_ != org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKey.getDefaultInstance()) {
signedLegacyCreateIdentityKey_ =
org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKey.newBuilder(signedLegacyCreateIdentityKey_).mergeFrom(value).buildPartial();
} else {
signedLegacyCreateIdentityKey_ = value;
}
}
/**
*
* created_ns is encoded inside serialized key, account_address is recoverable
* from the SignedPublicKey signature
*
*
* .xmtp.message_contents.SignedPublicKey signed_legacy_create_identity_key = 2;
*/
private void clearSignedLegacyCreateIdentityKey() { signedLegacyCreateIdentityKey_ = null;
}
public static org.xmtp.proto.mls.message.contents.Association.LegacyCreateIdentityAssociation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.mls.message.contents.Association.LegacyCreateIdentityAssociation 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.mls.message.contents.Association.LegacyCreateIdentityAssociation 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.mls.message.contents.Association.LegacyCreateIdentityAssociation 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.mls.message.contents.Association.LegacyCreateIdentityAssociation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.mls.message.contents.Association.LegacyCreateIdentityAssociation 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.mls.message.contents.Association.LegacyCreateIdentityAssociation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.mls.message.contents.Association.LegacyCreateIdentityAssociation 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.mls.message.contents.Association.LegacyCreateIdentityAssociation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.mls.message.contents.Association.LegacyCreateIdentityAssociation 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.mls.message.contents.Association.LegacyCreateIdentityAssociation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.mls.message.contents.Association.LegacyCreateIdentityAssociation 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.mls.message.contents.Association.LegacyCreateIdentityAssociation prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* LegacyCreateIdentityAssociation is used when a v3 installation key
* is signed by a v2 identity key, which in turn is signed via a
* 'CreateIdentity' wallet signature
*
*
* Protobuf type {@code xmtp.mls.message_contents.LegacyCreateIdentityAssociation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.mls.message.contents.Association.LegacyCreateIdentityAssociation, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.mls.message_contents.LegacyCreateIdentityAssociation)
org.xmtp.proto.mls.message.contents.Association.LegacyCreateIdentityAssociationOrBuilder {
// Construct using org.xmtp.proto.mls.message.contents.Association.LegacyCreateIdentityAssociation.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* Signs SHA-256 hash of installation key
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 1;
*/
@java.lang.Override
public boolean hasSignature() {
return instance.hasSignature();
}
/**
*
* Signs SHA-256 hash of installation key
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 1;
*/
@java.lang.Override
public org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature getSignature() {
return instance.getSignature();
}
/**
*
* Signs SHA-256 hash of installation key
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 1;
*/
public Builder setSignature(org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature value) {
copyOnWrite();
instance.setSignature(value);
return this;
}
/**
*
* Signs SHA-256 hash of installation key
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 1;
*/
public Builder setSignature(
org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature.Builder builderForValue) {
copyOnWrite();
instance.setSignature(builderForValue.build());
return this;
}
/**
*
* Signs SHA-256 hash of installation key
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 1;
*/
public Builder mergeSignature(org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature value) {
copyOnWrite();
instance.mergeSignature(value);
return this;
}
/**
*
* Signs SHA-256 hash of installation key
*
*
* .xmtp.mls.message_contents.RecoverableEcdsaSignature signature = 1;
*/
public Builder clearSignature() { copyOnWrite();
instance.clearSignature();
return this;
}
/**
*
* created_ns is encoded inside serialized key, account_address is recoverable
* from the SignedPublicKey signature
*
*
* .xmtp.message_contents.SignedPublicKey signed_legacy_create_identity_key = 2;
*/
@java.lang.Override
public boolean hasSignedLegacyCreateIdentityKey() {
return instance.hasSignedLegacyCreateIdentityKey();
}
/**
*
* created_ns is encoded inside serialized key, account_address is recoverable
* from the SignedPublicKey signature
*
*
* .xmtp.message_contents.SignedPublicKey signed_legacy_create_identity_key = 2;
*/
@java.lang.Override
public org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKey getSignedLegacyCreateIdentityKey() {
return instance.getSignedLegacyCreateIdentityKey();
}
/**
*
* created_ns is encoded inside serialized key, account_address is recoverable
* from the SignedPublicKey signature
*
*
* .xmtp.message_contents.SignedPublicKey signed_legacy_create_identity_key = 2;
*/
public Builder setSignedLegacyCreateIdentityKey(org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKey value) {
copyOnWrite();
instance.setSignedLegacyCreateIdentityKey(value);
return this;
}
/**
*
* created_ns is encoded inside serialized key, account_address is recoverable
* from the SignedPublicKey signature
*
*
* .xmtp.message_contents.SignedPublicKey signed_legacy_create_identity_key = 2;
*/
public Builder setSignedLegacyCreateIdentityKey(
org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKey.Builder builderForValue) {
copyOnWrite();
instance.setSignedLegacyCreateIdentityKey(builderForValue.build());
return this;
}
/**
*
* created_ns is encoded inside serialized key, account_address is recoverable
* from the SignedPublicKey signature
*
*
* .xmtp.message_contents.SignedPublicKey signed_legacy_create_identity_key = 2;
*/
public Builder mergeSignedLegacyCreateIdentityKey(org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKey value) {
copyOnWrite();
instance.mergeSignedLegacyCreateIdentityKey(value);
return this;
}
/**
*
* created_ns is encoded inside serialized key, account_address is recoverable
* from the SignedPublicKey signature
*
*
* .xmtp.message_contents.SignedPublicKey signed_legacy_create_identity_key = 2;
*/
public Builder clearSignedLegacyCreateIdentityKey() { copyOnWrite();
instance.clearSignedLegacyCreateIdentityKey();
return this;
}
// @@protoc_insertion_point(builder_scope:xmtp.mls.message_contents.LegacyCreateIdentityAssociation)
}
@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.mls.message.contents.Association.LegacyCreateIdentityAssociation();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"signature_",
"signedLegacyCreateIdentityKey_",
};
java.lang.String info =
"\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\t\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.mls.message.contents.Association.LegacyCreateIdentityAssociation.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.mls.message_contents.LegacyCreateIdentityAssociation)
private static final org.xmtp.proto.mls.message.contents.Association.LegacyCreateIdentityAssociation DEFAULT_INSTANCE;
static {
LegacyCreateIdentityAssociation defaultInstance = new LegacyCreateIdentityAssociation();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
LegacyCreateIdentityAssociation.class, defaultInstance);
}
public static org.xmtp.proto.mls.message.contents.Association.LegacyCreateIdentityAssociation 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 RecoverableEcdsaSignatureOrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.mls.message_contents.RecoverableEcdsaSignature)
com.google.protobuf.MessageLiteOrBuilder {
/**
*
* 65-bytes [ R || S || V ], with recovery id as the last byte
*
*
* bytes bytes = 1;
* @return The bytes.
*/
com.google.protobuf.ByteString getBytes();
}
/**
*
* RecoverableEcdsaSignature
*
*
* Protobuf type {@code xmtp.mls.message_contents.RecoverableEcdsaSignature}
*/
public static final class RecoverableEcdsaSignature extends
com.google.protobuf.GeneratedMessageLite<
RecoverableEcdsaSignature, RecoverableEcdsaSignature.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.mls.message_contents.RecoverableEcdsaSignature)
RecoverableEcdsaSignatureOrBuilder {
private RecoverableEcdsaSignature() {
bytes_ = com.google.protobuf.ByteString.EMPTY;
}
public static final int BYTES_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString bytes_;
/**
*
* 65-bytes [ R || S || V ], with recovery id as the last byte
*
*
* bytes bytes = 1;
* @return The bytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBytes() {
return bytes_;
}
/**
*
* 65-bytes [ R || S || V ], with recovery id as the last byte
*
*
* bytes bytes = 1;
* @param value The bytes to set.
*/
private void setBytes(com.google.protobuf.ByteString value) {
java.lang.Class valueClass = value.getClass();
bytes_ = value;
}
/**
*
* 65-bytes [ R || S || V ], with recovery id as the last byte
*
*
* bytes bytes = 1;
*/
private void clearBytes() {
bytes_ = getDefaultInstance().getBytes();
}
public static org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature 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.mls.message.contents.Association.RecoverableEcdsaSignature 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.mls.message.contents.Association.RecoverableEcdsaSignature 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.mls.message.contents.Association.RecoverableEcdsaSignature parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature 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.mls.message.contents.Association.RecoverableEcdsaSignature parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature 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.mls.message.contents.Association.RecoverableEcdsaSignature parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature 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.mls.message.contents.Association.RecoverableEcdsaSignature parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature 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.mls.message.contents.Association.RecoverableEcdsaSignature prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* RecoverableEcdsaSignature
*
*
* Protobuf type {@code xmtp.mls.message_contents.RecoverableEcdsaSignature}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.mls.message_contents.RecoverableEcdsaSignature)
org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignatureOrBuilder {
// Construct using org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* 65-bytes [ R || S || V ], with recovery id as the last byte
*
*
* bytes bytes = 1;
* @return The bytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBytes() {
return instance.getBytes();
}
/**
*
* 65-bytes [ R || S || V ], with recovery id as the last byte
*
*
* bytes bytes = 1;
* @param value The bytes to set.
* @return This builder for chaining.
*/
public Builder setBytes(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setBytes(value);
return this;
}
/**
*
* 65-bytes [ R || S || V ], with recovery id as the last byte
*
*
* bytes bytes = 1;
* @return This builder for chaining.
*/
public Builder clearBytes() {
copyOnWrite();
instance.clearBytes();
return this;
}
// @@protoc_insertion_point(builder_scope:xmtp.mls.message_contents.RecoverableEcdsaSignature)
}
@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.mls.message.contents.Association.RecoverableEcdsaSignature();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bytes_",
};
java.lang.String info =
"\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\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.mls.message.contents.Association.RecoverableEcdsaSignature.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.mls.message_contents.RecoverableEcdsaSignature)
private static final org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature DEFAULT_INSTANCE;
static {
RecoverableEcdsaSignature defaultInstance = new RecoverableEcdsaSignature();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
RecoverableEcdsaSignature.class, defaultInstance);
}
public static org.xmtp.proto.mls.message.contents.Association.RecoverableEcdsaSignature 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 EdDsaSignatureOrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.mls.message_contents.EdDsaSignature)
com.google.protobuf.MessageLiteOrBuilder {
/**
* bytes bytes = 1;
* @return The bytes.
*/
com.google.protobuf.ByteString getBytes();
}
/**
*
* EdDSA signature bytes matching RFC 8032
*
*
* Protobuf type {@code xmtp.mls.message_contents.EdDsaSignature}
*/
public static final class EdDsaSignature extends
com.google.protobuf.GeneratedMessageLite<
EdDsaSignature, EdDsaSignature.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.mls.message_contents.EdDsaSignature)
EdDsaSignatureOrBuilder {
private EdDsaSignature() {
bytes_ = com.google.protobuf.ByteString.EMPTY;
}
public static final int BYTES_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString bytes_;
/**
* bytes bytes = 1;
* @return The bytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBytes() {
return bytes_;
}
/**
* bytes bytes = 1;
* @param value The bytes to set.
*/
private void setBytes(com.google.protobuf.ByteString value) {
java.lang.Class valueClass = value.getClass();
bytes_ = value;
}
/**
* bytes bytes = 1;
*/
private void clearBytes() {
bytes_ = getDefaultInstance().getBytes();
}
public static org.xmtp.proto.mls.message.contents.Association.EdDsaSignature parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.mls.message.contents.Association.EdDsaSignature 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.mls.message.contents.Association.EdDsaSignature 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.mls.message.contents.Association.EdDsaSignature 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.mls.message.contents.Association.EdDsaSignature parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.mls.message.contents.Association.EdDsaSignature 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.mls.message.contents.Association.EdDsaSignature parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.mls.message.contents.Association.EdDsaSignature 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.mls.message.contents.Association.EdDsaSignature parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.mls.message.contents.Association.EdDsaSignature 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.mls.message.contents.Association.EdDsaSignature parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.mls.message.contents.Association.EdDsaSignature 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.mls.message.contents.Association.EdDsaSignature prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* EdDSA signature bytes matching RFC 8032
*
*
* Protobuf type {@code xmtp.mls.message_contents.EdDsaSignature}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.mls.message.contents.Association.EdDsaSignature, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.mls.message_contents.EdDsaSignature)
org.xmtp.proto.mls.message.contents.Association.EdDsaSignatureOrBuilder {
// Construct using org.xmtp.proto.mls.message.contents.Association.EdDsaSignature.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* bytes bytes = 1;
* @return The bytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBytes() {
return instance.getBytes();
}
/**
* bytes bytes = 1;
* @param value The bytes to set.
* @return This builder for chaining.
*/
public Builder setBytes(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setBytes(value);
return this;
}
/**
* bytes bytes = 1;
* @return This builder for chaining.
*/
public Builder clearBytes() {
copyOnWrite();
instance.clearBytes();
return this;
}
// @@protoc_insertion_point(builder_scope:xmtp.mls.message_contents.EdDsaSignature)
}
@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.mls.message.contents.Association.EdDsaSignature();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bytes_",
};
java.lang.String info =
"\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\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.mls.message.contents.Association.EdDsaSignature.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.mls.message_contents.EdDsaSignature)
private static final org.xmtp.proto.mls.message.contents.Association.EdDsaSignature DEFAULT_INSTANCE;
static {
EdDsaSignature defaultInstance = new EdDsaSignature();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
EdDsaSignature.class, defaultInstance);
}
public static org.xmtp.proto.mls.message.contents.Association.EdDsaSignature 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)
}