@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REGIONNAME_FIELD_NUMBER; hash = (53 * hash) + getRegionName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@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.RegionAPI.KeySetRequest)) { return super.equals(obj); } org.apache.geode.internal.protocol.protobuf.v1.RegionAPI.KeySetRequest other = (org.apache.geode.internal.protocol.protobuf.v1.RegionAPI.KeySetRequest) obj; boolean result = true; result = result && getRegionName() .equals(other.getRegionName()); result = result && unknownFields.equals(other.unknownFields); return result; }
@Override public Result<RegionAPI.KeySetResponse> process(ProtobufSerializationService serializationService, RegionAPI.KeySetRequest request, MessageExecutionContext messageExecutionContext) throws InvalidExecutionContextException, EncodingException, DecodingException { String regionName = request.getRegionName(); Set<Object> keySet = messageExecutionContext.getSecureCache().keySet(regionName); RegionAPI.KeySetResponse.Builder builder = RegionAPI.KeySetResponse.newBuilder(); keySet.stream().map(serializationService::encode).forEach(builder::addKeys); return Success.of(builder.build()); } }
public Builder mergeFrom(org.apache.geode.internal.protocol.protobuf.v1.RegionAPI.KeySetRequest other) { if (other == org.apache.geode.internal.protocol.protobuf.v1.RegionAPI.KeySetRequest.getDefaultInstance()) return this; if (!other.getRegionName().isEmpty()) { regionName_ = other.regionName_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <code>string regionName = 1;</code> */ public Builder clearRegionName() { regionName_ = getDefaultInstance().getRegionName(); onChanged(); return this; } /**