1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package interval
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
30 )
31
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40
41
42
43
44
45 type Interval struct {
46 state protoimpl.MessageState
47 sizeCache protoimpl.SizeCache
48 unknownFields protoimpl.UnknownFields
49
50
51
52
53
54 StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
55
56
57
58
59 EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
60 }
61
62 func (x *Interval) Reset() {
63 *x = Interval{}
64 if protoimpl.UnsafeEnabled {
65 mi := &file_google_type_interval_proto_msgTypes[0]
66 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
67 ms.StoreMessageInfo(mi)
68 }
69 }
70
71 func (x *Interval) String() string {
72 return protoimpl.X.MessageStringOf(x)
73 }
74
75 func (*Interval) ProtoMessage() {}
76
77 func (x *Interval) ProtoReflect() protoreflect.Message {
78 mi := &file_google_type_interval_proto_msgTypes[0]
79 if protoimpl.UnsafeEnabled && x != nil {
80 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
81 if ms.LoadMessageInfo() == nil {
82 ms.StoreMessageInfo(mi)
83 }
84 return ms
85 }
86 return mi.MessageOf(x)
87 }
88
89
90 func (*Interval) Descriptor() ([]byte, []int) {
91 return file_google_type_interval_proto_rawDescGZIP(), []int{0}
92 }
93
94 func (x *Interval) GetStartTime() *timestamppb.Timestamp {
95 if x != nil {
96 return x.StartTime
97 }
98 return nil
99 }
100
101 func (x *Interval) GetEndTime() *timestamppb.Timestamp {
102 if x != nil {
103 return x.EndTime
104 }
105 return nil
106 }
107
108 var File_google_type_interval_proto protoreflect.FileDescriptor
109
110 var file_google_type_interval_proto_rawDesc = []byte{
111 0x0a, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x69, 0x6e,
112 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6f,
113 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
114 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
115 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7c, 0x0a, 0x08, 0x49, 0x6e,
116 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f,
117 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
118 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
119 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d,
120 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20,
121 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
122 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
123 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x69, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e,
124 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x42, 0x0d, 0x49, 0x6e, 0x74,
125 0x65, 0x72, 0x76, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x6f,
126 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
127 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
128 0x70, 0x69, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61,
129 0x6c, 0x3b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03,
130 0x47, 0x54, 0x50, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
131 }
132
133 var (
134 file_google_type_interval_proto_rawDescOnce sync.Once
135 file_google_type_interval_proto_rawDescData = file_google_type_interval_proto_rawDesc
136 )
137
138 func file_google_type_interval_proto_rawDescGZIP() []byte {
139 file_google_type_interval_proto_rawDescOnce.Do(func() {
140 file_google_type_interval_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_type_interval_proto_rawDescData)
141 })
142 return file_google_type_interval_proto_rawDescData
143 }
144
145 var file_google_type_interval_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
146 var file_google_type_interval_proto_goTypes = []interface{}{
147 (*Interval)(nil),
148 (*timestamppb.Timestamp)(nil),
149 }
150 var file_google_type_interval_proto_depIdxs = []int32{
151 1,
152 1,
153 2,
154 2,
155 2,
156 2,
157 0,
158 }
159
160 func init() { file_google_type_interval_proto_init() }
161 func file_google_type_interval_proto_init() {
162 if File_google_type_interval_proto != nil {
163 return
164 }
165 if !protoimpl.UnsafeEnabled {
166 file_google_type_interval_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
167 switch v := v.(*Interval); i {
168 case 0:
169 return &v.state
170 case 1:
171 return &v.sizeCache
172 case 2:
173 return &v.unknownFields
174 default:
175 return nil
176 }
177 }
178 }
179 type x struct{}
180 out := protoimpl.TypeBuilder{
181 File: protoimpl.DescBuilder{
182 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
183 RawDescriptor: file_google_type_interval_proto_rawDesc,
184 NumEnums: 0,
185 NumMessages: 1,
186 NumExtensions: 0,
187 NumServices: 0,
188 },
189 GoTypes: file_google_type_interval_proto_goTypes,
190 DependencyIndexes: file_google_type_interval_proto_depIdxs,
191 MessageInfos: file_google_type_interval_proto_msgTypes,
192 }.Build()
193 File_google_type_interval_proto = out.File
194 file_google_type_interval_proto_rawDesc = nil
195 file_google_type_interval_proto_goTypes = nil
196 file_google_type_interval_proto_depIdxs = nil
197 }
198
View as plain text