Skip to content

Commit

Permalink
fix @bufbuild/protobuf version
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweetnow committed Sep 27, 2024
1 parent 117b153 commit 965f5f2
Show file tree
Hide file tree
Showing 236 changed files with 1,143 additions and 1,141 deletions.
12 changes: 6 additions & 6 deletions buf.gen.tag.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: v1
version: v2
managed:
enabled: true
go_package_prefix:
default: go/
override:
- file_option: go_package_prefix
value: go/
plugins:
- name: gotag
- local: protoc-gen-gotag
out: .
opt:
- auto=yaml+bson+db
opt: auto=yaml+bson+db
37 changes: 16 additions & 21 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,29 @@
version: v1
version: v2
managed:
enabled: true
go_package_prefix:
default: git.fiblab.net/sim/protos/go
# https://buf.build/plugins
override:
- file_option: go_package_prefix
value: git.fiblab.net/sim/protos/go
plugins:
- plugin: buf.build/protocolbuffers/cpp:v21.12
- remote: buf.build/protocolbuffers/cpp:v21.12
out: cpp
- plugin: buf.build/grpc/cpp:v1.54.2
- remote: buf.build/grpc/cpp:v1.54.2
out: cpp
- plugin: buf.build/protocolbuffers/go
- remote: buf.build/protocolbuffers/go
out: go
opt:
- paths=source_relative
- plugin: buf.build/connectrpc/go
opt: paths=source_relative
- remote: buf.build/connectrpc/go
out: go
opt:
- paths=source_relative
- plugin: buf.build/community/pseudomuto-doc
opt: paths=source_relative
- remote: buf.build/community/pseudomuto-doc
out: doc
# python3 -m pip install protobuf
- plugin: buf.build/protocolbuffers/python:v24.4
- remote: buf.build/protocolbuffers/python:v24.4
out: pycityproto
# python3 -m pip install types-protobuf
- plugin: buf.build/protocolbuffers/pyi:v24.4
- remote: buf.build/protocolbuffers/pyi:v24.4
out: pycityproto
# python3 -m pip install grpcio
- plugin: buf.build/grpc/python:v1.60.0
- remote: buf.build/grpc/python:v1.60.0
out: pycityproto
- plugin: buf.build/bufbuild/es:v1.6.0
- remote: buf.build/bufbuild/es:v1.10.0
out: es
- plugin: buf.build/connectrpc/es:v1.2.1
- remote: buf.build/connectrpc/es:v1.5.0
out: es
9 changes: 8 additions & 1 deletion buf.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
version: v1
version: v2
lint:
use:
- DEFAULT
except:
- FIELD_NOT_REQUIRED
- PACKAGE_NO_IMPORT_CYCLE
disallow_comment_ignores: true
breaking:
use:
- FILE
except:
- EXTENSION_NO_DELETE
- FIELD_SAME_DEFAULT
2 changes: 1 addition & 1 deletion es/city/agent/v2/agent_pb.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.6.0
// @generated by protoc-gen-es v1.10.0
// @generated from file city/agent/v2/agent.proto (package city.agent.v2, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
16 changes: 8 additions & 8 deletions es/city/agent/v2/agent_pb.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.6.0
// @generated by protoc-gen-es v1.10.0
// @generated from file city/agent/v2/agent.proto (package city.agent.v2, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand All @@ -10,7 +10,7 @@ import { Schedule } from "../../trip/v2/trip_pb.js";
/**
* @generated from enum city.agent.v2.AgentType
*/
export const AgentType = proto3.makeEnum(
export const AgentType = /*@__PURE__*/ proto3.makeEnum(
"city.agent.v2.AgentType",
[
{no: 0, name: "AGENT_TYPE_UNSPECIFIED", localName: "UNSPECIFIED"},
Expand All @@ -26,7 +26,7 @@ export const AgentType = proto3.makeEnum(
* @generated from message city.agent.v2.AgentAttribute
* @deprecated
*/
export const AgentAttribute = proto3.makeMessageType(
export const AgentAttribute = /*@__PURE__*/ proto3.makeMessageType(
"city.agent.v2.AgentAttribute",
() => [
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(AgentType) },
Expand All @@ -45,7 +45,7 @@ export const AgentAttribute = proto3.makeMessageType(
*
* @generated from message city.agent.v2.VehicleAttribute
*/
export const VehicleAttribute = proto3.makeMessageType(
export const VehicleAttribute = /*@__PURE__*/ proto3.makeMessageType(
"city.agent.v2.VehicleAttribute",
() => [
{ no: 1, name: "lane_change_length", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
Expand All @@ -58,7 +58,7 @@ export const VehicleAttribute = proto3.makeMessageType(
*
* @generated from message city.agent.v2.BusAttribute
*/
export const BusAttribute = proto3.makeMessageType(
export const BusAttribute = /*@__PURE__*/ proto3.makeMessageType(
"city.agent.v2.BusAttribute",
() => [
{ no: 1, name: "line_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
Expand All @@ -71,7 +71,7 @@ export const BusAttribute = proto3.makeMessageType(
*
* @generated from message city.agent.v2.BikeAttribute
*/
export const BikeAttribute = proto3.makeMessageType(
export const BikeAttribute = /*@__PURE__*/ proto3.makeMessageType(
"city.agent.v2.BikeAttribute",
[],
);
Expand All @@ -82,7 +82,7 @@ export const BikeAttribute = proto3.makeMessageType(
* @generated from message city.agent.v2.Agent
* @deprecated
*/
export const Agent = proto3.makeMessageType(
export const Agent = /*@__PURE__*/ proto3.makeMessageType(
"city.agent.v2.Agent",
() => [
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
Expand All @@ -102,7 +102,7 @@ export const Agent = proto3.makeMessageType(
* @generated from message city.agent.v2.Agents
* @deprecated
*/
export const Agents = proto3.makeMessageType(
export const Agents = /*@__PURE__*/ proto3.makeMessageType(
"city.agent.v2.Agents",
() => [
{ no: 1, name: "agents", kind: "message", T: Agent, repeated: true },
Expand Down
2 changes: 1 addition & 1 deletion es/city/agent/v2/agent_service_connect.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-connect-es v1.2.1
// @generated by protoc-gen-connect-es v1.5.0
// @generated from file city/agent/v2/agent_service.proto (package city.agent.v2, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
2 changes: 1 addition & 1 deletion es/city/agent/v2/agent_service_connect.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-connect-es v1.2.1
// @generated by protoc-gen-connect-es v1.5.0
// @generated from file city/agent/v2/agent_service.proto (package city.agent.v2, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
2 changes: 1 addition & 1 deletion es/city/agent/v2/agent_service_pb.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.6.0
// @generated by protoc-gen-es v1.10.0
// @generated from file city/agent/v2/agent_service.proto (package city.agent.v2, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
18 changes: 9 additions & 9 deletions es/city/agent/v2/agent_service_pb.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.6.0
// @generated by protoc-gen-es v1.10.0
// @generated from file city/agent/v2/agent_service.proto (package city.agent.v2, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand All @@ -14,7 +14,7 @@ import { LongLatBBox } from "../../geo/v2/geo_pb.js";
*
* @generated from message city.agent.v2.GetAgentRequest
*/
export const GetAgentRequest = proto3.makeMessageType(
export const GetAgentRequest = /*@__PURE__*/ proto3.makeMessageType(
"city.agent.v2.GetAgentRequest",
() => [
{ no: 1, name: "agent_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
Expand All @@ -26,7 +26,7 @@ export const GetAgentRequest = proto3.makeMessageType(
*
* @generated from message city.agent.v2.GetAgentResponse
*/
export const GetAgentResponse = proto3.makeMessageType(
export const GetAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
"city.agent.v2.GetAgentResponse",
() => [
{ no: 1, name: "base", kind: "message", T: Agent },
Expand All @@ -39,7 +39,7 @@ export const GetAgentResponse = proto3.makeMessageType(
*
* @generated from message city.agent.v2.AddAgentRequest
*/
export const AddAgentRequest = proto3.makeMessageType(
export const AddAgentRequest = /*@__PURE__*/ proto3.makeMessageType(
"city.agent.v2.AddAgentRequest",
() => [
{ no: 1, name: "agent", kind: "message", T: Agent },
Expand All @@ -51,7 +51,7 @@ export const AddAgentRequest = proto3.makeMessageType(
*
* @generated from message city.agent.v2.AddAgentResponse
*/
export const AddAgentResponse = proto3.makeMessageType(
export const AddAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
"city.agent.v2.AddAgentResponse",
() => [
{ no: 1, name: "agent_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
Expand All @@ -63,7 +63,7 @@ export const AddAgentResponse = proto3.makeMessageType(
*
* @generated from message city.agent.v2.SetScheduleRequest
*/
export const SetScheduleRequest = proto3.makeMessageType(
export const SetScheduleRequest = /*@__PURE__*/ proto3.makeMessageType(
"city.agent.v2.SetScheduleRequest",
() => [
{ no: 1, name: "agent_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
Expand All @@ -76,7 +76,7 @@ export const SetScheduleRequest = proto3.makeMessageType(
*
* @generated from message city.agent.v2.SetScheduleResponse
*/
export const SetScheduleResponse = proto3.makeMessageType(
export const SetScheduleResponse = /*@__PURE__*/ proto3.makeMessageType(
"city.agent.v2.SetScheduleResponse",
[],
);
Expand All @@ -86,7 +86,7 @@ export const SetScheduleResponse = proto3.makeMessageType(
*
* @generated from message city.agent.v2.GetAgentsByLongLatAreaRequest
*/
export const GetAgentsByLongLatAreaRequest = proto3.makeMessageType(
export const GetAgentsByLongLatAreaRequest = /*@__PURE__*/ proto3.makeMessageType(
"city.agent.v2.GetAgentsByLongLatAreaRequest",
() => [
{ no: 1, name: "area", kind: "message", T: LongLatBBox },
Expand All @@ -98,7 +98,7 @@ export const GetAgentsByLongLatAreaRequest = proto3.makeMessageType(
*
* @generated from message city.agent.v2.GetAgentsByLongLatAreaResponse
*/
export const GetAgentsByLongLatAreaResponse = proto3.makeMessageType(
export const GetAgentsByLongLatAreaResponse = /*@__PURE__*/ proto3.makeMessageType(
"city.agent.v2.GetAgentsByLongLatAreaResponse",
() => [
{ no: 1, name: "step", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
Expand Down
2 changes: 1 addition & 1 deletion es/city/agent/v2/motion_pb.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.6.0
// @generated by protoc-gen-es v1.10.0
// @generated from file city/agent/v2/motion.proto (package city.agent.v2, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
6 changes: 3 additions & 3 deletions es/city/agent/v2/motion_pb.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.6.0
// @generated by protoc-gen-es v1.10.0
// @generated from file city/agent/v2/motion.proto (package city.agent.v2, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand All @@ -11,7 +11,7 @@ import { Position } from "../../geo/v2/geo_pb.js";
*
* @generated from enum city.agent.v2.Status
*/
export const Status = proto3.makeEnum(
export const Status = /*@__PURE__*/ proto3.makeEnum(
"city.agent.v2.Status",
[
{no: 0, name: "STATUS_UNSPECIFIED", localName: "UNSPECIFIED"},
Expand All @@ -30,7 +30,7 @@ export const Status = proto3.makeEnum(
* @generated from message city.agent.v2.AgentMotion
* @deprecated
*/
export const AgentMotion = proto3.makeMessageType(
export const AgentMotion = /*@__PURE__*/ proto3.makeMessageType(
"city.agent.v2.AgentMotion",
() => [
{ no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
Expand Down
2 changes: 1 addition & 1 deletion es/city/clock/v1/clock_service_connect.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-connect-es v1.2.1
// @generated by protoc-gen-connect-es v1.5.0
// @generated from file city/clock/v1/clock_service.proto (package city.clock.v1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
2 changes: 1 addition & 1 deletion es/city/clock/v1/clock_service_connect.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-connect-es v1.2.1
// @generated by protoc-gen-connect-es v1.5.0
// @generated from file city/clock/v1/clock_service.proto (package city.clock.v1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
2 changes: 1 addition & 1 deletion es/city/clock/v1/clock_service_pb.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.6.0
// @generated by protoc-gen-es v1.10.0
// @generated from file city/clock/v1/clock_service.proto (package city.clock.v1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
6 changes: 3 additions & 3 deletions es/city/clock/v1/clock_service_pb.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.6.0
// @generated by protoc-gen-es v1.10.0
// @generated from file city/clock/v1/clock_service.proto (package city.clock.v1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand All @@ -11,7 +11,7 @@ import { proto3 } from "@bufbuild/protobuf";
*
* @generated from message city.clock.v1.NowRequest
*/
export const NowRequest = proto3.makeMessageType(
export const NowRequest = /*@__PURE__*/ proto3.makeMessageType(
"city.clock.v1.NowRequest",
[],
);
Expand All @@ -22,7 +22,7 @@ export const NowRequest = proto3.makeMessageType(
*
* @generated from message city.clock.v1.NowResponse
*/
export const NowResponse = proto3.makeMessageType(
export const NowResponse = /*@__PURE__*/ proto3.makeMessageType(
"city.clock.v1.NowResponse",
() => [
{ no: 1, name: "t", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
Expand Down
2 changes: 1 addition & 1 deletion es/city/cognition/input/v1/config_pb.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.6.0
// @generated by protoc-gen-es v1.10.0
// @generated from file city/cognition/input/v1/config.proto (package city.cognition.input.v1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
14 changes: 7 additions & 7 deletions es/city/cognition/input/v1/config_pb.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.6.0
// @generated by protoc-gen-es v1.10.0
// @generated from file city/cognition/input/v1/config.proto (package city.cognition.input.v1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand All @@ -9,7 +9,7 @@ import { MongoPath, OutputTarget } from "../../../config/v1/config_pb.js";
/**
* @generated from message city.cognition.input.v1.Mongo
*/
export const Mongo = proto3.makeMessageType(
export const Mongo = /*@__PURE__*/ proto3.makeMessageType(
"city.cognition.input.v1.Mongo",
() => [
{ no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
Expand All @@ -22,7 +22,7 @@ export const Mongo = proto3.makeMessageType(
/**
* @generated from message city.cognition.input.v1.ControlStep
*/
export const ControlStep = proto3.makeMessageType(
export const ControlStep = /*@__PURE__*/ proto3.makeMessageType(
"city.cognition.input.v1.ControlStep",
() => [
{ no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
Expand All @@ -34,7 +34,7 @@ export const ControlStep = proto3.makeMessageType(
/**
* @generated from message city.cognition.input.v1.Control
*/
export const Control = proto3.makeMessageType(
export const Control = /*@__PURE__*/ proto3.makeMessageType(
"city.cognition.input.v1.Control",
() => [
{ no: 1, name: "step", kind: "message", T: ControlStep },
Expand All @@ -46,7 +46,7 @@ export const Control = proto3.makeMessageType(
*
* @generated from message city.cognition.input.v1.OutputSwitch
*/
export const OutputSwitch = proto3.makeMessageType(
export const OutputSwitch = /*@__PURE__*/ proto3.makeMessageType(
"city.cognition.input.v1.OutputSwitch",
() => [
{ no: 1, name: "common", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
Expand All @@ -56,7 +56,7 @@ export const OutputSwitch = proto3.makeMessageType(
/**
* @generated from message city.cognition.input.v1.Output
*/
export const Output = proto3.makeMessageType(
export const Output = /*@__PURE__*/ proto3.makeMessageType(
"city.cognition.input.v1.Output",
() => [
{ no: 1, name: "target", kind: "message", T: OutputTarget },
Expand All @@ -67,7 +67,7 @@ export const Output = proto3.makeMessageType(
/**
* @generated from message city.cognition.input.v1.Config
*/
export const Config = proto3.makeMessageType(
export const Config = /*@__PURE__*/ proto3.makeMessageType(
"city.cognition.input.v1.Config",
() => [
{ no: 1, name: "mongo", kind: "message", T: Mongo },
Expand Down
2 changes: 1 addition & 1 deletion es/city/cognition/input/v1/input_pb.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-es v1.6.0
// @generated by protoc-gen-es v1.10.0
// @generated from file city/cognition/input/v1/input.proto (package city.cognition.input.v1, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
Loading

0 comments on commit 965f5f2

Please sign in to comment.