Package com.iizix.prop
Record Class PWAProps.FirebaseConfig
java.lang.Object
java.lang.Record
com.iizix.prop.PWAProps.FirebaseConfig
- Record Components:
apiKey
- The API key, e.g. "AIzaSyDTyQDYYzX-RFuz2v6GauPEb0N-gWYzDBw".authDomain
- The authentication domain, e.g.: "my-app.firebaseapp.com".projectId
- The project ID, e.g. "my-app".storageBucket
- The storage bucket, e.g. "my-app.appspot.com".messagingSenderId
- The messaging Sender ID, e.g. "123456789012".appId
- The App ID, e.g. "1:123456789012:web:abcdef01234567890abcde".measurementId
- A potential Measurement ID, e.g. "G-ABC123XYZ0".
- Enclosing class:
PWAProps
public static record PWAProps.FirebaseConfig(String apiKey, String authDomain, String projectId, String storageBucket, String messagingSenderId, String appId, String measurementId) extends Record
The "firebaseConfig" object parsed from JSON.
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionapiKey()
Returns the value of theapiKey
record component.appId()
Returns the value of theappId
record component.Returns the value of theauthDomain
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of themeasurementId
record component.Returns the value of themessagingSenderId
record component.Returns the value of theprojectId
record component.Returns the value of thestorageBucket
record component.final String
toString()
Returns a string representation of this record class.
Constructor Details
FirebaseConfig
public FirebaseConfig(String apiKey, String authDomain, String projectId, String storageBucket, String messagingSenderId, String appId, String measurementId) Creates an instance of aFirebaseConfig
record class.- Parameters:
apiKey
- the value for theapiKey
record componentauthDomain
- the value for theauthDomain
record componentprojectId
- the value for theprojectId
record componentstorageBucket
- the value for thestorageBucket
record componentmessagingSenderId
- the value for themessagingSenderId
record componentappId
- the value for theappId
record componentmeasurementId
- the value for themeasurementId
record component
Method Details
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
.apiKey
Returns the value of theapiKey
record component.- Returns:
- the value of the
apiKey
record component
authDomain
Returns the value of theauthDomain
record component.- Returns:
- the value of the
authDomain
record component
projectId
Returns the value of theprojectId
record component.- Returns:
- the value of the
projectId
record component
storageBucket
Returns the value of thestorageBucket
record component.- Returns:
- the value of the
storageBucket
record component
messagingSenderId
Returns the value of themessagingSenderId
record component.- Returns:
- the value of the
messagingSenderId
record component
appId
Returns the value of theappId
record component.- Returns:
- the value of the
appId
record component
measurementId
Returns the value of themeasurementId
record component.- Returns:
- the value of the
measurementId
record component