org.xmtp.proto.mls.message.contents.GroupMutableMetadata Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mls/message_contents/group_mutable_metadata.proto
package org.xmtp.proto.mls.message.contents;
public final class GroupMutableMetadata {
private GroupMutableMetadata() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public interface GroupMutableMetadataV1OrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.mls.message_contents.GroupMutableMetadataV1)
com.google.protobuf.MessageLiteOrBuilder {
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
int getAttributesCount();
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
boolean containsAttributes(
java.lang.String key);
/**
* Use {@link #getAttributesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getAttributes();
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
java.util.Map
getAttributesMap();
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
/* nullable */
java.lang.String getAttributesOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
java.lang.String getAttributesOrThrow(
java.lang.String key);
/**
* .xmtp.mls.message_contents.Inboxes admin_list = 2;
* @return Whether the adminList field is set.
*/
boolean hasAdminList();
/**
* .xmtp.mls.message_contents.Inboxes admin_list = 2;
* @return The adminList.
*/
org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes getAdminList();
/**
*
* Creator starts as only super_admin
* Only super_admin can add/remove other super_admin
*
*
* .xmtp.mls.message_contents.Inboxes super_admin_list = 3;
* @return Whether the superAdminList field is set.
*/
boolean hasSuperAdminList();
/**
*
* Creator starts as only super_admin
* Only super_admin can add/remove other super_admin
*
*
* .xmtp.mls.message_contents.Inboxes super_admin_list = 3;
* @return The superAdminList.
*/
org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes getSuperAdminList();
}
/**
*
* Message for group mutable metadata
*
*
* Protobuf type {@code xmtp.mls.message_contents.GroupMutableMetadataV1}
*/
public static final class GroupMutableMetadataV1 extends
com.google.protobuf.GeneratedMessageLite<
GroupMutableMetadataV1, GroupMutableMetadataV1.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.mls.message_contents.GroupMutableMetadataV1)
GroupMutableMetadataV1OrBuilder {
private GroupMutableMetadataV1() {
}
public static final int ATTRIBUTES_FIELD_NUMBER = 1;
private static final class AttributesDefaultEntryHolder {
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> attributes_ =
com.google.protobuf.MapFieldLite.emptyMapField();
private com.google.protobuf.MapFieldLite
internalGetAttributes() {
return attributes_;
}
private com.google.protobuf.MapFieldLite
internalGetMutableAttributes() {
if (!attributes_.isMutable()) {
attributes_ = attributes_.mutableCopy();
}
return attributes_;
}
@java.lang.Override
public int getAttributesCount() {
return internalGetAttributes().size();
}
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
@java.lang.Override
public boolean containsAttributes(
java.lang.String key) {
java.lang.Class keyClass = key.getClass();
return internalGetAttributes().containsKey(key);
}
/**
* Use {@link #getAttributesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAttributes() {
return getAttributesMap();
}
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
@java.lang.Override
public java.util.Map getAttributesMap() {
return java.util.Collections.unmodifiableMap(
internalGetAttributes());
}
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
@java.lang.Override
public java.lang.String getAttributesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
java.lang.Class keyClass = key.getClass();
java.util.Map map =
internalGetAttributes();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
@java.lang.Override
public java.lang.String getAttributesOrThrow(
java.lang.String key) {
java.lang.Class keyClass = key.getClass();
java.util.Map map =
internalGetAttributes();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
private java.util.Map
getMutableAttributesMap() {
return internalGetMutableAttributes();
}
public static final int ADMIN_LIST_FIELD_NUMBER = 2;
private org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes adminList_;
/**
* .xmtp.mls.message_contents.Inboxes admin_list = 2;
*/
@java.lang.Override
public boolean hasAdminList() {
return adminList_ != null;
}
/**
* .xmtp.mls.message_contents.Inboxes admin_list = 2;
*/
@java.lang.Override
public org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes getAdminList() {
return adminList_ == null ? org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes.getDefaultInstance() : adminList_;
}
/**
* .xmtp.mls.message_contents.Inboxes admin_list = 2;
*/
private void setAdminList(org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes value) {
value.getClass();
adminList_ = value;
}
/**
* .xmtp.mls.message_contents.Inboxes admin_list = 2;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeAdminList(org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes value) {
value.getClass();
if (adminList_ != null &&
adminList_ != org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes.getDefaultInstance()) {
adminList_ =
org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes.newBuilder(adminList_).mergeFrom(value).buildPartial();
} else {
adminList_ = value;
}
}
/**
* .xmtp.mls.message_contents.Inboxes admin_list = 2;
*/
private void clearAdminList() { adminList_ = null;
}
public static final int SUPER_ADMIN_LIST_FIELD_NUMBER = 3;
private org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes superAdminList_;
/**
*
* Creator starts as only super_admin
* Only super_admin can add/remove other super_admin
*
*
* .xmtp.mls.message_contents.Inboxes super_admin_list = 3;
*/
@java.lang.Override
public boolean hasSuperAdminList() {
return superAdminList_ != null;
}
/**
*
* Creator starts as only super_admin
* Only super_admin can add/remove other super_admin
*
*
* .xmtp.mls.message_contents.Inboxes super_admin_list = 3;
*/
@java.lang.Override
public org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes getSuperAdminList() {
return superAdminList_ == null ? org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes.getDefaultInstance() : superAdminList_;
}
/**
*
* Creator starts as only super_admin
* Only super_admin can add/remove other super_admin
*
*
* .xmtp.mls.message_contents.Inboxes super_admin_list = 3;
*/
private void setSuperAdminList(org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes value) {
value.getClass();
superAdminList_ = value;
}
/**
*
* Creator starts as only super_admin
* Only super_admin can add/remove other super_admin
*
*
* .xmtp.mls.message_contents.Inboxes super_admin_list = 3;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeSuperAdminList(org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes value) {
value.getClass();
if (superAdminList_ != null &&
superAdminList_ != org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes.getDefaultInstance()) {
superAdminList_ =
org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes.newBuilder(superAdminList_).mergeFrom(value).buildPartial();
} else {
superAdminList_ = value;
}
}
/**
*
* Creator starts as only super_admin
* Only super_admin can add/remove other super_admin
*
*
* .xmtp.mls.message_contents.Inboxes super_admin_list = 3;
*/
private void clearSuperAdminList() { superAdminList_ = null;
}
public static org.xmtp.proto.mls.message.contents.GroupMutableMetadata.GroupMutableMetadataV1 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.GroupMutableMetadata.GroupMutableMetadataV1 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.GroupMutableMetadata.GroupMutableMetadataV1 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.GroupMutableMetadata.GroupMutableMetadataV1 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.GroupMutableMetadata.GroupMutableMetadataV1 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.GroupMutableMetadata.GroupMutableMetadataV1 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.GroupMutableMetadata.GroupMutableMetadataV1 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.GroupMutableMetadata.GroupMutableMetadataV1 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.GroupMutableMetadata.GroupMutableMetadataV1 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.mls.message.contents.GroupMutableMetadata.GroupMutableMetadataV1 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.GroupMutableMetadata.GroupMutableMetadataV1 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.GroupMutableMetadata.GroupMutableMetadataV1 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.GroupMutableMetadata.GroupMutableMetadataV1 prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* Message for group mutable metadata
*
*
* Protobuf type {@code xmtp.mls.message_contents.GroupMutableMetadataV1}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.mls.message.contents.GroupMutableMetadata.GroupMutableMetadataV1, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.mls.message_contents.GroupMutableMetadataV1)
org.xmtp.proto.mls.message.contents.GroupMutableMetadata.GroupMutableMetadataV1OrBuilder {
// Construct using org.xmtp.proto.mls.message.contents.GroupMutableMetadata.GroupMutableMetadataV1.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
@java.lang.Override
public int getAttributesCount() {
return instance.getAttributesMap().size();
}
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
@java.lang.Override
public boolean containsAttributes(
java.lang.String key) {
java.lang.Class keyClass = key.getClass();
return instance.getAttributesMap().containsKey(key);
}
public Builder clearAttributes() {
copyOnWrite();
instance.getMutableAttributesMap().clear();
return this;
}
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
public Builder removeAttributes(
java.lang.String key) {
java.lang.Class keyClass = key.getClass();
copyOnWrite();
instance.getMutableAttributesMap().remove(key);
return this;
}
/**
* Use {@link #getAttributesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAttributes() {
return getAttributesMap();
}
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
@java.lang.Override
public java.util.Map getAttributesMap() {
return java.util.Collections.unmodifiableMap(
instance.getAttributesMap());
}
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
@java.lang.Override
public java.lang.String getAttributesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
java.lang.Class keyClass = key.getClass();
java.util.Map map =
instance.getAttributesMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
@java.lang.Override
public java.lang.String getAttributesOrThrow(
java.lang.String key) {
java.lang.Class keyClass = key.getClass();
java.util.Map map =
instance.getAttributesMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
public Builder putAttributes(
java.lang.String key,
java.lang.String value) {
java.lang.Class keyClass = key.getClass();
java.lang.Class valueClass = value.getClass();
copyOnWrite();
instance.getMutableAttributesMap().put(key, value);
return this;
}
/**
*
* Map to store various metadata attributes (Group name, etc.)
*
*
* map<string, string> attributes = 1;
*/
public Builder putAllAttributes(
java.util.Map values) {
copyOnWrite();
instance.getMutableAttributesMap().putAll(values);
return this;
}
/**
* .xmtp.mls.message_contents.Inboxes admin_list = 2;
*/
@java.lang.Override
public boolean hasAdminList() {
return instance.hasAdminList();
}
/**
* .xmtp.mls.message_contents.Inboxes admin_list = 2;
*/
@java.lang.Override
public org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes getAdminList() {
return instance.getAdminList();
}
/**
* .xmtp.mls.message_contents.Inboxes admin_list = 2;
*/
public Builder setAdminList(org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes value) {
copyOnWrite();
instance.setAdminList(value);
return this;
}
/**
* .xmtp.mls.message_contents.Inboxes admin_list = 2;
*/
public Builder setAdminList(
org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes.Builder builderForValue) {
copyOnWrite();
instance.setAdminList(builderForValue.build());
return this;
}
/**
* .xmtp.mls.message_contents.Inboxes admin_list = 2;
*/
public Builder mergeAdminList(org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes value) {
copyOnWrite();
instance.mergeAdminList(value);
return this;
}
/**
* .xmtp.mls.message_contents.Inboxes admin_list = 2;
*/
public Builder clearAdminList() { copyOnWrite();
instance.clearAdminList();
return this;
}
/**
*
* Creator starts as only super_admin
* Only super_admin can add/remove other super_admin
*
*
* .xmtp.mls.message_contents.Inboxes super_admin_list = 3;
*/
@java.lang.Override
public boolean hasSuperAdminList() {
return instance.hasSuperAdminList();
}
/**
*
* Creator starts as only super_admin
* Only super_admin can add/remove other super_admin
*
*
* .xmtp.mls.message_contents.Inboxes super_admin_list = 3;
*/
@java.lang.Override
public org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes getSuperAdminList() {
return instance.getSuperAdminList();
}
/**
*
* Creator starts as only super_admin
* Only super_admin can add/remove other super_admin
*
*
* .xmtp.mls.message_contents.Inboxes super_admin_list = 3;
*/
public Builder setSuperAdminList(org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes value) {
copyOnWrite();
instance.setSuperAdminList(value);
return this;
}
/**
*
* Creator starts as only super_admin
* Only super_admin can add/remove other super_admin
*
*
* .xmtp.mls.message_contents.Inboxes super_admin_list = 3;
*/
public Builder setSuperAdminList(
org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes.Builder builderForValue) {
copyOnWrite();
instance.setSuperAdminList(builderForValue.build());
return this;
}
/**
*
* Creator starts as only super_admin
* Only super_admin can add/remove other super_admin
*
*
* .xmtp.mls.message_contents.Inboxes super_admin_list = 3;
*/
public Builder mergeSuperAdminList(org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes value) {
copyOnWrite();
instance.mergeSuperAdminList(value);
return this;
}
/**
*
* Creator starts as only super_admin
* Only super_admin can add/remove other super_admin
*
*
* .xmtp.mls.message_contents.Inboxes super_admin_list = 3;
*/
public Builder clearSuperAdminList() { copyOnWrite();
instance.clearSuperAdminList();
return this;
}
// @@protoc_insertion_point(builder_scope:xmtp.mls.message_contents.GroupMutableMetadataV1)
}
@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.GroupMutableMetadata.GroupMutableMetadataV1();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"attributes_",
AttributesDefaultEntryHolder.defaultEntry,
"adminList_",
"superAdminList_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0001\u0000\u0000\u00012\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.mls.message.contents.GroupMutableMetadata.GroupMutableMetadataV1.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.GroupMutableMetadataV1)
private static final org.xmtp.proto.mls.message.contents.GroupMutableMetadata.GroupMutableMetadataV1 DEFAULT_INSTANCE;
static {
GroupMutableMetadataV1 defaultInstance = new GroupMutableMetadataV1();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
GroupMutableMetadataV1.class, defaultInstance);
}
public static org.xmtp.proto.mls.message.contents.GroupMutableMetadata.GroupMutableMetadataV1 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 InboxesOrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.mls.message_contents.Inboxes)
com.google.protobuf.MessageLiteOrBuilder {
/**
* repeated string inbox_ids = 1;
* @return A list containing the inboxIds.
*/
java.util.List
getInboxIdsList();
/**
* repeated string inbox_ids = 1;
* @return The count of inboxIds.
*/
int getInboxIdsCount();
/**
* repeated string inbox_ids = 1;
* @param index The index of the element to return.
* @return The inboxIds at the given index.
*/
java.lang.String getInboxIds(int index);
/**
* repeated string inbox_ids = 1;
* @param index The index of the element to return.
* @return The inboxIds at the given index.
*/
com.google.protobuf.ByteString
getInboxIdsBytes(int index);
}
/**
*
* Wrapper around a list of repeated Inbox Ids
*
*
* Protobuf type {@code xmtp.mls.message_contents.Inboxes}
*/
public static final class Inboxes extends
com.google.protobuf.GeneratedMessageLite<
Inboxes, Inboxes.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.mls.message_contents.Inboxes)
InboxesOrBuilder {
private Inboxes() {
inboxIds_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
}
public static final int INBOX_IDS_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.ProtobufList inboxIds_;
/**
* repeated string inbox_ids = 1;
* @return A list containing the inboxIds.
*/
@java.lang.Override
public java.util.List getInboxIdsList() {
return inboxIds_;
}
/**
* repeated string inbox_ids = 1;
* @return The count of inboxIds.
*/
@java.lang.Override
public int getInboxIdsCount() {
return inboxIds_.size();
}
/**
* repeated string inbox_ids = 1;
* @param index The index of the element to return.
* @return The inboxIds at the given index.
*/
@java.lang.Override
public java.lang.String getInboxIds(int index) {
return inboxIds_.get(index);
}
/**
* repeated string inbox_ids = 1;
* @param index The index of the value to return.
* @return The bytes of the inboxIds at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInboxIdsBytes(int index) {
return com.google.protobuf.ByteString.copyFromUtf8(
inboxIds_.get(index));
}
private void ensureInboxIdsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp =
inboxIds_; if (!tmp.isModifiable()) {
inboxIds_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated string inbox_ids = 1;
* @param index The index to set the value at.
* @param value The inboxIds to set.
*/
private void setInboxIds(
int index, java.lang.String value) {
java.lang.Class valueClass = value.getClass();
ensureInboxIdsIsMutable();
inboxIds_.set(index, value);
}
/**
* repeated string inbox_ids = 1;
* @param value The inboxIds to add.
*/
private void addInboxIds(
java.lang.String value) {
java.lang.Class valueClass = value.getClass();
ensureInboxIdsIsMutable();
inboxIds_.add(value);
}
/**
* repeated string inbox_ids = 1;
* @param values The inboxIds to add.
*/
private void addAllInboxIds(
java.lang.Iterable values) {
ensureInboxIdsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, inboxIds_);
}
/**
* repeated string inbox_ids = 1;
*/
private void clearInboxIds() {
inboxIds_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
}
/**
* repeated string inbox_ids = 1;
* @param value The bytes of the inboxIds to add.
*/
private void addInboxIdsBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureInboxIdsIsMutable();
inboxIds_.add(value.toStringUtf8());
}
public static org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes 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.GroupMutableMetadata.Inboxes 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.GroupMutableMetadata.Inboxes 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.GroupMutableMetadata.Inboxes 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.GroupMutableMetadata.Inboxes 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.GroupMutableMetadata.Inboxes 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.GroupMutableMetadata.Inboxes 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.GroupMutableMetadata.Inboxes 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.GroupMutableMetadata.Inboxes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes 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.GroupMutableMetadata.Inboxes 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.GroupMutableMetadata.Inboxes 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.GroupMutableMetadata.Inboxes prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* Wrapper around a list of repeated Inbox Ids
*
*
* Protobuf type {@code xmtp.mls.message_contents.Inboxes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.mls.message_contents.Inboxes)
org.xmtp.proto.mls.message.contents.GroupMutableMetadata.InboxesOrBuilder {
// Construct using org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* repeated string inbox_ids = 1;
* @return A list containing the inboxIds.
*/
@java.lang.Override
public java.util.List
getInboxIdsList() {
return java.util.Collections.unmodifiableList(
instance.getInboxIdsList());
}
/**
* repeated string inbox_ids = 1;
* @return The count of inboxIds.
*/
@java.lang.Override
public int getInboxIdsCount() {
return instance.getInboxIdsCount();
}
/**
* repeated string inbox_ids = 1;
* @param index The index of the element to return.
* @return The inboxIds at the given index.
*/
@java.lang.Override
public java.lang.String getInboxIds(int index) {
return instance.getInboxIds(index);
}
/**
* repeated string inbox_ids = 1;
* @param index The index of the value to return.
* @return The bytes of the inboxIds at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInboxIdsBytes(int index) {
return instance.getInboxIdsBytes(index);
}
/**
* repeated string inbox_ids = 1;
* @param index The index to set the value at.
* @param value The inboxIds to set.
* @return This builder for chaining.
*/
public Builder setInboxIds(
int index, java.lang.String value) {
copyOnWrite();
instance.setInboxIds(index, value);
return this;
}
/**
* repeated string inbox_ids = 1;
* @param value The inboxIds to add.
* @return This builder for chaining.
*/
public Builder addInboxIds(
java.lang.String value) {
copyOnWrite();
instance.addInboxIds(value);
return this;
}
/**
* repeated string inbox_ids = 1;
* @param values The inboxIds to add.
* @return This builder for chaining.
*/
public Builder addAllInboxIds(
java.lang.Iterable values) {
copyOnWrite();
instance.addAllInboxIds(values);
return this;
}
/**
* repeated string inbox_ids = 1;
* @return This builder for chaining.
*/
public Builder clearInboxIds() {
copyOnWrite();
instance.clearInboxIds();
return this;
}
/**
* repeated string inbox_ids = 1;
* @param value The bytes of the inboxIds to add.
* @return This builder for chaining.
*/
public Builder addInboxIdsBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.addInboxIdsBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:xmtp.mls.message_contents.Inboxes)
}
@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.GroupMutableMetadata.Inboxes();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"inboxIds_",
};
java.lang.String info =
"\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u021a";
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.GroupMutableMetadata.Inboxes.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.Inboxes)
private static final org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes DEFAULT_INSTANCE;
static {
Inboxes defaultInstance = new Inboxes();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Inboxes.class, defaultInstance);
}
public static org.xmtp.proto.mls.message.contents.GroupMutableMetadata.Inboxes 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)
}