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/private_preferences.proto
package org.xmtp.proto.message.contents;
public final class PrivatePreferences {
private PrivatePreferences() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public interface PrivatePreferencesActionOrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.message_contents.PrivatePreferencesAction)
com.google.protobuf.MessageLiteOrBuilder {
/**
* .xmtp.message_contents.PrivatePreferencesAction.AllowAddress allow_address = 1;
* @return Whether the allowAddress field is set.
*/
boolean hasAllowAddress();
/**
* .xmtp.message_contents.PrivatePreferencesAction.AllowAddress allow_address = 1;
* @return The allowAddress.
*/
org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress getAllowAddress();
/**
* .xmtp.message_contents.PrivatePreferencesAction.DenyAddress deny_address = 2;
* @return Whether the denyAddress field is set.
*/
boolean hasDenyAddress();
/**
* .xmtp.message_contents.PrivatePreferencesAction.DenyAddress deny_address = 2;
* @return The denyAddress.
*/
org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress getDenyAddress();
/**
* .xmtp.message_contents.PrivatePreferencesAction.AllowGroup allow_group = 3;
* @return Whether the allowGroup field is set.
*/
boolean hasAllowGroup();
/**
* .xmtp.message_contents.PrivatePreferencesAction.AllowGroup allow_group = 3;
* @return The allowGroup.
*/
org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup getAllowGroup();
/**
* .xmtp.message_contents.PrivatePreferencesAction.DenyGroup deny_group = 4;
* @return Whether the denyGroup field is set.
*/
boolean hasDenyGroup();
/**
* .xmtp.message_contents.PrivatePreferencesAction.DenyGroup deny_group = 4;
* @return The denyGroup.
*/
org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup getDenyGroup();
public org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.MessageTypeCase getMessageTypeCase();
}
/**
*
* PrivatePreferencesAction is a message used to update the client's preference
* store.
*
*
* Protobuf type {@code xmtp.message_contents.PrivatePreferencesAction}
*/
public static final class PrivatePreferencesAction extends
com.google.protobuf.GeneratedMessageLite<
PrivatePreferencesAction, PrivatePreferencesAction.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.message_contents.PrivatePreferencesAction)
PrivatePreferencesActionOrBuilder {
private PrivatePreferencesAction() {
}
public interface AllowAddressOrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.message_contents.PrivatePreferencesAction.AllowAddress)
com.google.protobuf.MessageLiteOrBuilder {
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @return A list containing the walletAddresses.
*/
java.util.List
getWalletAddressesList();
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @return The count of walletAddresses.
*/
int getWalletAddressesCount();
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @param index The index of the element to return.
* @return The walletAddresses at the given index.
*/
java.lang.String getWalletAddresses(int index);
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @param index The index of the element to return.
* @return The walletAddresses at the given index.
*/
com.google.protobuf.ByteString
getWalletAddressesBytes(int index);
}
/**
*
* Allow 1:1 direct message (DM) access
*
*
* Protobuf type {@code xmtp.message_contents.PrivatePreferencesAction.AllowAddress}
*/
public static final class AllowAddress extends
com.google.protobuf.GeneratedMessageLite<
AllowAddress, AllowAddress.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.message_contents.PrivatePreferencesAction.AllowAddress)
AllowAddressOrBuilder {
private AllowAddress() {
walletAddresses_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
}
public static final int WALLET_ADDRESSES_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.ProtobufList walletAddresses_;
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @return A list containing the walletAddresses.
*/
@java.lang.Override
public java.util.List getWalletAddressesList() {
return walletAddresses_;
}
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @return The count of walletAddresses.
*/
@java.lang.Override
public int getWalletAddressesCount() {
return walletAddresses_.size();
}
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @param index The index of the element to return.
* @return The walletAddresses at the given index.
*/
@java.lang.Override
public java.lang.String getWalletAddresses(int index) {
return walletAddresses_.get(index);
}
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @param index The index of the value to return.
* @return The bytes of the walletAddresses at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getWalletAddressesBytes(int index) {
return com.google.protobuf.ByteString.copyFromUtf8(
walletAddresses_.get(index));
}
private void ensureWalletAddressesIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp =
walletAddresses_; if (!tmp.isModifiable()) {
walletAddresses_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @param index The index to set the value at.
* @param value The walletAddresses to set.
*/
private void setWalletAddresses(
int index, java.lang.String value) {
java.lang.Class valueClass = value.getClass();
ensureWalletAddressesIsMutable();
walletAddresses_.set(index, value);
}
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @param value The walletAddresses to add.
*/
private void addWalletAddresses(
java.lang.String value) {
java.lang.Class valueClass = value.getClass();
ensureWalletAddressesIsMutable();
walletAddresses_.add(value);
}
/**
*
* Add the given wallet addresses to the allow list
*
*
* Protobuf type {@code xmtp.message_contents.PrivatePreferencesAction.AllowAddress}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.message_contents.PrivatePreferencesAction.AllowAddress)
org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddressOrBuilder {
// Construct using org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @return A list containing the walletAddresses.
*/
@java.lang.Override
public java.util.List
getWalletAddressesList() {
return java.util.Collections.unmodifiableList(
instance.getWalletAddressesList());
}
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @return The count of walletAddresses.
*/
@java.lang.Override
public int getWalletAddressesCount() {
return instance.getWalletAddressesCount();
}
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @param index The index of the element to return.
* @return The walletAddresses at the given index.
*/
@java.lang.Override
public java.lang.String getWalletAddresses(int index) {
return instance.getWalletAddresses(index);
}
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @param index The index of the value to return.
* @return The bytes of the walletAddresses at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getWalletAddressesBytes(int index) {
return instance.getWalletAddressesBytes(index);
}
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @param index The index to set the value at.
* @param value The walletAddresses to set.
* @return This builder for chaining.
*/
public Builder setWalletAddresses(
int index, java.lang.String value) {
copyOnWrite();
instance.setWalletAddresses(index, value);
return this;
}
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @param value The walletAddresses to add.
* @return This builder for chaining.
*/
public Builder addWalletAddresses(
java.lang.String value) {
copyOnWrite();
instance.addWalletAddresses(value);
return this;
}
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @param values The walletAddresses to add.
* @return This builder for chaining.
*/
public Builder addAllWalletAddresses(
java.lang.Iterable values) {
copyOnWrite();
instance.addAllWalletAddresses(values);
return this;
}
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @return This builder for chaining.
*/
public Builder clearWalletAddresses() {
copyOnWrite();
instance.clearWalletAddresses();
return this;
}
/**
*
* Add the given wallet addresses to the allow list
*
*
* repeated string wallet_addresses = 1;
* @param value The bytes of the walletAddresses to add.
* @return This builder for chaining.
*/
public Builder addWalletAddressesBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.addWalletAddressesBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:xmtp.message_contents.PrivatePreferencesAction.AllowAddress)
}
@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.PrivatePreferences.PrivatePreferencesAction.AllowAddress();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"walletAddresses_",
};
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.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress.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.PrivatePreferencesAction.AllowAddress)
private static final org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress DEFAULT_INSTANCE;
static {
AllowAddress defaultInstance = new AllowAddress();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
AllowAddress.class, defaultInstance);
}
public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress 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 DenyAddressOrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.message_contents.PrivatePreferencesAction.DenyAddress)
com.google.protobuf.MessageLiteOrBuilder {
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @return A list containing the walletAddresses.
*/
java.util.List
getWalletAddressesList();
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @return The count of walletAddresses.
*/
int getWalletAddressesCount();
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @param index The index of the element to return.
* @return The walletAddresses at the given index.
*/
java.lang.String getWalletAddresses(int index);
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @param index The index of the element to return.
* @return The walletAddresses at the given index.
*/
com.google.protobuf.ByteString
getWalletAddressesBytes(int index);
}
/**
*
* Deny (block) 1:1 direct message (DM) access
*
*
* Protobuf type {@code xmtp.message_contents.PrivatePreferencesAction.DenyAddress}
*/
public static final class DenyAddress extends
com.google.protobuf.GeneratedMessageLite<
DenyAddress, DenyAddress.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.message_contents.PrivatePreferencesAction.DenyAddress)
DenyAddressOrBuilder {
private DenyAddress() {
walletAddresses_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
}
public static final int WALLET_ADDRESSES_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.ProtobufList walletAddresses_;
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @return A list containing the walletAddresses.
*/
@java.lang.Override
public java.util.List getWalletAddressesList() {
return walletAddresses_;
}
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @return The count of walletAddresses.
*/
@java.lang.Override
public int getWalletAddressesCount() {
return walletAddresses_.size();
}
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @param index The index of the element to return.
* @return The walletAddresses at the given index.
*/
@java.lang.Override
public java.lang.String getWalletAddresses(int index) {
return walletAddresses_.get(index);
}
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @param index The index of the value to return.
* @return The bytes of the walletAddresses at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getWalletAddressesBytes(int index) {
return com.google.protobuf.ByteString.copyFromUtf8(
walletAddresses_.get(index));
}
private void ensureWalletAddressesIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp =
walletAddresses_; if (!tmp.isModifiable()) {
walletAddresses_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @param index The index to set the value at.
* @param value The walletAddresses to set.
*/
private void setWalletAddresses(
int index, java.lang.String value) {
java.lang.Class valueClass = value.getClass();
ensureWalletAddressesIsMutable();
walletAddresses_.set(index, value);
}
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @param value The walletAddresses to add.
*/
private void addWalletAddresses(
java.lang.String value) {
java.lang.Class valueClass = value.getClass();
ensureWalletAddressesIsMutable();
walletAddresses_.add(value);
}
/**
*
* Add the given wallet addresses to the deny list
*
*
* Protobuf type {@code xmtp.message_contents.PrivatePreferencesAction.DenyAddress}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.message_contents.PrivatePreferencesAction.DenyAddress)
org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddressOrBuilder {
// Construct using org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @return A list containing the walletAddresses.
*/
@java.lang.Override
public java.util.List
getWalletAddressesList() {
return java.util.Collections.unmodifiableList(
instance.getWalletAddressesList());
}
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @return The count of walletAddresses.
*/
@java.lang.Override
public int getWalletAddressesCount() {
return instance.getWalletAddressesCount();
}
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @param index The index of the element to return.
* @return The walletAddresses at the given index.
*/
@java.lang.Override
public java.lang.String getWalletAddresses(int index) {
return instance.getWalletAddresses(index);
}
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @param index The index of the value to return.
* @return The bytes of the walletAddresses at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getWalletAddressesBytes(int index) {
return instance.getWalletAddressesBytes(index);
}
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @param index The index to set the value at.
* @param value The walletAddresses to set.
* @return This builder for chaining.
*/
public Builder setWalletAddresses(
int index, java.lang.String value) {
copyOnWrite();
instance.setWalletAddresses(index, value);
return this;
}
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @param value The walletAddresses to add.
* @return This builder for chaining.
*/
public Builder addWalletAddresses(
java.lang.String value) {
copyOnWrite();
instance.addWalletAddresses(value);
return this;
}
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @param values The walletAddresses to add.
* @return This builder for chaining.
*/
public Builder addAllWalletAddresses(
java.lang.Iterable values) {
copyOnWrite();
instance.addAllWalletAddresses(values);
return this;
}
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @return This builder for chaining.
*/
public Builder clearWalletAddresses() {
copyOnWrite();
instance.clearWalletAddresses();
return this;
}
/**
*
* Add the given wallet addresses to the deny list
*
*
* repeated string wallet_addresses = 1;
* @param value The bytes of the walletAddresses to add.
* @return This builder for chaining.
*/
public Builder addWalletAddressesBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.addWalletAddressesBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:xmtp.message_contents.PrivatePreferencesAction.DenyAddress)
}
@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.PrivatePreferences.PrivatePreferencesAction.DenyAddress();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"walletAddresses_",
};
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.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress.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.PrivatePreferencesAction.DenyAddress)
private static final org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress DEFAULT_INSTANCE;
static {
DenyAddress defaultInstance = new DenyAddress();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
DenyAddress.class, defaultInstance);
}
public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress 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 AllowGroupOrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.message_contents.PrivatePreferencesAction.AllowGroup)
com.google.protobuf.MessageLiteOrBuilder {
/**
*
* Add the given group_ids to the allow list
*
*
* repeated bytes group_ids = 1;
* @return A list containing the groupIds.
*/
java.util.List getGroupIdsList();
/**
*
* Add the given group_ids to the allow list
*
*
* repeated bytes group_ids = 1;
* @return The count of groupIds.
*/
int getGroupIdsCount();
/**
*
* Add the given group_ids to the allow list
*
*
* repeated bytes group_ids = 1;
* @param index The index of the element to return.
* @return The groupIds at the given index.
*/
com.google.protobuf.ByteString getGroupIds(int index);
}
/**
*
* Allow Group access
*
*
* Protobuf type {@code xmtp.message_contents.PrivatePreferencesAction.AllowGroup}
*/
public static final class AllowGroup extends
com.google.protobuf.GeneratedMessageLite<
AllowGroup, AllowGroup.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.message_contents.PrivatePreferencesAction.AllowGroup)
AllowGroupOrBuilder {
private AllowGroup() {
groupIds_ = emptyProtobufList();
}
public static final int GROUP_IDS_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.ProtobufList groupIds_;
/**
*
* Add the given group_ids to the allow list
*
*
* repeated bytes group_ids = 1;
* @return A list containing the groupIds.
*/
@java.lang.Override
public java.util.List
getGroupIdsList() {
return groupIds_;
}
/**
*
* Add the given group_ids to the allow list
*
*
* repeated bytes group_ids = 1;
* @return The count of groupIds.
*/
@java.lang.Override
public int getGroupIdsCount() {
return groupIds_.size();
}
/**
*
* Add the given group_ids to the allow list
*
*
* repeated bytes group_ids = 1;
* @param index The index of the element to return.
* @return The groupIds at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString getGroupIds(int index) {
return groupIds_.get(index);
}
private void ensureGroupIdsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = groupIds_;
if (!tmp.isModifiable()) {
groupIds_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
* Add the given group_ids to the allow list
*
*
* repeated bytes group_ids = 1;
* @param index The index to set the value at.
* @param value The groupIds to set.
*/
private void setGroupIds(
int index, com.google.protobuf.ByteString value) {
java.lang.Class valueClass = value.getClass();
ensureGroupIdsIsMutable();
groupIds_.set(index, value);
}
/**
*
* Add the given group_ids to the allow list
*
*
* repeated bytes group_ids = 1;
* @param value The groupIds to add.
*/
private void addGroupIds(com.google.protobuf.ByteString value) {
java.lang.Class valueClass = value.getClass();
ensureGroupIdsIsMutable();
groupIds_.add(value);
}
/**
*
*
* Protobuf type {@code xmtp.message_contents.PrivatePreferencesAction.AllowGroup}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.message_contents.PrivatePreferencesAction.AllowGroup)
org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroupOrBuilder {
// Construct using org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* Add the given group_ids to the allow list
*
*
* repeated bytes group_ids = 1;
* @return A list containing the groupIds.
*/
@java.lang.Override
public java.util.List
getGroupIdsList() {
return java.util.Collections.unmodifiableList(
instance.getGroupIdsList());
}
/**
*
* Add the given group_ids to the allow list
*
*
* repeated bytes group_ids = 1;
* @return The count of groupIds.
*/
@java.lang.Override
public int getGroupIdsCount() {
return instance.getGroupIdsCount();
}
/**
*
* Add the given group_ids to the allow list
*
*
* repeated bytes group_ids = 1;
* @param index The index of the element to return.
* @return The groupIds at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString getGroupIds(int index) {
return instance.getGroupIds(index);
}
/**
*
* Add the given group_ids to the allow list
*
*
* repeated bytes group_ids = 1;
* @param value The groupIds to set.
* @return This builder for chaining.
*/
public Builder setGroupIds(
int index, com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setGroupIds(index, value);
return this;
}
/**
*
* Add the given group_ids to the allow list
*
*
* repeated bytes group_ids = 1;
* @param value The groupIds to add.
* @return This builder for chaining.
*/
public Builder addGroupIds(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.addGroupIds(value);
return this;
}
/**
*
* Add the given group_ids to the allow list
*
*
* repeated bytes group_ids = 1;
* @param values The groupIds to add.
* @return This builder for chaining.
*/
public Builder addAllGroupIds(
java.lang.Iterable values) {
copyOnWrite();
instance.addAllGroupIds(values);
return this;
}
/**
*
* Add the given group_ids to the allow list
*
*
* repeated bytes group_ids = 1;
* @return This builder for chaining.
*/
public Builder clearGroupIds() {
copyOnWrite();
instance.clearGroupIds();
return this;
}
// @@protoc_insertion_point(builder_scope:xmtp.message_contents.PrivatePreferencesAction.AllowGroup)
}
@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.PrivatePreferences.PrivatePreferencesAction.AllowGroup();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"groupIds_",
};
java.lang.String info =
"\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u001c";
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.PrivatePreferences.PrivatePreferencesAction.AllowGroup.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.PrivatePreferencesAction.AllowGroup)
private static final org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup DEFAULT_INSTANCE;
static {
AllowGroup defaultInstance = new AllowGroup();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
AllowGroup.class, defaultInstance);
}
public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup 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 DenyGroupOrBuilder extends
// @@protoc_insertion_point(interface_extends:xmtp.message_contents.PrivatePreferencesAction.DenyGroup)
com.google.protobuf.MessageLiteOrBuilder {
/**
*
* Add the given group_ids to the deny list
*
*
* repeated bytes group_ids = 1;
* @return A list containing the groupIds.
*/
java.util.List getGroupIdsList();
/**
*
* Add the given group_ids to the deny list
*
*
* repeated bytes group_ids = 1;
* @return The count of groupIds.
*/
int getGroupIdsCount();
/**
*
* Add the given group_ids to the deny list
*
*
* repeated bytes group_ids = 1;
* @param index The index of the element to return.
* @return The groupIds at the given index.
*/
com.google.protobuf.ByteString getGroupIds(int index);
}
/**
*
* Deny (deny) Group access
*
*
* Protobuf type {@code xmtp.message_contents.PrivatePreferencesAction.DenyGroup}
*/
public static final class DenyGroup extends
com.google.protobuf.GeneratedMessageLite<
DenyGroup, DenyGroup.Builder> implements
// @@protoc_insertion_point(message_implements:xmtp.message_contents.PrivatePreferencesAction.DenyGroup)
DenyGroupOrBuilder {
private DenyGroup() {
groupIds_ = emptyProtobufList();
}
public static final int GROUP_IDS_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.ProtobufList groupIds_;
/**
*
* Add the given group_ids to the deny list
*
*
* repeated bytes group_ids = 1;
* @return A list containing the groupIds.
*/
@java.lang.Override
public java.util.List
getGroupIdsList() {
return groupIds_;
}
/**
*
* Add the given group_ids to the deny list
*
*
* repeated bytes group_ids = 1;
* @return The count of groupIds.
*/
@java.lang.Override
public int getGroupIdsCount() {
return groupIds_.size();
}
/**
*
* Add the given group_ids to the deny list
*
*
* repeated bytes group_ids = 1;
* @param index The index of the element to return.
* @return The groupIds at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString getGroupIds(int index) {
return groupIds_.get(index);
}
private void ensureGroupIdsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = groupIds_;
if (!tmp.isModifiable()) {
groupIds_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
*
* Add the given group_ids to the deny list
*
*
* repeated bytes group_ids = 1;
* @param index The index to set the value at.
* @param value The groupIds to set.
*/
private void setGroupIds(
int index, com.google.protobuf.ByteString value) {
java.lang.Class valueClass = value.getClass();
ensureGroupIdsIsMutable();
groupIds_.set(index, value);
}
/**
*
* Add the given group_ids to the deny list
*
*
* repeated bytes group_ids = 1;
* @param value The groupIds to add.
*/
private void addGroupIds(com.google.protobuf.ByteString value) {
java.lang.Class valueClass = value.getClass();
ensureGroupIdsIsMutable();
groupIds_.add(value);
}
/**
*
*
* Protobuf type {@code xmtp.message_contents.PrivatePreferencesAction.DenyGroup}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup, Builder> implements
// @@protoc_insertion_point(builder_implements:xmtp.message_contents.PrivatePreferencesAction.DenyGroup)
org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroupOrBuilder {
// Construct using org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* Add the given group_ids to the deny list
*
*
* repeated bytes group_ids = 1;
* @return A list containing the groupIds.
*/
@java.lang.Override
public java.util.List
getGroupIdsList() {
return java.util.Collections.unmodifiableList(
instance.getGroupIdsList());
}
/**
*
* Add the given group_ids to the deny list
*
*
* repeated bytes group_ids = 1;
* @return The count of groupIds.
*/
@java.lang.Override
public int getGroupIdsCount() {
return instance.getGroupIdsCount();
}
/**
*
* Add the given group_ids to the deny list
*
*
* repeated bytes group_ids = 1;
* @param index The index of the element to return.
* @return The groupIds at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString getGroupIds(int index) {
return instance.getGroupIds(index);
}
/**
*
* Add the given group_ids to the deny list
*
*
* repeated bytes group_ids = 1;
* @param value The groupIds to set.
* @return This builder for chaining.
*/
public Builder setGroupIds(
int index, com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setGroupIds(index, value);
return this;
}
/**
*
* Add the given group_ids to the deny list
*
*
* repeated bytes group_ids = 1;
* @param value The groupIds to add.
* @return This builder for chaining.
*/
public Builder addGroupIds(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.addGroupIds(value);
return this;
}
/**
*
* Add the given group_ids to the deny list
*
*
* repeated bytes group_ids = 1;
* @param values The groupIds to add.
* @return This builder for chaining.
*/
public Builder addAllGroupIds(
java.lang.Iterable values) {
copyOnWrite();
instance.addAllGroupIds(values);
return this;
}
/**
*