org.yamcs.protobuf.MdbApiClient Maven / Gradle / Ivy
package org.yamcs.protobuf;
import org.yamcs.api.HttpBody;
import org.yamcs.api.MethodHandler;
import org.yamcs.api.Observer;
import org.yamcs.protobuf.Mdb.AlgorithmInfo;
import org.yamcs.protobuf.Mdb.BatchGetParametersRequest;
import org.yamcs.protobuf.Mdb.BatchGetParametersResponse;
import org.yamcs.protobuf.Mdb.CommandInfo;
import org.yamcs.protobuf.Mdb.ContainerInfo;
import org.yamcs.protobuf.Mdb.CreateParameterRequest;
import org.yamcs.protobuf.Mdb.CreateParameterTypeRequest;
import org.yamcs.protobuf.Mdb.ExportJavaMissionDatabaseRequest;
import org.yamcs.protobuf.Mdb.ExportXtceRequest;
import org.yamcs.protobuf.Mdb.GetAlgorithmRequest;
import org.yamcs.protobuf.Mdb.GetCommandRequest;
import org.yamcs.protobuf.Mdb.GetContainerRequest;
import org.yamcs.protobuf.Mdb.GetMissionDatabaseRequest;
import org.yamcs.protobuf.Mdb.GetParameterRequest;
import org.yamcs.protobuf.Mdb.GetParameterTypeRequest;
import org.yamcs.protobuf.Mdb.GetSpaceSystemRequest;
import org.yamcs.protobuf.Mdb.ListAlgorithmsRequest;
import org.yamcs.protobuf.Mdb.ListAlgorithmsResponse;
import org.yamcs.protobuf.Mdb.ListCommandsRequest;
import org.yamcs.protobuf.Mdb.ListCommandsResponse;
import org.yamcs.protobuf.Mdb.ListContainersRequest;
import org.yamcs.protobuf.Mdb.ListContainersResponse;
import org.yamcs.protobuf.Mdb.ListParameterTypesRequest;
import org.yamcs.protobuf.Mdb.ListParameterTypesResponse;
import org.yamcs.protobuf.Mdb.ListParametersRequest;
import org.yamcs.protobuf.Mdb.ListParametersResponse;
import org.yamcs.protobuf.Mdb.ListSpaceSystemsRequest;
import org.yamcs.protobuf.Mdb.ListSpaceSystemsResponse;
import org.yamcs.protobuf.Mdb.MissionDatabase;
import org.yamcs.protobuf.Mdb.MissionDatabaseItem;
import org.yamcs.protobuf.Mdb.ParameterInfo;
import org.yamcs.protobuf.Mdb.ParameterTypeInfo;
import org.yamcs.protobuf.Mdb.SpaceSystemInfo;
import org.yamcs.protobuf.Mdb.StreamMissionDatabaseRequest;
@javax.annotation.processing.Generated(value = "org.yamcs.maven.ServiceGenerator", date = "2024-11-12T20:17:34.536774324Z")
public class MdbApiClient extends AbstractMdbApi {
private final MethodHandler handler;
public MdbApiClient(MethodHandler handler) {
this.handler = handler;
}
/**
*
* Get a mission database
*
*/
@Override
public final void getMissionDatabase(Void ctx, GetMissionDatabaseRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(0),
request,
MissionDatabase.getDefaultInstance(),
observer);
}
/**
*
* Export a java serialized dump of the mission database
*
*/
@Override
public final void exportJavaMissionDatabase(Void ctx, ExportJavaMissionDatabaseRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(1),
request,
HttpBody.getDefaultInstance(),
observer);
}
/**
*
* List space systems
*
*/
@Override
public final void listSpaceSystems(Void ctx, ListSpaceSystemsRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(2),
request,
ListSpaceSystemsResponse.getDefaultInstance(),
observer);
}
/**
*
* Get a space system
*
*/
@Override
public final void getSpaceSystem(Void ctx, GetSpaceSystemRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(3),
request,
SpaceSystemInfo.getDefaultInstance(),
observer);
}
/**
*
* Export an XTCE representation of a space system.
*
* If the requested space system is not the root, containers will have
* their qualified name stripped by the top name. In addition there may
* also be references to objects from space systems that are not part of
* the export.
*
*/
@Override
public final void exportXtce(Void ctx, ExportXtceRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(4),
request,
HttpBody.getDefaultInstance(),
observer);
}
/**
*
* Stream Mission Database items.
*
* This operation is intended for tools that need to efficiently fetch
* the full list of parameters or commands, without using repeated
* pagination-based requests.
*
*/
@Override
public final void streamMissionDatabase(Void ctx, StreamMissionDatabaseRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(5),
request,
MissionDatabaseItem.getDefaultInstance(),
observer);
}
/**
*
* List parameters
*
*/
@Override
public final void listParameters(Void ctx, ListParametersRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(6),
request,
ListParametersResponse.getDefaultInstance(),
observer);
}
/**
*
* Get a parameter
*
*/
@Override
public final void getParameter(Void ctx, GetParameterRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(7),
request,
ParameterInfo.getDefaultInstance(),
observer);
}
/**
*
* Create a parameter
*
*/
@Override
public final void createParameter(Void ctx, CreateParameterRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(8),
request,
ParameterInfo.getDefaultInstance(),
observer);
}
/**
*
* Batch get of multiple parameters
*
*/
@Override
public final void batchGetParameters(Void ctx, BatchGetParametersRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(9),
request,
BatchGetParametersResponse.getDefaultInstance(),
observer);
}
/**
*
* List parameter types
*
*/
@Override
public final void listParameterTypes(Void ctx, ListParameterTypesRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(10),
request,
ListParameterTypesResponse.getDefaultInstance(),
observer);
}
/**
*
* Get a parameter type
*
*/
@Override
public final void getParameterType(Void ctx, GetParameterTypeRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(11),
request,
ParameterTypeInfo.getDefaultInstance(),
observer);
}
/**
*
* Create a parameter type
*
*/
@Override
public final void createParameterType(Void ctx, CreateParameterTypeRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(12),
request,
ParameterTypeInfo.getDefaultInstance(),
observer);
}
/**
*
* List containers
*
*/
@Override
public final void listContainers(Void ctx, ListContainersRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(13),
request,
ListContainersResponse.getDefaultInstance(),
observer);
}
/**
*
* Get a container
*
*/
@Override
public final void getContainer(Void ctx, GetContainerRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(14),
request,
ContainerInfo.getDefaultInstance(),
observer);
}
/**
*
* List commands
*
*/
@Override
public final void listCommands(Void ctx, ListCommandsRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(15),
request,
ListCommandsResponse.getDefaultInstance(),
observer);
}
/**
*
* Get a command
*
*/
@Override
public final void getCommand(Void ctx, GetCommandRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(16),
request,
CommandInfo.getDefaultInstance(),
observer);
}
/**
*
* List algorithms
*
*/
@Override
public final void listAlgorithms(Void ctx, ListAlgorithmsRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(17),
request,
ListAlgorithmsResponse.getDefaultInstance(),
observer);
}
/**
*
* Get an algorithm
*
*/
@Override
public final void getAlgorithm(Void ctx, GetAlgorithmRequest request, Observer observer) {
handler.call(
getDescriptorForType().getMethods().get(18),
request,
AlgorithmInfo.getDefaultInstance(),
observer);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy