256257258259260261262263264265266
setRemoveParticipant(message.getRemoveParticipant()); } else { clearRemoveParticipant(); } if (message.hasMutateDocument()) { setMutateDocument(new MutateDocumentProtoImpl(message.getMutateDocument())); } else { clearMutateDocument(); } if (message.hasNoOp()) { setNoOp(message.getNoOp());
330331332333334335336
} @Override public MutateDocumentProtoImpl getMutateDocument() { switchToProto(); return new MutateDocumentProtoImpl(proto.getMutateDocument()); }
369370371372373374375376377378
/** Get or create a MutateDocumentProtoImpl from a MutateDocument. */ private MutateDocumentProtoImpl getOrCreateMutateDocumentProtoImpl(MutateDocument message) { if (message instanceof MutateDocumentProtoImpl) { return (MutateDocumentProtoImpl) message; } else { MutateDocumentProtoImpl messageImpl = new MutateDocumentProtoImpl(); messageImpl.copyFrom(message); return messageImpl; } }
451452453454455456457458459460461
} if (jsonObject.has("3")) { JsonElement elem = jsonObject.get("3"); if (!elem.isJsonNull()) { { MutateDocumentProtoImpl payload = new MutateDocumentProtoImpl(); GsonUtil.extractJsonObject(payload, elem, gson, raw); setMutateDocument(payload); } } }