1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package timeofday
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 )
30
31 const (
32
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38
39
40
41
42 type TimeOfDay struct {
43 state protoimpl.MessageState
44 sizeCache protoimpl.SizeCache
45 unknownFields protoimpl.UnknownFields
46
47
48
49 Hours int32 `protobuf:"varint,1,opt,name=hours,proto3" json:"hours,omitempty"`
50
51 Minutes int32 `protobuf:"varint,2,opt,name=minutes,proto3" json:"minutes,omitempty"`
52
53
54 Seconds int32 `protobuf:"varint,3,opt,name=seconds,proto3" json:"seconds,omitempty"`
55
56 Nanos int32 `protobuf:"varint,4,opt,name=nanos,proto3" json:"nanos,omitempty"`
57 }
58
59 func (x *TimeOfDay) Reset() {
60 *x = TimeOfDay{}
61 if protoimpl.UnsafeEnabled {
62 mi := &file_google_type_timeofday_proto_msgTypes[0]
63 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
64 ms.StoreMessageInfo(mi)
65 }
66 }
67
68 func (x *TimeOfDay) String() string {
69 return protoimpl.X.MessageStringOf(x)
70 }
71
72 func (*TimeOfDay) ProtoMessage() {}
73
74 func (x *TimeOfDay) ProtoReflect() protoreflect.Message {
75 mi := &file_google_type_timeofday_proto_msgTypes[0]
76 if protoimpl.UnsafeEnabled && x != nil {
77 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
78 if ms.LoadMessageInfo() == nil {
79 ms.StoreMessageInfo(mi)
80 }
81 return ms
82 }
83 return mi.MessageOf(x)
84 }
85
86
87 func (*TimeOfDay) Descriptor() ([]byte, []int) {
88 return file_google_type_timeofday_proto_rawDescGZIP(), []int{0}
89 }
90
91 func (x *TimeOfDay) GetHours() int32 {
92 if x != nil {
93 return x.Hours
94 }
95 return 0
96 }
97
98 func (x *TimeOfDay) GetMinutes() int32 {
99 if x != nil {
100 return x.Minutes
101 }
102 return 0
103 }
104
105 func (x *TimeOfDay) GetSeconds() int32 {
106 if x != nil {
107 return x.Seconds
108 }
109 return 0
110 }
111
112 func (x *TimeOfDay) GetNanos() int32 {
113 if x != nil {
114 return x.Nanos
115 }
116 return 0
117 }
118
119 var File_google_type_timeofday_proto protoreflect.FileDescriptor
120
121 var file_google_type_timeofday_proto_rawDesc = []byte{
122 0x0a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x74, 0x69,
123 0x6d, 0x65, 0x6f, 0x66, 0x64, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67,
124 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x22, 0x6b, 0x0a, 0x09, 0x54, 0x69,
125 0x6d, 0x65, 0x4f, 0x66, 0x44, 0x61, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x6f, 0x75, 0x72, 0x73,
126 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x68, 0x6f, 0x75, 0x72, 0x73, 0x12, 0x18, 0x0a,
127 0x07, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07,
128 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e,
129 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64,
130 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
131 0x52, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x42, 0x6c, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
132 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x42, 0x0e, 0x54, 0x69, 0x6d, 0x65,
133 0x4f, 0x66, 0x44, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x6f,
134 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
135 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
136 0x70, 0x69, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x66, 0x64,
137 0x61, 0x79, 0x3b, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x66, 0x64, 0x61, 0x79, 0xf8, 0x01, 0x01, 0xa2,
138 0x02, 0x03, 0x47, 0x54, 0x50, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
139 }
140
141 var (
142 file_google_type_timeofday_proto_rawDescOnce sync.Once
143 file_google_type_timeofday_proto_rawDescData = file_google_type_timeofday_proto_rawDesc
144 )
145
146 func file_google_type_timeofday_proto_rawDescGZIP() []byte {
147 file_google_type_timeofday_proto_rawDescOnce.Do(func() {
148 file_google_type_timeofday_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_type_timeofday_proto_rawDescData)
149 })
150 return file_google_type_timeofday_proto_rawDescData
151 }
152
153 var file_google_type_timeofday_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
154 var file_google_type_timeofday_proto_goTypes = []interface{}{
155 (*TimeOfDay)(nil),
156 }
157 var file_google_type_timeofday_proto_depIdxs = []int32{
158 0,
159 0,
160 0,
161 0,
162 0,
163 }
164
165 func init() { file_google_type_timeofday_proto_init() }
166 func file_google_type_timeofday_proto_init() {
167 if File_google_type_timeofday_proto != nil {
168 return
169 }
170 if !protoimpl.UnsafeEnabled {
171 file_google_type_timeofday_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
172 switch v := v.(*TimeOfDay); i {
173 case 0:
174 return &v.state
175 case 1:
176 return &v.sizeCache
177 case 2:
178 return &v.unknownFields
179 default:
180 return nil
181 }
182 }
183 }
184 type x struct{}
185 out := protoimpl.TypeBuilder{
186 File: protoimpl.DescBuilder{
187 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
188 RawDescriptor: file_google_type_timeofday_proto_rawDesc,
189 NumEnums: 0,
190 NumMessages: 1,
191 NumExtensions: 0,
192 NumServices: 0,
193 },
194 GoTypes: file_google_type_timeofday_proto_goTypes,
195 DependencyIndexes: file_google_type_timeofday_proto_depIdxs,
196 MessageInfos: file_google_type_timeofday_proto_msgTypes,
197 }.Build()
198 File_google_type_timeofday_proto = out.File
199 file_google_type_timeofday_proto_rawDesc = nil
200 file_google_type_timeofday_proto_goTypes = nil
201 file_google_type_timeofday_proto_depIdxs = nil
202 }
203
View as plain text