operation.pbext.go raw
1 // Code generated by protoc-gen-goext. DO NOT EDIT.
2
3 package operation
4
5 import (
6 status "google.golang.org/genproto/googleapis/rpc/status"
7 anypb "google.golang.org/protobuf/types/known/anypb"
8 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
9 )
10
11 type Operation_Result = isOperation_Result
12
13 func (m *Operation) SetResult(v Operation_Result) {
14 m.Result = v
15 }
16
17 func (m *Operation) SetId(v string) {
18 m.Id = v
19 }
20
21 func (m *Operation) SetDescription(v string) {
22 m.Description = v
23 }
24
25 func (m *Operation) SetCreatedAt(v *timestamppb.Timestamp) {
26 m.CreatedAt = v
27 }
28
29 func (m *Operation) SetCreatedBy(v string) {
30 m.CreatedBy = v
31 }
32
33 func (m *Operation) SetModifiedAt(v *timestamppb.Timestamp) {
34 m.ModifiedAt = v
35 }
36
37 func (m *Operation) SetDone(v bool) {
38 m.Done = v
39 }
40
41 func (m *Operation) SetMetadata(v *anypb.Any) {
42 m.Metadata = v
43 }
44
45 func (m *Operation) SetError(v *status.Status) {
46 m.Result = &Operation_Error{
47 Error: v,
48 }
49 }
50
51 func (m *Operation) SetResponse(v *anypb.Any) {
52 m.Result = &Operation_Response{
53 Response: v,
54 }
55 }
56