Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// 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) {
}
/**
*
*
* 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;
}
/**
*
*
* 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;
}
/**
*
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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
*
* 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 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;
}
/**
*