org.xmtp.proto.message.contents.Contact Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: message_contents/contact.proto
package org.xmtp.proto.message.contents;
public final class Contact {
private Contact() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public interface ContactBundleV1OrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.message_contents.ContactBundleV1)
com.google.protobuf.MessageLiteOrBuilder {
/**
* .xmtp.message_contents.PublicKeyBundle key_bundle = 1;
* @return Whether the keyBundle field is set.
*/
boolean hasKeyBundle();
/**
* .xmtp.message_contents.PublicKeyBundle key_bundle = 1;
* @return The keyBundle.
*/
org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle getKeyBundle();
}
/**
*
* LEGACY: User key bundle V1 using PublicKeys.
* The PublicKeys MUST be signed.
*
*
* Protobuf type {@code xmtp.message_contents.ContactBundleV1}
*/
public static final class ContactBundleV1 extends
com.google.protobuf.GeneratedMessageLite<
ContactBundleV1, ContactBundleV1.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.message_contents.ContactBundleV1)
ContactBundleV1OrBuilder {
private ContactBundleV1() {
}
public static final int KEY_BUNDLE_FIELD_NUMBER = 1;
private org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle keyBundle_;
/**
* .xmtp.message_contents.PublicKeyBundle key_bundle = 1;
*/
@java.lang.Override
public boolean hasKeyBundle() {
return keyBundle_ != null;
}
/**
* .xmtp.message_contents.PublicKeyBundle key_bundle = 1;
*/
@java.lang.Override
public org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle getKeyBundle() {
return keyBundle_ == null ? org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle.getDefaultInstance() : keyBundle_;
}
/**
* .xmtp.message_contents.PublicKeyBundle key_bundle = 1;
*/
private void setKeyBundle(org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle value) {
value.getClass();
keyBundle_ = value;
}
/**
* .xmtp.message_contents.PublicKeyBundle key_bundle = 1;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeKeyBundle(org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle value) {
value.getClass();
if (keyBundle_ != null &&
keyBundle_ != org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle.getDefaultInstance()) {
keyBundle_ =
org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle.newBuilder(keyBundle_).mergeFrom(value).buildPartial();
} else {
keyBundle_ = value;
}
}
/**
* .xmtp.message_contents.PublicKeyBundle key_bundle = 1;
*/
private void clearKeyBundle() { keyBundle_ = null;
}
public static org.xmtp.proto.message.contents.Contact.ContactBundleV1 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.Contact.ContactBundleV1 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.Contact.ContactBundleV1 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.Contact.ContactBundleV1 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.Contact.ContactBundleV1 parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.message.contents.Contact.ContactBundleV1 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.Contact.ContactBundleV1 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.Contact.ContactBundleV1 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.Contact.ContactBundleV1 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.message.contents.Contact.ContactBundleV1 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.Contact.ContactBundleV1 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.Contact.ContactBundleV1 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.Contact.ContactBundleV1 prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* LEGACY: User key bundle V1 using PublicKeys.
* The PublicKeys MUST be signed.
*
*
* Protobuf type {@code xmtp.message_contents.ContactBundleV1}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.message.contents.Contact.ContactBundleV1, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.message_contents.ContactBundleV1)
org.xmtp.proto.message.contents.Contact.ContactBundleV1OrBuilder {
// Construct using org.xmtp.proto.message.contents.Contact.ContactBundleV1.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* .xmtp.message_contents.PublicKeyBundle key_bundle = 1;
*/
@java.lang.Override
public boolean hasKeyBundle() {
return instance.hasKeyBundle();
}
/**
* .xmtp.message_contents.PublicKeyBundle key_bundle = 1;
*/
@java.lang.Override
public org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle getKeyBundle() {
return instance.getKeyBundle();
}
/**
* .xmtp.message_contents.PublicKeyBundle key_bundle = 1;
*/
public Builder setKeyBundle(org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle value) {
copyOnWrite();
instance.setKeyBundle(value);
return this;
}
/**
* .xmtp.message_contents.PublicKeyBundle key_bundle = 1;
*/
public Builder setKeyBundle(
org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle.Builder builderForValue) {
copyOnWrite();
instance.setKeyBundle(builderForValue.build());
return this;
}
/**
* .xmtp.message_contents.PublicKeyBundle key_bundle = 1;
*/
public Builder mergeKeyBundle(org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKeyBundle value) {
copyOnWrite();
instance.mergeKeyBundle(value);
return this;
}
/**
* .xmtp.message_contents.PublicKeyBundle key_bundle = 1;
*/
public Builder clearKeyBundle() { copyOnWrite();
instance.clearKeyBundle();
return this;
}
// @@protoc_insertion_point(builder_scope:xmtp.message_contents.ContactBundleV1)
}
@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.Contact.ContactBundleV1();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"keyBundle_",
};
java.lang.String info =
"\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\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.Contact.ContactBundleV1.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.ContactBundleV1)
private static final org.xmtp.proto.message.contents.Contact.ContactBundleV1 DEFAULT_INSTANCE;
static {
ContactBundleV1 defaultInstance = new ContactBundleV1();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
ContactBundleV1.class, defaultInstance);
}
public static org.xmtp.proto.message.contents.Contact.ContactBundleV1 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 ContactBundleV2OrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.message_contents.ContactBundleV2)
com.google.protobuf.MessageLiteOrBuilder {
/**
* .xmtp.message_contents.SignedPublicKeyBundle key_bundle = 1;
* @return Whether the keyBundle field is set.
*/
boolean hasKeyBundle();
/**
* .xmtp.message_contents.SignedPublicKeyBundle key_bundle = 1;
* @return The keyBundle.
*/
org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle getKeyBundle();
}
/**
*
* User key bundle V2 using SignedPublicKeys.
*
*
* Protobuf type {@code xmtp.message_contents.ContactBundleV2}
*/
public static final class ContactBundleV2 extends
com.google.protobuf.GeneratedMessageLite<
ContactBundleV2, ContactBundleV2.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.message_contents.ContactBundleV2)
ContactBundleV2OrBuilder {
private ContactBundleV2() {
}
public static final int KEY_BUNDLE_FIELD_NUMBER = 1;
private org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle keyBundle_;
/**
* .xmtp.message_contents.SignedPublicKeyBundle key_bundle = 1;
*/
@java.lang.Override
public boolean hasKeyBundle() {
return keyBundle_ != null;
}
/**
* .xmtp.message_contents.SignedPublicKeyBundle key_bundle = 1;
*/
@java.lang.Override
public org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle getKeyBundle() {
return keyBundle_ == null ? org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle.getDefaultInstance() : keyBundle_;
}
/**
* .xmtp.message_contents.SignedPublicKeyBundle key_bundle = 1;
*/
private void setKeyBundle(org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle value) {
value.getClass();
keyBundle_ = value;
}
/**
* .xmtp.message_contents.SignedPublicKeyBundle key_bundle = 1;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeKeyBundle(org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle value) {
value.getClass();
if (keyBundle_ != null &&
keyBundle_ != org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle.getDefaultInstance()) {
keyBundle_ =
org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle.newBuilder(keyBundle_).mergeFrom(value).buildPartial();
} else {
keyBundle_ = value;
}
}
/**
* .xmtp.message_contents.SignedPublicKeyBundle key_bundle = 1;
*/
private void clearKeyBundle() { keyBundle_ = null;
}
public static org.xmtp.proto.message.contents.Contact.ContactBundleV2 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.Contact.ContactBundleV2 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.Contact.ContactBundleV2 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.Contact.ContactBundleV2 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.Contact.ContactBundleV2 parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.message.contents.Contact.ContactBundleV2 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.Contact.ContactBundleV2 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.Contact.ContactBundleV2 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.Contact.ContactBundleV2 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.message.contents.Contact.ContactBundleV2 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.Contact.ContactBundleV2 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.Contact.ContactBundleV2 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.Contact.ContactBundleV2 prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* User key bundle V2 using SignedPublicKeys.
*
*
* Protobuf type {@code xmtp.message_contents.ContactBundleV2}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.message.contents.Contact.ContactBundleV2, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.message_contents.ContactBundleV2)
org.xmtp.proto.message.contents.Contact.ContactBundleV2OrBuilder {
// Construct using org.xmtp.proto.message.contents.Contact.ContactBundleV2.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* .xmtp.message_contents.SignedPublicKeyBundle key_bundle = 1;
*/
@java.lang.Override
public boolean hasKeyBundle() {
return instance.hasKeyBundle();
}
/**
* .xmtp.message_contents.SignedPublicKeyBundle key_bundle = 1;
*/
@java.lang.Override
public org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle getKeyBundle() {
return instance.getKeyBundle();
}
/**
* .xmtp.message_contents.SignedPublicKeyBundle key_bundle = 1;
*/
public Builder setKeyBundle(org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle value) {
copyOnWrite();
instance.setKeyBundle(value);
return this;
}
/**
* .xmtp.message_contents.SignedPublicKeyBundle key_bundle = 1;
*/
public Builder setKeyBundle(
org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle.Builder builderForValue) {
copyOnWrite();
instance.setKeyBundle(builderForValue.build());
return this;
}
/**
* .xmtp.message_contents.SignedPublicKeyBundle key_bundle = 1;
*/
public Builder mergeKeyBundle(org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle value) {
copyOnWrite();
instance.mergeKeyBundle(value);
return this;
}
/**
* .xmtp.message_contents.SignedPublicKeyBundle key_bundle = 1;
*/
public Builder clearKeyBundle() { copyOnWrite();
instance.clearKeyBundle();
return this;
}
// @@protoc_insertion_point(builder_scope:xmtp.message_contents.ContactBundleV2)
}
@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.Contact.ContactBundleV2();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"keyBundle_",
};
java.lang.String info =
"\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\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.Contact.ContactBundleV2.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.ContactBundleV2)
private static final org.xmtp.proto.message.contents.Contact.ContactBundleV2 DEFAULT_INSTANCE;
static {
ContactBundleV2 defaultInstance = new ContactBundleV2();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
ContactBundleV2.class, defaultInstance);
}
public static org.xmtp.proto.message.contents.Contact.ContactBundleV2 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 ContactBundleOrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.message_contents.ContactBundle)
com.google.protobuf.MessageLiteOrBuilder {
/**
* .xmtp.message_contents.ContactBundleV1 v1 = 1;
* @return Whether the v1 field is set.
*/
boolean hasV1();
/**
* .xmtp.message_contents.ContactBundleV1 v1 = 1;
* @return The v1.
*/
org.xmtp.proto.message.contents.Contact.ContactBundleV1 getV1();
/**
* .xmtp.message_contents.ContactBundleV2 v2 = 2;
* @return Whether the v2 field is set.
*/
boolean hasV2();
/**
* .xmtp.message_contents.ContactBundleV2 v2 = 2;
* @return The v2.
*/
org.xmtp.proto.message.contents.Contact.ContactBundleV2 getV2();
public org.xmtp.proto.message.contents.Contact.ContactBundle.VersionCase getVersionCase();
}
/**
*
* Versioned ContactBundle
*
*
* Protobuf type {@code xmtp.message_contents.ContactBundle}
*/
public static final class ContactBundle extends
com.google.protobuf.GeneratedMessageLite<
ContactBundle, ContactBundle.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.message_contents.ContactBundle)
ContactBundleOrBuilder {
private ContactBundle() {
}
private int versionCase_ = 0;
private java.lang.Object version_;
public enum VersionCase {
V1(1),
V2(2),
VERSION_NOT_SET(0);
private final int value;
private VersionCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static VersionCase valueOf(int value) {
return forNumber(value);
}
public static VersionCase forNumber(int value) {
switch (value) {
case 1: return V1;
case 2: return V2;
case 0: return VERSION_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
@java.lang.Override
public VersionCase
getVersionCase() {
return VersionCase.forNumber(
versionCase_);
}
private void clearVersion() {
versionCase_ = 0;
version_ = null;
}
public static final int V1_FIELD_NUMBER = 1;
/**
* .xmtp.message_contents.ContactBundleV1 v1 = 1;
*/
@java.lang.Override
public boolean hasV1() {
return versionCase_ == 1;
}
/**
* .xmtp.message_contents.ContactBundleV1 v1 = 1;
*/
@java.lang.Override
public org.xmtp.proto.message.contents.Contact.ContactBundleV1 getV1() {
if (versionCase_ == 1) {
return (org.xmtp.proto.message.contents.Contact.ContactBundleV1) version_;
}
return org.xmtp.proto.message.contents.Contact.ContactBundleV1.getDefaultInstance();
}
/**
* .xmtp.message_contents.ContactBundleV1 v1 = 1;
*/
private void setV1(org.xmtp.proto.message.contents.Contact.ContactBundleV1 value) {
value.getClass();
version_ = value;
versionCase_ = 1;
}
/**
* .xmtp.message_contents.ContactBundleV1 v1 = 1;
*/
private void mergeV1(org.xmtp.proto.message.contents.Contact.ContactBundleV1 value) {
value.getClass();
if (versionCase_ == 1 &&
version_ != org.xmtp.proto.message.contents.Contact.ContactBundleV1.getDefaultInstance()) {
version_ = org.xmtp.proto.message.contents.Contact.ContactBundleV1.newBuilder((org.xmtp.proto.message.contents.Contact.ContactBundleV1) version_)
.mergeFrom(value).buildPartial();
} else {
version_ = value;
}
versionCase_ = 1;
}
/**
* .xmtp.message_contents.ContactBundleV1 v1 = 1;
*/
private void clearV1() {
if (versionCase_ == 1) {
versionCase_ = 0;
version_ = null;
}
}
public static final int V2_FIELD_NUMBER = 2;
/**
* .xmtp.message_contents.ContactBundleV2 v2 = 2;
*/
@java.lang.Override
public boolean hasV2() {
return versionCase_ == 2;
}
/**
* .xmtp.message_contents.ContactBundleV2 v2 = 2;
*/
@java.lang.Override
public org.xmtp.proto.message.contents.Contact.ContactBundleV2 getV2() {
if (versionCase_ == 2) {
return (org.xmtp.proto.message.contents.Contact.ContactBundleV2) version_;
}
return org.xmtp.proto.message.contents.Contact.ContactBundleV2.getDefaultInstance();
}
/**
* .xmtp.message_contents.ContactBundleV2 v2 = 2;
*/
private void setV2(org.xmtp.proto.message.contents.Contact.ContactBundleV2 value) {
value.getClass();
version_ = value;
versionCase_ = 2;
}
/**
* .xmtp.message_contents.ContactBundleV2 v2 = 2;
*/
private void mergeV2(org.xmtp.proto.message.contents.Contact.ContactBundleV2 value) {
value.getClass();
if (versionCase_ == 2 &&
version_ != org.xmtp.proto.message.contents.Contact.ContactBundleV2.getDefaultInstance()) {
version_ = org.xmtp.proto.message.contents.Contact.ContactBundleV2.newBuilder((org.xmtp.proto.message.contents.Contact.ContactBundleV2) version_)
.mergeFrom(value).buildPartial();
} else {
version_ = value;
}
versionCase_ = 2;
}
/**
* .xmtp.message_contents.ContactBundleV2 v2 = 2;
*/
private void clearV2() {
if (versionCase_ == 2) {
versionCase_ = 0;
version_ = null;
}
}
public static org.xmtp.proto.message.contents.Contact.ContactBundle 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.Contact.ContactBundle 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.Contact.ContactBundle 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.Contact.ContactBundle 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.Contact.ContactBundle parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static org.xmtp.proto.message.contents.Contact.ContactBundle 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.Contact.ContactBundle 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.Contact.ContactBundle 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.Contact.ContactBundle parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.message.contents.Contact.ContactBundle 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.Contact.ContactBundle 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.Contact.ContactBundle 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.Contact.ContactBundle prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* Versioned ContactBundle
*
*
* Protobuf type {@code xmtp.message_contents.ContactBundle}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.message.contents.Contact.ContactBundle, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.message_contents.ContactBundle)
org.xmtp.proto.message.contents.Contact.ContactBundleOrBuilder {
// Construct using org.xmtp.proto.message.contents.Contact.ContactBundle.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
@java.lang.Override
public VersionCase
getVersionCase() {
return instance.getVersionCase();
}
public Builder clearVersion() {
copyOnWrite();
instance.clearVersion();
return this;
}
/**
* .xmtp.message_contents.ContactBundleV1 v1 = 1;
*/
@java.lang.Override
public boolean hasV1() {
return instance.hasV1();
}
/**
* .xmtp.message_contents.ContactBundleV1 v1 = 1;
*/
@java.lang.Override
public org.xmtp.proto.message.contents.Contact.ContactBundleV1 getV1() {
return instance.getV1();
}
/**
* .xmtp.message_contents.ContactBundleV1 v1 = 1;
*/
public Builder setV1(org.xmtp.proto.message.contents.Contact.ContactBundleV1 value) {
copyOnWrite();
instance.setV1(value);
return this;
}
/**
* .xmtp.message_contents.ContactBundleV1 v1 = 1;
*/
public Builder setV1(
org.xmtp.proto.message.contents.Contact.ContactBundleV1.Builder builderForValue) {
copyOnWrite();
instance.setV1(builderForValue.build());
return this;
}
/**
* .xmtp.message_contents.ContactBundleV1 v1 = 1;
*/
public Builder mergeV1(org.xmtp.proto.message.contents.Contact.ContactBundleV1 value) {
copyOnWrite();
instance.mergeV1(value);
return this;
}
/**
* .xmtp.message_contents.ContactBundleV1 v1 = 1;
*/
public Builder clearV1() {
copyOnWrite();
instance.clearV1();
return this;
}
/**
* .xmtp.message_contents.ContactBundleV2 v2 = 2;
*/
@java.lang.Override
public boolean hasV2() {
return instance.hasV2();
}
/**
* .xmtp.message_contents.ContactBundleV2 v2 = 2;
*/
@java.lang.Override
public org.xmtp.proto.message.contents.Contact.ContactBundleV2 getV2() {
return instance.getV2();
}
/**
* .xmtp.message_contents.ContactBundleV2 v2 = 2;
*/
public Builder setV2(org.xmtp.proto.message.contents.Contact.ContactBundleV2 value) {
copyOnWrite();
instance.setV2(value);
return this;
}
/**
* .xmtp.message_contents.ContactBundleV2 v2 = 2;
*/
public Builder setV2(
org.xmtp.proto.message.contents.Contact.ContactBundleV2.Builder builderForValue) {
copyOnWrite();
instance.setV2(builderForValue.build());
return this;
}
/**
* .xmtp.message_contents.ContactBundleV2 v2 = 2;
*/
public Builder mergeV2(org.xmtp.proto.message.contents.Contact.ContactBundleV2 value) {
copyOnWrite();
instance.mergeV2(value);
return this;
}
/**
* .xmtp.message_contents.ContactBundleV2 v2 = 2;
*/
public Builder clearV2() {
copyOnWrite();
instance.clearV2();
return this;
}
// @@protoc_insertion_point(builder_scope:xmtp.message_contents.ContactBundle)
}
@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.Contact.ContactBundle();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"version_",
"versionCase_",
org.xmtp.proto.message.contents.Contact.ContactBundleV1.class,
org.xmtp.proto.message.contents.Contact.ContactBundleV2.class,
};
java.lang.String info =
"\u0000\u0002\u0001\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001<\u0000\u0002<" +
"\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.Contact.ContactBundle.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.ContactBundle)
private static final org.xmtp.proto.message.contents.Contact.ContactBundle DEFAULT_INSTANCE;
static {
ContactBundle defaultInstance = new ContactBundle();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
ContactBundle.class, defaultInstance);
}
public static org.xmtp.proto.message.contents.Contact.ContactBundle 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)
}