-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathknown.pb.go
More file actions
83 lines (69 loc) · 2.17 KB
/
known.pb.go
File metadata and controls
83 lines (69 loc) · 2.17 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
71
72
73
74
75
76
77
78
79
80
81
82
83
// Code generated by protoc-gen-go-plugin. DO NOT EDIT.
// versions:
// protoc-gen-go-plugin v0.1.0
// protoc v6.30.2
// source: examples/known-types/known/known.proto
package known
import (
context "context"
durationpb "github.com/knqyf263/go-plugin/types/known/durationpb"
structpb "github.com/knqyf263/go-plugin/types/known/structpb"
timestamppb "github.com/knqyf263/go-plugin/types/known/timestamppb"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type DiffRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value *structpb.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
Start *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
End *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
}
func (x *DiffRequest) ProtoReflect() protoreflect.Message {
panic(`not implemented`)
}
func (x *DiffRequest) GetValue() *structpb.Value {
if x != nil {
return x.Value
}
return nil
}
func (x *DiffRequest) GetStart() *timestamppb.Timestamp {
if x != nil {
return x.Start
}
return nil
}
func (x *DiffRequest) GetEnd() *timestamppb.Timestamp {
if x != nil {
return x.End
}
return nil
}
type DiffReply struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"`
}
func (x *DiffReply) ProtoReflect() protoreflect.Message {
panic(`not implemented`)
}
func (x *DiffReply) GetDuration() *durationpb.Duration {
if x != nil {
return x.Duration
}
return nil
}
// The greeting service definition.
// go:plugin type=plugin
type WellKnown interface {
Diff(context.Context, *DiffRequest) (*DiffReply, error)
}