|
| 1 | +// Signature format: 2.0 |
| 2 | +package com.google.firebase.installations { |
| 3 | + |
| 4 | + public class FirebaseInstallations implements com.google.firebase.installations.FirebaseInstallationsApi { |
| 5 | + method @NonNull public com.google.android.gms.tasks.Task<java.lang.Void> delete(); |
| 6 | + method @NonNull public com.google.android.gms.tasks.Task<java.lang.String> getId(); |
| 7 | + method @NonNull public static com.google.firebase.installations.FirebaseInstallations getInstance(); |
| 8 | + method @NonNull public static com.google.firebase.installations.FirebaseInstallations getInstance(@NonNull com.google.firebase.FirebaseApp); |
| 9 | + method @NonNull public com.google.android.gms.tasks.Task<com.google.firebase.installations.InstallationTokenResult> getToken(@com.google.firebase.installations.FirebaseInstallationsApi.AuthTokenOption int); |
| 10 | + } |
| 11 | + |
| 12 | + public class FirebaseInstallationsException extends com.google.firebase.FirebaseException { |
| 13 | + ctor public FirebaseInstallationsException(@NonNull com.google.firebase.installations.FirebaseInstallationsException.Status); |
| 14 | + ctor public FirebaseInstallationsException(@NonNull String, @NonNull com.google.firebase.installations.FirebaseInstallationsException.Status); |
| 15 | + ctor public FirebaseInstallationsException(@NonNull String, @NonNull com.google.firebase.installations.FirebaseInstallationsException.Status, @NonNull Throwable); |
| 16 | + method @NonNull public com.google.firebase.installations.FirebaseInstallationsException.Status getStatus(); |
| 17 | + } |
| 18 | + |
| 19 | + public enum FirebaseInstallationsException.Status { |
| 20 | + enum_constant public static final com.google.firebase.installations.FirebaseInstallationsException.Status BAD_CONFIG; |
| 21 | + } |
| 22 | + |
| 23 | + public class RandomFidGenerator { |
| 24 | + ctor public RandomFidGenerator(); |
| 25 | + method @NonNull public String createRandomFid(); |
| 26 | + } |
| 27 | + |
| 28 | +} |
| 29 | + |
| 30 | +package com.google.firebase.installations.local { |
| 31 | + |
| 32 | + public class IidStore { |
| 33 | + ctor public IidStore(); |
| 34 | + method @Nullable public String readIid(); |
| 35 | + } |
| 36 | + |
| 37 | + public class PersistedInstallation { |
| 38 | + ctor public PersistedInstallation(@NonNull com.google.firebase.FirebaseApp); |
| 39 | + method public void clearForTesting(); |
| 40 | + method @NonNull public com.google.firebase.installations.local.PersistedInstallationEntry insertOrUpdatePersistedInstallationEntry(@NonNull com.google.firebase.installations.local.PersistedInstallationEntry); |
| 41 | + method @NonNull public com.google.firebase.installations.local.PersistedInstallationEntry readPersistedInstallationEntryValue(); |
| 42 | + } |
| 43 | + |
| 44 | + public enum PersistedInstallation.RegistrationStatus { |
| 45 | + enum_constant public static final com.google.firebase.installations.local.PersistedInstallation.RegistrationStatus ATTEMPT_MIGRATION; |
| 46 | + enum_constant public static final com.google.firebase.installations.local.PersistedInstallation.RegistrationStatus NOT_GENERATED; |
| 47 | + enum_constant public static final com.google.firebase.installations.local.PersistedInstallation.RegistrationStatus REGISTERED; |
| 48 | + enum_constant public static final com.google.firebase.installations.local.PersistedInstallation.RegistrationStatus REGISTER_ERROR; |
| 49 | + enum_constant public static final com.google.firebase.installations.local.PersistedInstallation.RegistrationStatus UNREGISTERED; |
| 50 | + } |
| 51 | + |
| 52 | + public abstract class PersistedInstallationEntry { |
| 53 | + ctor public PersistedInstallationEntry(); |
| 54 | + method @NonNull public static com.google.firebase.installations.local.PersistedInstallationEntry.Builder builder(); |
| 55 | + method @Nullable public abstract String getAuthToken(); |
| 56 | + method public abstract long getExpiresInSecs(); |
| 57 | + method @Nullable public abstract String getFirebaseInstallationId(); |
| 58 | + method @Nullable public abstract String getFisError(); |
| 59 | + method @Nullable public abstract String getRefreshToken(); |
| 60 | + method @NonNull public abstract com.google.firebase.installations.local.PersistedInstallation.RegistrationStatus getRegistrationStatus(); |
| 61 | + method public abstract long getTokenCreationEpochInSecs(); |
| 62 | + method public boolean isErrored(); |
| 63 | + method public boolean isNotGenerated(); |
| 64 | + method public boolean isRegistered(); |
| 65 | + method public boolean isUnregistered(); |
| 66 | + method public boolean shouldAttemptMigration(); |
| 67 | + method @NonNull public abstract com.google.firebase.installations.local.PersistedInstallationEntry.Builder toBuilder(); |
| 68 | + method @NonNull public com.google.firebase.installations.local.PersistedInstallationEntry withAuthToken(@NonNull String, long, long); |
| 69 | + method @NonNull public com.google.firebase.installations.local.PersistedInstallationEntry withClearedAuthToken(); |
| 70 | + method @NonNull public com.google.firebase.installations.local.PersistedInstallationEntry withFisError(@NonNull String); |
| 71 | + method @NonNull public com.google.firebase.installations.local.PersistedInstallationEntry withNoGeneratedFid(); |
| 72 | + method @NonNull public com.google.firebase.installations.local.PersistedInstallationEntry withRegisteredFid(@NonNull String, @NonNull String, long, @Nullable String, long); |
| 73 | + method @NonNull public com.google.firebase.installations.local.PersistedInstallationEntry withUnregisteredFid(@NonNull String); |
| 74 | + field @NonNull public static com.google.firebase.installations.local.PersistedInstallationEntry INSTANCE; |
| 75 | + } |
| 76 | + |
| 77 | + public abstract static class PersistedInstallationEntry.Builder { |
| 78 | + ctor public PersistedInstallationEntry.Builder(); |
| 79 | + method @NonNull public abstract com.google.firebase.installations.local.PersistedInstallationEntry build(); |
| 80 | + method @NonNull public abstract com.google.firebase.installations.local.PersistedInstallationEntry.Builder setAuthToken(@Nullable String); |
| 81 | + method @NonNull public abstract com.google.firebase.installations.local.PersistedInstallationEntry.Builder setExpiresInSecs(long); |
| 82 | + method @NonNull public abstract com.google.firebase.installations.local.PersistedInstallationEntry.Builder setFirebaseInstallationId(@NonNull String); |
| 83 | + method @NonNull public abstract com.google.firebase.installations.local.PersistedInstallationEntry.Builder setFisError(@Nullable String); |
| 84 | + method @NonNull public abstract com.google.firebase.installations.local.PersistedInstallationEntry.Builder setRefreshToken(@Nullable String); |
| 85 | + method @NonNull public abstract com.google.firebase.installations.local.PersistedInstallationEntry.Builder setRegistrationStatus(@NonNull com.google.firebase.installations.local.PersistedInstallation.RegistrationStatus); |
| 86 | + method @NonNull public abstract com.google.firebase.installations.local.PersistedInstallationEntry.Builder setTokenCreationEpochInSecs(long); |
| 87 | + } |
| 88 | + |
| 89 | +} |
| 90 | + |
| 91 | +package com.google.firebase.installations.remote { |
| 92 | + |
| 93 | + public class FirebaseInstallationServiceClient { |
| 94 | + ctor public FirebaseInstallationServiceClient(@NonNull android.content.Context, @Nullable com.google.firebase.platforminfo.UserAgentPublisher, @Nullable com.google.firebase.heartbeatinfo.HeartBeatInfo); |
| 95 | + method @NonNull public com.google.firebase.installations.remote.InstallationResponse createFirebaseInstallation(@NonNull String, @NonNull String, @NonNull String, @NonNull String) throws java.io.IOException; |
| 96 | + method @NonNull public void deleteFirebaseInstallation(@NonNull String, @NonNull String, @NonNull String, @NonNull String) throws com.google.firebase.FirebaseException, java.io.IOException; |
| 97 | + method @NonNull public com.google.firebase.installations.remote.TokenResult generateAuthToken(@NonNull String, @NonNull String, @NonNull String, @NonNull String) throws java.io.IOException; |
| 98 | + } |
| 99 | + |
| 100 | + public abstract class InstallationResponse { |
| 101 | + ctor public InstallationResponse(); |
| 102 | + method @NonNull public static com.google.firebase.installations.remote.InstallationResponse.Builder builder(); |
| 103 | + method @Nullable public abstract com.google.firebase.installations.remote.TokenResult getAuthToken(); |
| 104 | + method @Nullable public abstract String getFid(); |
| 105 | + method @Nullable public abstract String getRefreshToken(); |
| 106 | + method @Nullable public abstract com.google.firebase.installations.remote.InstallationResponse.ResponseCode getResponseCode(); |
| 107 | + method @Nullable public abstract String getUri(); |
| 108 | + method @NonNull public abstract com.google.firebase.installations.remote.InstallationResponse.Builder toBuilder(); |
| 109 | + } |
| 110 | + |
| 111 | + public abstract static class InstallationResponse.Builder { |
| 112 | + ctor public InstallationResponse.Builder(); |
| 113 | + method @NonNull public abstract com.google.firebase.installations.remote.InstallationResponse build(); |
| 114 | + method @NonNull public abstract com.google.firebase.installations.remote.InstallationResponse.Builder setAuthToken(@NonNull com.google.firebase.installations.remote.TokenResult); |
| 115 | + method @NonNull public abstract com.google.firebase.installations.remote.InstallationResponse.Builder setFid(@NonNull String); |
| 116 | + method @NonNull public abstract com.google.firebase.installations.remote.InstallationResponse.Builder setRefreshToken(@NonNull String); |
| 117 | + method @NonNull public abstract com.google.firebase.installations.remote.InstallationResponse.Builder setResponseCode(@NonNull com.google.firebase.installations.remote.InstallationResponse.ResponseCode); |
| 118 | + method @NonNull public abstract com.google.firebase.installations.remote.InstallationResponse.Builder setUri(@NonNull String); |
| 119 | + } |
| 120 | + |
| 121 | + public enum InstallationResponse.ResponseCode { |
| 122 | + enum_constant public static final com.google.firebase.installations.remote.InstallationResponse.ResponseCode BAD_CONFIG; |
| 123 | + enum_constant public static final com.google.firebase.installations.remote.InstallationResponse.ResponseCode OK; |
| 124 | + } |
| 125 | + |
| 126 | + public abstract class TokenResult { |
| 127 | + ctor public TokenResult(); |
| 128 | + method @NonNull public static com.google.firebase.installations.remote.TokenResult.Builder builder(); |
| 129 | + method @Nullable public abstract com.google.firebase.installations.remote.TokenResult.ResponseCode getResponseCode(); |
| 130 | + method @Nullable public abstract String getToken(); |
| 131 | + method @NonNull public abstract long getTokenExpirationTimestamp(); |
| 132 | + method @NonNull public abstract com.google.firebase.installations.remote.TokenResult.Builder toBuilder(); |
| 133 | + } |
| 134 | + |
| 135 | + public abstract static class TokenResult.Builder { |
| 136 | + ctor public TokenResult.Builder(); |
| 137 | + method @NonNull public abstract com.google.firebase.installations.remote.TokenResult build(); |
| 138 | + method @NonNull public abstract com.google.firebase.installations.remote.TokenResult.Builder setResponseCode(@NonNull com.google.firebase.installations.remote.TokenResult.ResponseCode); |
| 139 | + method @NonNull public abstract com.google.firebase.installations.remote.TokenResult.Builder setToken(@NonNull String); |
| 140 | + method @NonNull public abstract com.google.firebase.installations.remote.TokenResult.Builder setTokenExpirationTimestamp(long); |
| 141 | + } |
| 142 | + |
| 143 | + public enum TokenResult.ResponseCode { |
| 144 | + enum_constant public static final com.google.firebase.installations.remote.TokenResult.ResponseCode AUTH_ERROR; |
| 145 | + enum_constant public static final com.google.firebase.installations.remote.TokenResult.ResponseCode BAD_CONFIG; |
| 146 | + enum_constant public static final com.google.firebase.installations.remote.TokenResult.ResponseCode OK; |
| 147 | + } |
| 148 | + |
| 149 | +} |
| 150 | + |
0 commit comments