Skip to content

Commit 21bfbbb

Browse files
committed
Add toString() for SetAsterismConsentRequest
1 parent a86bc57 commit 21bfbbb

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

play-services-asterism/src/main/java/com/google/android/gms/asterism/SetAsterismConsentRequest.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
1111
import com.google.android.gms.common.internal.safeparcel.SafeParcelableCreatorAndWriter;
1212

13+
import org.microg.gms.utils.ToStringHelper;
14+
1315
@SafeParcelable.Class
1416
public class SetAsterismConsentRequest extends AbstractSafeParcelable {
1517
public static SafeParcelableCreatorAndWriter<SetAsterismConsentRequest> CREATOR =
@@ -126,6 +128,32 @@ public SetAsterismConsentRequest(
126128
this.deviceConsentVersionValue = deviceConsentVersionValue;
127129
}
128130

131+
@NonNull
132+
@Override
133+
public String toString() {
134+
return ToStringHelper.name("SetAsterismConsentRequest")
135+
.field("requestCode", requestCode)
136+
.field("asterismClientValue", asterismClientValue)
137+
.field("flowContextValue", flowContextValue)
138+
.field("tosResourceIds", tosResourceIds)
139+
.field("timestamp", timestamp)
140+
.field("consentValue", consentValue)
141+
.field("extras", extras)
142+
.field("statusValue", statusValue)
143+
.field("clientVersion", clientVersion)
144+
.field("language", language)
145+
.field("field11", field11)
146+
.field("field12", field12)
147+
.field("field13", field13)
148+
.field("accountName", accountName)
149+
.field("consentVariant", consentVariant)
150+
.field("consentTrigger", consentTrigger)
151+
.field("consentVersionValue", consentVersionValue)
152+
.field("deviceConsentSourceValue", deviceConsentSourceValue)
153+
.field("deviceConsentVersionValue", deviceConsentVersionValue)
154+
.end();
155+
}
156+
129157
@Override
130158
public void writeToParcel(@NonNull Parcel dest, int flags) {
131159
CREATOR.writeToParcel(this, dest, flags);

0 commit comments

Comments
 (0)