-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathoptions.proto
More file actions
29 lines (22 loc) · 822 Bytes
/
options.proto
File metadata and controls
29 lines (22 loc) · 822 Bytes
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
syntax = "proto3";
package nexusannotations.v1;
import "google/protobuf/descriptor.proto";
option go_package = "github.com/nexus-rpc/nexus-proto-annotations/go/nexusannotations/v1";
extend google.protobuf.ServiceOptions {
optional ServiceOptions service = 8233;
}
extend google.protobuf.MethodOptions {
optional OperationOptions operation = 8234;
}
message OperationOptions {
// Nexus operation name (defaults to proto method name).
string name = 1;
// Tags to attach to the operation. Used by code generators to include and exclude operations.
repeated string tags = 2;
}
message ServiceOptions {
// Nexus service name (defaults to proto service full name).
string name = 1;
// Tags to attach to the service. Used by code generators to include and exclude services.
repeated string tags = 2;
}