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
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionapiKey()Returns the value of theapiKeyrecord component.appId()Returns the value of theappIdrecord component.Returns the value of theauthDomainrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themeasurementIdrecord component.Returns the value of themessagingSenderIdrecord component.Returns the value of theprojectIdrecord component.Returns the value of thestorageBucketrecord component.final StringtoString()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 aFirebaseConfigrecord class.- Parameters:
apiKey- the value for theapiKeyrecord componentauthDomain- the value for theauthDomainrecord componentprojectId- the value for theprojectIdrecord componentstorageBucket- the value for thestorageBucketrecord componentmessagingSenderId- the value for themessagingSenderIdrecord componentappId- the value for theappIdrecord componentmeasurementId- the value for themeasurementIdrecord 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 theapiKeyrecord component.- Returns:
- the value of the
apiKeyrecord component
authDomain
Returns the value of theauthDomainrecord component.- Returns:
- the value of the
authDomainrecord component
projectId
Returns the value of theprojectIdrecord component.- Returns:
- the value of the
projectIdrecord component
storageBucket
Returns the value of thestorageBucketrecord component.- Returns:
- the value of the
storageBucketrecord component
messagingSenderId
Returns the value of themessagingSenderIdrecord component.- Returns:
- the value of the
messagingSenderIdrecord component
appId
Returns the value of theappIdrecord component.- Returns:
- the value of the
appIdrecord component
measurementId
Returns the value of themeasurementIdrecord component.- Returns:
- the value of the
measurementIdrecord component