@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getFunctionIDBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionID_); } if (!getRegionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, region_); } if (arguments_ != null) { output.writeMessage(3, getArguments()); } for (int i = 0; i < keyFilter_.size(); i++) { output.writeMessage(4, keyFilter_.get(i)); } unknownFields.writeTo(output); }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getFunctionIDBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionID_); } if (!getRegionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, region_); } if (arguments_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getArguments()); } for (int i = 0; i < keyFilter_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, keyFilter_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@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; }
mergeArguments(other.getArguments());
@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; }
private Object getFunctionArguments(ExecuteFunctionOnRegionRequest request, ProtobufSerializationService serializationService) throws DecodingException { if (request.hasArguments()) { return serializationService.decode(request.getArguments()); } else { return null; } } }
/** * <code>.org.apache.geode.internal.protocol.protobuf.v1.EncodedValue arguments = 3;</code> */ public org.apache.geode.internal.protocol.protobuf.v1.BasicTypes.EncodedValueOrBuilder getArgumentsOrBuilder() { return getArguments(); }