code
stringlengths
73
34.1k
label
stringclasses
1 value
public SnackbarBuilder timeoutDismissCallback(final SnackbarTimeoutDismissCallback callback) { callbacks.add(new SnackbarCallback() { public void onSnackbarTimedOut(Snackbar snackbar) { callback.onSnackbarTimedOut(snackbar); } }); return this; }
java
@SuppressWarnings("WeakerAccess") public SnackbarBuilder consecutiveDismissCallback(final SnackbarConsecutiveDismissCallback callback) { callbacks.add(new SnackbarCallback() { public void onSnackbarDismissedAfterAnotherShown(Snackbar snackbar) { callback.onSnackbarDismissedAfterAnotherShown(snackbar...
java
public SnackbarWrapper buildWrapper() { Snackbar snackbar = Snackbar.make(parentView, message, duration); SnackbarWrapper wrapper = new SnackbarWrapper(snackbar) .setAction(actionText, sanitisedActionClickListener()) .setActionTextAllCaps(actionAllCaps) .addCallbacks(callbacks) ....
java
private Map<Class<?>, InterfaceInfo> getInterfaceInfoMap() { if (interfaceInfoMap == null) { interfaceInfoMap = new HashMap<Class<?>, InterfaceInfo>(); for (final Class<?> c : packageClasses) { if (INTERESTING_CLASSES.accept( c )) { if (!interfaceInfo...
java
public List<Throwable> getErrors() { final List<Throwable> retval = new ArrayList<Throwable>(); for (final TestInfo testInfo : contractTestMap.listTestInfo()) { retval.addAll( testInfo.getErrors() ); } return retval; }
java
public void update(ByteBuffer buffer) { length += buffer.remaining(); //Save current position to leave given buffer unchanged int position = buffer.position(); //Complete the final buffer if needed completeFinalBuffer(buffer); while(buffer.remaining() >= 64) { transform(buffer); ...
java
public byte[] digest() { byte[] result = new byte[20]; finalBuffer.put((byte)0x80); if(finalBuffer.remaining() < 8) { while(finalBuffer.remaining() > 0) { finalBuffer.put((byte)0); } finalBuffer.position(0); transform(finalBuffer); finalBuffer.position(0); } ...
java
public void restoreState() { h0=s0; h1=s1; h2=s2; h3=s3; h4=s4; length = saveLength; finalBuffer.clear(); finalBuffer.put(saveBuffer); }
java
public void append(String asciiString) { if (asciiString == null) { throw new IllegalArgumentException("AsciiString must not be null"); } ANTLRInputStream antlrInputStream = new ANTLRInputStream(asciiString); GDLLexer lexer = new GDLLexer(antlrInputStream); GDLParser parser = new GDLParser(new...
java
public Map<String, Graph> getGraphCache(boolean includeUserDefined, boolean includeAutoGenerated) { return loader.getGraphCache(includeUserDefined, includeAutoGenerated); }
java
public Map<String, Vertex> getVertexCache(boolean includeUserDefined, boolean includeAutoGenerated) { return loader.getVertexCache(includeUserDefined, includeAutoGenerated); }
java
public Map<String, Edge> getEdgeCache(boolean includeUserDefined, boolean includeAutoGenerated) { return loader.getEdgeCache(includeUserDefined, includeAutoGenerated); }
java
Optional<Predicate> getPredicates() { return predicates != null ? Optional.of(predicates) : Optional.empty(); }
java
Map<String, Graph> getGraphCache(boolean includeUserDefined, boolean includeAutoGenerated) { return getCache(userGraphCache, autoGraphCache, includeUserDefined, includeAutoGenerated); }
java
Map<String, Vertex> getVertexCache(boolean includeUserDefined, boolean includeAutoGenerated) { return getCache(userVertexCache, autoVertexCache, includeUserDefined, includeAutoGenerated); }
java
Map<String, Edge> getEdgeCache(boolean includeUserDefined, boolean includeAutoGenerated) { return getCache(userEdgeCache, autoEdgeCache, includeUserDefined, includeAutoGenerated); }
java
@Override public void enterGraph(GDLParser.GraphContext graphContext) { inGraph = true; String variable = getVariable(graphContext.header()); Graph g; if (variable != null && userGraphCache.containsKey(variable)) { g = userGraphCache.get(variable); } else { g = initNewGraph(graphContex...
java
@Override public void exitQuery(GDLParser.QueryContext ctx) { for(Vertex v : vertices) { addPredicates(Predicate.fromGraphElement(v, getDefaultVertexLabel())); } for(Edge e : edges) { addPredicates(Predicate.fromGraphElement(e, getDefaultEdgeLabel())); } }
java
@Override public void enterVertex(GDLParser.VertexContext vertexContext) { String variable = getVariable(vertexContext.header()); Vertex v; if (variable != null && userVertexCache.containsKey(variable)) { v = userVertexCache.get(variable); } else { v = initNewVertex(vertexContext); ...
java
@Override public void exitWhere(GDLParser.WhereContext ctx) { addPredicates(Collections.singletonList(currentPredicates.pop())); }
java
@Override public void exitNotExpression(GDLParser.NotExpressionContext ctx) { if (!ctx.NOT().isEmpty()) { Predicate not = new Not(currentPredicates.pop()); currentPredicates.add(not); } }
java
private void processEdge(GDLParser.EdgeBodyContext edgeBodyContext, boolean isIncoming) { String variable = null; Edge e; if (edgeBodyContext != null) { variable = getVariable(edgeBodyContext.header()); } if (variable != null && userEdgeCache.containsKey(variable)) { e = userEdgeCache.g...
java
private Graph initNewGraph(GDLParser.GraphContext graphContext) { Graph g = new Graph(); g.setId(getNewGraphId()); List<String> labels = getLabels(graphContext.header()); g.setLabels(labels.isEmpty() ? useDefaultGraphLabel ? Collections.singletonList(defaultGraphLabel) : Collections.emptyList() ...
java
private Vertex initNewVertex(GDLParser.VertexContext vertexContext) { Vertex v = new Vertex(); v.setId(getNewVertexId()); List<String> labels = getLabels(vertexContext.header()); v.setLabels(labels.isEmpty() ? useDefaultVertexLabel ? Collections.singletonList(defaultVertexLabel) : Collections.empt...
java
private Edge initNewEdge(GDLParser.EdgeBodyContext edgeBodyContext, boolean isIncoming) { boolean hasBody = edgeBodyContext != null; Edge e = new Edge(); e.setId(getNewEdgeId()); e.setSourceVertexId(getSourceVertexId(isIncoming)); e.setTargetVertexId(getTargetVertexId(isIncoming)); if (hasBody)...
java
private String getVariable(GDLParser.HeaderContext header) { if (header != null && header.Identifier() != null) { return header.Identifier().getText(); } return null; }
java
private List<String> getLabels(GDLParser.HeaderContext header) { if (header != null && header.label() != null) { return header .label() .stream() .map(RuleContext::getText) .map(x -> x.substring(1)) .collect(Collectors.toList()); } return null; }
java
private Map<String, Object> getProperties(GDLParser.PropertiesContext propertiesContext) { if (propertiesContext != null) { Map<String, Object> properties = new HashMap<>(); for (GDLParser.PropertyContext property : propertiesContext.property()) { properties.put(property.Identifier().getText(), ...
java
private Object getPropertyValue(GDLParser.LiteralContext literalContext) { String text; if (literalContext.StringLiteral() != null) { return parseString(literalContext.StringLiteral().getText()); } else if (literalContext.BooleanLiteral() != null) { return Boolean.parseBoolean(literalContext.Boo...
java
private Comparison buildComparison(GDLParser.ComparisonExpressionContext ctx) { ComparableExpression lhs = extractComparableExpression(ctx.comparisonElement(0)); ComparableExpression rhs = extractComparableExpression(ctx.comparisonElement(1)); Comparator comp = Comparator.fromString(ctx .ComparisonOP().getT...
java
private ComparableExpression extractComparableExpression(GDLParser.ComparisonElementContext element) { if(element.literal() != null) { return new Literal(getPropertyValue(element.literal())); } else if(element.propertyLookup() != null) { return buildPropertySelector(element.propertyLookup()); } ...
java
private PropertySelector buildPropertySelector(GDLParser.PropertyLookupContext ctx) { GraphElement element; String identifier = ctx.Identifier(0).getText(); String property = ctx.Identifier(1).getText(); if(userVertexCache.containsKey(identifier)) { element = userVertexCache.get(identifier); ...
java
private void addPredicates(List<Predicate> newPredicates) { for(Predicate newPredicate : newPredicates) { if(this.predicates == null) { this.predicates = newPredicate; } else { this.predicates = new And(this.predicates, newPredicate); } } }
java
private void updateLastSeenEdge(Vertex v) { Edge lastSeenEdge = getLastSeenEdge(); if (lastSeenEdge != null) { if (lastSeenEdge.getSourceVertexId() == null) { lastSeenEdge.setSourceVertexId(v.getId()); } else if (lastSeenEdge.getTargetVertexId() == null) { lastSeenEdge.setTargetVerte...
java
public static Method findAnnotatedGetter(Class<?> cls, Class<? extends Annotation> class1) { for (final Method m : cls.getDeclaredMethods()) { if (m.getAnnotation( class1 ) != null) { if (!m.getReturnType().equals( Void.TYPE ) && !Modifier.isAbstract( m.getModifiers() ) ...
java
public void update( byte[] data, int pos, int len ) { update( ByteBuffer.wrap( data, pos, len )); }
java
public void setFilter(String filter) throws IllegalArgumentException { if (StringUtils.isBlank(filter)) { this.filter = ClassPathFilter.TRUE; } else { this.filter = new Parser().parse(filter); } }
java
private ContractImpl getContractImpl(final Class<?> cls) throws InitializationError { final ContractImpl impl = cls.getAnnotation( ContractImpl.class ); if (impl == null) { throw new InitializationError( "Classes annotated as @RunWith( ContractSuite ) [" + cls + "] must ...
java
private List<Method> getExcludedMethods(final Class<?> cls) { final List<Method> lst = new ArrayList<Method>(); for (final ContractExclude exclude : cls.getAnnotationsByType( ContractExclude.class )) { final Class<?> clazz = exclude.value(); for (final String mthdName : exclude....
java
private List<Runner> addDynamicClasses(final RunnerBuilder builder, final ContractTestMap contractTestMap, final Dynamic dynamic) throws InitializationError { final Class<? extends Dynamic> dynamicClass = dynamic.getClass(); // this is the list of all the JUnit runners in the suite. ...
java
private List<Runner> addAnnotatedClasses(final Class<?> baseClass, final RunnerBuilder builder, final ContractTestMap contractTestMap, final Object baseObj) throws InitializationError { final List<Runner> runners = new ArrayList<Runner>(); final ContractImpl impl = getContractImpl( baseClass...
java
private void addSpecifiedClasses(final List<Runner> runners, final Class<?> testClass, final RunnerBuilder builder, final ContractTestMap contractTestMap, final Object baseObj, final TestInfo parentTestInfo) throws InitializationError { // this is the list of all the JUnit runne...
java
public static void saveAuthentication(String url, boolean isCluster, final String authenticationToken, final boolean authenticationTokenIsPrivate, final String applicationKey, final int timeToLive, final String privateKey, final Map<String, ChannelPermissions> permissions, final OnRestWebserviceResponse onC...
java
public void runHandler(OrtcClient sender, String channel, String message){ this.runHandler(sender, channel, message, false, null); }
java
public void publish(final String channel, String message, final int ttl, OnPublishResult callback) { // CAUSE: Assignment to method parameter final Pair<Boolean, String> sendValidation = isSendValid(channel, message); //String lMessage = message.replace("\n", "\\n"); if (sendValidation...
java
public void subscribeWithBuffer(String channel, String subscriberId, final OnMessageWithBuffer onMessage){ if (subscriberId != null) { HashMap options = new HashMap(); options.put("channel", channel); options.put("subscribeOnReconnected", true); options.put("subsc...
java
public void subscribeWithNotifications(String channel, boolean subscribeOnReconnect, OnMessage onMessage){ _subscribeWithNotifications(channel, subscribeOnReconnect, onMessage, false); }
java
public void unsubscribe(String channel) { ChannelSubscription subscribedChannel = subscribedChannels.get(channel); if (isUnsubscribeValid(channel, subscribedChannel)) { subscribedChannel.setSubscribeOnReconnected(false); unsubscribe(channel, true, subscribedChannel.isWithNotification()); } //subscribedC...
java
public void presence(String channel, OnPresence callback) throws OrtcNotConnectedException { if (!this.isConnected) { throw new OrtcNotConnectedException(); } else { String presenceUrl = this.isCluster ? this.clusterUrl : this.url; Ortc.presence(presenceUrl, this.isCluster, this.applicationKey, th...
java
public void enablePresence(String privateKey, String channel, Boolean metadata, OnEnablePresence callback) throws OrtcNotConnectedException { if (!this.isConnected) { throw new OrtcNotConnectedException(); } else { String presenceUrl = this.isCluster ? this.clusterUrl : this.url; Ortc.enablePresence...
java
protected String determineDatabaseType() throws HandlerException { String dbName = null; try (Connection conn = getConnection()) { dbName = conn.getMetaData().getDatabaseProductName(); } catch (SQLException e) { throw new HandlerException("Exception occured while getting ...
java
protected boolean isOracleDatabase() throws HandlerException { String dbName = determineDatabaseType(); if (dbName == null) { return false; } return "Oracle".equalsIgnoreCase(dbName); }
java
protected boolean isHSQLDatabase() throws HandlerException { String dbName = determineDatabaseType(); if (dbName == null) { return false; } return "HSQL Database Engine".equalsIgnoreCase(dbName); }
java
protected boolean isMySQLDatabase() throws HandlerException { String dbName = determineDatabaseType(); if (dbName == null) { return false; } return "MySQL".equalsIgnoreCase(dbName); }
java
protected boolean isSQLServerDatabase() throws HandlerException { String dbName = determineDatabaseType(); if (dbName == null) { return false; } return "Microsoft SQL Server".equalsIgnoreCase(dbName); }
java
protected static void getRegistrationId(OrtcClient ortcClient){ if (checkPlayServices(ortcClient)) { gcm = GoogleCloudMessaging.getInstance(ortcClient.appContext); if (ortcClient.registrationId.isEmpty()){ String regid = getRegistrationId(ortcClient.appContext); ...
java
Connection getDataSourceConnection() { Connection connection = null; try { connection = dataSource.getConnection(); } catch (SQLException ex) { throw new InitializationException("Could not obtain the db connection: Cannot get connection", ex); } return con...
java
void init() { if (dataSource == null) { if (connectionType.equals(ConnectionType.POOLED)) { HikariConfig config = new HikariConfig(); config.setMaximumPoolSize(maximumPoolSize); config.setDataSourceClassName(dataSourceClass); config.add...
java
public static String getDBName(String userName) { StringBuilder buffer = new StringBuilder(); buffer.append(EMBEDED_DB_NAME); buffer.append("@"); buffer.append(userName); return buffer.toString(); }
java
public static String checkNotEmpty(String str, String message) { if (checkNotNull(str).isEmpty()) { throw new IllegalArgumentException(message); } return str; }
java
@Override public void init() throws InitializationException { if (null == embedded || "true".equalsIgnoreCase(embedded)) { Log.warn("Audit4j Database Handler runs on embedded mode. See " + ErrorGuide.ERROR_URL + "embeddeddb for further details."); server = HSQLEmbededDB...
java
private String generateTableName(String repository) { if (table_prefix == null) { return repository + "_" + table_suffix; } return table_prefix + "_" + repository + "_" + table_suffix; }
java
public static EJBContainer createEJBContainer(Map<?, ?> properties) throws EJBException { for(EJBContainerProvider factory : factories) { EJBContainer container = factory.createEJBContainer(properties); if(container != null) return container; } throw new EJ...
java
public static String extractClassNameFromFile(final File parentDirectory, final File classFile) throws IOException { if (null == classFile) { return null; } final String qualifiedFileName = parentDirectory != null ? classFile.getCanonicalPath...
java
public static Iterator<String> iterateClassnames(final File parentDirectory, final File ... classFiles) { return iterateClassnames(parentDirectory, Arrays.asList(classFiles).iterator()); }
java
public void setProperties(final Properties properties) { this.properties = (null == properties) ? new Properties() : (Properties)properties.clone(); }
java
public LocalDistribution getDistribution(WrapperConfiguration configuration) { String baseName = getDistName(configuration.getDistribution()); String distName = removeExtension(baseName); String rootDirName = rootDirName(distName, configuration); String d...
java
protected String evaluateOutputDirectory(final String outputDir, final String inputDir) { return outputDir != null && !outputDir.trim().isEmpty() ? outputDir : inputDir.trim(); }
java
@SuppressWarnings("unchecked") public A replace(Property property) { Data data = getData(); Data replaced = data.replace(property); if (!replaced.isEmpty()) { return copy(delegate.put("data", Property.toArrayNode(replaced))); } return (A)this; }
java
public Data replace(Iterable<Property> replacement) { if (Iterables.isEmpty(replacement)) { return this; } Map<String, Property> map = getDataAsMap(replacement); List<Property> props = this.stream(). map(f -> map.getOrDefault(f.getName(), f)). ...
java
public void materializeHelper(Materializer maker) throws IOException { if (!materialized) { ReaderWriterProfiler.start(ReaderWriterProfiler.Counter.DECODING_TIME); try { maker.materialize(treeReader, currentRow); materialized = true; writableCreated = false; nextIsNull = ...
java
void broadcast(ClusterConfiguration config) { Message vote = voteInfo.toMessage(); for (String server : config.getPeers()) { this.transport.send(server, vote); } }
java
public static ZabMessage.Zxid toProtoZxid(Zxid zxid) { ZabMessage.Zxid z = ZabMessage.Zxid.newBuilder() .setEpoch(zxid.getEpoch()) .setXid(zxid.getXid()) .build(); return z; }
java
public static Zxid fromProtoZxid(ZabMessage.Zxid zxid) { return new Zxid(zxid.getEpoch(), zxid.getXid()); }
java
public static Transaction fromProposal(Proposal prop) { Zxid zxid = fromProtoZxid(prop.getZxid()); ByteBuffer buffer = prop.getBody().asReadOnlyByteBuffer(); return new Transaction(zxid, prop.getType().getNumber(), buffer); }
java
public static Proposal fromTransaction(Transaction txn) { ZabMessage.Zxid zxid = toProtoZxid(txn.getZxid()); ByteString bs = ByteString.copyFrom(txn.getBody()); return Proposal.newBuilder().setZxid(zxid).setBody(bs) .setType(ProposalType.values()[txn.getType()]).build(); }
java
public static Message buildProposedEpoch(long proposedEpoch, long acknowledgedEpoch, ClusterConfiguration config, int syncTimeoutMs) { ZabMessage.Zxid version = toProtoZxid(config.getVers...
java
public static Message buildNewEpochMessage(long epoch, int syncTimeoutMs) { NewEpoch nEpoch = NewEpoch.newBuilder() .setNewEpoch(epoch) .setSyncTimeout(syncTimeoutMs) .build(); return Message.newBuilder().setType(MessageT...
java
public static Message buildAckEpoch(long epoch, Zxid lastZxid) { ZabMessage.Zxid zxid = toProtoZxid(lastZxid); AckEpoch ackEpoch = AckEpoch.newBuilder() .setAcknowledgedEpoch(epoch) .setLastZxid(zxid) .build(); return Message.newBuild...
java
public static Message buildInvalidMessage(byte[] content) { InvalidMessage msg = InvalidMessage.newBuilder() .setReceivedBytes(ByteString.copyFrom(content)) .build(); return Message.newBuilder().setType(MessageType.INVALID_MESSAGE) ...
java
public static Message buildPullTxnReq(Zxid lastZxid) { ZabMessage.Zxid zxid = toProtoZxid(lastZxid); PullTxnReq req = PullTxnReq.newBuilder().setLastZxid(zxid) .build(); return Message.newBuilder().setType(MessageType.PULL_TXN_REQ) ...
java
public static Message buildProposal(Transaction txn) { ZabMessage.Zxid zxid = toProtoZxid(txn.getZxid()); Proposal prop = Proposal.newBuilder() .setZxid(zxid) .setBody(ByteString.copyFrom(txn.getBody())) .setType(ProposalType.v...
java
public static Message buildDiff(Zxid lastZxid) { ZabMessage.Zxid lz = toProtoZxid(lastZxid); Diff diff = Diff.newBuilder().setLastZxid(lz).build(); return Message.newBuilder().setType(MessageType.DIFF) .setDiff(diff) .build(); }
java
public static Message buildTruncate(Zxid lastPrefixZxid, Zxid lastZxid) { ZabMessage.Zxid lpz = toProtoZxid(lastPrefixZxid); ZabMessage.Zxid lz = toProtoZxid(lastZxid); Truncate trunc = Truncate.newBuilder().setLastPrefixZxid(lpz) .setLastZxid(lz) ...
java
public static Message buildNewLeader(long epoch) { NewLeader nl = NewLeader.newBuilder().setEpoch(epoch).build(); return Message.newBuilder().setType(MessageType.NEW_LEADER) .setNewLeader(nl) .build(); }
java
public static Message buildAck(Zxid zxid) { ZabMessage.Zxid zzxid = toProtoZxid(zxid); Ack ack = Ack.newBuilder().setZxid(zzxid).build(); return Message.newBuilder().setType(MessageType.ACK).setAck(ack).build(); }
java
public static Message buildRequest(ByteBuffer request) { Request req = Request.newBuilder() .setRequest(ByteString.copyFrom(request)) .build(); return Message.newBuilder().setType(MessageType.REQUEST) .setRequest(req) ...
java
public static Message buildCommit(Zxid zxid) { ZabMessage.Zxid cZxid = toProtoZxid(zxid); Commit commit = Commit.newBuilder().setZxid(cZxid).build(); return Message.newBuilder().setType(MessageType.COMMIT) .setCommit(commit) .build(); }
java
public static Message buildHandshake(String nodeId) { Handshake handshake = Handshake.newBuilder().setNodeId(nodeId).build(); return Message.newBuilder().setType(MessageType.HANDSHAKE) .setHandshake(handshake) .build(); }
java
public static Message buildDisconnected(String serverId) { Disconnected dis = Disconnected.newBuilder() .setServerId(serverId) .build(); return Message.newBuilder().setType(MessageType.DISCONNECTED) .setDisconne...
java
public static Message buildQueryReply(String leader) { QueryReply reply = QueryReply.newBuilder() .setLeader(leader) .build(); return Message.newBuilder().setType(MessageType.QUERY_LEADER_REPLY) .setReply(reply) ...
java
public static Message buildJoin(Zxid lastZxid) { ZabMessage.Zxid zxid = toProtoZxid(lastZxid); ZabMessage.Join join = ZabMessage.Join.newBuilder().setLastZxid(zxid).build(); return Message.newBuilder().setType(MessageType.JOIN).setJoin(join).build(); }
java
public static ZabMessage.ClusterConfiguration buildConfig(ClusterConfiguration config) { ZabMessage.Zxid version = toProtoZxid(config.getVersion()); return ZabMessage.ClusterConfiguration.newBuilder() .setVersion(version) .add...
java
public static Message buildSyncEnd(ClusterConfiguration config) { ZabMessage.Zxid version = toProtoZxid(config.getVersion()); ZabMessage.ClusterConfiguration zConfig = ZabMessage.ClusterConfiguration.newBuilder() .setVersion(version) ...
java
public static Message buildRemove(String serverId) { Remove remove = Remove.newBuilder().setServerId(serverId).build(); return Message.newBuilder().setType(MessageType.REMOVE) .setRemove(remove) .build(); }
java
public static Message buildDelivered(Zxid deliveredZxid) { ZabMessage.Zxid zxid = toProtoZxid(deliveredZxid); ZabMessage.Delivered delivered = ZabMessage.Delivered.newBuilder().setZxid(zxid).build(); return Message.newBuilder().setType(MessageType.DELIVERED) .setDelivere...
java
public static Message buildFileHeader(long length) { ZabMessage.FileHeader header = ZabMessage.FileHeader.newBuilder() .setLength(length).build(); return Message.newBuilder().setType(MessageType.FILE_HEADER) .setFileHeader(header).build...
java
public static Message buildFileReceived(String fullPath) { ZabMessage.FileReceived received = ZabMessage.FileReceived .newBuilder() .setFullPath(fullPath) .build(); ...
java
public static Message buildFlushRequest(ByteBuffer body) { ZabMessage.FlushRequest flushReq = ZabMessage.FlushRequest.newBuilder().setBody(ByteString.copyFrom(body)) .build(); return Message.newBuilder().setType(MessageType.FLUSH_REQ) ...
java
public static Message buildFlush(Zxid lastProposedZxid, ByteBuffer body) { ZabMessage.Zxid zxid = toProtoZxid(lastProposedZxid); ZabMessage.Flush flush = ZabMessage.Flush.newBuilder() .setZxid(zxid) .setBody(ByteString.cop...
java