@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FUNCTIONID_FIELD_NUMBER; hash = (53 * hash) + getFunctionID().hashCode(); hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); if (hasArguments()) { hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER; hash = (53 * hash) + getArguments().hashCode(); } if (getKeyFilterCount() > 0) { hash = (37 * hash) + KEYFILTER_FIELD_NUMBER; hash = (53 * hash) + getKeyFilterList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
onChanged(); if (!other.getRegion().isEmpty()) { region_ = other.region_; onChanged();
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.geode.internal.protocol.protobuf.v1.FunctionAPI.ExecuteFunctionOnRegionRequest)) { return super.equals(obj); } org.apache.geode.internal.protocol.protobuf.v1.FunctionAPI.ExecuteFunctionOnRegionRequest other = (org.apache.geode.internal.protocol.protobuf.v1.FunctionAPI.ExecuteFunctionOnRegionRequest) obj; boolean result = true; result = result && getFunctionID() .equals(other.getFunctionID()); result = result && getRegion() .equals(other.getRegion()); result = result && (hasArguments() == other.hasArguments()); if (hasArguments()) { result = result && getArguments() .equals(other.getArguments()); } result = result && getKeyFilterList() .equals(other.getKeyFilterList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@Override public Result<ExecuteFunctionOnRegionResponse> process( ProtobufSerializationService serializationService, ExecuteFunctionOnRegionRequest request, MessageExecutionContext messageExecutionContext) throws InvalidExecutionContextException, ConnectionStateException, EncodingException, DecodingException { final String functionID = request.getFunctionID(); final String regionName = request.getRegion(); Object arguments = getFunctionArguments(request, serializationService); Set<?> filter = parseFilter(serializationService, request); SecureFunctionService functionService = messageExecutionContext.getSecureCache().getFunctionService(); List<Object> results = functionService.executeFunctionOnRegion(functionID, regionName, arguments, filter); final ExecuteFunctionOnRegionResponse.Builder responseMessage = ExecuteFunctionOnRegionResponse.newBuilder(); for (Object result : results) { responseMessage.addResults(serializationService.encode(result)); } return Success.of(responseMessage.build()); }
/** * <code>string region = 2;</code> */ public Builder clearRegion() { region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /**