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

org.xmtp.proto.message.contents.PrivatePreferences 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/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
       * 
* * repeated string wallet_addresses = 1; * @param values The walletAddresses to add. */ private void addAllWalletAddresses( java.lang.Iterable values) { ensureWalletAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, walletAddresses_); } /** *
       * Add the given wallet addresses to the allow list
       * 
* * repeated string wallet_addresses = 1; */ private void clearWalletAddresses() { walletAddresses_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); } /** *
       * Add the given wallet addresses to the allow list
       * 
* * repeated string wallet_addresses = 1; * @param value The bytes of the walletAddresses to add. */ private void addWalletAddressesBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureWalletAddressesIsMutable(); walletAddresses_.add(value.toStringUtf8()); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress 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.PrivatePreferences.PrivatePreferencesAction.AllowAddress 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.PrivatePreferences.PrivatePreferencesAction.AllowAddress 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.PrivatePreferences.PrivatePreferencesAction.AllowAddress 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.PrivatePreferences.PrivatePreferencesAction.AllowAddress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress 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.PrivatePreferences.PrivatePreferencesAction.AllowAddress 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.PrivatePreferences.PrivatePreferencesAction.AllowAddress 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.PrivatePreferences.PrivatePreferencesAction.AllowAddress parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress 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.PrivatePreferences.PrivatePreferencesAction.AllowAddress 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.PrivatePreferences.PrivatePreferencesAction.AllowAddress 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.PrivatePreferences.PrivatePreferencesAction.AllowAddress prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
       * Allow 1:1 direct message (DM) access
       * 
* * 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
       * 
* * repeated string wallet_addresses = 1; * @param values The walletAddresses to add. */ private void addAllWalletAddresses( java.lang.Iterable values) { ensureWalletAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, walletAddresses_); } /** *
       * Add the given wallet addresses to the deny list
       * 
* * repeated string wallet_addresses = 1; */ private void clearWalletAddresses() { walletAddresses_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList(); } /** *
       * Add the given wallet addresses to the deny list
       * 
* * repeated string wallet_addresses = 1; * @param value The bytes of the walletAddresses to add. */ private void addWalletAddressesBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureWalletAddressesIsMutable(); walletAddresses_.add(value.toStringUtf8()); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress 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.PrivatePreferences.PrivatePreferencesAction.DenyAddress 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.PrivatePreferences.PrivatePreferencesAction.DenyAddress 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.PrivatePreferences.PrivatePreferencesAction.DenyAddress 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.PrivatePreferences.PrivatePreferencesAction.DenyAddress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress 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.PrivatePreferences.PrivatePreferencesAction.DenyAddress 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.PrivatePreferences.PrivatePreferencesAction.DenyAddress 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.PrivatePreferences.PrivatePreferencesAction.DenyAddress parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress 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.PrivatePreferences.PrivatePreferencesAction.DenyAddress 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.PrivatePreferences.PrivatePreferencesAction.DenyAddress 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.PrivatePreferences.PrivatePreferencesAction.DenyAddress prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
       * Deny (block) 1:1 direct message (DM) access
       * 
* * 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); } /** *
       * Add the given group_ids to the allow list
       * 
* * repeated bytes group_ids = 1; * @param values The groupIds to add. */ private void addAllGroupIds( java.lang.Iterable values) { ensureGroupIdsIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, groupIds_); } /** *
       * Add the given group_ids to the allow list
       * 
* * repeated bytes group_ids = 1; */ private void clearGroupIds() { groupIds_ = emptyProtobufList(); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup 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.PrivatePreferences.PrivatePreferencesAction.AllowGroup 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.PrivatePreferences.PrivatePreferencesAction.AllowGroup 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.PrivatePreferences.PrivatePreferencesAction.AllowGroup 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.PrivatePreferences.PrivatePreferencesAction.AllowGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup 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.PrivatePreferences.PrivatePreferencesAction.AllowGroup 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.PrivatePreferences.PrivatePreferencesAction.AllowGroup 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.PrivatePreferences.PrivatePreferencesAction.AllowGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup 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.PrivatePreferences.PrivatePreferencesAction.AllowGroup 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.PrivatePreferences.PrivatePreferencesAction.AllowGroup 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.PrivatePreferences.PrivatePreferencesAction.AllowGroup prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
       * Allow Group access
       * 
* * 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); } /** *
       * Add the given group_ids to the deny list
       * 
* * repeated bytes group_ids = 1; * @param values The groupIds to add. */ private void addAllGroupIds( java.lang.Iterable values) { ensureGroupIdsIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, groupIds_); } /** *
       * Add the given group_ids to the deny list
       * 
* * repeated bytes group_ids = 1; */ private void clearGroupIds() { groupIds_ = emptyProtobufList(); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup 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.PrivatePreferences.PrivatePreferencesAction.DenyGroup 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.PrivatePreferences.PrivatePreferencesAction.DenyGroup 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.PrivatePreferences.PrivatePreferencesAction.DenyGroup 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.PrivatePreferences.PrivatePreferencesAction.DenyGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup 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.PrivatePreferences.PrivatePreferencesAction.DenyGroup 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.PrivatePreferences.PrivatePreferencesAction.DenyGroup 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.PrivatePreferences.PrivatePreferencesAction.DenyGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup 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.PrivatePreferences.PrivatePreferencesAction.DenyGroup 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.PrivatePreferences.PrivatePreferencesAction.DenyGroup 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.PrivatePreferences.PrivatePreferencesAction.DenyGroup prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
       * Deny (deny) Group access
       * 
* * 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; } /** *
         * Add the given group_ids to the deny 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.DenyGroup) } @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.DenyGroup(); } 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.DenyGroup.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.DenyGroup) private static final org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup DEFAULT_INSTANCE; static { DenyGroup defaultInstance = new DenyGroup(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( DenyGroup.class, defaultInstance); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } } private int messageTypeCase_ = 0; private java.lang.Object messageType_; public enum MessageTypeCase { ALLOW_ADDRESS(1), DENY_ADDRESS(2), ALLOW_GROUP(3), DENY_GROUP(4), MESSAGETYPE_NOT_SET(0); private final int value; private MessageTypeCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static MessageTypeCase valueOf(int value) { return forNumber(value); } public static MessageTypeCase forNumber(int value) { switch (value) { case 1: return ALLOW_ADDRESS; case 2: return DENY_ADDRESS; case 3: return ALLOW_GROUP; case 4: return DENY_GROUP; case 0: return MESSAGETYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; @java.lang.Override public MessageTypeCase getMessageTypeCase() { return MessageTypeCase.forNumber( messageTypeCase_); } private void clearMessageType() { messageTypeCase_ = 0; messageType_ = null; } public static final int ALLOW_ADDRESS_FIELD_NUMBER = 1; /** * .xmtp.message_contents.PrivatePreferencesAction.AllowAddress allow_address = 1; */ @java.lang.Override public boolean hasAllowAddress() { return messageTypeCase_ == 1; } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowAddress allow_address = 1; */ @java.lang.Override public org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress getAllowAddress() { if (messageTypeCase_ == 1) { return (org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress) messageType_; } return org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress.getDefaultInstance(); } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowAddress allow_address = 1; */ private void setAllowAddress(org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress value) { value.getClass(); messageType_ = value; messageTypeCase_ = 1; } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowAddress allow_address = 1; */ private void mergeAllowAddress(org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress value) { value.getClass(); if (messageTypeCase_ == 1 && messageType_ != org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress.getDefaultInstance()) { messageType_ = org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress.newBuilder((org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress) messageType_) .mergeFrom(value).buildPartial(); } else { messageType_ = value; } messageTypeCase_ = 1; } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowAddress allow_address = 1; */ private void clearAllowAddress() { if (messageTypeCase_ == 1) { messageTypeCase_ = 0; messageType_ = null; } } public static final int DENY_ADDRESS_FIELD_NUMBER = 2; /** * .xmtp.message_contents.PrivatePreferencesAction.DenyAddress deny_address = 2; */ @java.lang.Override public boolean hasDenyAddress() { return messageTypeCase_ == 2; } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyAddress deny_address = 2; */ @java.lang.Override public org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress getDenyAddress() { if (messageTypeCase_ == 2) { return (org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress) messageType_; } return org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress.getDefaultInstance(); } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyAddress deny_address = 2; */ private void setDenyAddress(org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress value) { value.getClass(); messageType_ = value; messageTypeCase_ = 2; } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyAddress deny_address = 2; */ private void mergeDenyAddress(org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress value) { value.getClass(); if (messageTypeCase_ == 2 && messageType_ != org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress.getDefaultInstance()) { messageType_ = org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress.newBuilder((org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress) messageType_) .mergeFrom(value).buildPartial(); } else { messageType_ = value; } messageTypeCase_ = 2; } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyAddress deny_address = 2; */ private void clearDenyAddress() { if (messageTypeCase_ == 2) { messageTypeCase_ = 0; messageType_ = null; } } public static final int ALLOW_GROUP_FIELD_NUMBER = 3; /** * .xmtp.message_contents.PrivatePreferencesAction.AllowGroup allow_group = 3; */ @java.lang.Override public boolean hasAllowGroup() { return messageTypeCase_ == 3; } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowGroup allow_group = 3; */ @java.lang.Override public org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup getAllowGroup() { if (messageTypeCase_ == 3) { return (org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup) messageType_; } return org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup.getDefaultInstance(); } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowGroup allow_group = 3; */ private void setAllowGroup(org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup value) { value.getClass(); messageType_ = value; messageTypeCase_ = 3; } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowGroup allow_group = 3; */ private void mergeAllowGroup(org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup value) { value.getClass(); if (messageTypeCase_ == 3 && messageType_ != org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup.getDefaultInstance()) { messageType_ = org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup.newBuilder((org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup) messageType_) .mergeFrom(value).buildPartial(); } else { messageType_ = value; } messageTypeCase_ = 3; } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowGroup allow_group = 3; */ private void clearAllowGroup() { if (messageTypeCase_ == 3) { messageTypeCase_ = 0; messageType_ = null; } } public static final int DENY_GROUP_FIELD_NUMBER = 4; /** * .xmtp.message_contents.PrivatePreferencesAction.DenyGroup deny_group = 4; */ @java.lang.Override public boolean hasDenyGroup() { return messageTypeCase_ == 4; } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyGroup deny_group = 4; */ @java.lang.Override public org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup getDenyGroup() { if (messageTypeCase_ == 4) { return (org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup) messageType_; } return org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup.getDefaultInstance(); } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyGroup deny_group = 4; */ private void setDenyGroup(org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup value) { value.getClass(); messageType_ = value; messageTypeCase_ = 4; } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyGroup deny_group = 4; */ private void mergeDenyGroup(org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup value) { value.getClass(); if (messageTypeCase_ == 4 && messageType_ != org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup.getDefaultInstance()) { messageType_ = org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup.newBuilder((org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup) messageType_) .mergeFrom(value).buildPartial(); } else { messageType_ = value; } messageTypeCase_ = 4; } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyGroup deny_group = 4; */ private void clearDenyGroup() { if (messageTypeCase_ == 4) { messageTypeCase_ = 0; messageType_ = null; } } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction 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.PrivatePreferences.PrivatePreferencesAction 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.PrivatePreferences.PrivatePreferencesAction 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.PrivatePreferences.PrivatePreferencesAction 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.PrivatePreferences.PrivatePreferencesAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction 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.PrivatePreferences.PrivatePreferencesAction 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.PrivatePreferences.PrivatePreferencesAction 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.PrivatePreferences.PrivatePreferencesAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction 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.PrivatePreferences.PrivatePreferencesAction 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.PrivatePreferences.PrivatePreferencesAction 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.PrivatePreferences.PrivatePreferencesAction prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * PrivatePreferencesAction is a message used to update the client's preference
     * store.
     * 
* * Protobuf type {@code xmtp.message_contents.PrivatePreferencesAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction, Builder> implements // @@protoc_insertion_point(builder_implements:xmtp.message_contents.PrivatePreferencesAction) org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesActionOrBuilder { // Construct using org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } @java.lang.Override public MessageTypeCase getMessageTypeCase() { return instance.getMessageTypeCase(); } public Builder clearMessageType() { copyOnWrite(); instance.clearMessageType(); return this; } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowAddress allow_address = 1; */ @java.lang.Override public boolean hasAllowAddress() { return instance.hasAllowAddress(); } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowAddress allow_address = 1; */ @java.lang.Override public org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress getAllowAddress() { return instance.getAllowAddress(); } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowAddress allow_address = 1; */ public Builder setAllowAddress(org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress value) { copyOnWrite(); instance.setAllowAddress(value); return this; } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowAddress allow_address = 1; */ public Builder setAllowAddress( org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress.Builder builderForValue) { copyOnWrite(); instance.setAllowAddress(builderForValue.build()); return this; } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowAddress allow_address = 1; */ public Builder mergeAllowAddress(org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress value) { copyOnWrite(); instance.mergeAllowAddress(value); return this; } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowAddress allow_address = 1; */ public Builder clearAllowAddress() { copyOnWrite(); instance.clearAllowAddress(); return this; } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyAddress deny_address = 2; */ @java.lang.Override public boolean hasDenyAddress() { return instance.hasDenyAddress(); } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyAddress deny_address = 2; */ @java.lang.Override public org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress getDenyAddress() { return instance.getDenyAddress(); } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyAddress deny_address = 2; */ public Builder setDenyAddress(org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress value) { copyOnWrite(); instance.setDenyAddress(value); return this; } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyAddress deny_address = 2; */ public Builder setDenyAddress( org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress.Builder builderForValue) { copyOnWrite(); instance.setDenyAddress(builderForValue.build()); return this; } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyAddress deny_address = 2; */ public Builder mergeDenyAddress(org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress value) { copyOnWrite(); instance.mergeDenyAddress(value); return this; } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyAddress deny_address = 2; */ public Builder clearDenyAddress() { copyOnWrite(); instance.clearDenyAddress(); return this; } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowGroup allow_group = 3; */ @java.lang.Override public boolean hasAllowGroup() { return instance.hasAllowGroup(); } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowGroup allow_group = 3; */ @java.lang.Override public org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup getAllowGroup() { return instance.getAllowGroup(); } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowGroup allow_group = 3; */ public Builder setAllowGroup(org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup value) { copyOnWrite(); instance.setAllowGroup(value); return this; } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowGroup allow_group = 3; */ public Builder setAllowGroup( org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup.Builder builderForValue) { copyOnWrite(); instance.setAllowGroup(builderForValue.build()); return this; } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowGroup allow_group = 3; */ public Builder mergeAllowGroup(org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup value) { copyOnWrite(); instance.mergeAllowGroup(value); return this; } /** * .xmtp.message_contents.PrivatePreferencesAction.AllowGroup allow_group = 3; */ public Builder clearAllowGroup() { copyOnWrite(); instance.clearAllowGroup(); return this; } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyGroup deny_group = 4; */ @java.lang.Override public boolean hasDenyGroup() { return instance.hasDenyGroup(); } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyGroup deny_group = 4; */ @java.lang.Override public org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup getDenyGroup() { return instance.getDenyGroup(); } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyGroup deny_group = 4; */ public Builder setDenyGroup(org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup value) { copyOnWrite(); instance.setDenyGroup(value); return this; } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyGroup deny_group = 4; */ public Builder setDenyGroup( org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup.Builder builderForValue) { copyOnWrite(); instance.setDenyGroup(builderForValue.build()); return this; } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyGroup deny_group = 4; */ public Builder mergeDenyGroup(org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup value) { copyOnWrite(); instance.mergeDenyGroup(value); return this; } /** * .xmtp.message_contents.PrivatePreferencesAction.DenyGroup deny_group = 4; */ public Builder clearDenyGroup() { copyOnWrite(); instance.clearDenyGroup(); return this; } // @@protoc_insertion_point(builder_scope:xmtp.message_contents.PrivatePreferencesAction) } @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(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "messageType_", "messageTypeCase_", org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowAddress.class, org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyAddress.class, org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.AllowGroup.class, org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.DenyGroup.class, }; java.lang.String info = "\u0000\u0004\u0001\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001<\u0000\u0002<" + "\u0000\u0003<\u0000\u0004<\u0000"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction.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) private static final org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction DEFAULT_INSTANCE; static { PrivatePreferencesAction defaultInstance = new PrivatePreferencesAction(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( PrivatePreferencesAction.class, defaultInstance); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesAction 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 PrivatePreferencesPayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:xmtp.message_contents.PrivatePreferencesPayload) com.google.protobuf.MessageLiteOrBuilder { /** * .xmtp.message_contents.Ciphertext v1 = 1; * @return Whether the v1 field is set. */ boolean hasV1(); /** * .xmtp.message_contents.Ciphertext v1 = 1; * @return The v1. */ org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext getV1(); public org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesPayload.VersionCase getVersionCase(); } /** *
   * The payload that goes over the wire
   * 
* * Protobuf type {@code xmtp.message_contents.PrivatePreferencesPayload} */ public static final class PrivatePreferencesPayload extends com.google.protobuf.GeneratedMessageLite< PrivatePreferencesPayload, PrivatePreferencesPayload.Builder> implements // @@protoc_insertion_point(message_implements:xmtp.message_contents.PrivatePreferencesPayload) PrivatePreferencesPayloadOrBuilder { private PrivatePreferencesPayload() { } private int versionCase_ = 0; private java.lang.Object version_; public enum VersionCase { V1(1), VERSION_NOT_SET(0); private final int value; private VersionCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static VersionCase valueOf(int value) { return forNumber(value); } public static VersionCase forNumber(int value) { switch (value) { case 1: return V1; case 0: return VERSION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; @java.lang.Override public VersionCase getVersionCase() { return VersionCase.forNumber( versionCase_); } private void clearVersion() { versionCase_ = 0; version_ = null; } public static final int V1_FIELD_NUMBER = 1; /** * .xmtp.message_contents.Ciphertext v1 = 1; */ @java.lang.Override public boolean hasV1() { return versionCase_ == 1; } /** * .xmtp.message_contents.Ciphertext v1 = 1; */ @java.lang.Override public org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext getV1() { if (versionCase_ == 1) { return (org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext) version_; } return org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.getDefaultInstance(); } /** * .xmtp.message_contents.Ciphertext v1 = 1; */ private void setV1(org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext value) { value.getClass(); version_ = value; versionCase_ = 1; } /** * .xmtp.message_contents.Ciphertext v1 = 1; */ private void mergeV1(org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext value) { value.getClass(); if (versionCase_ == 1 && version_ != org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.getDefaultInstance()) { version_ = org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.newBuilder((org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext) version_) .mergeFrom(value).buildPartial(); } else { version_ = value; } versionCase_ = 1; } /** * .xmtp.message_contents.Ciphertext v1 = 1; */ private void clearV1() { if (versionCase_ == 1) { versionCase_ = 0; version_ = null; } } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesPayload 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.PrivatePreferences.PrivatePreferencesPayload 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.PrivatePreferences.PrivatePreferencesPayload 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.PrivatePreferences.PrivatePreferencesPayload 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.PrivatePreferences.PrivatePreferencesPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesPayload 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.PrivatePreferences.PrivatePreferencesPayload 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.PrivatePreferences.PrivatePreferencesPayload 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.PrivatePreferences.PrivatePreferencesPayload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesPayload 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.PrivatePreferences.PrivatePreferencesPayload 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.PrivatePreferences.PrivatePreferencesPayload 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.PrivatePreferences.PrivatePreferencesPayload prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * The payload that goes over the wire
     * 
* * Protobuf type {@code xmtp.message_contents.PrivatePreferencesPayload} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesPayload, Builder> implements // @@protoc_insertion_point(builder_implements:xmtp.message_contents.PrivatePreferencesPayload) org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesPayloadOrBuilder { // Construct using org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesPayload.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } @java.lang.Override public VersionCase getVersionCase() { return instance.getVersionCase(); } public Builder clearVersion() { copyOnWrite(); instance.clearVersion(); return this; } /** * .xmtp.message_contents.Ciphertext v1 = 1; */ @java.lang.Override public boolean hasV1() { return instance.hasV1(); } /** * .xmtp.message_contents.Ciphertext v1 = 1; */ @java.lang.Override public org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext getV1() { return instance.getV1(); } /** * .xmtp.message_contents.Ciphertext v1 = 1; */ public Builder setV1(org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext value) { copyOnWrite(); instance.setV1(value); return this; } /** * .xmtp.message_contents.Ciphertext v1 = 1; */ public Builder setV1( org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.Builder builderForValue) { copyOnWrite(); instance.setV1(builderForValue.build()); return this; } /** * .xmtp.message_contents.Ciphertext v1 = 1; */ public Builder mergeV1(org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext value) { copyOnWrite(); instance.mergeV1(value); return this; } /** * .xmtp.message_contents.Ciphertext v1 = 1; */ public Builder clearV1() { copyOnWrite(); instance.clearV1(); return this; } // @@protoc_insertion_point(builder_scope:xmtp.message_contents.PrivatePreferencesPayload) } @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.PrivatePreferencesPayload(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "version_", "versionCase_", org.xmtp.proto.message.contents.CiphertextOuterClass.Ciphertext.class, }; java.lang.String info = "\u0000\u0001\u0001\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001<\u0000"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesPayload.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.PrivatePreferencesPayload) private static final org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesPayload DEFAULT_INSTANCE; static { PrivatePreferencesPayload defaultInstance = new PrivatePreferencesPayload(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( PrivatePreferencesPayload.class, defaultInstance); } public static org.xmtp.proto.message.contents.PrivatePreferences.PrivatePreferencesPayload 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