public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public org.locationtech.geowave.service.grpc.protobuf.AddIndexGroupCommandParametersProtos buildPartial() { org.locationtech.geowave.service.grpc.protobuf.AddIndexGroupCommandParametersProtos result = new org.locationtech.geowave.service.grpc.protobuf.AddIndexGroupCommandParametersProtos(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { parameters_ = parameters_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.parameters_ = parameters_; onBuilt(); 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(); } 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(); if (getParametersCount() > 0) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParametersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; makeExtensionsImmutable();
public org.locationtech.geowave.service.grpc.protobuf.AddIndexGroupCommandParametersProtos getDefaultInstanceForType() { return org.locationtech.geowave.service.grpc.protobuf.AddIndexGroupCommandParametersProtos.getDefaultInstance(); }
@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.AddIndexGroupCommandParametersProtos)) { return super.equals(obj); } org.locationtech.geowave.service.grpc.protobuf.AddIndexGroupCommandParametersProtos other = (org.locationtech.geowave.service.grpc.protobuf.AddIndexGroupCommandParametersProtos) obj; boolean result = true; result = result && getParametersList() .equals(other.getParametersList()); result = result && unknownFields.equals(other.unknownFields); return result; }
public org.locationtech.geowave.service.grpc.protobuf.AddIndexGroupCommandParametersProtos build() { org.locationtech.geowave.service.grpc.protobuf.AddIndexGroupCommandParametersProtos result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@Override public void addIndexGroupCommand( org.locationtech.geowave.service.grpc.protobuf.AddIndexGroupCommandParametersProtos request, StreamObserver<org.locationtech.geowave.service.grpc.protobuf.GeoWaveReturnTypesProtos.StringResponseProtos> responseObserver) { AddIndexGroupCommand cmd = new AddIndexGroupCommand(); 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 AddIndexGroupCommand..."); try { final String result = cmd.computeResults(params); final StringResponseProtos resp = StringResponseProtos.newBuilder().setResponseValue(result).build(); responseObserver.onNext(resp); responseObserver.onCompleted(); } catch (final Exception e) { LOGGER.error("Exception encountered executing command", e); } }
public Builder mergeFrom(org.locationtech.geowave.service.grpc.protobuf.AddIndexGroupCommandParametersProtos other) { if (other == org.locationtech.geowave.service.grpc.protobuf.AddIndexGroupCommandParametersProtos.getDefaultInstance()) return this; if (!other.parameters_.isEmpty()) { if (parameters_.isEmpty()) { parameters_ = other.parameters_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureParametersIsMutable(); parameters_.addAll(other.parameters_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public String AddIndexGroupCommand() { final ArrayList<String> params = new ArrayList<>(); params.add(GeoWaveGrpcTestUtils.indexName + "-group"); params.add(GeoWaveGrpcTestUtils.indexName); final AddIndexGroupCommandParametersProtos request = AddIndexGroupCommandParametersProtos.newBuilder().addAllParameters(params).build(); final StringResponseProtos resp = coreStoreBlockingStub.addIndexGroupCommand(request); return resp.getResponseValue(); }
public static io.grpc.MethodDescriptor<org.locationtech.geowave.service.grpc.protobuf.RemoveIndexGroupCommandParametersProtos, org.locationtech.geowave.service.grpc.protobuf.GeoWaveReturnTypesProtos.StringResponseProtos> getRemoveIndexGroupCommandMethod() { io.grpc.MethodDescriptor<org.locationtech.geowave.service.grpc.protobuf.RemoveIndexGroupCommandParametersProtos, org.locationtech.geowave.service.grpc.protobuf.GeoWaveReturnTypesProtos.StringResponseProtos> getRemoveIndexGroupCommandMethod; if ((getRemoveIndexGroupCommandMethod = CoreStoreGrpc.getRemoveIndexGroupCommandMethod) == null) { synchronized (CoreStoreGrpc.class) { if ((getRemoveIndexGroupCommandMethod = CoreStoreGrpc.getRemoveIndexGroupCommandMethod) == null) { CoreStoreGrpc.getRemoveIndexGroupCommandMethod = getRemoveIndexGroupCommandMethod = io.grpc.MethodDescriptor.<org.locationtech.geowave.service.grpc.protobuf.RemoveIndexGroupCommandParametersProtos, org.locationtech.geowave.service.grpc.protobuf.GeoWaveReturnTypesProtos.StringResponseProtos>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "CoreStore", "RemoveIndexGroupCommand")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.locationtech.geowave.service.grpc.protobuf.RemoveIndexGroupCommandParametersProtos.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( org.locationtech.geowave.service.grpc.protobuf.GeoWaveReturnTypesProtos.StringResponseProtos.getDefaultInstance())) .setSchemaDescriptor(new CoreStoreMethodDescriptorSupplier("RemoveIndexGroupCommand")) .build(); } } } return getRemoveIndexGroupCommandMethod; }