96 lines
2.7 KiB
Java
96 lines
2.7 KiB
Java
package com.google.firebase.firestore;
|
|
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public abstract class FieldValue {
|
|
private static final DeleteFieldValue DELETE_INSTANCE = new DeleteFieldValue();
|
|
private static final ServerTimestampFieldValue SERVER_TIMESTAMP_INSTANCE = new ServerTimestampFieldValue();
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public abstract String getMethodName();
|
|
|
|
FieldValue() {
|
|
}
|
|
|
|
/* loaded from: classes2.dex */
|
|
static class DeleteFieldValue extends FieldValue {
|
|
DeleteFieldValue() {
|
|
}
|
|
|
|
@Override // com.google.firebase.firestore.FieldValue
|
|
String getMethodName() {
|
|
return "FieldValue.delete";
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes2.dex */
|
|
static class ServerTimestampFieldValue extends FieldValue {
|
|
ServerTimestampFieldValue() {
|
|
}
|
|
|
|
@Override // com.google.firebase.firestore.FieldValue
|
|
String getMethodName() {
|
|
return "FieldValue.serverTimestamp";
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes2.dex */
|
|
static class ArrayUnionFieldValue extends FieldValue {
|
|
private final List<Object> elements;
|
|
|
|
ArrayUnionFieldValue(List<Object> list) {
|
|
this.elements = list;
|
|
}
|
|
|
|
@Override // com.google.firebase.firestore.FieldValue
|
|
String getMethodName() {
|
|
return "FieldValue.arrayUnion";
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public List<Object> getElements() {
|
|
return this.elements;
|
|
}
|
|
}
|
|
|
|
public static FieldValue arrayUnion(Object... objArr) {
|
|
return new ArrayUnionFieldValue(Arrays.asList(objArr));
|
|
}
|
|
|
|
/* loaded from: classes2.dex */
|
|
static class ArrayRemoveFieldValue extends FieldValue {
|
|
private final List<Object> elements;
|
|
|
|
@Override // com.google.firebase.firestore.FieldValue
|
|
String getMethodName() {
|
|
return "FieldValue.arrayRemove";
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public List<Object> getElements() {
|
|
return this.elements;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes2.dex */
|
|
static class NumericIncrementFieldValue extends FieldValue {
|
|
private final Number operand;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public Number getOperand() {
|
|
return this.operand;
|
|
}
|
|
|
|
@Override // com.google.firebase.firestore.FieldValue
|
|
String getMethodName() {
|
|
return "FieldValue.increment";
|
|
}
|
|
}
|
|
|
|
public static FieldValue serverTimestamp() {
|
|
return SERVER_TIMESTAMP_INSTANCE;
|
|
}
|
|
}
|