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

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

There is a newer version: 3.70.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: message_contents/content.proto

package org.xmtp.proto.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.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.message_contents.Compression) } public interface ContentTypeIdOrBuilder extends // @@protoc_insertion_point(interface_extends:xmtp.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.message_contents.ContentTypeId} */ public static final class ContentTypeId extends com.google.protobuf.GeneratedMessageLite< ContentTypeId, ContentTypeId.Builder> implements // @@protoc_insertion_point(message_implements:xmtp.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.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.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.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.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.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.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.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.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.message.contents.Content.ContentTypeId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.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.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.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.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.message_contents.ContentTypeId} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.xmtp.proto.message.contents.Content.ContentTypeId, Builder> implements // @@protoc_insertion_point(builder_implements:xmtp.message_contents.ContentTypeId) org.xmtp.proto.message.contents.Content.ContentTypeIdOrBuilder { // Construct using org.xmtp.proto.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.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.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.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.message_contents.ContentTypeId) private static final org.xmtp.proto.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.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.message_contents.EncodedContent) com.google.protobuf.MessageLiteOrBuilder { /** *
     * content type identifier used to match the payload with
     * the correct decoding machinery
     * 
* * .xmtp.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.message_contents.ContentTypeId type = 1; * @return The type. */ org.xmtp.proto.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.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.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.message_contents.Compression compression = 5; * @return The compression. */ org.xmtp.proto.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.message_contents.EncodedContent} */ public static final class EncodedContent extends com.google.protobuf.GeneratedMessageLite< EncodedContent, EncodedContent.Builder> implements // @@protoc_insertion_point(message_implements:xmtp.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.message.contents.Content.ContentTypeId type_; /** *
     * content type identifier used to match the payload with
     * the correct decoding machinery
     * 
* * .xmtp.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.message_contents.ContentTypeId type = 1; */ @java.lang.Override public org.xmtp.proto.message.contents.Content.ContentTypeId getType() { return type_ == null ? org.xmtp.proto.message.contents.Content.ContentTypeId.getDefaultInstance() : type_; } /** *
     * content type identifier used to match the payload with
     * the correct decoding machinery
     * 
* * .xmtp.message_contents.ContentTypeId type = 1; */ private void setType(org.xmtp.proto.message.contents.Content.ContentTypeId value) { value.getClass(); type_ = value; } /** *
     * content type identifier used to match the payload with
     * the correct decoding machinery
     * 
* * .xmtp.message_contents.ContentTypeId type = 1; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeType(org.xmtp.proto.message.contents.Content.ContentTypeId value) { value.getClass(); if (type_ != null && type_ != org.xmtp.proto.message.contents.Content.ContentTypeId.getDefaultInstance()) { type_ = org.xmtp.proto.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.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.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.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.message_contents.Compression compression = 5; * @return The compression. */ @java.lang.Override public org.xmtp.proto.message.contents.Content.Compression getCompression() { org.xmtp.proto.message.contents.Content.Compression result = org.xmtp.proto.message.contents.Content.Compression.forNumber(compression_); return result == null ? org.xmtp.proto.message.contents.Content.Compression.UNRECOGNIZED : result; } /** *
     * optional compression; the value indicates algorithm used to
     * compress the encoded content bytes
     * 
* * optional .xmtp.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.message_contents.Compression compression = 5; * @param value The compression to set. */ private void setCompression(org.xmtp.proto.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.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.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.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.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.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.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.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.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.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.message.contents.Content.EncodedContent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.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.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.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.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.message_contents.EncodedContent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.xmtp.proto.message.contents.Content.EncodedContent, Builder> implements // @@protoc_insertion_point(builder_implements:xmtp.message_contents.EncodedContent) org.xmtp.proto.message.contents.Content.EncodedContentOrBuilder { // Construct using org.xmtp.proto.message.contents.Content.EncodedContent.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
       * content type identifier used to match the payload with
       * the correct decoding machinery
       * 
* * .xmtp.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.message_contents.ContentTypeId type = 1; */ @java.lang.Override public org.xmtp.proto.message.contents.Content.ContentTypeId getType() { return instance.getType(); } /** *
       * content type identifier used to match the payload with
       * the correct decoding machinery
       * 
* * .xmtp.message_contents.ContentTypeId type = 1; */ public Builder setType(org.xmtp.proto.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.message_contents.ContentTypeId type = 1; */ public Builder setType( org.xmtp.proto.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.message_contents.ContentTypeId type = 1; */ public Builder mergeType(org.xmtp.proto.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.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.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.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.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.message_contents.Compression compression = 5; * @return The compression. */ @java.lang.Override public org.xmtp.proto.message.contents.Content.Compression getCompression() { return instance.getCompression(); } /** *
       * optional compression; the value indicates algorithm used to
       * compress the encoded content bytes
       * 
* * optional .xmtp.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.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.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.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.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.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.message_contents.EncodedContent) private static final org.xmtp.proto.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.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 SignedContentOrBuilder extends // @@protoc_insertion_point(interface_extends:xmtp.message_contents.SignedContent) com.google.protobuf.MessageLiteOrBuilder { /** *
     * MUST contain EncodedContent
     * 
* * bytes payload = 1; * @return The payload. */ com.google.protobuf.ByteString getPayload(); /** * .xmtp.message_contents.SignedPublicKeyBundle sender = 2; * @return Whether the sender field is set. */ boolean hasSender(); /** * .xmtp.message_contents.SignedPublicKeyBundle sender = 2; * @return The sender. */ org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle getSender(); /** *
     * MUST be a signature of a concatenation of
     * the message header bytes and the payload bytes,
     * signed by the sender's pre-key.
     * 
* * .xmtp.message_contents.Signature signature = 3; * @return Whether the signature field is set. */ boolean hasSignature(); /** *
     * MUST be a signature of a concatenation of
     * the message header bytes and the payload bytes,
     * signed by the sender's pre-key.
     * 
* * .xmtp.message_contents.Signature signature = 3; * @return The signature. */ org.xmtp.proto.message.contents.SignatureOuterClass.Signature getSignature(); } /** *
   * SignedContent attaches a signature to EncodedContent.
   * 
* * Protobuf type {@code xmtp.message_contents.SignedContent} */ public static final class SignedContent extends com.google.protobuf.GeneratedMessageLite< SignedContent, SignedContent.Builder> implements // @@protoc_insertion_point(message_implements:xmtp.message_contents.SignedContent) SignedContentOrBuilder { private SignedContent() { payload_ = com.google.protobuf.ByteString.EMPTY; } public static final int PAYLOAD_FIELD_NUMBER = 1; private com.google.protobuf.ByteString payload_; /** *
     * MUST contain EncodedContent
     * 
* * bytes payload = 1; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } /** *
     * MUST contain EncodedContent
     * 
* * bytes payload = 1; * @param value The payload to set. */ private void setPayload(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); payload_ = value; } /** *
     * MUST contain EncodedContent
     * 
* * bytes payload = 1; */ private void clearPayload() { payload_ = getDefaultInstance().getPayload(); } public static final int SENDER_FIELD_NUMBER = 2; private org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle sender_; /** * .xmtp.message_contents.SignedPublicKeyBundle sender = 2; */ @java.lang.Override public boolean hasSender() { return sender_ != null; } /** * .xmtp.message_contents.SignedPublicKeyBundle sender = 2; */ @java.lang.Override public org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle getSender() { return sender_ == null ? org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle.getDefaultInstance() : sender_; } /** * .xmtp.message_contents.SignedPublicKeyBundle sender = 2; */ private void setSender(org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle value) { value.getClass(); sender_ = value; } /** * .xmtp.message_contents.SignedPublicKeyBundle sender = 2; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeSender(org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle value) { value.getClass(); if (sender_ != null && sender_ != org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle.getDefaultInstance()) { sender_ = org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle.newBuilder(sender_).mergeFrom(value).buildPartial(); } else { sender_ = value; } } /** * .xmtp.message_contents.SignedPublicKeyBundle sender = 2; */ private void clearSender() { sender_ = null; } public static final int SIGNATURE_FIELD_NUMBER = 3; private org.xmtp.proto.message.contents.SignatureOuterClass.Signature signature_; /** *
     * MUST be a signature of a concatenation of
     * the message header bytes and the payload bytes,
     * signed by the sender's pre-key.
     * 
* * .xmtp.message_contents.Signature signature = 3; */ @java.lang.Override public boolean hasSignature() { return signature_ != null; } /** *
     * MUST be a signature of a concatenation of
     * the message header bytes and the payload bytes,
     * signed by the sender's pre-key.
     * 
* * .xmtp.message_contents.Signature signature = 3; */ @java.lang.Override public org.xmtp.proto.message.contents.SignatureOuterClass.Signature getSignature() { return signature_ == null ? org.xmtp.proto.message.contents.SignatureOuterClass.Signature.getDefaultInstance() : signature_; } /** *
     * MUST be a signature of a concatenation of
     * the message header bytes and the payload bytes,
     * signed by the sender's pre-key.
     * 
* * .xmtp.message_contents.Signature signature = 3; */ private void setSignature(org.xmtp.proto.message.contents.SignatureOuterClass.Signature value) { value.getClass(); signature_ = value; } /** *
     * MUST be a signature of a concatenation of
     * the message header bytes and the payload bytes,
     * signed by the sender's pre-key.
     * 
* * .xmtp.message_contents.Signature signature = 3; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeSignature(org.xmtp.proto.message.contents.SignatureOuterClass.Signature value) { value.getClass(); if (signature_ != null && signature_ != org.xmtp.proto.message.contents.SignatureOuterClass.Signature.getDefaultInstance()) { signature_ = org.xmtp.proto.message.contents.SignatureOuterClass.Signature.newBuilder(signature_).mergeFrom(value).buildPartial(); } else { signature_ = value; } } /** *
     * MUST be a signature of a concatenation of
     * the message header bytes and the payload bytes,
     * signed by the sender's pre-key.
     * 
* * .xmtp.message_contents.Signature signature = 3; */ private void clearSignature() { signature_ = null; } public static org.xmtp.proto.message.contents.Content.SignedContent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static org.xmtp.proto.message.contents.Content.SignedContent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static org.xmtp.proto.message.contents.Content.SignedContent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static org.xmtp.proto.message.contents.Content.SignedContent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static org.xmtp.proto.message.contents.Content.SignedContent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static org.xmtp.proto.message.contents.Content.SignedContent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static org.xmtp.proto.message.contents.Content.SignedContent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static org.xmtp.proto.message.contents.Content.SignedContent parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static org.xmtp.proto.message.contents.Content.SignedContent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.message.contents.Content.SignedContent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static org.xmtp.proto.message.contents.Content.SignedContent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static org.xmtp.proto.message.contents.Content.SignedContent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(org.xmtp.proto.message.contents.Content.SignedContent prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * SignedContent attaches a signature to EncodedContent.
     * 
* * Protobuf type {@code xmtp.message_contents.SignedContent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.xmtp.proto.message.contents.Content.SignedContent, Builder> implements // @@protoc_insertion_point(builder_implements:xmtp.message_contents.SignedContent) org.xmtp.proto.message.contents.Content.SignedContentOrBuilder { // Construct using org.xmtp.proto.message.contents.Content.SignedContent.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
       * MUST contain EncodedContent
       * 
* * bytes payload = 1; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return instance.getPayload(); } /** *
       * MUST contain EncodedContent
       * 
* * bytes payload = 1; * @param value The payload to set. * @return This builder for chaining. */ public Builder setPayload(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPayload(value); return this; } /** *
       * MUST contain EncodedContent
       * 
* * bytes payload = 1; * @return This builder for chaining. */ public Builder clearPayload() { copyOnWrite(); instance.clearPayload(); return this; } /** * .xmtp.message_contents.SignedPublicKeyBundle sender = 2; */ @java.lang.Override public boolean hasSender() { return instance.hasSender(); } /** * .xmtp.message_contents.SignedPublicKeyBundle sender = 2; */ @java.lang.Override public org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle getSender() { return instance.getSender(); } /** * .xmtp.message_contents.SignedPublicKeyBundle sender = 2; */ public Builder setSender(org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle value) { copyOnWrite(); instance.setSender(value); return this; } /** * .xmtp.message_contents.SignedPublicKeyBundle sender = 2; */ public Builder setSender( org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle.Builder builderForValue) { copyOnWrite(); instance.setSender(builderForValue.build()); return this; } /** * .xmtp.message_contents.SignedPublicKeyBundle sender = 2; */ public Builder mergeSender(org.xmtp.proto.message.contents.PublicKeyOuterClass.SignedPublicKeyBundle value) { copyOnWrite(); instance.mergeSender(value); return this; } /** * .xmtp.message_contents.SignedPublicKeyBundle sender = 2; */ public Builder clearSender() { copyOnWrite(); instance.clearSender(); return this; } /** *
       * MUST be a signature of a concatenation of
       * the message header bytes and the payload bytes,
       * signed by the sender's pre-key.
       * 
* * .xmtp.message_contents.Signature signature = 3; */ @java.lang.Override public boolean hasSignature() { return instance.hasSignature(); } /** *
       * MUST be a signature of a concatenation of
       * the message header bytes and the payload bytes,
       * signed by the sender's pre-key.
       * 
* * .xmtp.message_contents.Signature signature = 3; */ @java.lang.Override public org.xmtp.proto.message.contents.SignatureOuterClass.Signature getSignature() { return instance.getSignature(); } /** *
       * MUST be a signature of a concatenation of
       * the message header bytes and the payload bytes,
       * signed by the sender's pre-key.
       * 
* * .xmtp.message_contents.Signature signature = 3; */ public Builder setSignature(org.xmtp.proto.message.contents.SignatureOuterClass.Signature value) { copyOnWrite(); instance.setSignature(value); return this; } /** *
       * MUST be a signature of a concatenation of
       * the message header bytes and the payload bytes,
       * signed by the sender's pre-key.
       * 
* * .xmtp.message_contents.Signature signature = 3; */ public Builder setSignature( org.xmtp.proto.message.contents.SignatureOuterClass.Signature.Builder builderForValue) { copyOnWrite(); instance.setSignature(builderForValue.build()); return this; } /** *
       * MUST be a signature of a concatenation of
       * the message header bytes and the payload bytes,
       * signed by the sender's pre-key.
       * 
* * .xmtp.message_contents.Signature signature = 3; */ public Builder mergeSignature(org.xmtp.proto.message.contents.SignatureOuterClass.Signature value) { copyOnWrite(); instance.mergeSignature(value); return this; } /** *
       * MUST be a signature of a concatenation of
       * the message header bytes and the payload bytes,
       * signed by the sender's pre-key.
       * 
* * .xmtp.message_contents.Signature signature = 3; */ public Builder clearSignature() { copyOnWrite(); instance.clearSignature(); return this; } // @@protoc_insertion_point(builder_scope:xmtp.message_contents.SignedContent) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new org.xmtp.proto.message.contents.Content.SignedContent(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "payload_", "sender_", "signature_", }; java.lang.String info = "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\n\u0002\t\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.message.contents.Content.SignedContent.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:xmtp.message_contents.SignedContent) private static final org.xmtp.proto.message.contents.Content.SignedContent DEFAULT_INSTANCE; static { SignedContent defaultInstance = new SignedContent(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( SignedContent.class, defaultInstance); } public static org.xmtp.proto.message.contents.Content.SignedContent 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