public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getParametersCount() > 0) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParametersList().hashCode(); } hash = (37 * hash) + FIELDNAME_FIELD_NUMBER; hash = (53 * hash) + getFieldName().hashCode(); hash = (37 * hash) + AUTHORIZATIONS_FIELD_NUMBER; hash = (53 * hash) + getAuthorizations().hashCode(); hash = (37 * hash) + JSONFORMATFLAG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getJsonFormatFlag()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <code>string fieldName = 2;</code> */ public Builder clearFieldName() { fieldName_ = getDefaultInstance().getFieldName(); onChanged(); return this; } /**
/** * <code>string authorizations = 3;</code> */ public Builder clearAuthorizations() { authorizations_ = getDefaultInstance().getAuthorizations(); onChanged(); return this; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.locationtech.geowave.service.grpc.protobuf.CalculateStatCommandParametersProtos)) { return super.equals(obj); } org.locationtech.geowave.service.grpc.protobuf.CalculateStatCommandParametersProtos other = (org.locationtech.geowave.service.grpc.protobuf.CalculateStatCommandParametersProtos) obj; boolean result = true; result = result && getParametersList() .equals(other.getParametersList()); result = result && getFieldName() .equals(other.getFieldName()); result = result && getAuthorizations() .equals(other.getAuthorizations()); result = result && (getJsonFormatFlag() == other.getJsonFormatFlag()); result = result && unknownFields.equals(other.unknownFields); return result; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < parameters_.size(); i++) { dataSize += computeStringSizeNoTag(parameters_.getRaw(i)); } size += dataSize; size += 1 * getParametersList().size(); } if (!getFieldNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldName_); } if (!getAuthorizationsBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, authorizations_); } if (jsonFormatFlag_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, jsonFormatFlag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public Builder mergeFrom(org.locationtech.geowave.service.grpc.protobuf.CalculateStatCommandParametersProtos other) { if (other == org.locationtech.geowave.service.grpc.protobuf.CalculateStatCommandParametersProtos.getDefaultInstance()) return this; if (!other.parameters_.isEmpty()) { if (parameters_.isEmpty()) { parameters_ = other.parameters_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureParametersIsMutable(); parameters_.addAll(other.parameters_); } onChanged(); } if (!other.getFieldName().isEmpty()) { fieldName_ = other.fieldName_; onChanged(); } if (!other.getAuthorizations().isEmpty()) { authorizations_ = other.authorizations_; onChanged(); } if (other.getJsonFormatFlag() != false) { setJsonFormatFlag(other.getJsonFormatFlag()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < parameters_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameters_.getRaw(i)); } if (!getFieldNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldName_); } if (!getAuthorizationsBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, authorizations_); } if (jsonFormatFlag_ != false) { output.writeBool(4, jsonFormatFlag_); } unknownFields.writeTo(output); }
public org.locationtech.geowave.service.grpc.protobuf.CalculateStatCommandParametersProtos getDefaultInstanceForType() { return org.locationtech.geowave.service.grpc.protobuf.CalculateStatCommandParametersProtos.getDefaultInstance(); }
public org.locationtech.geowave.service.grpc.protobuf.CalculateStatCommandParametersProtos buildPartial() { org.locationtech.geowave.service.grpc.protobuf.CalculateStatCommandParametersProtos result = new org.locationtech.geowave.service.grpc.protobuf.CalculateStatCommandParametersProtos(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { parameters_ = parameters_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.parameters_ = parameters_; result.fieldName_ = fieldName_; result.authorizations_ = authorizations_; result.jsonFormatFlag_ = jsonFormatFlag_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@Override public void calculateStatCommand( org.locationtech.geowave.service.grpc.protobuf.CalculateStatCommandParametersProtos request, StreamObserver<org.locationtech.geowave.service.grpc.protobuf.GeoWaveReturnTypesProtos.VoidResponseProtos> responseObserver) { CalculateStatCommand cmd = new CalculateStatCommand(); Map<FieldDescriptor, Object> m = request.getAllFields(); GeoWaveGrpcServiceCommandUtil.setGrpcToCommandFields(m, cmd); final File configFile = GeoWaveGrpcServiceOptions.geowaveConfigFile; final OperationParams params = new ManualOperationParams(); params.getContext().put(ConfigOptions.PROPERTIES_FILE_CONTEXT, configFile); cmd.prepare(params); LOGGER.info("Executing CalculateStatCommand..."); try { cmd.computeResults(params); final VoidResponseProtos resp = VoidResponseProtos.newBuilder().build(); responseObserver.onNext(resp); responseObserver.onCompleted(); } catch (final Exception e) { LOGGER.error("Exception encountered executing command", e); } }
public static io.grpc.MethodDescriptor<org.locationtech.geowave.service.grpc.protobuf.VersionCommandParametersProtos, org.locationtech.geowave.service.grpc.protobuf.GeoWaveReturnTypesProtos.StringResponseProtos> getVersionCommandMethod() { io.grpc.MethodDescriptor<org.locationtech.geowave.service.grpc.protobuf.VersionCommandParametersProtos, org.locationtech.geowave.service.grpc.protobuf.GeoWaveReturnTypesProtos.StringResponseProtos> getVersionCommandMethod; if ((getVersionCommandMethod = CoreStoreGrpc.getVersionCommandMethod) == null) { synchronized (CoreStoreGrpc.class) { if ((getVersionCommandMethod = CoreStoreGrpc.getVersionCommandMethod) == null) { CoreStoreGrpc.getVersionCommandMethod = getVersionCommandMethod = io.grpc.MethodDescriptor.<org.locationtech.geowave.service.grpc.protobuf.VersionCommandParametersProtos, org.locationtech.geowave.service.grpc.protobuf.GeoWaveReturnTypesProtos.StringResponseProtos>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "CoreStore", "VersionCommand")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.locationtech.geowave.service.grpc.protobuf.VersionCommandParametersProtos.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.locationtech.geowave.service.grpc.protobuf.GeoWaveReturnTypesProtos.StringResponseProtos.getDefaultInstance())) .setSchemaDescriptor(new CoreStoreMethodDescriptorSupplier("VersionCommand")) .build(); } } } return getVersionCommandMethod; }
public boolean CalculateStatCommand() { final ArrayList<String> params = new ArrayList<>(); params.add(GeoWaveGrpcTestUtils.storeName); params.add(GeoWaveGrpcTestUtils.typeName); params.add("BOUNDING_BOX"); final CalculateStatCommandParametersProtos request = CalculateStatCommandParametersProtos.newBuilder().addAllParameters(params).setFieldName( "geometry").build(); coreStoreBlockingStub.calculateStatCommand(request); return true; }