All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xmtp.proto.mls.message.contents.Content Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: mls/message_contents/content.proto

package org.xmtp.proto.mls.message.contents;

public final class Content {
  private Content() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  /**
   * 
   * Recognized compression algorithms
   * protolint:disable ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH
   * 
* * Protobuf enum {@code xmtp.mls.message_contents.Compression} */ public enum Compression implements com.google.protobuf.Internal.EnumLite { /** * COMPRESSION_DEFLATE = 0; */ COMPRESSION_DEFLATE(0), /** * COMPRESSION_GZIP = 1; */ COMPRESSION_GZIP(1), UNRECOGNIZED(-1), ; /** * COMPRESSION_DEFLATE = 0; */ public static final int COMPRESSION_DEFLATE_VALUE = 0; /** * COMPRESSION_GZIP = 1; */ public static final int COMPRESSION_GZIP_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 Compression valueOf(int value) { return forNumber(value); } public static Compression forNumber(int value) { switch (value) { case 0: return COMPRESSION_DEFLATE; case 1: return COMPRESSION_GZIP; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Compression> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { @java.lang.Override public Compression findValueByNumber(int number) { return Compression.forNumber(number); } }; public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier() { return CompressionVerifier.INSTANCE; } private static final class CompressionVerifier implements com.google.protobuf.Internal.EnumVerifier { static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new CompressionVerifier(); @java.lang.Override public boolean isInRange(int number) { return Compression.forNumber(number) != null; } }; private final int value; private Compression(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:xmtp.mls.message_contents.Compression) } public interface ContentTypeIdOrBuilder extends // @@protoc_insertion_point(interface_extends:xmtp.mls.message_contents.ContentTypeId) com.google.protobuf.MessageLiteOrBuilder { /** *
     * authority governing this content type
     * 
* * string authority_id = 1; * @return The authorityId. */ java.lang.String getAuthorityId(); /** *
     * authority governing this content type
     * 
* * string authority_id = 1; * @return The bytes for authorityId. */ com.google.protobuf.ByteString getAuthorityIdBytes(); /** *
     * type identifier
     * 
* * string type_id = 2; * @return The typeId. */ java.lang.String getTypeId(); /** *
     * type identifier
     * 
* * string type_id = 2; * @return The bytes for typeId. */ com.google.protobuf.ByteString getTypeIdBytes(); /** *
     * major version of the type
     * 
* * uint32 version_major = 3; * @return The versionMajor. */ int getVersionMajor(); /** *
     * minor version of the type
     * 
* * uint32 version_minor = 4; * @return The versionMinor. */ int getVersionMinor(); } /** *
   * ContentTypeId is used to identify the type of content stored in a Message.
   * 
* * Protobuf type {@code xmtp.mls.message_contents.ContentTypeId} */ public static final class ContentTypeId extends com.google.protobuf.GeneratedMessageLite< ContentTypeId, ContentTypeId.Builder> implements // @@protoc_insertion_point(message_implements:xmtp.mls.message_contents.ContentTypeId) ContentTypeIdOrBuilder { private ContentTypeId() { authorityId_ = ""; typeId_ = ""; } public static final int AUTHORITY_ID_FIELD_NUMBER = 1; private java.lang.String authorityId_; /** *
     * authority governing this content type
     * 
* * string authority_id = 1; * @return The authorityId. */ @java.lang.Override public java.lang.String getAuthorityId() { return authorityId_; } /** *
     * authority governing this content type
     * 
* * string authority_id = 1; * @return The bytes for authorityId. */ @java.lang.Override public com.google.protobuf.ByteString getAuthorityIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(authorityId_); } /** *
     * authority governing this content type
     * 
* * string authority_id = 1; * @param value The authorityId to set. */ private void setAuthorityId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); authorityId_ = value; } /** *
     * authority governing this content type
     * 
* * string authority_id = 1; */ private void clearAuthorityId() { authorityId_ = getDefaultInstance().getAuthorityId(); } /** *
     * authority governing this content type
     * 
* * string authority_id = 1; * @param value The bytes for authorityId to set. */ private void setAuthorityIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); authorityId_ = value.toStringUtf8(); } public static final int TYPE_ID_FIELD_NUMBER = 2; private java.lang.String typeId_; /** *
     * type identifier
     * 
* * string type_id = 2; * @return The typeId. */ @java.lang.Override public java.lang.String getTypeId() { return typeId_; } /** *
     * type identifier
     * 
* * string type_id = 2; * @return The bytes for typeId. */ @java.lang.Override public com.google.protobuf.ByteString getTypeIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(typeId_); } /** *
     * type identifier
     * 
* * string type_id = 2; * @param value The typeId to set. */ private void setTypeId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); typeId_ = value; } /** *
     * type identifier
     * 
* * string type_id = 2; */ private void clearTypeId() { typeId_ = getDefaultInstance().getTypeId(); } /** *
     * type identifier
     * 
* * string type_id = 2; * @param value The bytes for typeId to set. */ private void setTypeIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); typeId_ = value.toStringUtf8(); } public static final int VERSION_MAJOR_FIELD_NUMBER = 3; private int versionMajor_; /** *
     * major version of the type
     * 
* * uint32 version_major = 3; * @return The versionMajor. */ @java.lang.Override public int getVersionMajor() { return versionMajor_; } /** *
     * major version of the type
     * 
* * uint32 version_major = 3; * @param value The versionMajor to set. */ private void setVersionMajor(int value) { versionMajor_ = value; } /** *
     * major version of the type
     * 
* * uint32 version_major = 3; */ private void clearVersionMajor() { versionMajor_ = 0; } public static final int VERSION_MINOR_FIELD_NUMBER = 4; private int versionMinor_; /** *
     * minor version of the type
     * 
* * uint32 version_minor = 4; * @return The versionMinor. */ @java.lang.Override public int getVersionMinor() { return versionMinor_; } /** *
     * minor version of the type
     * 
* * uint32 version_minor = 4; * @param value The versionMinor to set. */ private void setVersionMinor(int value) { versionMinor_ = value; } /** *
     * minor version of the type
     * 
* * uint32 version_minor = 4; */ private void clearVersionMinor() { versionMinor_ = 0; } public static org.xmtp.proto.mls.message.contents.Content.ContentTypeId 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.Content.ContentTypeId 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.Content.ContentTypeId 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.Content.ContentTypeId 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.Content.ContentTypeId 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.Content.ContentTypeId 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.Content.ContentTypeId 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.Content.ContentTypeId 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.Content.ContentTypeId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.mls.message.contents.Content.ContentTypeId 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.Content.ContentTypeId 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.Content.ContentTypeId 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.Content.ContentTypeId prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * ContentTypeId is used to identify the type of content stored in a Message.
     * 
* * Protobuf type {@code xmtp.mls.message_contents.ContentTypeId} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.xmtp.proto.mls.message.contents.Content.ContentTypeId, Builder> implements // @@protoc_insertion_point(builder_implements:xmtp.mls.message_contents.ContentTypeId) org.xmtp.proto.mls.message.contents.Content.ContentTypeIdOrBuilder { // Construct using org.xmtp.proto.mls.message.contents.Content.ContentTypeId.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
       * authority governing this content type
       * 
* * string authority_id = 1; * @return The authorityId. */ @java.lang.Override public java.lang.String getAuthorityId() { return instance.getAuthorityId(); } /** *
       * authority governing this content type
       * 
* * string authority_id = 1; * @return The bytes for authorityId. */ @java.lang.Override public com.google.protobuf.ByteString getAuthorityIdBytes() { return instance.getAuthorityIdBytes(); } /** *
       * authority governing this content type
       * 
* * string authority_id = 1; * @param value The authorityId to set. * @return This builder for chaining. */ public Builder setAuthorityId( java.lang.String value) { copyOnWrite(); instance.setAuthorityId(value); return this; } /** *
       * authority governing this content type
       * 
* * string authority_id = 1; * @return This builder for chaining. */ public Builder clearAuthorityId() { copyOnWrite(); instance.clearAuthorityId(); return this; } /** *
       * authority governing this content type
       * 
* * string authority_id = 1; * @param value The bytes for authorityId to set. * @return This builder for chaining. */ public Builder setAuthorityIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setAuthorityIdBytes(value); return this; } /** *
       * type identifier
       * 
* * string type_id = 2; * @return The typeId. */ @java.lang.Override public java.lang.String getTypeId() { return instance.getTypeId(); } /** *
       * type identifier
       * 
* * string type_id = 2; * @return The bytes for typeId. */ @java.lang.Override public com.google.protobuf.ByteString getTypeIdBytes() { return instance.getTypeIdBytes(); } /** *
       * type identifier
       * 
* * string type_id = 2; * @param value The typeId to set. * @return This builder for chaining. */ public Builder setTypeId( java.lang.String value) { copyOnWrite(); instance.setTypeId(value); return this; } /** *
       * type identifier
       * 
* * string type_id = 2; * @return This builder for chaining. */ public Builder clearTypeId() { copyOnWrite(); instance.clearTypeId(); return this; } /** *
       * type identifier
       * 
* * string type_id = 2; * @param value The bytes for typeId to set. * @return This builder for chaining. */ public Builder setTypeIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setTypeIdBytes(value); return this; } /** *
       * major version of the type
       * 
* * uint32 version_major = 3; * @return The versionMajor. */ @java.lang.Override public int getVersionMajor() { return instance.getVersionMajor(); } /** *
       * major version of the type
       * 
* * uint32 version_major = 3; * @param value The versionMajor to set. * @return This builder for chaining. */ public Builder setVersionMajor(int value) { copyOnWrite(); instance.setVersionMajor(value); return this; } /** *
       * major version of the type
       * 
* * uint32 version_major = 3; * @return This builder for chaining. */ public Builder clearVersionMajor() { copyOnWrite(); instance.clearVersionMajor(); return this; } /** *
       * minor version of the type
       * 
* * uint32 version_minor = 4; * @return The versionMinor. */ @java.lang.Override public int getVersionMinor() { return instance.getVersionMinor(); } /** *
       * minor version of the type
       * 
* * uint32 version_minor = 4; * @param value The versionMinor to set. * @return This builder for chaining. */ public Builder setVersionMinor(int value) { copyOnWrite(); instance.setVersionMinor(value); return this; } /** *
       * minor version of the type
       * 
* * uint32 version_minor = 4; * @return This builder for chaining. */ public Builder clearVersionMinor() { copyOnWrite(); instance.clearVersionMinor(); return this; } // @@protoc_insertion_point(builder_scope:xmtp.mls.message_contents.ContentTypeId) } @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.Content.ContentTypeId(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "authorityId_", "typeId_", "versionMajor_", "versionMinor_", }; java.lang.String info = "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u0208\u0002\u0208" + "\u0003\u000b\u0004\u000b"; 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.Content.ContentTypeId.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.ContentTypeId) private static final org.xmtp.proto.mls.message.contents.Content.ContentTypeId DEFAULT_INSTANCE; static { ContentTypeId defaultInstance = new ContentTypeId(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( ContentTypeId.class, defaultInstance); } public static org.xmtp.proto.mls.message.contents.Content.ContentTypeId 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 EncodedContentOrBuilder extends // @@protoc_insertion_point(interface_extends:xmtp.mls.message_contents.EncodedContent) com.google.protobuf.MessageLiteOrBuilder { /** *
     * content type identifier used to match the payload with
     * the correct decoding machinery
     * 
* * .xmtp.mls.message_contents.ContentTypeId type = 1; * @return Whether the type field is set. */ boolean hasType(); /** *
     * content type identifier used to match the payload with
     * the correct decoding machinery
     * 
* * .xmtp.mls.message_contents.ContentTypeId type = 1; * @return The type. */ org.xmtp.proto.mls.message.contents.Content.ContentTypeId getType(); /** *
     * optional encoding parameters required to correctly decode the content
     * 
* * map<string, string> parameters = 2; */ int getParametersCount(); /** *
     * optional encoding parameters required to correctly decode the content
     * 
* * map<string, string> parameters = 2; */ boolean containsParameters( java.lang.String key); /** * Use {@link #getParametersMap()} instead. */ @java.lang.Deprecated java.util.Map getParameters(); /** *
     * optional encoding parameters required to correctly decode the content
     * 
* * map<string, string> parameters = 2; */ java.util.Map getParametersMap(); /** *
     * optional encoding parameters required to correctly decode the content
     * 
* * map<string, string> parameters = 2; */ /* nullable */ java.lang.String getParametersOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * optional encoding parameters required to correctly decode the content
     * 
* * map<string, string> parameters = 2; */ java.lang.String getParametersOrThrow( java.lang.String key); /** *
     * optional fallback description of the content that can be used in case
     * the client cannot decode or render the content
     * 
* * optional string fallback = 3; * @return Whether the fallback field is set. */ boolean hasFallback(); /** *
     * optional fallback description of the content that can be used in case
     * the client cannot decode or render the content
     * 
* * optional string fallback = 3; * @return The fallback. */ java.lang.String getFallback(); /** *
     * optional fallback description of the content that can be used in case
     * the client cannot decode or render the content
     * 
* * optional string fallback = 3; * @return The bytes for fallback. */ com.google.protobuf.ByteString getFallbackBytes(); /** *
     * optional compression; the value indicates algorithm used to
     * compress the encoded content bytes
     * 
* * optional .xmtp.mls.message_contents.Compression compression = 5; * @return Whether the compression field is set. */ boolean hasCompression(); /** *
     * optional compression; the value indicates algorithm used to
     * compress the encoded content bytes
     * 
* * optional .xmtp.mls.message_contents.Compression compression = 5; * @return The enum numeric value on the wire for compression. */ int getCompressionValue(); /** *
     * optional compression; the value indicates algorithm used to
     * compress the encoded content bytes
     * 
* * optional .xmtp.mls.message_contents.Compression compression = 5; * @return The compression. */ org.xmtp.proto.mls.message.contents.Content.Compression getCompression(); /** *
     * encoded content itself
     * 
* * bytes content = 4; * @return The content. */ com.google.protobuf.ByteString getContent(); } /** *
   * EncodedContent bundles the content with metadata identifying its type
   * and parameters required for correct decoding and presentation of the content.
   * 
* * Protobuf type {@code xmtp.mls.message_contents.EncodedContent} */ public static final class EncodedContent extends com.google.protobuf.GeneratedMessageLite< EncodedContent, EncodedContent.Builder> implements // @@protoc_insertion_point(message_implements:xmtp.mls.message_contents.EncodedContent) EncodedContentOrBuilder { private EncodedContent() { fallback_ = ""; content_ = com.google.protobuf.ByteString.EMPTY; } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private org.xmtp.proto.mls.message.contents.Content.ContentTypeId type_; /** *
     * content type identifier used to match the payload with
     * the correct decoding machinery
     * 
* * .xmtp.mls.message_contents.ContentTypeId type = 1; */ @java.lang.Override public boolean hasType() { return type_ != null; } /** *
     * content type identifier used to match the payload with
     * the correct decoding machinery
     * 
* * .xmtp.mls.message_contents.ContentTypeId type = 1; */ @java.lang.Override public org.xmtp.proto.mls.message.contents.Content.ContentTypeId getType() { return type_ == null ? org.xmtp.proto.mls.message.contents.Content.ContentTypeId.getDefaultInstance() : type_; } /** *
     * content type identifier used to match the payload with
     * the correct decoding machinery
     * 
* * .xmtp.mls.message_contents.ContentTypeId type = 1; */ private void setType(org.xmtp.proto.mls.message.contents.Content.ContentTypeId value) { value.getClass(); type_ = value; } /** *
     * content type identifier used to match the payload with
     * the correct decoding machinery
     * 
* * .xmtp.mls.message_contents.ContentTypeId type = 1; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeType(org.xmtp.proto.mls.message.contents.Content.ContentTypeId value) { value.getClass(); if (type_ != null && type_ != org.xmtp.proto.mls.message.contents.Content.ContentTypeId.getDefaultInstance()) { type_ = org.xmtp.proto.mls.message.contents.Content.ContentTypeId.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } } /** *
     * content type identifier used to match the payload with
     * the correct decoding machinery
     * 
* * .xmtp.mls.message_contents.ContentTypeId type = 1; */ private void clearType() { type_ = null; } public static final int PARAMETERS_FIELD_NUMBER = 2; private static final class ParametersDefaultEntryHolder { static final com.google.protobuf.MapEntryLite< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntryLite .newDefaultInstance( com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapFieldLite< java.lang.String, java.lang.String> parameters_ = com.google.protobuf.MapFieldLite.emptyMapField(); private com.google.protobuf.MapFieldLite internalGetParameters() { return parameters_; } private com.google.protobuf.MapFieldLite internalGetMutableParameters() { if (!parameters_.isMutable()) { parameters_ = parameters_.mutableCopy(); } return parameters_; } @java.lang.Override public int getParametersCount() { return internalGetParameters().size(); } /** *
     * optional encoding parameters required to correctly decode the content
     * 
* * map<string, string> parameters = 2; */ @java.lang.Override public boolean containsParameters( java.lang.String key) { java.lang.Class keyClass = key.getClass(); return internalGetParameters().containsKey(key); } /** * Use {@link #getParametersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParameters() { return getParametersMap(); } /** *
     * optional encoding parameters required to correctly decode the content
     * 
* * map<string, string> parameters = 2; */ @java.lang.Override public java.util.Map getParametersMap() { return java.util.Collections.unmodifiableMap( internalGetParameters()); } /** *
     * optional encoding parameters required to correctly decode the content
     * 
* * map<string, string> parameters = 2; */ @java.lang.Override public java.lang.String getParametersOrDefault( java.lang.String key, java.lang.String defaultValue) { java.lang.Class keyClass = key.getClass(); java.util.Map map = internalGetParameters(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * optional encoding parameters required to correctly decode the content
     * 
* * map<string, string> parameters = 2; */ @java.lang.Override public java.lang.String getParametersOrThrow( java.lang.String key) { java.lang.Class keyClass = key.getClass(); java.util.Map map = internalGetParameters(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } /** *
     * optional encoding parameters required to correctly decode the content
     * 
* * map<string, string> parameters = 2; */ private java.util.Map getMutableParametersMap() { return internalGetMutableParameters(); } public static final int FALLBACK_FIELD_NUMBER = 3; private java.lang.String fallback_; /** *
     * optional fallback description of the content that can be used in case
     * the client cannot decode or render the content
     * 
* * optional string fallback = 3; * @return Whether the fallback field is set. */ @java.lang.Override public boolean hasFallback() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * optional fallback description of the content that can be used in case
     * the client cannot decode or render the content
     * 
* * optional string fallback = 3; * @return The fallback. */ @java.lang.Override public java.lang.String getFallback() { return fallback_; } /** *
     * optional fallback description of the content that can be used in case
     * the client cannot decode or render the content
     * 
* * optional string fallback = 3; * @return The bytes for fallback. */ @java.lang.Override public com.google.protobuf.ByteString getFallbackBytes() { return com.google.protobuf.ByteString.copyFromUtf8(fallback_); } /** *
     * optional fallback description of the content that can be used in case
     * the client cannot decode or render the content
     * 
* * optional string fallback = 3; * @param value The fallback to set. */ private void setFallback( java.lang.String value) { java.lang.Class valueClass = value.getClass(); bitField0_ |= 0x00000001; fallback_ = value; } /** *
     * optional fallback description of the content that can be used in case
     * the client cannot decode or render the content
     * 
* * optional string fallback = 3; */ private void clearFallback() { bitField0_ = (bitField0_ & ~0x00000001); fallback_ = getDefaultInstance().getFallback(); } /** *
     * optional fallback description of the content that can be used in case
     * the client cannot decode or render the content
     * 
* * optional string fallback = 3; * @param value The bytes for fallback to set. */ private void setFallbackBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); fallback_ = value.toStringUtf8(); bitField0_ |= 0x00000001; } public static final int COMPRESSION_FIELD_NUMBER = 5; private int compression_; /** *
     * optional compression; the value indicates algorithm used to
     * compress the encoded content bytes
     * 
* * optional .xmtp.mls.message_contents.Compression compression = 5; * @return Whether the compression field is set. */ @java.lang.Override public boolean hasCompression() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * optional compression; the value indicates algorithm used to
     * compress the encoded content bytes
     * 
* * optional .xmtp.mls.message_contents.Compression compression = 5; * @return The enum numeric value on the wire for compression. */ @java.lang.Override public int getCompressionValue() { return compression_; } /** *
     * optional compression; the value indicates algorithm used to
     * compress the encoded content bytes
     * 
* * optional .xmtp.mls.message_contents.Compression compression = 5; * @return The compression. */ @java.lang.Override public org.xmtp.proto.mls.message.contents.Content.Compression getCompression() { org.xmtp.proto.mls.message.contents.Content.Compression result = org.xmtp.proto.mls.message.contents.Content.Compression.forNumber(compression_); return result == null ? org.xmtp.proto.mls.message.contents.Content.Compression.UNRECOGNIZED : result; } /** *
     * optional compression; the value indicates algorithm used to
     * compress the encoded content bytes
     * 
* * optional .xmtp.mls.message_contents.Compression compression = 5; * @param value The enum numeric value on the wire for compression to set. */ private void setCompressionValue(int value) { bitField0_ |= 0x00000002; compression_ = value; } /** *
     * optional compression; the value indicates algorithm used to
     * compress the encoded content bytes
     * 
* * optional .xmtp.mls.message_contents.Compression compression = 5; * @param value The compression to set. */ private void setCompression(org.xmtp.proto.mls.message.contents.Content.Compression value) { compression_ = value.getNumber(); bitField0_ |= 0x00000002; } /** *
     * optional compression; the value indicates algorithm used to
     * compress the encoded content bytes
     * 
* * optional .xmtp.mls.message_contents.Compression compression = 5; */ private void clearCompression() { bitField0_ = (bitField0_ & ~0x00000002); compression_ = 0; } public static final int CONTENT_FIELD_NUMBER = 4; private com.google.protobuf.ByteString content_; /** *
     * encoded content itself
     * 
* * bytes content = 4; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { return content_; } /** *
     * encoded content itself
     * 
* * bytes content = 4; * @param value The content to set. */ private void setContent(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); content_ = value; } /** *
     * encoded content itself
     * 
* * bytes content = 4; */ private void clearContent() { content_ = getDefaultInstance().getContent(); } public static org.xmtp.proto.mls.message.contents.Content.EncodedContent 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.Content.EncodedContent 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.Content.EncodedContent 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.Content.EncodedContent 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.Content.EncodedContent 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.Content.EncodedContent 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.Content.EncodedContent 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.Content.EncodedContent 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.Content.EncodedContent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.mls.message.contents.Content.EncodedContent 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.Content.EncodedContent 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.Content.EncodedContent 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.Content.EncodedContent prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * EncodedContent bundles the content with metadata identifying its type
     * and parameters required for correct decoding and presentation of the content.
     * 
* * Protobuf type {@code xmtp.mls.message_contents.EncodedContent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.xmtp.proto.mls.message.contents.Content.EncodedContent, Builder> implements // @@protoc_insertion_point(builder_implements:xmtp.mls.message_contents.EncodedContent) org.xmtp.proto.mls.message.contents.Content.EncodedContentOrBuilder { // Construct using org.xmtp.proto.mls.message.contents.Content.EncodedContent.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
       * content type identifier used to match the payload with
       * the correct decoding machinery
       * 
* * .xmtp.mls.message_contents.ContentTypeId type = 1; */ @java.lang.Override public boolean hasType() { return instance.hasType(); } /** *
       * content type identifier used to match the payload with
       * the correct decoding machinery
       * 
* * .xmtp.mls.message_contents.ContentTypeId type = 1; */ @java.lang.Override public org.xmtp.proto.mls.message.contents.Content.ContentTypeId getType() { return instance.getType(); } /** *
       * content type identifier used to match the payload with
       * the correct decoding machinery
       * 
* * .xmtp.mls.message_contents.ContentTypeId type = 1; */ public Builder setType(org.xmtp.proto.mls.message.contents.Content.ContentTypeId value) { copyOnWrite(); instance.setType(value); return this; } /** *
       * content type identifier used to match the payload with
       * the correct decoding machinery
       * 
* * .xmtp.mls.message_contents.ContentTypeId type = 1; */ public Builder setType( org.xmtp.proto.mls.message.contents.Content.ContentTypeId.Builder builderForValue) { copyOnWrite(); instance.setType(builderForValue.build()); return this; } /** *
       * content type identifier used to match the payload with
       * the correct decoding machinery
       * 
* * .xmtp.mls.message_contents.ContentTypeId type = 1; */ public Builder mergeType(org.xmtp.proto.mls.message.contents.Content.ContentTypeId value) { copyOnWrite(); instance.mergeType(value); return this; } /** *
       * content type identifier used to match the payload with
       * the correct decoding machinery
       * 
* * .xmtp.mls.message_contents.ContentTypeId type = 1; */ public Builder clearType() { copyOnWrite(); instance.clearType(); return this; } @java.lang.Override public int getParametersCount() { return instance.getParametersMap().size(); } /** *
       * optional encoding parameters required to correctly decode the content
       * 
* * map<string, string> parameters = 2; */ @java.lang.Override public boolean containsParameters( java.lang.String key) { java.lang.Class keyClass = key.getClass(); return instance.getParametersMap().containsKey(key); } public Builder clearParameters() { copyOnWrite(); instance.getMutableParametersMap().clear(); return this; } /** *
       * optional encoding parameters required to correctly decode the content
       * 
* * map<string, string> parameters = 2; */ public Builder removeParameters( java.lang.String key) { java.lang.Class keyClass = key.getClass(); copyOnWrite(); instance.getMutableParametersMap().remove(key); return this; } /** * Use {@link #getParametersMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getParameters() { return getParametersMap(); } /** *
       * optional encoding parameters required to correctly decode the content
       * 
* * map<string, string> parameters = 2; */ @java.lang.Override public java.util.Map getParametersMap() { return java.util.Collections.unmodifiableMap( instance.getParametersMap()); } /** *
       * optional encoding parameters required to correctly decode the content
       * 
* * map<string, string> parameters = 2; */ @java.lang.Override public java.lang.String getParametersOrDefault( java.lang.String key, java.lang.String defaultValue) { java.lang.Class keyClass = key.getClass(); java.util.Map map = instance.getParametersMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * optional encoding parameters required to correctly decode the content
       * 
* * map<string, string> parameters = 2; */ @java.lang.Override public java.lang.String getParametersOrThrow( java.lang.String key) { java.lang.Class keyClass = key.getClass(); java.util.Map map = instance.getParametersMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } /** *
       * optional encoding parameters required to correctly decode the content
       * 
* * map<string, string> parameters = 2; */ public Builder putParameters( java.lang.String key, java.lang.String value) { java.lang.Class keyClass = key.getClass(); java.lang.Class valueClass = value.getClass(); copyOnWrite(); instance.getMutableParametersMap().put(key, value); return this; } /** *
       * optional encoding parameters required to correctly decode the content
       * 
* * map<string, string> parameters = 2; */ public Builder putAllParameters( java.util.Map values) { copyOnWrite(); instance.getMutableParametersMap().putAll(values); return this; } /** *
       * optional fallback description of the content that can be used in case
       * the client cannot decode or render the content
       * 
* * optional string fallback = 3; * @return Whether the fallback field is set. */ @java.lang.Override public boolean hasFallback() { return instance.hasFallback(); } /** *
       * optional fallback description of the content that can be used in case
       * the client cannot decode or render the content
       * 
* * optional string fallback = 3; * @return The fallback. */ @java.lang.Override public java.lang.String getFallback() { return instance.getFallback(); } /** *
       * optional fallback description of the content that can be used in case
       * the client cannot decode or render the content
       * 
* * optional string fallback = 3; * @return The bytes for fallback. */ @java.lang.Override public com.google.protobuf.ByteString getFallbackBytes() { return instance.getFallbackBytes(); } /** *
       * optional fallback description of the content that can be used in case
       * the client cannot decode or render the content
       * 
* * optional string fallback = 3; * @param value The fallback to set. * @return This builder for chaining. */ public Builder setFallback( java.lang.String value) { copyOnWrite(); instance.setFallback(value); return this; } /** *
       * optional fallback description of the content that can be used in case
       * the client cannot decode or render the content
       * 
* * optional string fallback = 3; * @return This builder for chaining. */ public Builder clearFallback() { copyOnWrite(); instance.clearFallback(); return this; } /** *
       * optional fallback description of the content that can be used in case
       * the client cannot decode or render the content
       * 
* * optional string fallback = 3; * @param value The bytes for fallback to set. * @return This builder for chaining. */ public Builder setFallbackBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setFallbackBytes(value); return this; } /** *
       * optional compression; the value indicates algorithm used to
       * compress the encoded content bytes
       * 
* * optional .xmtp.mls.message_contents.Compression compression = 5; * @return Whether the compression field is set. */ @java.lang.Override public boolean hasCompression() { return instance.hasCompression(); } /** *
       * optional compression; the value indicates algorithm used to
       * compress the encoded content bytes
       * 
* * optional .xmtp.mls.message_contents.Compression compression = 5; * @return The enum numeric value on the wire for compression. */ @java.lang.Override public int getCompressionValue() { return instance.getCompressionValue(); } /** *
       * optional compression; the value indicates algorithm used to
       * compress the encoded content bytes
       * 
* * optional .xmtp.mls.message_contents.Compression compression = 5; * @param value The compression to set. * @return This builder for chaining. */ public Builder setCompressionValue(int value) { copyOnWrite(); instance.setCompressionValue(value); return this; } /** *
       * optional compression; the value indicates algorithm used to
       * compress the encoded content bytes
       * 
* * optional .xmtp.mls.message_contents.Compression compression = 5; * @return The compression. */ @java.lang.Override public org.xmtp.proto.mls.message.contents.Content.Compression getCompression() { return instance.getCompression(); } /** *
       * optional compression; the value indicates algorithm used to
       * compress the encoded content bytes
       * 
* * optional .xmtp.mls.message_contents.Compression compression = 5; * @param value The enum numeric value on the wire for compression to set. * @return This builder for chaining. */ public Builder setCompression(org.xmtp.proto.mls.message.contents.Content.Compression value) { copyOnWrite(); instance.setCompression(value); return this; } /** *
       * optional compression; the value indicates algorithm used to
       * compress the encoded content bytes
       * 
* * optional .xmtp.mls.message_contents.Compression compression = 5; * @return This builder for chaining. */ public Builder clearCompression() { copyOnWrite(); instance.clearCompression(); return this; } /** *
       * encoded content itself
       * 
* * bytes content = 4; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { return instance.getContent(); } /** *
       * encoded content itself
       * 
* * bytes content = 4; * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setContent(value); return this; } /** *
       * encoded content itself
       * 
* * bytes content = 4; * @return This builder for chaining. */ public Builder clearContent() { copyOnWrite(); instance.clearContent(); return this; } // @@protoc_insertion_point(builder_scope:xmtp.mls.message_contents.EncodedContent) } @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.Content.EncodedContent(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "bitField0_", "type_", "parameters_", ParametersDefaultEntryHolder.defaultEntry, "fallback_", "content_", "compression_", }; java.lang.String info = "\u0000\u0005\u0000\u0001\u0001\u0005\u0005\u0001\u0000\u0000\u0001\t\u00022\u0003" + "\u1208\u0000\u0004\n\u0005\u100c\u0001"; 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.Content.EncodedContent.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.EncodedContent) private static final org.xmtp.proto.mls.message.contents.Content.EncodedContent DEFAULT_INSTANCE; static { EncodedContent defaultInstance = new EncodedContent(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( EncodedContent.class, defaultInstance); } public static org.xmtp.proto.mls.message.contents.Content.EncodedContent 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 PlaintextEnvelopeOrBuilder extends // @@protoc_insertion_point(interface_extends:xmtp.mls.message_contents.PlaintextEnvelope) com.google.protobuf.MessageLiteOrBuilder { /** * .xmtp.mls.message_contents.PlaintextEnvelope.V1 v1 = 1; * @return Whether the v1 field is set. */ boolean hasV1(); /** * .xmtp.mls.message_contents.PlaintextEnvelope.V1 v1 = 1; * @return The v1. */ org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1 getV1(); /** * .xmtp.mls.message_contents.PlaintextEnvelope.V2 v2 = 2; * @return Whether the v2 field is set. */ boolean hasV2(); /** * .xmtp.mls.message_contents.PlaintextEnvelope.V2 v2 = 2; * @return The v2. */ org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2 getV2(); public org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.ContentCase getContentCase(); } /** *
   * A PlaintextEnvelope is the outermost payload that gets encrypted by MLS
   * 
* * Protobuf type {@code xmtp.mls.message_contents.PlaintextEnvelope} */ public static final class PlaintextEnvelope extends com.google.protobuf.GeneratedMessageLite< PlaintextEnvelope, PlaintextEnvelope.Builder> implements // @@protoc_insertion_point(message_implements:xmtp.mls.message_contents.PlaintextEnvelope) PlaintextEnvelopeOrBuilder { private PlaintextEnvelope() { } public interface V1OrBuilder extends // @@protoc_insertion_point(interface_extends:xmtp.mls.message_contents.PlaintextEnvelope.V1) com.google.protobuf.MessageLiteOrBuilder { /** *
       * Expected to be EncodedContent
       * 
* * bytes content = 1; * @return The content. */ com.google.protobuf.ByteString getContent(); /** *
       * A unique value that can be used to ensure that the same content can
       * produce different hashes. May be the sender timestamp.
       * 
* * string idempotency_key = 2; * @return The idempotencyKey. */ java.lang.String getIdempotencyKey(); /** *
       * A unique value that can be used to ensure that the same content can
       * produce different hashes. May be the sender timestamp.
       * 
* * string idempotency_key = 2; * @return The bytes for idempotencyKey. */ com.google.protobuf.ByteString getIdempotencyKeyBytes(); } /** *
     * Version 1 of the encrypted envelope
     * 
* * Protobuf type {@code xmtp.mls.message_contents.PlaintextEnvelope.V1} */ public static final class V1 extends com.google.protobuf.GeneratedMessageLite< V1, V1.Builder> implements // @@protoc_insertion_point(message_implements:xmtp.mls.message_contents.PlaintextEnvelope.V1) V1OrBuilder { private V1() { content_ = com.google.protobuf.ByteString.EMPTY; idempotencyKey_ = ""; } public static final int CONTENT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString content_; /** *
       * Expected to be EncodedContent
       * 
* * bytes content = 1; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { return content_; } /** *
       * Expected to be EncodedContent
       * 
* * bytes content = 1; * @param value The content to set. */ private void setContent(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); content_ = value; } /** *
       * Expected to be EncodedContent
       * 
* * bytes content = 1; */ private void clearContent() { content_ = getDefaultInstance().getContent(); } public static final int IDEMPOTENCY_KEY_FIELD_NUMBER = 2; private java.lang.String idempotencyKey_; /** *
       * A unique value that can be used to ensure that the same content can
       * produce different hashes. May be the sender timestamp.
       * 
* * string idempotency_key = 2; * @return The idempotencyKey. */ @java.lang.Override public java.lang.String getIdempotencyKey() { return idempotencyKey_; } /** *
       * A unique value that can be used to ensure that the same content can
       * produce different hashes. May be the sender timestamp.
       * 
* * string idempotency_key = 2; * @return The bytes for idempotencyKey. */ @java.lang.Override public com.google.protobuf.ByteString getIdempotencyKeyBytes() { return com.google.protobuf.ByteString.copyFromUtf8(idempotencyKey_); } /** *
       * A unique value that can be used to ensure that the same content can
       * produce different hashes. May be the sender timestamp.
       * 
* * string idempotency_key = 2; * @param value The idempotencyKey to set. */ private void setIdempotencyKey( java.lang.String value) { java.lang.Class valueClass = value.getClass(); idempotencyKey_ = value; } /** *
       * A unique value that can be used to ensure that the same content can
       * produce different hashes. May be the sender timestamp.
       * 
* * string idempotency_key = 2; */ private void clearIdempotencyKey() { idempotencyKey_ = getDefaultInstance().getIdempotencyKey(); } /** *
       * A unique value that can be used to ensure that the same content can
       * produce different hashes. May be the sender timestamp.
       * 
* * string idempotency_key = 2; * @param value The bytes for idempotencyKey to set. */ private void setIdempotencyKeyBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); idempotencyKey_ = value.toStringUtf8(); } public static org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1 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.Content.PlaintextEnvelope.V1 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.Content.PlaintextEnvelope.V1 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.Content.PlaintextEnvelope.V1 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.Content.PlaintextEnvelope.V1 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.Content.PlaintextEnvelope.V1 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.Content.PlaintextEnvelope.V1 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.Content.PlaintextEnvelope.V1 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.Content.PlaintextEnvelope.V1 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1 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.Content.PlaintextEnvelope.V1 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.Content.PlaintextEnvelope.V1 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.Content.PlaintextEnvelope.V1 prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
       * Version 1 of the encrypted envelope
       * 
* * Protobuf type {@code xmtp.mls.message_contents.PlaintextEnvelope.V1} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1, Builder> implements // @@protoc_insertion_point(builder_implements:xmtp.mls.message_contents.PlaintextEnvelope.V1) org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1OrBuilder { // Construct using org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
         * Expected to be EncodedContent
         * 
* * bytes content = 1; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { return instance.getContent(); } /** *
         * Expected to be EncodedContent
         * 
* * bytes content = 1; * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setContent(value); return this; } /** *
         * Expected to be EncodedContent
         * 
* * bytes content = 1; * @return This builder for chaining. */ public Builder clearContent() { copyOnWrite(); instance.clearContent(); return this; } /** *
         * A unique value that can be used to ensure that the same content can
         * produce different hashes. May be the sender timestamp.
         * 
* * string idempotency_key = 2; * @return The idempotencyKey. */ @java.lang.Override public java.lang.String getIdempotencyKey() { return instance.getIdempotencyKey(); } /** *
         * A unique value that can be used to ensure that the same content can
         * produce different hashes. May be the sender timestamp.
         * 
* * string idempotency_key = 2; * @return The bytes for idempotencyKey. */ @java.lang.Override public com.google.protobuf.ByteString getIdempotencyKeyBytes() { return instance.getIdempotencyKeyBytes(); } /** *
         * A unique value that can be used to ensure that the same content can
         * produce different hashes. May be the sender timestamp.
         * 
* * string idempotency_key = 2; * @param value The idempotencyKey to set. * @return This builder for chaining. */ public Builder setIdempotencyKey( java.lang.String value) { copyOnWrite(); instance.setIdempotencyKey(value); return this; } /** *
         * A unique value that can be used to ensure that the same content can
         * produce different hashes. May be the sender timestamp.
         * 
* * string idempotency_key = 2; * @return This builder for chaining. */ public Builder clearIdempotencyKey() { copyOnWrite(); instance.clearIdempotencyKey(); return this; } /** *
         * A unique value that can be used to ensure that the same content can
         * produce different hashes. May be the sender timestamp.
         * 
* * string idempotency_key = 2; * @param value The bytes for idempotencyKey to set. * @return This builder for chaining. */ public Builder setIdempotencyKeyBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setIdempotencyKeyBytes(value); return this; } // @@protoc_insertion_point(builder_scope:xmtp.mls.message_contents.PlaintextEnvelope.V1) } @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.Content.PlaintextEnvelope.V1(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "content_", "idempotencyKey_", }; java.lang.String info = "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\n\u0002\u0208" + ""; 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.Content.PlaintextEnvelope.V1.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.PlaintextEnvelope.V1) private static final org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1 DEFAULT_INSTANCE; static { V1 defaultInstance = new V1(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( V1.class, defaultInstance); } public static org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1 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 V2OrBuilder extends // @@protoc_insertion_point(interface_extends:xmtp.mls.message_contents.PlaintextEnvelope.V2) com.google.protobuf.MessageLiteOrBuilder { /** *
       * A unique value that can be used to ensure that the same content can
       * produce different hashes. May be the sender timestamp.
       * 
* * string idempotency_key = 1; * @return The idempotencyKey. */ java.lang.String getIdempotencyKey(); /** *
       * A unique value that can be used to ensure that the same content can
       * produce different hashes. May be the sender timestamp.
       * 
* * string idempotency_key = 1; * @return The bytes for idempotencyKey. */ com.google.protobuf.ByteString getIdempotencyKeyBytes(); /** *
       * Expected to be EncodedContent
       * 
* * bytes content = 2; * @return Whether the content field is set. */ boolean hasContent(); /** *
       * Expected to be EncodedContent
       * 
* * bytes content = 2; * @return The content. */ com.google.protobuf.ByteString getContent(); /** *
       * Initiator sends a request to receive message history
       * 
* * .xmtp.mls.message_contents.MessageHistoryRequest request = 3; * @return Whether the request field is set. */ boolean hasRequest(); /** *
       * Initiator sends a request to receive message history
       * 
* * .xmtp.mls.message_contents.MessageHistoryRequest request = 3; * @return The request. */ org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest getRequest(); /** *
       * Some other authorized installation sends a reply
       * 
* * .xmtp.mls.message_contents.MessageHistoryReply reply = 4; * @return Whether the reply field is set. */ boolean hasReply(); /** *
       * Some other authorized installation sends a reply
       * 
* * .xmtp.mls.message_contents.MessageHistoryReply reply = 4; * @return The reply. */ org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply getReply(); public org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2.MessageTypeCase getMessageTypeCase(); } /** *
     * Version 2 of the encrypted envelope
     * 
* * Protobuf type {@code xmtp.mls.message_contents.PlaintextEnvelope.V2} */ public static final class V2 extends com.google.protobuf.GeneratedMessageLite< V2, V2.Builder> implements // @@protoc_insertion_point(message_implements:xmtp.mls.message_contents.PlaintextEnvelope.V2) V2OrBuilder { private V2() { idempotencyKey_ = ""; } private int messageTypeCase_ = 0; private java.lang.Object messageType_; public enum MessageTypeCase { CONTENT(2), REQUEST(3), REPLY(4), MESSAGETYPE_NOT_SET(0); private final int value; private MessageTypeCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MessageTypeCase valueOf(int value) { return forNumber(value); } public static MessageTypeCase forNumber(int value) { switch (value) { case 2: return CONTENT; case 3: return REQUEST; case 4: return REPLY; case 0: return MESSAGETYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; @java.lang.Override public MessageTypeCase getMessageTypeCase() { return MessageTypeCase.forNumber( messageTypeCase_); } private void clearMessageType() { messageTypeCase_ = 0; messageType_ = null; } public static final int IDEMPOTENCY_KEY_FIELD_NUMBER = 1; private java.lang.String idempotencyKey_; /** *
       * A unique value that can be used to ensure that the same content can
       * produce different hashes. May be the sender timestamp.
       * 
* * string idempotency_key = 1; * @return The idempotencyKey. */ @java.lang.Override public java.lang.String getIdempotencyKey() { return idempotencyKey_; } /** *
       * A unique value that can be used to ensure that the same content can
       * produce different hashes. May be the sender timestamp.
       * 
* * string idempotency_key = 1; * @return The bytes for idempotencyKey. */ @java.lang.Override public com.google.protobuf.ByteString getIdempotencyKeyBytes() { return com.google.protobuf.ByteString.copyFromUtf8(idempotencyKey_); } /** *
       * A unique value that can be used to ensure that the same content can
       * produce different hashes. May be the sender timestamp.
       * 
* * string idempotency_key = 1; * @param value The idempotencyKey to set. */ private void setIdempotencyKey( java.lang.String value) { java.lang.Class valueClass = value.getClass(); idempotencyKey_ = value; } /** *
       * A unique value that can be used to ensure that the same content can
       * produce different hashes. May be the sender timestamp.
       * 
* * string idempotency_key = 1; */ private void clearIdempotencyKey() { idempotencyKey_ = getDefaultInstance().getIdempotencyKey(); } /** *
       * A unique value that can be used to ensure that the same content can
       * produce different hashes. May be the sender timestamp.
       * 
* * string idempotency_key = 1; * @param value The bytes for idempotencyKey to set. */ private void setIdempotencyKeyBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); idempotencyKey_ = value.toStringUtf8(); } public static final int CONTENT_FIELD_NUMBER = 2; /** *
       * Expected to be EncodedContent
       * 
* * bytes content = 2; * @return Whether the content field is set. */ @java.lang.Override public boolean hasContent() { return messageTypeCase_ == 2; } /** *
       * Expected to be EncodedContent
       * 
* * bytes content = 2; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { if (messageTypeCase_ == 2) { return (com.google.protobuf.ByteString) messageType_; } return com.google.protobuf.ByteString.EMPTY; } /** *
       * Expected to be EncodedContent
       * 
* * bytes content = 2; * @param value The content to set. */ private void setContent(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); messageTypeCase_ = 2; messageType_ = value; } /** *
       * Expected to be EncodedContent
       * 
* * bytes content = 2; */ private void clearContent() { if (messageTypeCase_ == 2) { messageTypeCase_ = 0; messageType_ = null; } } public static final int REQUEST_FIELD_NUMBER = 3; /** *
       * Initiator sends a request to receive message history
       * 
* * .xmtp.mls.message_contents.MessageHistoryRequest request = 3; */ @java.lang.Override public boolean hasRequest() { return messageTypeCase_ == 3; } /** *
       * Initiator sends a request to receive message history
       * 
* * .xmtp.mls.message_contents.MessageHistoryRequest request = 3; */ @java.lang.Override public org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest getRequest() { if (messageTypeCase_ == 3) { return (org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest) messageType_; } return org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest.getDefaultInstance(); } /** *
       * Initiator sends a request to receive message history
       * 
* * .xmtp.mls.message_contents.MessageHistoryRequest request = 3; */ private void setRequest(org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest value) { value.getClass(); messageType_ = value; messageTypeCase_ = 3; } /** *
       * Initiator sends a request to receive message history
       * 
* * .xmtp.mls.message_contents.MessageHistoryRequest request = 3; */ private void mergeRequest(org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest value) { value.getClass(); if (messageTypeCase_ == 3 && messageType_ != org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest.getDefaultInstance()) { messageType_ = org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest.newBuilder((org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest) messageType_) .mergeFrom(value).buildPartial(); } else { messageType_ = value; } messageTypeCase_ = 3; } /** *
       * Initiator sends a request to receive message history
       * 
* * .xmtp.mls.message_contents.MessageHistoryRequest request = 3; */ private void clearRequest() { if (messageTypeCase_ == 3) { messageTypeCase_ = 0; messageType_ = null; } } public static final int REPLY_FIELD_NUMBER = 4; /** *
       * Some other authorized installation sends a reply
       * 
* * .xmtp.mls.message_contents.MessageHistoryReply reply = 4; */ @java.lang.Override public boolean hasReply() { return messageTypeCase_ == 4; } /** *
       * Some other authorized installation sends a reply
       * 
* * .xmtp.mls.message_contents.MessageHistoryReply reply = 4; */ @java.lang.Override public org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply getReply() { if (messageTypeCase_ == 4) { return (org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply) messageType_; } return org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply.getDefaultInstance(); } /** *
       * Some other authorized installation sends a reply
       * 
* * .xmtp.mls.message_contents.MessageHistoryReply reply = 4; */ private void setReply(org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply value) { value.getClass(); messageType_ = value; messageTypeCase_ = 4; } /** *
       * Some other authorized installation sends a reply
       * 
* * .xmtp.mls.message_contents.MessageHistoryReply reply = 4; */ private void mergeReply(org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply value) { value.getClass(); if (messageTypeCase_ == 4 && messageType_ != org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply.getDefaultInstance()) { messageType_ = org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply.newBuilder((org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply) messageType_) .mergeFrom(value).buildPartial(); } else { messageType_ = value; } messageTypeCase_ = 4; } /** *
       * Some other authorized installation sends a reply
       * 
* * .xmtp.mls.message_contents.MessageHistoryReply reply = 4; */ private void clearReply() { if (messageTypeCase_ == 4) { messageTypeCase_ = 0; messageType_ = null; } } public static org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2 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.Content.PlaintextEnvelope.V2 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.Content.PlaintextEnvelope.V2 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.Content.PlaintextEnvelope.V2 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.Content.PlaintextEnvelope.V2 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.Content.PlaintextEnvelope.V2 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.Content.PlaintextEnvelope.V2 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.Content.PlaintextEnvelope.V2 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.Content.PlaintextEnvelope.V2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2 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.Content.PlaintextEnvelope.V2 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.Content.PlaintextEnvelope.V2 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.Content.PlaintextEnvelope.V2 prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
       * Version 2 of the encrypted envelope
       * 
* * Protobuf type {@code xmtp.mls.message_contents.PlaintextEnvelope.V2} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2, Builder> implements // @@protoc_insertion_point(builder_implements:xmtp.mls.message_contents.PlaintextEnvelope.V2) org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2OrBuilder { // Construct using org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } @java.lang.Override public MessageTypeCase getMessageTypeCase() { return instance.getMessageTypeCase(); } public Builder clearMessageType() { copyOnWrite(); instance.clearMessageType(); return this; } /** *
         * A unique value that can be used to ensure that the same content can
         * produce different hashes. May be the sender timestamp.
         * 
* * string idempotency_key = 1; * @return The idempotencyKey. */ @java.lang.Override public java.lang.String getIdempotencyKey() { return instance.getIdempotencyKey(); } /** *
         * A unique value that can be used to ensure that the same content can
         * produce different hashes. May be the sender timestamp.
         * 
* * string idempotency_key = 1; * @return The bytes for idempotencyKey. */ @java.lang.Override public com.google.protobuf.ByteString getIdempotencyKeyBytes() { return instance.getIdempotencyKeyBytes(); } /** *
         * A unique value that can be used to ensure that the same content can
         * produce different hashes. May be the sender timestamp.
         * 
* * string idempotency_key = 1; * @param value The idempotencyKey to set. * @return This builder for chaining. */ public Builder setIdempotencyKey( java.lang.String value) { copyOnWrite(); instance.setIdempotencyKey(value); return this; } /** *
         * A unique value that can be used to ensure that the same content can
         * produce different hashes. May be the sender timestamp.
         * 
* * string idempotency_key = 1; * @return This builder for chaining. */ public Builder clearIdempotencyKey() { copyOnWrite(); instance.clearIdempotencyKey(); return this; } /** *
         * A unique value that can be used to ensure that the same content can
         * produce different hashes. May be the sender timestamp.
         * 
* * string idempotency_key = 1; * @param value The bytes for idempotencyKey to set. * @return This builder for chaining. */ public Builder setIdempotencyKeyBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setIdempotencyKeyBytes(value); return this; } /** *
         * Expected to be EncodedContent
         * 
* * bytes content = 2; * @return Whether the content field is set. */ @java.lang.Override public boolean hasContent() { return instance.hasContent(); } /** *
         * Expected to be EncodedContent
         * 
* * bytes content = 2; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { return instance.getContent(); } /** *
         * Expected to be EncodedContent
         * 
* * bytes content = 2; * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setContent(value); return this; } /** *
         * Expected to be EncodedContent
         * 
* * bytes content = 2; * @return This builder for chaining. */ public Builder clearContent() { copyOnWrite(); instance.clearContent(); return this; } /** *
         * Initiator sends a request to receive message history
         * 
* * .xmtp.mls.message_contents.MessageHistoryRequest request = 3; */ @java.lang.Override public boolean hasRequest() { return instance.hasRequest(); } /** *
         * Initiator sends a request to receive message history
         * 
* * .xmtp.mls.message_contents.MessageHistoryRequest request = 3; */ @java.lang.Override public org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest getRequest() { return instance.getRequest(); } /** *
         * Initiator sends a request to receive message history
         * 
* * .xmtp.mls.message_contents.MessageHistoryRequest request = 3; */ public Builder setRequest(org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest value) { copyOnWrite(); instance.setRequest(value); return this; } /** *
         * Initiator sends a request to receive message history
         * 
* * .xmtp.mls.message_contents.MessageHistoryRequest request = 3; */ public Builder setRequest( org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest.Builder builderForValue) { copyOnWrite(); instance.setRequest(builderForValue.build()); return this; } /** *
         * Initiator sends a request to receive message history
         * 
* * .xmtp.mls.message_contents.MessageHistoryRequest request = 3; */ public Builder mergeRequest(org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest value) { copyOnWrite(); instance.mergeRequest(value); return this; } /** *
         * Initiator sends a request to receive message history
         * 
* * .xmtp.mls.message_contents.MessageHistoryRequest request = 3; */ public Builder clearRequest() { copyOnWrite(); instance.clearRequest(); return this; } /** *
         * Some other authorized installation sends a reply
         * 
* * .xmtp.mls.message_contents.MessageHistoryReply reply = 4; */ @java.lang.Override public boolean hasReply() { return instance.hasReply(); } /** *
         * Some other authorized installation sends a reply
         * 
* * .xmtp.mls.message_contents.MessageHistoryReply reply = 4; */ @java.lang.Override public org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply getReply() { return instance.getReply(); } /** *
         * Some other authorized installation sends a reply
         * 
* * .xmtp.mls.message_contents.MessageHistoryReply reply = 4; */ public Builder setReply(org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply value) { copyOnWrite(); instance.setReply(value); return this; } /** *
         * Some other authorized installation sends a reply
         * 
* * .xmtp.mls.message_contents.MessageHistoryReply reply = 4; */ public Builder setReply( org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply.Builder builderForValue) { copyOnWrite(); instance.setReply(builderForValue.build()); return this; } /** *
         * Some other authorized installation sends a reply
         * 
* * .xmtp.mls.message_contents.MessageHistoryReply reply = 4; */ public Builder mergeReply(org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply value) { copyOnWrite(); instance.mergeReply(value); return this; } /** *
         * Some other authorized installation sends a reply
         * 
* * .xmtp.mls.message_contents.MessageHistoryReply reply = 4; */ public Builder clearReply() { copyOnWrite(); instance.clearReply(); return this; } // @@protoc_insertion_point(builder_scope:xmtp.mls.message_contents.PlaintextEnvelope.V2) } @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.Content.PlaintextEnvelope.V2(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "messageType_", "messageTypeCase_", "idempotencyKey_", org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest.class, org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply.class, }; java.lang.String info = "\u0000\u0004\u0001\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u0208\u0002=\u0000" + "\u0003<\u0000\u0004<\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.mls.message.contents.Content.PlaintextEnvelope.V2.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.PlaintextEnvelope.V2) private static final org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2 DEFAULT_INSTANCE; static { V2 defaultInstance = new V2(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( V2.class, defaultInstance); } public static org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2 getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } private int contentCase_ = 0; private java.lang.Object content_; public enum ContentCase { V1(1), V2(2), CONTENT_NOT_SET(0); private final int value; private ContentCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ContentCase valueOf(int value) { return forNumber(value); } public static ContentCase forNumber(int value) { switch (value) { case 1: return V1; case 2: return V2; case 0: return CONTENT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; @java.lang.Override public ContentCase getContentCase() { return ContentCase.forNumber( contentCase_); } private void clearContent() { contentCase_ = 0; content_ = null; } public static final int V1_FIELD_NUMBER = 1; /** * .xmtp.mls.message_contents.PlaintextEnvelope.V1 v1 = 1; */ @java.lang.Override public boolean hasV1() { return contentCase_ == 1; } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V1 v1 = 1; */ @java.lang.Override public org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1 getV1() { if (contentCase_ == 1) { return (org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1) content_; } return org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1.getDefaultInstance(); } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V1 v1 = 1; */ private void setV1(org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1 value) { value.getClass(); content_ = value; contentCase_ = 1; } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V1 v1 = 1; */ private void mergeV1(org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1 value) { value.getClass(); if (contentCase_ == 1 && content_ != org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1.getDefaultInstance()) { content_ = org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1.newBuilder((org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } contentCase_ = 1; } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V1 v1 = 1; */ private void clearV1() { if (contentCase_ == 1) { contentCase_ = 0; content_ = null; } } public static final int V2_FIELD_NUMBER = 2; /** * .xmtp.mls.message_contents.PlaintextEnvelope.V2 v2 = 2; */ @java.lang.Override public boolean hasV2() { return contentCase_ == 2; } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V2 v2 = 2; */ @java.lang.Override public org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2 getV2() { if (contentCase_ == 2) { return (org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2) content_; } return org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2.getDefaultInstance(); } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V2 v2 = 2; */ private void setV2(org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2 value) { value.getClass(); content_ = value; contentCase_ = 2; } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V2 v2 = 2; */ private void mergeV2(org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2 value) { value.getClass(); if (contentCase_ == 2 && content_ != org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2.getDefaultInstance()) { content_ = org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2.newBuilder((org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } contentCase_ = 2; } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V2 v2 = 2; */ private void clearV2() { if (contentCase_ == 2) { contentCase_ = 0; content_ = null; } } public static org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope 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.Content.PlaintextEnvelope 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.Content.PlaintextEnvelope 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.Content.PlaintextEnvelope 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.Content.PlaintextEnvelope 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.Content.PlaintextEnvelope 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.Content.PlaintextEnvelope 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.Content.PlaintextEnvelope 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.Content.PlaintextEnvelope parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope 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.Content.PlaintextEnvelope 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.Content.PlaintextEnvelope 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.Content.PlaintextEnvelope prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * A PlaintextEnvelope is the outermost payload that gets encrypted by MLS
     * 
* * Protobuf type {@code xmtp.mls.message_contents.PlaintextEnvelope} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope, Builder> implements // @@protoc_insertion_point(builder_implements:xmtp.mls.message_contents.PlaintextEnvelope) org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelopeOrBuilder { // Construct using org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } @java.lang.Override public ContentCase getContentCase() { return instance.getContentCase(); } public Builder clearContent() { copyOnWrite(); instance.clearContent(); return this; } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V1 v1 = 1; */ @java.lang.Override public boolean hasV1() { return instance.hasV1(); } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V1 v1 = 1; */ @java.lang.Override public org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1 getV1() { return instance.getV1(); } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V1 v1 = 1; */ public Builder setV1(org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1 value) { copyOnWrite(); instance.setV1(value); return this; } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V1 v1 = 1; */ public Builder setV1( org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1.Builder builderForValue) { copyOnWrite(); instance.setV1(builderForValue.build()); return this; } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V1 v1 = 1; */ public Builder mergeV1(org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1 value) { copyOnWrite(); instance.mergeV1(value); return this; } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V1 v1 = 1; */ public Builder clearV1() { copyOnWrite(); instance.clearV1(); return this; } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V2 v2 = 2; */ @java.lang.Override public boolean hasV2() { return instance.hasV2(); } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V2 v2 = 2; */ @java.lang.Override public org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2 getV2() { return instance.getV2(); } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V2 v2 = 2; */ public Builder setV2(org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2 value) { copyOnWrite(); instance.setV2(value); return this; } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V2 v2 = 2; */ public Builder setV2( org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2.Builder builderForValue) { copyOnWrite(); instance.setV2(builderForValue.build()); return this; } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V2 v2 = 2; */ public Builder mergeV2(org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2 value) { copyOnWrite(); instance.mergeV2(value); return this; } /** * .xmtp.mls.message_contents.PlaintextEnvelope.V2 v2 = 2; */ public Builder clearV2() { copyOnWrite(); instance.clearV2(); return this; } // @@protoc_insertion_point(builder_scope:xmtp.mls.message_contents.PlaintextEnvelope) } @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.Content.PlaintextEnvelope(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "content_", "contentCase_", org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V1.class, org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope.V2.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.mls.message.contents.Content.PlaintextEnvelope.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.PlaintextEnvelope) private static final org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope DEFAULT_INSTANCE; static { PlaintextEnvelope defaultInstance = new PlaintextEnvelope(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( PlaintextEnvelope.class, defaultInstance); } public static org.xmtp.proto.mls.message.contents.Content.PlaintextEnvelope 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 MessageHistoryRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:xmtp.mls.message_contents.MessageHistoryRequest) com.google.protobuf.MessageLiteOrBuilder { /** *
     * Unique identifier for each request
     * 
* * string request_id = 1; * @return The requestId. */ java.lang.String getRequestId(); /** *
     * Unique identifier for each request
     * 
* * string request_id = 1; * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); /** *
     * Ensures a human is in the loop
     * 
* * string pin_code = 2; * @return The pinCode. */ java.lang.String getPinCode(); /** *
     * Ensures a human is in the loop
     * 
* * string pin_code = 2; * @return The bytes for pinCode. */ com.google.protobuf.ByteString getPinCodeBytes(); } /** *
   * Initiator or new installation id requesting a history will send a request
   * 
* * Protobuf type {@code xmtp.mls.message_contents.MessageHistoryRequest} */ public static final class MessageHistoryRequest extends com.google.protobuf.GeneratedMessageLite< MessageHistoryRequest, MessageHistoryRequest.Builder> implements // @@protoc_insertion_point(message_implements:xmtp.mls.message_contents.MessageHistoryRequest) MessageHistoryRequestOrBuilder { private MessageHistoryRequest() { requestId_ = ""; pinCode_ = ""; } public static final int REQUEST_ID_FIELD_NUMBER = 1; private java.lang.String requestId_; /** *
     * Unique identifier for each request
     * 
* * string request_id = 1; * @return The requestId. */ @java.lang.Override public java.lang.String getRequestId() { return requestId_; } /** *
     * Unique identifier for each request
     * 
* * string request_id = 1; * @return The bytes for requestId. */ @java.lang.Override public com.google.protobuf.ByteString getRequestIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(requestId_); } /** *
     * Unique identifier for each request
     * 
* * string request_id = 1; * @param value The requestId to set. */ private void setRequestId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); requestId_ = value; } /** *
     * Unique identifier for each request
     * 
* * string request_id = 1; */ private void clearRequestId() { requestId_ = getDefaultInstance().getRequestId(); } /** *
     * Unique identifier for each request
     * 
* * string request_id = 1; * @param value The bytes for requestId to set. */ private void setRequestIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); requestId_ = value.toStringUtf8(); } public static final int PIN_CODE_FIELD_NUMBER = 2; private java.lang.String pinCode_; /** *
     * Ensures a human is in the loop
     * 
* * string pin_code = 2; * @return The pinCode. */ @java.lang.Override public java.lang.String getPinCode() { return pinCode_; } /** *
     * Ensures a human is in the loop
     * 
* * string pin_code = 2; * @return The bytes for pinCode. */ @java.lang.Override public com.google.protobuf.ByteString getPinCodeBytes() { return com.google.protobuf.ByteString.copyFromUtf8(pinCode_); } /** *
     * Ensures a human is in the loop
     * 
* * string pin_code = 2; * @param value The pinCode to set. */ private void setPinCode( java.lang.String value) { java.lang.Class valueClass = value.getClass(); pinCode_ = value; } /** *
     * Ensures a human is in the loop
     * 
* * string pin_code = 2; */ private void clearPinCode() { pinCode_ = getDefaultInstance().getPinCode(); } /** *
     * Ensures a human is in the loop
     * 
* * string pin_code = 2; * @param value The bytes for pinCode to set. */ private void setPinCodeBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); pinCode_ = value.toStringUtf8(); } public static org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest 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.Content.MessageHistoryRequest 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.Content.MessageHistoryRequest 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.Content.MessageHistoryRequest 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.Content.MessageHistoryRequest 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.Content.MessageHistoryRequest 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.Content.MessageHistoryRequest 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.Content.MessageHistoryRequest 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.Content.MessageHistoryRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest 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.Content.MessageHistoryRequest 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.Content.MessageHistoryRequest 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.Content.MessageHistoryRequest prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Initiator or new installation id requesting a history will send a request
     * 
* * Protobuf type {@code xmtp.mls.message_contents.MessageHistoryRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest, Builder> implements // @@protoc_insertion_point(builder_implements:xmtp.mls.message_contents.MessageHistoryRequest) org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequestOrBuilder { // Construct using org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
       * Unique identifier for each request
       * 
* * string request_id = 1; * @return The requestId. */ @java.lang.Override public java.lang.String getRequestId() { return instance.getRequestId(); } /** *
       * Unique identifier for each request
       * 
* * string request_id = 1; * @return The bytes for requestId. */ @java.lang.Override public com.google.protobuf.ByteString getRequestIdBytes() { return instance.getRequestIdBytes(); } /** *
       * Unique identifier for each request
       * 
* * string request_id = 1; * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId( java.lang.String value) { copyOnWrite(); instance.setRequestId(value); return this; } /** *
       * Unique identifier for each request
       * 
* * string request_id = 1; * @return This builder for chaining. */ public Builder clearRequestId() { copyOnWrite(); instance.clearRequestId(); return this; } /** *
       * Unique identifier for each request
       * 
* * string request_id = 1; * @param value The bytes for requestId to set. * @return This builder for chaining. */ public Builder setRequestIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setRequestIdBytes(value); return this; } /** *
       * Ensures a human is in the loop
       * 
* * string pin_code = 2; * @return The pinCode. */ @java.lang.Override public java.lang.String getPinCode() { return instance.getPinCode(); } /** *
       * Ensures a human is in the loop
       * 
* * string pin_code = 2; * @return The bytes for pinCode. */ @java.lang.Override public com.google.protobuf.ByteString getPinCodeBytes() { return instance.getPinCodeBytes(); } /** *
       * Ensures a human is in the loop
       * 
* * string pin_code = 2; * @param value The pinCode to set. * @return This builder for chaining. */ public Builder setPinCode( java.lang.String value) { copyOnWrite(); instance.setPinCode(value); return this; } /** *
       * Ensures a human is in the loop
       * 
* * string pin_code = 2; * @return This builder for chaining. */ public Builder clearPinCode() { copyOnWrite(); instance.clearPinCode(); return this; } /** *
       * Ensures a human is in the loop
       * 
* * string pin_code = 2; * @param value The bytes for pinCode to set. * @return This builder for chaining. */ public Builder setPinCodeBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPinCodeBytes(value); return this; } // @@protoc_insertion_point(builder_scope:xmtp.mls.message_contents.MessageHistoryRequest) } @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.Content.MessageHistoryRequest(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "requestId_", "pinCode_", }; java.lang.String info = "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\u0208" + ""; 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.Content.MessageHistoryRequest.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.MessageHistoryRequest) private static final org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest DEFAULT_INSTANCE; static { MessageHistoryRequest defaultInstance = new MessageHistoryRequest(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( MessageHistoryRequest.class, defaultInstance); } public static org.xmtp.proto.mls.message.contents.Content.MessageHistoryRequest 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 MessageHistoryReplyOrBuilder extends // @@protoc_insertion_point(interface_extends:xmtp.mls.message_contents.MessageHistoryReply) com.google.protobuf.MessageLiteOrBuilder { /** *
     * Must match an existing request_id from a message history request
     * 
* * string request_id = 1; * @return The requestId. */ java.lang.String getRequestId(); /** *
     * Must match an existing request_id from a message history request
     * 
* * string request_id = 1; * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); /** *
     * Where the messages can be retrieved from
     * 
* * string url = 2; * @return The url. */ java.lang.String getUrl(); /** *
     * Where the messages can be retrieved from
     * 
* * string url = 2; * @return The bytes for url. */ com.google.protobuf.ByteString getUrlBytes(); /** *
     * Generated input 'secret' for the AES Key used to encrypt the message-bundle
     * 
* * .xmtp.mls.message_contents.MessageHistoryKeyType encryption_key = 3; * @return Whether the encryptionKey field is set. */ boolean hasEncryptionKey(); /** *
     * Generated input 'secret' for the AES Key used to encrypt the message-bundle
     * 
* * .xmtp.mls.message_contents.MessageHistoryKeyType encryption_key = 3; * @return The encryptionKey. */ org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType getEncryptionKey(); } /** *
   * Pre-existing installation id capable of supplying a history sends this reply
   * 
* * Protobuf type {@code xmtp.mls.message_contents.MessageHistoryReply} */ public static final class MessageHistoryReply extends com.google.protobuf.GeneratedMessageLite< MessageHistoryReply, MessageHistoryReply.Builder> implements // @@protoc_insertion_point(message_implements:xmtp.mls.message_contents.MessageHistoryReply) MessageHistoryReplyOrBuilder { private MessageHistoryReply() { requestId_ = ""; url_ = ""; } public static final int REQUEST_ID_FIELD_NUMBER = 1; private java.lang.String requestId_; /** *
     * Must match an existing request_id from a message history request
     * 
* * string request_id = 1; * @return The requestId. */ @java.lang.Override public java.lang.String getRequestId() { return requestId_; } /** *
     * Must match an existing request_id from a message history request
     * 
* * string request_id = 1; * @return The bytes for requestId. */ @java.lang.Override public com.google.protobuf.ByteString getRequestIdBytes() { return com.google.protobuf.ByteString.copyFromUtf8(requestId_); } /** *
     * Must match an existing request_id from a message history request
     * 
* * string request_id = 1; * @param value The requestId to set. */ private void setRequestId( java.lang.String value) { java.lang.Class valueClass = value.getClass(); requestId_ = value; } /** *
     * Must match an existing request_id from a message history request
     * 
* * string request_id = 1; */ private void clearRequestId() { requestId_ = getDefaultInstance().getRequestId(); } /** *
     * Must match an existing request_id from a message history request
     * 
* * string request_id = 1; * @param value The bytes for requestId to set. */ private void setRequestIdBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); requestId_ = value.toStringUtf8(); } public static final int URL_FIELD_NUMBER = 2; private java.lang.String url_; /** *
     * Where the messages can be retrieved from
     * 
* * string url = 2; * @return The url. */ @java.lang.Override public java.lang.String getUrl() { return url_; } /** *
     * Where the messages can be retrieved from
     * 
* * string url = 2; * @return The bytes for url. */ @java.lang.Override public com.google.protobuf.ByteString getUrlBytes() { return com.google.protobuf.ByteString.copyFromUtf8(url_); } /** *
     * Where the messages can be retrieved from
     * 
* * string url = 2; * @param value The url to set. */ private void setUrl( java.lang.String value) { java.lang.Class valueClass = value.getClass(); url_ = value; } /** *
     * Where the messages can be retrieved from
     * 
* * string url = 2; */ private void clearUrl() { url_ = getDefaultInstance().getUrl(); } /** *
     * Where the messages can be retrieved from
     * 
* * string url = 2; * @param value The bytes for url to set. */ private void setUrlBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); url_ = value.toStringUtf8(); } public static final int ENCRYPTION_KEY_FIELD_NUMBER = 3; private org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType encryptionKey_; /** *
     * Generated input 'secret' for the AES Key used to encrypt the message-bundle
     * 
* * .xmtp.mls.message_contents.MessageHistoryKeyType encryption_key = 3; */ @java.lang.Override public boolean hasEncryptionKey() { return encryptionKey_ != null; } /** *
     * Generated input 'secret' for the AES Key used to encrypt the message-bundle
     * 
* * .xmtp.mls.message_contents.MessageHistoryKeyType encryption_key = 3; */ @java.lang.Override public org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType getEncryptionKey() { return encryptionKey_ == null ? org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType.getDefaultInstance() : encryptionKey_; } /** *
     * Generated input 'secret' for the AES Key used to encrypt the message-bundle
     * 
* * .xmtp.mls.message_contents.MessageHistoryKeyType encryption_key = 3; */ private void setEncryptionKey(org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType value) { value.getClass(); encryptionKey_ = value; } /** *
     * Generated input 'secret' for the AES Key used to encrypt the message-bundle
     * 
* * .xmtp.mls.message_contents.MessageHistoryKeyType encryption_key = 3; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeEncryptionKey(org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType value) { value.getClass(); if (encryptionKey_ != null && encryptionKey_ != org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType.getDefaultInstance()) { encryptionKey_ = org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType.newBuilder(encryptionKey_).mergeFrom(value).buildPartial(); } else { encryptionKey_ = value; } } /** *
     * Generated input 'secret' for the AES Key used to encrypt the message-bundle
     * 
* * .xmtp.mls.message_contents.MessageHistoryKeyType encryption_key = 3; */ private void clearEncryptionKey() { encryptionKey_ = null; } public static org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply 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.Content.MessageHistoryReply 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.Content.MessageHistoryReply 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.Content.MessageHistoryReply 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.Content.MessageHistoryReply 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.Content.MessageHistoryReply 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.Content.MessageHistoryReply 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.Content.MessageHistoryReply 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.Content.MessageHistoryReply parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply 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.Content.MessageHistoryReply 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.Content.MessageHistoryReply 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.Content.MessageHistoryReply prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Pre-existing installation id capable of supplying a history sends this reply
     * 
* * Protobuf type {@code xmtp.mls.message_contents.MessageHistoryReply} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply, Builder> implements // @@protoc_insertion_point(builder_implements:xmtp.mls.message_contents.MessageHistoryReply) org.xmtp.proto.mls.message.contents.Content.MessageHistoryReplyOrBuilder { // Construct using org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
       * Must match an existing request_id from a message history request
       * 
* * string request_id = 1; * @return The requestId. */ @java.lang.Override public java.lang.String getRequestId() { return instance.getRequestId(); } /** *
       * Must match an existing request_id from a message history request
       * 
* * string request_id = 1; * @return The bytes for requestId. */ @java.lang.Override public com.google.protobuf.ByteString getRequestIdBytes() { return instance.getRequestIdBytes(); } /** *
       * Must match an existing request_id from a message history request
       * 
* * string request_id = 1; * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId( java.lang.String value) { copyOnWrite(); instance.setRequestId(value); return this; } /** *
       * Must match an existing request_id from a message history request
       * 
* * string request_id = 1; * @return This builder for chaining. */ public Builder clearRequestId() { copyOnWrite(); instance.clearRequestId(); return this; } /** *
       * Must match an existing request_id from a message history request
       * 
* * string request_id = 1; * @param value The bytes for requestId to set. * @return This builder for chaining. */ public Builder setRequestIdBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setRequestIdBytes(value); return this; } /** *
       * Where the messages can be retrieved from
       * 
* * string url = 2; * @return The url. */ @java.lang.Override public java.lang.String getUrl() { return instance.getUrl(); } /** *
       * Where the messages can be retrieved from
       * 
* * string url = 2; * @return The bytes for url. */ @java.lang.Override public com.google.protobuf.ByteString getUrlBytes() { return instance.getUrlBytes(); } /** *
       * Where the messages can be retrieved from
       * 
* * string url = 2; * @param value The url to set. * @return This builder for chaining. */ public Builder setUrl( java.lang.String value) { copyOnWrite(); instance.setUrl(value); return this; } /** *
       * Where the messages can be retrieved from
       * 
* * string url = 2; * @return This builder for chaining. */ public Builder clearUrl() { copyOnWrite(); instance.clearUrl(); return this; } /** *
       * Where the messages can be retrieved from
       * 
* * string url = 2; * @param value The bytes for url to set. * @return This builder for chaining. */ public Builder setUrlBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setUrlBytes(value); return this; } /** *
       * Generated input 'secret' for the AES Key used to encrypt the message-bundle
       * 
* * .xmtp.mls.message_contents.MessageHistoryKeyType encryption_key = 3; */ @java.lang.Override public boolean hasEncryptionKey() { return instance.hasEncryptionKey(); } /** *
       * Generated input 'secret' for the AES Key used to encrypt the message-bundle
       * 
* * .xmtp.mls.message_contents.MessageHistoryKeyType encryption_key = 3; */ @java.lang.Override public org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType getEncryptionKey() { return instance.getEncryptionKey(); } /** *
       * Generated input 'secret' for the AES Key used to encrypt the message-bundle
       * 
* * .xmtp.mls.message_contents.MessageHistoryKeyType encryption_key = 3; */ public Builder setEncryptionKey(org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType value) { copyOnWrite(); instance.setEncryptionKey(value); return this; } /** *
       * Generated input 'secret' for the AES Key used to encrypt the message-bundle
       * 
* * .xmtp.mls.message_contents.MessageHistoryKeyType encryption_key = 3; */ public Builder setEncryptionKey( org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType.Builder builderForValue) { copyOnWrite(); instance.setEncryptionKey(builderForValue.build()); return this; } /** *
       * Generated input 'secret' for the AES Key used to encrypt the message-bundle
       * 
* * .xmtp.mls.message_contents.MessageHistoryKeyType encryption_key = 3; */ public Builder mergeEncryptionKey(org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType value) { copyOnWrite(); instance.mergeEncryptionKey(value); return this; } /** *
       * Generated input 'secret' for the AES Key used to encrypt the message-bundle
       * 
* * .xmtp.mls.message_contents.MessageHistoryKeyType encryption_key = 3; */ public Builder clearEncryptionKey() { copyOnWrite(); instance.clearEncryptionKey(); return this; } // @@protoc_insertion_point(builder_scope:xmtp.mls.message_contents.MessageHistoryReply) } @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.Content.MessageHistoryReply(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "requestId_", "url_", "encryptionKey_", }; java.lang.String info = "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u0208\u0002\u0208" + "\u0003\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.Content.MessageHistoryReply.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.MessageHistoryReply) private static final org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply DEFAULT_INSTANCE; static { MessageHistoryReply defaultInstance = new MessageHistoryReply(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( MessageHistoryReply.class, defaultInstance); } public static org.xmtp.proto.mls.message.contents.Content.MessageHistoryReply 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 MessageHistoryKeyTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:xmtp.mls.message_contents.MessageHistoryKeyType) com.google.protobuf.MessageLiteOrBuilder { /** * bytes chacha20_poly1305 = 1; * @return Whether the chacha20Poly1305 field is set. */ boolean hasChacha20Poly1305(); /** * bytes chacha20_poly1305 = 1; * @return The chacha20Poly1305. */ com.google.protobuf.ByteString getChacha20Poly1305(); public org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType.KeyCase getKeyCase(); } /** *
   * Key used to encrypt the message-bundle
   * 
* * Protobuf type {@code xmtp.mls.message_contents.MessageHistoryKeyType} */ public static final class MessageHistoryKeyType extends com.google.protobuf.GeneratedMessageLite< MessageHistoryKeyType, MessageHistoryKeyType.Builder> implements // @@protoc_insertion_point(message_implements:xmtp.mls.message_contents.MessageHistoryKeyType) MessageHistoryKeyTypeOrBuilder { private MessageHistoryKeyType() { } private int keyCase_ = 0; private java.lang.Object key_; public enum KeyCase { CHACHA20_POLY1305(1), KEY_NOT_SET(0); private final int value; private KeyCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static KeyCase valueOf(int value) { return forNumber(value); } public static KeyCase forNumber(int value) { switch (value) { case 1: return CHACHA20_POLY1305; case 0: return KEY_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; @java.lang.Override public KeyCase getKeyCase() { return KeyCase.forNumber( keyCase_); } private void clearKey() { keyCase_ = 0; key_ = null; } public static final int CHACHA20_POLY1305_FIELD_NUMBER = 1; /** * bytes chacha20_poly1305 = 1; * @return Whether the chacha20Poly1305 field is set. */ @java.lang.Override public boolean hasChacha20Poly1305() { return keyCase_ == 1; } /** * bytes chacha20_poly1305 = 1; * @return The chacha20Poly1305. */ @java.lang.Override public com.google.protobuf.ByteString getChacha20Poly1305() { if (keyCase_ == 1) { return (com.google.protobuf.ByteString) key_; } return com.google.protobuf.ByteString.EMPTY; } /** * bytes chacha20_poly1305 = 1; * @param value The chacha20Poly1305 to set. */ private void setChacha20Poly1305(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); keyCase_ = 1; key_ = value; } /** * bytes chacha20_poly1305 = 1; */ private void clearChacha20Poly1305() { if (keyCase_ == 1) { keyCase_ = 0; key_ = null; } } public static org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType 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.Content.MessageHistoryKeyType 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.Content.MessageHistoryKeyType 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.Content.MessageHistoryKeyType 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.Content.MessageHistoryKeyType 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.Content.MessageHistoryKeyType 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.Content.MessageHistoryKeyType 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.Content.MessageHistoryKeyType 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.Content.MessageHistoryKeyType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType 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.Content.MessageHistoryKeyType 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.Content.MessageHistoryKeyType 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.Content.MessageHistoryKeyType prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Key used to encrypt the message-bundle
     * 
* * Protobuf type {@code xmtp.mls.message_contents.MessageHistoryKeyType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType, Builder> implements // @@protoc_insertion_point(builder_implements:xmtp.mls.message_contents.MessageHistoryKeyType) org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyTypeOrBuilder { // Construct using org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } @java.lang.Override public KeyCase getKeyCase() { return instance.getKeyCase(); } public Builder clearKey() { copyOnWrite(); instance.clearKey(); return this; } /** * bytes chacha20_poly1305 = 1; * @return Whether the chacha20Poly1305 field is set. */ @java.lang.Override public boolean hasChacha20Poly1305() { return instance.hasChacha20Poly1305(); } /** * bytes chacha20_poly1305 = 1; * @return The chacha20Poly1305. */ @java.lang.Override public com.google.protobuf.ByteString getChacha20Poly1305() { return instance.getChacha20Poly1305(); } /** * bytes chacha20_poly1305 = 1; * @param value The chacha20Poly1305 to set. * @return This builder for chaining. */ public Builder setChacha20Poly1305(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setChacha20Poly1305(value); return this; } /** * bytes chacha20_poly1305 = 1; * @return This builder for chaining. */ public Builder clearChacha20Poly1305() { copyOnWrite(); instance.clearChacha20Poly1305(); return this; } // @@protoc_insertion_point(builder_scope:xmtp.mls.message_contents.MessageHistoryKeyType) } @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.Content.MessageHistoryKeyType(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "key_", "keyCase_", }; java.lang.String info = "\u0000\u0001\u0001\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001=\u0000"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType.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.MessageHistoryKeyType) private static final org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType DEFAULT_INSTANCE; static { MessageHistoryKeyType defaultInstance = new MessageHistoryKeyType(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( MessageHistoryKeyType.class, defaultInstance); } public static org.xmtp.proto.mls.message.contents.Content.MessageHistoryKeyType 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) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy