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

org.xmtp.proto.message.api.v1.Authn 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_api/v1/authn.proto

package org.xmtp.proto.message.api.v1;

public final class Authn {
  private Authn() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  public interface TokenOrBuilder extends
      // @@protoc_insertion_point(interface_extends:xmtp.message_api.v1.Token)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * 
     * identity key signed by a wallet
     * 
* * .xmtp.message_contents.PublicKey identity_key = 1; * @return Whether the identityKey field is set. */ boolean hasIdentityKey(); /** *
     * identity key signed by a wallet
     * 
* * .xmtp.message_contents.PublicKey identity_key = 1; * @return The identityKey. */ org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey getIdentityKey(); /** *
     * encoded bytes of AuthData
     * 
* * bytes auth_data_bytes = 2; * @return The authDataBytes. */ com.google.protobuf.ByteString getAuthDataBytes(); /** *
     * identity key signature of AuthData bytes
     * 
* * .xmtp.message_contents.Signature auth_data_signature = 3; * @return Whether the authDataSignature field is set. */ boolean hasAuthDataSignature(); /** *
     * identity key signature of AuthData bytes
     * 
* * .xmtp.message_contents.Signature auth_data_signature = 3; * @return The authDataSignature. */ org.xmtp.proto.message.contents.SignatureOuterClass.Signature getAuthDataSignature(); } /** *
   * Token is used by clients to prove to the nodes
   * that they are serving a specific wallet.
   * 
* * Protobuf type {@code xmtp.message_api.v1.Token} */ public static final class Token extends com.google.protobuf.GeneratedMessageLite< Token, Token.Builder> implements // @@protoc_insertion_point(message_implements:xmtp.message_api.v1.Token) TokenOrBuilder { private Token() { authDataBytes_ = com.google.protobuf.ByteString.EMPTY; } public static final int IDENTITY_KEY_FIELD_NUMBER = 1; private org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey identityKey_; /** *
     * identity key signed by a wallet
     * 
* * .xmtp.message_contents.PublicKey identity_key = 1; */ @java.lang.Override public boolean hasIdentityKey() { return identityKey_ != null; } /** *
     * identity key signed by a wallet
     * 
* * .xmtp.message_contents.PublicKey identity_key = 1; */ @java.lang.Override public org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey getIdentityKey() { return identityKey_ == null ? org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey.getDefaultInstance() : identityKey_; } /** *
     * identity key signed by a wallet
     * 
* * .xmtp.message_contents.PublicKey identity_key = 1; */ private void setIdentityKey(org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey value) { value.getClass(); identityKey_ = value; } /** *
     * identity key signed by a wallet
     * 
* * .xmtp.message_contents.PublicKey identity_key = 1; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeIdentityKey(org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey value) { value.getClass(); if (identityKey_ != null && identityKey_ != org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey.getDefaultInstance()) { identityKey_ = org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey.newBuilder(identityKey_).mergeFrom(value).buildPartial(); } else { identityKey_ = value; } } /** *
     * identity key signed by a wallet
     * 
* * .xmtp.message_contents.PublicKey identity_key = 1; */ private void clearIdentityKey() { identityKey_ = null; } public static final int AUTH_DATA_BYTES_FIELD_NUMBER = 2; private com.google.protobuf.ByteString authDataBytes_; /** *
     * encoded bytes of AuthData
     * 
* * bytes auth_data_bytes = 2; * @return The authDataBytes. */ @java.lang.Override public com.google.protobuf.ByteString getAuthDataBytes() { return authDataBytes_; } /** *
     * encoded bytes of AuthData
     * 
* * bytes auth_data_bytes = 2; * @param value The authDataBytes to set. */ private void setAuthDataBytes(com.google.protobuf.ByteString value) { java.lang.Class valueClass = value.getClass(); authDataBytes_ = value; } /** *
     * encoded bytes of AuthData
     * 
* * bytes auth_data_bytes = 2; */ private void clearAuthDataBytes() { authDataBytes_ = getDefaultInstance().getAuthDataBytes(); } public static final int AUTH_DATA_SIGNATURE_FIELD_NUMBER = 3; private org.xmtp.proto.message.contents.SignatureOuterClass.Signature authDataSignature_; /** *
     * identity key signature of AuthData bytes
     * 
* * .xmtp.message_contents.Signature auth_data_signature = 3; */ @java.lang.Override public boolean hasAuthDataSignature() { return authDataSignature_ != null; } /** *
     * identity key signature of AuthData bytes
     * 
* * .xmtp.message_contents.Signature auth_data_signature = 3; */ @java.lang.Override public org.xmtp.proto.message.contents.SignatureOuterClass.Signature getAuthDataSignature() { return authDataSignature_ == null ? org.xmtp.proto.message.contents.SignatureOuterClass.Signature.getDefaultInstance() : authDataSignature_; } /** *
     * identity key signature of AuthData bytes
     * 
* * .xmtp.message_contents.Signature auth_data_signature = 3; */ private void setAuthDataSignature(org.xmtp.proto.message.contents.SignatureOuterClass.Signature value) { value.getClass(); authDataSignature_ = value; } /** *
     * identity key signature of AuthData bytes
     * 
* * .xmtp.message_contents.Signature auth_data_signature = 3; */ @java.lang.SuppressWarnings({"ReferenceEquality"}) private void mergeAuthDataSignature(org.xmtp.proto.message.contents.SignatureOuterClass.Signature value) { value.getClass(); if (authDataSignature_ != null && authDataSignature_ != org.xmtp.proto.message.contents.SignatureOuterClass.Signature.getDefaultInstance()) { authDataSignature_ = org.xmtp.proto.message.contents.SignatureOuterClass.Signature.newBuilder(authDataSignature_).mergeFrom(value).buildPartial(); } else { authDataSignature_ = value; } } /** *
     * identity key signature of AuthData bytes
     * 
* * .xmtp.message_contents.Signature auth_data_signature = 3; */ private void clearAuthDataSignature() { authDataSignature_ = null; } public static org.xmtp.proto.message.api.v1.Authn.Token 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.api.v1.Authn.Token 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.api.v1.Authn.Token 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.api.v1.Authn.Token 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.api.v1.Authn.Token parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static org.xmtp.proto.message.api.v1.Authn.Token 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.api.v1.Authn.Token parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static org.xmtp.proto.message.api.v1.Authn.Token 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.api.v1.Authn.Token parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.message.api.v1.Authn.Token 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.api.v1.Authn.Token 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.api.v1.Authn.Token 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.api.v1.Authn.Token prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * Token is used by clients to prove to the nodes
     * that they are serving a specific wallet.
     * 
* * Protobuf type {@code xmtp.message_api.v1.Token} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.xmtp.proto.message.api.v1.Authn.Token, Builder> implements // @@protoc_insertion_point(builder_implements:xmtp.message_api.v1.Token) org.xmtp.proto.message.api.v1.Authn.TokenOrBuilder { // Construct using org.xmtp.proto.message.api.v1.Authn.Token.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
       * identity key signed by a wallet
       * 
* * .xmtp.message_contents.PublicKey identity_key = 1; */ @java.lang.Override public boolean hasIdentityKey() { return instance.hasIdentityKey(); } /** *
       * identity key signed by a wallet
       * 
* * .xmtp.message_contents.PublicKey identity_key = 1; */ @java.lang.Override public org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey getIdentityKey() { return instance.getIdentityKey(); } /** *
       * identity key signed by a wallet
       * 
* * .xmtp.message_contents.PublicKey identity_key = 1; */ public Builder setIdentityKey(org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey value) { copyOnWrite(); instance.setIdentityKey(value); return this; } /** *
       * identity key signed by a wallet
       * 
* * .xmtp.message_contents.PublicKey identity_key = 1; */ public Builder setIdentityKey( org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey.Builder builderForValue) { copyOnWrite(); instance.setIdentityKey(builderForValue.build()); return this; } /** *
       * identity key signed by a wallet
       * 
* * .xmtp.message_contents.PublicKey identity_key = 1; */ public Builder mergeIdentityKey(org.xmtp.proto.message.contents.PublicKeyOuterClass.PublicKey value) { copyOnWrite(); instance.mergeIdentityKey(value); return this; } /** *
       * identity key signed by a wallet
       * 
* * .xmtp.message_contents.PublicKey identity_key = 1; */ public Builder clearIdentityKey() { copyOnWrite(); instance.clearIdentityKey(); return this; } /** *
       * encoded bytes of AuthData
       * 
* * bytes auth_data_bytes = 2; * @return The authDataBytes. */ @java.lang.Override public com.google.protobuf.ByteString getAuthDataBytes() { return instance.getAuthDataBytes(); } /** *
       * encoded bytes of AuthData
       * 
* * bytes auth_data_bytes = 2; * @param value The authDataBytes to set. * @return This builder for chaining. */ public Builder setAuthDataBytes(com.google.protobuf.ByteString value) { copyOnWrite(); instance.setAuthDataBytes(value); return this; } /** *
       * encoded bytes of AuthData
       * 
* * bytes auth_data_bytes = 2; * @return This builder for chaining. */ public Builder clearAuthDataBytes() { copyOnWrite(); instance.clearAuthDataBytes(); return this; } /** *
       * identity key signature of AuthData bytes
       * 
* * .xmtp.message_contents.Signature auth_data_signature = 3; */ @java.lang.Override public boolean hasAuthDataSignature() { return instance.hasAuthDataSignature(); } /** *
       * identity key signature of AuthData bytes
       * 
* * .xmtp.message_contents.Signature auth_data_signature = 3; */ @java.lang.Override public org.xmtp.proto.message.contents.SignatureOuterClass.Signature getAuthDataSignature() { return instance.getAuthDataSignature(); } /** *
       * identity key signature of AuthData bytes
       * 
* * .xmtp.message_contents.Signature auth_data_signature = 3; */ public Builder setAuthDataSignature(org.xmtp.proto.message.contents.SignatureOuterClass.Signature value) { copyOnWrite(); instance.setAuthDataSignature(value); return this; } /** *
       * identity key signature of AuthData bytes
       * 
* * .xmtp.message_contents.Signature auth_data_signature = 3; */ public Builder setAuthDataSignature( org.xmtp.proto.message.contents.SignatureOuterClass.Signature.Builder builderForValue) { copyOnWrite(); instance.setAuthDataSignature(builderForValue.build()); return this; } /** *
       * identity key signature of AuthData bytes
       * 
* * .xmtp.message_contents.Signature auth_data_signature = 3; */ public Builder mergeAuthDataSignature(org.xmtp.proto.message.contents.SignatureOuterClass.Signature value) { copyOnWrite(); instance.mergeAuthDataSignature(value); return this; } /** *
       * identity key signature of AuthData bytes
       * 
* * .xmtp.message_contents.Signature auth_data_signature = 3; */ public Builder clearAuthDataSignature() { copyOnWrite(); instance.clearAuthDataSignature(); return this; } // @@protoc_insertion_point(builder_scope:xmtp.message_api.v1.Token) } @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.api.v1.Authn.Token(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "identityKey_", "authDataBytes_", "authDataSignature_", }; java.lang.String info = "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\t\u0002\n\u0003" + "\t"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (org.xmtp.proto.message.api.v1.Authn.Token.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_api.v1.Token) private static final org.xmtp.proto.message.api.v1.Authn.Token DEFAULT_INSTANCE; static { Token defaultInstance = new Token(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( Token.class, defaultInstance); } public static org.xmtp.proto.message.api.v1.Authn.Token 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 AuthDataOrBuilder extends // @@protoc_insertion_point(interface_extends:xmtp.message_api.v1.AuthData) com.google.protobuf.MessageLiteOrBuilder { /** *
     * address of the wallet
     * 
* * string wallet_addr = 1; * @return The walletAddr. */ java.lang.String getWalletAddr(); /** *
     * address of the wallet
     * 
* * string wallet_addr = 1; * @return The bytes for walletAddr. */ com.google.protobuf.ByteString getWalletAddrBytes(); /** *
     * time when the token was generated/signed
     * 
* * uint64 created_ns = 2; * @return The createdNs. */ long getCreatedNs(); } /** *
   * AuthData carries token parameters that are authenticated
   * by the identity key signature.
   * It is embedded in the Token structure as bytes
   * so that the bytes don't need to be reconstructed
   * to verify the token signature.
   * 
* * Protobuf type {@code xmtp.message_api.v1.AuthData} */ public static final class AuthData extends com.google.protobuf.GeneratedMessageLite< AuthData, AuthData.Builder> implements // @@protoc_insertion_point(message_implements:xmtp.message_api.v1.AuthData) AuthDataOrBuilder { private AuthData() { walletAddr_ = ""; } public static final int WALLET_ADDR_FIELD_NUMBER = 1; private java.lang.String walletAddr_; /** *
     * address of the wallet
     * 
* * string wallet_addr = 1; * @return The walletAddr. */ @java.lang.Override public java.lang.String getWalletAddr() { return walletAddr_; } /** *
     * address of the wallet
     * 
* * string wallet_addr = 1; * @return The bytes for walletAddr. */ @java.lang.Override public com.google.protobuf.ByteString getWalletAddrBytes() { return com.google.protobuf.ByteString.copyFromUtf8(walletAddr_); } /** *
     * address of the wallet
     * 
* * string wallet_addr = 1; * @param value The walletAddr to set. */ private void setWalletAddr( java.lang.String value) { java.lang.Class valueClass = value.getClass(); walletAddr_ = value; } /** *
     * address of the wallet
     * 
* * string wallet_addr = 1; */ private void clearWalletAddr() { walletAddr_ = getDefaultInstance().getWalletAddr(); } /** *
     * address of the wallet
     * 
* * string wallet_addr = 1; * @param value The bytes for walletAddr to set. */ private void setWalletAddrBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); walletAddr_ = value.toStringUtf8(); } public static final int CREATED_NS_FIELD_NUMBER = 2; private long createdNs_; /** *
     * time when the token was generated/signed
     * 
* * uint64 created_ns = 2; * @return The createdNs. */ @java.lang.Override public long getCreatedNs() { return createdNs_; } /** *
     * time when the token was generated/signed
     * 
* * uint64 created_ns = 2; * @param value The createdNs to set. */ private void setCreatedNs(long value) { createdNs_ = value; } /** *
     * time when the token was generated/signed
     * 
* * uint64 created_ns = 2; */ private void clearCreatedNs() { createdNs_ = 0L; } public static org.xmtp.proto.message.api.v1.Authn.AuthData 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.api.v1.Authn.AuthData 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.api.v1.Authn.AuthData 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.api.v1.Authn.AuthData 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.api.v1.Authn.AuthData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static org.xmtp.proto.message.api.v1.Authn.AuthData 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.api.v1.Authn.AuthData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static org.xmtp.proto.message.api.v1.Authn.AuthData 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.api.v1.Authn.AuthData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static org.xmtp.proto.message.api.v1.Authn.AuthData 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.api.v1.Authn.AuthData 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.api.v1.Authn.AuthData 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.api.v1.Authn.AuthData prototype) { return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } /** *
     * AuthData carries token parameters that are authenticated
     * by the identity key signature.
     * It is embedded in the Token structure as bytes
     * so that the bytes don't need to be reconstructed
     * to verify the token signature.
     * 
* * Protobuf type {@code xmtp.message_api.v1.AuthData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< org.xmtp.proto.message.api.v1.Authn.AuthData, Builder> implements // @@protoc_insertion_point(builder_implements:xmtp.message_api.v1.AuthData) org.xmtp.proto.message.api.v1.Authn.AuthDataOrBuilder { // Construct using org.xmtp.proto.message.api.v1.Authn.AuthData.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
       * address of the wallet
       * 
* * string wallet_addr = 1; * @return The walletAddr. */ @java.lang.Override public java.lang.String getWalletAddr() { return instance.getWalletAddr(); } /** *
       * address of the wallet
       * 
* * string wallet_addr = 1; * @return The bytes for walletAddr. */ @java.lang.Override public com.google.protobuf.ByteString getWalletAddrBytes() { return instance.getWalletAddrBytes(); } /** *
       * address of the wallet
       * 
* * string wallet_addr = 1; * @param value The walletAddr to set. * @return This builder for chaining. */ public Builder setWalletAddr( java.lang.String value) { copyOnWrite(); instance.setWalletAddr(value); return this; } /** *
       * address of the wallet
       * 
* * string wallet_addr = 1; * @return This builder for chaining. */ public Builder clearWalletAddr() { copyOnWrite(); instance.clearWalletAddr(); return this; } /** *
       * address of the wallet
       * 
* * string wallet_addr = 1; * @param value The bytes for walletAddr to set. * @return This builder for chaining. */ public Builder setWalletAddrBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setWalletAddrBytes(value); return this; } /** *
       * time when the token was generated/signed
       * 
* * uint64 created_ns = 2; * @return The createdNs. */ @java.lang.Override public long getCreatedNs() { return instance.getCreatedNs(); } /** *
       * time when the token was generated/signed
       * 
* * uint64 created_ns = 2; * @param value The createdNs to set. * @return This builder for chaining. */ public Builder setCreatedNs(long value) { copyOnWrite(); instance.setCreatedNs(value); return this; } /** *
       * time when the token was generated/signed
       * 
* * uint64 created_ns = 2; * @return This builder for chaining. */ public Builder clearCreatedNs() { copyOnWrite(); instance.clearCreatedNs(); return this; } // @@protoc_insertion_point(builder_scope:xmtp.message_api.v1.AuthData) } @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.api.v1.Authn.AuthData(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "walletAddr_", "createdNs_", }; java.lang.String info = "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\u0003" + ""; 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.api.v1.Authn.AuthData.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_api.v1.AuthData) private static final org.xmtp.proto.message.api.v1.Authn.AuthData DEFAULT_INSTANCE; static { AuthData defaultInstance = new AuthData(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( AuthData.class, defaultInstance); } public static org.xmtp.proto.message.api.v1.Authn.AuthData 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