Skip to content

Commit

Permalink
Commit from GitHub Actions (compile_PB)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 23, 2023
1 parent f3d8409 commit 6931c92
Show file tree
Hide file tree
Showing 4 changed files with 198 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
// @generated by protoc-gen-connect-query v0.6.0 with parameter "target=ts"
// @generated from file state/v1/state.proto (package state.v1, syntax proto3)
/* eslint-disable */
// @ts-nocheck

import { GetBlockStatesRequest, GetBlockStatesResponse, UpdateBlockStateRequest, UpdateBlockStateResponse } from "./block_pb.js";
import { MethodKind } from "@bufbuild/protobuf";
import { GetPointStatesRequest, GetPointStatesResponse, UpdatePointStateRequest, UpdatePointStateResponse } from "./point_pb.js";
import { GetStopStatesRequest, GetStopStatesResponse, UpdateStopStateRequest, UpdateStopStateResponse } from "./stop_pb.js";
import { AddTrainRequest, AddTrainResponse, GetTrainsRequest, GetTrainsResponse, UpdateTrainRequest, UpdateTrainResponse } from "./train_pb.js";
import { createQueryService, createUnaryHooks, UnaryFunctionsWithHooks } from "@connectrpc/connect-query";

export const typeName = "state.v1.StateManagerService";

/**
*
* StateManagerが提供するサービス
* AutoOperationとフロントエンド間の通信に利用される
*
* @generated from service state.v1.StateManagerService
*/
export const StateManagerService = {
typeName: "state.v1.StateManagerService",
methods: {
/**
* Block
*
* @generated from rpc state.v1.StateManagerService.GetBlockStates
*/
getBlockStates: {
name: "GetBlockStates",
I: GetBlockStatesRequest,
O: GetBlockStatesResponse,
kind: MethodKind.Unary,
},
/**
* @generated from rpc state.v1.StateManagerService.UpdateBlockState
*/
updateBlockState: {
name: "UpdateBlockState",
I: UpdateBlockStateRequest,
O: UpdateBlockStateResponse,
kind: MethodKind.Unary,
},
/**
* Point
*
* @generated from rpc state.v1.StateManagerService.UpdatePointState
*/
updatePointState: {
name: "UpdatePointState",
I: UpdatePointStateRequest,
O: UpdatePointStateResponse,
kind: MethodKind.Unary,
},
/**
* @generated from rpc state.v1.StateManagerService.GetPointStates
*/
getPointStates: {
name: "GetPointStates",
I: GetPointStatesRequest,
O: GetPointStatesResponse,
kind: MethodKind.Unary,
},
/**
* Stop
*
* @generated from rpc state.v1.StateManagerService.UpdateStopState
*/
updateStopState: {
name: "UpdateStopState",
I: UpdateStopStateRequest,
O: UpdateStopStateResponse,
kind: MethodKind.Unary,
},
/**
* @generated from rpc state.v1.StateManagerService.GetStopStates
*/
getStopStates: {
name: "GetStopStates",
I: GetStopStatesRequest,
O: GetStopStatesResponse,
kind: MethodKind.Unary,
},
/**
* Train
*
* @generated from rpc state.v1.StateManagerService.GetTrains
*/
getTrains: {
name: "GetTrains",
I: GetTrainsRequest,
O: GetTrainsResponse,
kind: MethodKind.Unary,
},
/**
* @generated from rpc state.v1.StateManagerService.AddTrain
*/
addTrain: {
name: "AddTrain",
I: AddTrainRequest,
O: AddTrainResponse,
kind: MethodKind.Unary,
},
/**
* @generated from rpc state.v1.StateManagerService.UpdateTrain
*/
updateTrain: {
name: "UpdateTrain",
I: UpdateTrainRequest,
O: UpdateTrainResponse,
kind: MethodKind.Unary,
},
}
} as const;

const $queryService = createQueryService({ service: StateManagerService,});

/**
* Block
*
* @generated from rpc state.v1.StateManagerService.GetBlockStates
*/
export const getBlockStates: UnaryFunctionsWithHooks<GetBlockStatesRequest, GetBlockStatesResponse> = { ...$queryService.getBlockStates, ...createUnaryHooks($queryService.getBlockStates)};

/**
* @generated from rpc state.v1.StateManagerService.UpdateBlockState
*/
export const updateBlockState: UnaryFunctionsWithHooks<UpdateBlockStateRequest, UpdateBlockStateResponse> = { ...$queryService.updateBlockState, ...createUnaryHooks($queryService.updateBlockState)};

/**
* Point
*
* @generated from rpc state.v1.StateManagerService.UpdatePointState
*/
export const updatePointState: UnaryFunctionsWithHooks<UpdatePointStateRequest, UpdatePointStateResponse> = { ...$queryService.updatePointState, ...createUnaryHooks($queryService.updatePointState)};

/**
* @generated from rpc state.v1.StateManagerService.GetPointStates
*/
export const getPointStates: UnaryFunctionsWithHooks<GetPointStatesRequest, GetPointStatesResponse> = { ...$queryService.getPointStates, ...createUnaryHooks($queryService.getPointStates)};

/**
* Stop
*
* @generated from rpc state.v1.StateManagerService.UpdateStopState
*/
export const updateStopState: UnaryFunctionsWithHooks<UpdateStopStateRequest, UpdateStopStateResponse> = { ...$queryService.updateStopState, ...createUnaryHooks($queryService.updateStopState)};

/**
* @generated from rpc state.v1.StateManagerService.GetStopStates
*/
export const getStopStates: UnaryFunctionsWithHooks<GetStopStatesRequest, GetStopStatesResponse> = { ...$queryService.getStopStates, ...createUnaryHooks($queryService.getStopStates)};

/**
* Train
*
* @generated from rpc state.v1.StateManagerService.GetTrains
*/
export const getTrains: UnaryFunctionsWithHooks<GetTrainsRequest, GetTrainsResponse> = { ...$queryService.getTrains, ...createUnaryHooks($queryService.getTrains)};

/**
* @generated from rpc state.v1.StateManagerService.AddTrain
*/
export const addTrain: UnaryFunctionsWithHooks<AddTrainRequest, AddTrainResponse> = { ...$queryService.addTrain, ...createUnaryHooks($queryService.addTrain)};

/**
* @generated from rpc state.v1.StateManagerService.UpdateTrain
*/
export const updateTrain: UnaryFunctionsWithHooks<UpdateTrainRequest, UpdateTrainResponse> = { ...$queryService.updateTrain, ...createUnaryHooks($queryService.updateTrain)};
7 changes: 7 additions & 0 deletions frontend/dashboard/src/proto/state/v1/train_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ export declare class Train extends Message<Train> {
*/
uuid: string;

/**
* 行き先
*
* @generated from field: string destination = 5;
*/
destination: string;

constructor(data?: PartialMessage<Train>);

static readonly runtime: typeof proto3;
Expand Down
1 change: 1 addition & 0 deletions frontend/dashboard/src/proto/state/v1/train_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const Train = proto3.makeMessageType(
{ no: 2, name: "position_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "priority", kind: "enum", T: proto3.getEnumType(Priority) },
{ no: 4, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "destination", kind: "scalar", T: 9 /* ScalarType.STRING */ },
],
);

Expand Down
20 changes: 20 additions & 0 deletions frontend/dashboard/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,14 @@
"@bufbuild/protobuf" "^1.3.3"
"@bufbuild/protoplugin" "^1.3.3"

"@connectrpc/protoc-gen-connect-query@^0.6.0":
version "0.6.0"
resolved "https://registry.yarnpkg.com/@connectrpc/protoc-gen-connect-query/-/protoc-gen-connect-query-0.6.0.tgz#bb19291a3c949a8c23f4a27d23fb0c9fb67e48c0"
integrity sha512-Y8Zow5bK/WFVABbrIYpqDo5hVYzWyqRuXfGLqurhKthrbpDKgB/MGYaz8ly7k2B0SE28//62HKVKlM63w12S4g==
dependencies:
"@bufbuild/protobuf" "^1.3.3"
"@bufbuild/protoplugin" "^1.3.3"

"@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2":
version "0.3.3"
resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz#7e02e6eb5df901aaedb08514203b096614024098"
Expand Down Expand Up @@ -1326,6 +1334,18 @@
dependencies:
tslib "^2.4.0"

"@tanstack/[email protected]":
version "5.8.3"
resolved "https://registry.yarnpkg.com/@tanstack/query-core/-/query-core-5.8.3.tgz#7c6d62721518223e8b27f1a0b5e9bd4e3bb7ecd8"
integrity sha512-SWFMFtcHfttLYif6pevnnMYnBvxKf3C+MHMH7bevyYfpXpTMsLB9O6nNGBdWSoPwnZRXFNyNeVZOw25Wmdasow==

"@tanstack/react-query@^5.8.4":
version "5.8.4"
resolved "https://registry.yarnpkg.com/@tanstack/react-query/-/react-query-5.8.4.tgz#7d5ef4dc4e2985fdc607d0f30ff79a8453abe652"
integrity sha512-CD+AkXzg8J72JrE6ocmuBEJfGzEzu/bzkD6sFXFDDB5yji9N20JofXZlN6n0+CaPJuIi+e4YLCbGsyPFKkfNQA==
dependencies:
"@tanstack/query-core" "5.8.3"

"@trysound/[email protected]":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@trysound/sax/-/sax-0.2.0.tgz#cccaab758af56761eb7bf37af6f03f326dd798ad"
Expand Down

0 comments on commit 6931c92

Please sign in to comment.