-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice.options.pb.go
More file actions
58 lines (46 loc) · 1.46 KB
/
service.options.pb.go
File metadata and controls
58 lines (46 loc) · 1.46 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
// Code generated by protoc-gen-go-methodoptions. DO NOT EDIT.
// source file: example/service.proto
// proto package: helloworld
package example
import (
permissions "github.com/taylow/protoc-gen-go-methodoptions/example/permissions"
)
// Greeter
const (
Greeter_SayBye_Role = permissions.Role_ROLE_GUEST
Greeter_SayHello_Role = permissions.Role_ROLE_OWNER
Greeter_SayHello_Scope = "some.scope"
Greeter_SayHello_Test = 1234
)
// SayByeRole returns the Role for SayBye.
func (UnimplementedGreeterServer) SayByeRole() permissions.Role {
return Greeter_SayBye_Role
}
// Role returns the Role for SayBye request.
func (*ByeRequest) Role() permissions.Role {
return Greeter_SayBye_Role
}
// SayHelloRole returns the Role for SayHello.
func (UnimplementedGreeterServer) SayHelloRole() permissions.Role {
return Greeter_SayHello_Role
}
// Role returns the Role for SayHello request.
func (*HelloRequest) Role() permissions.Role {
return Greeter_SayHello_Role
}
// SayHelloScope returns the Scope for SayHello.
func (UnimplementedGreeterServer) SayHelloScope() string {
return Greeter_SayHello_Scope
}
// Scope returns the Scope for SayHello request.
func (*HelloRequest) Scope() string {
return Greeter_SayHello_Scope
}
// SayHelloTest returns the Test for SayHello.
func (UnimplementedGreeterServer) SayHelloTest() int32 {
return Greeter_SayHello_Test
}
// Test returns the Test for SayHello request.
func (*HelloRequest) Test() int32 {
return Greeter_SayHello_Test
}