-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuf.gen.yaml
More file actions
70 lines (60 loc) · 1.87 KB
/
Copy pathbuf.gen.yaml
File metadata and controls
70 lines (60 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: v2
managed:
enabled: true
disable:
- file_option: go_package_prefix
module: buf.build/bufbuild/protovalidate
- module: buf.build/googleapis/googleapis
override:
- file_option: go_package_prefix
value: github.com/qdrant/qdrant-cloud-public-api/gen/go
plugins:
# Generate base types for Go
- remote: buf.build/protocolbuffers/go:v1.36.11
out: gen/go
opt:
- paths=source_relative
# Generate Go client and server stubs for the gRPC framework
- remote: buf.build/grpc/go:v1.6.1
out: gen/go
opt:
- paths=source_relative
# Generate Python client and server stubs
- remote: buf.build/grpc/python:v1.78.1
include_imports: true
out: gen/python
# Generate base types for Python(message and enum).
- remote: buf.build/protocolbuffers/python:v33.5
include_imports: true
out: gen/python
# Generate Python type hints
- remote: buf.build/protocolbuffers/pyi:v33.5
include_imports: true
out: gen/python
# Generate bindings for gRPC-Gateway
# We don't need the output (the api-gateway is building this dynamically), however
# we still want to run the validation logic inside this plugin
- remote: buf.build/grpc-ecosystem/gateway:v2.29.0
out: gen-dummy/go
opt:
- paths=source_relative
- generate_unbound_methods=true
# Generate OpenAPI definitions for Protobuf services
- remote: buf.build/grpc-ecosystem/openapiv2:v2.29.0
out: gen/openapiv2
# Generate base types and services for Typescript
- remote: buf.build/bufbuild/es:v2.12.0
include_imports: true
opt:
- target=js+dts
- import_extension=js
- valid_types=protovalidate_required
out: gen/typescript
- remote: buf.build/connectrpc/query-es:v2.2.0
include_imports: true
opt:
- target=js+dts
- import_extension=js
out: gen/typescript
inputs:
- directory: proto